Skip to content

Commit

Permalink
Merge pull request #2709 from modelica/henrikt-ma-patch-4
Browse files Browse the repository at this point in the history
Add comment regarding LaTeXML failure to treat \lstinline properly inside \caption
  • Loading branch information
HansOlsson committed Nov 9, 2020
2 parents a478b27 + b6f0651 commit 381dbc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ \section{Operator Precedence and Associativity}\label{operator-precedence-and-as
The following table presents all the expression operators in order of precedence.
\begin{table}[H]
% Beware that the array construction operator, normally expressed as \lstinline!{ }! needs escaped braces inside \caption.
% This isn't handled correctly by LaTeXML, as reported here:
% - https://github.com/brucemiller/LaTeXML/issues/1377
\caption{Operators in order of precedence from highest to lowest, as derived from the Modelica grammar in \cref{modelica-concrete-syntax}. All operators are binary except the postfix operators and those shown as unary together with \emph{expr}, the conditional operator, the array construction operator \lstinline!\{ \}! and concatenation operator \lstinline![ ]!, and the array range constructor which is either binary or ternary. Operators with the same precedence occur at the same table row.}\label{tab:operator-precedence}
\begin{center}
\begin{tabular}{l l l}
Expand Down

0 comments on commit 381dbc5

Please sign in to comment.