Skip to content

Commit

Permalink
Fix LaTeXML problems with unbalanced parentheses/brackets in math
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jun 17, 2020
1 parent 91e5dfb commit d7a838d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chapters/arrays.tex
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ \subsection{Vector Construction}\doublelabel{vector-construction}
\item
\lstinline[mathescape=true]!$j$ : $k$! is a \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!, or \lstinline!enumeration! type vector with zero elements, if $j > k$.
\item
\lstinline[mathescape=true]!$j$ : $d$ : $k$! is the \lstinline!Integer! vector \lstinline[mathescape=true]!{$j$, $j+d$, $\ldots$, $j + n d$}!, with $n = \text{\lstinline!div!}(k - j, d$, if $j$, $d$, and $k$ are of type \lstinline!Integer!.
\lstinline[mathescape=true]!$j$ : $d$ : $k$! is the \lstinline!Integer! vector \lstinline[mathescape=true]!{$j$, $j+d$, $\ldots$, $j + n d$}!, with $n = \text{\lstinline!div!}(k - j, d)$, if $j$, $d$, and $k$ are of type \lstinline!Integer!.
\item
\lstinline[mathescape=true]!$j$ : $d$ : $k$! is the \lstinline!Real! vector \lstinline[mathescape=true]!{$j$, $j+d$, $\ldots$, $j + n d$}!, with $n = \text{\lstinline!floor!}((k-j)/d)$,
if $j$, $d$, or $k$ are of type \lstinline!Real!. In order to avoid rounding issues for the length it is recommended to use \lstinline!{j+d*i for i in 0:n}! or
Expand Down
6 changes: 3 additions & 3 deletions chapters/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ \subsection{Importing Definitions from a Package}\doublelabel{importing-definiti

\lstinline!import! $\mathit{packagename}$\lstinline!;! (qualified import)

\lstinline!import! ${[}\mathit{packagename}$\lstinline!.!${]}\mathit{definitionname}$\lstinline!;! (single definition import)
\lstinline!import! ${[}\mathit{packagename}\text{\lstinline!.!}{]}\mathit{definitionname}$\lstinline!;! (single definition import)

\lstinline!import! ${[}\mathit{packagename}$\lstinline!.!${]}$\lstinline!{!$\mathit{def}_{1}$\lstinline!,! $\mathit{def}_{2}$\lstinline!,! $\ldots$\lstinline!,! $\mathit{def}_{n}$\lstinline!};! (multiple definition import)
\lstinline!import! ${[}\mathit{packagename}\text{\lstinline!.!}{]}$\lstinline!{!$\mathit{def}_{1}$\lstinline!,! $\mathit{def}_{2}$\lstinline!,! $\ldots$\lstinline!,! $\mathit{def}_{n}$\lstinline!};! (multiple definition import)

\lstinline!import! $\mathit{packagename}$\lstinline!.*;! (unqualified import)

\lstinline!import! $\mathit{shortpackagename}$ \lstinline!=! $\mathit{packagename}$\lstinline!;! (renaming import)

\lstinline!import! $\mathit{shortpackagename}$ \lstinline!=! ${[}\mathit{packagename}$\lstinline!.!${]}\mathit{definitionname}$\lstinline!;! (renaming single def.\ import)
\lstinline!import! $\mathit{shortpackagename}$ \lstinline!=! ${[}\mathit{packagename}\text{\lstinline!.!}{]}\mathit{definitionname}$\lstinline!;! (renaming single def.\ import)

Here $\mathit{packagename}$ is the fully qualified name of the imported
package including possible dot notation and $\mathit{definitionname}$ is the
Expand Down

0 comments on commit d7a838d

Please sign in to comment.