Skip to content

Finer-grain customization of LaTeX output#125

Open
Lelio-Brun wants to merge 3 commits intoott-lang:masterfrom
Lelio-Brun:master
Open

Finer-grain customization of LaTeX output#125
Lelio-Brun wants to merge 3 commits intoott-lang:masterfrom
Lelio-Brun:master

Conversation

@Lelio-Brun
Copy link

This PR makes 3 (conservative) contributions to the LaTeX output:

  1. \ottfirstprodnewline allows customizing the linebreak occurring on the very first line after the ::=
    For example with \renewcommand{\ottfirstprodnewline}{} in combination with an accordingly redefined \ottfirstprodline we can obtain
    x ::= A
        | B
        | C
    
    instead of
     x ::= 
         | A
         | B
         | C
    
  2. \ottlastpremise allows customizing the premise separator after the last premise. This is useful if, for example, one wants to use mathpartir.
  3. \ottdrulename<rule_name> allows typesetting the name of a rule. It can be superior to \ottdrulename{<rule_name>} because the former will result in a LaTeX error if the rule name changes in the Ott file.

…le head.

In custom setups, this enables merging the head line with the first production line.
…voiding the generation of an unwanted separator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant