Skip to content

Commit

Permalink
Restore workarounds for LaTeXML issue 1274
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Jun 22, 2020
1 parent 300ad90 commit 4ae37a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions chapters/packages.tex
Expand Up @@ -65,20 +65,22 @@ \subsection{Importing Definitions from a Package}\doublelabel{importing-definiti

% Note a syntactic form cannot be written as a single \lstinline due to LaTeXML problem reported here:
% https://github.com/brucemiller/LaTeXML/issues/1274 (marked as fixed as of commit 80d7940)
% Instead, we need to break up the \lstinline at each piece of math (taking the opportunity to leave the whitespace
% outside both \lstinline and math).
% Instead, we need to break up the \lstinline in mysterious ways. Be sure to check that the generated HTML
% looks OK when making changes!

\lstinline!import $\mathit{definitionname}$;! (qualified import of top-level definition)

\lstinline!import $\mathit{packagename}$.$\mathit{definitionname}$;! (qualified import)
\lstinline!import $\mathit{packagename}$.!% Break up \lstinline as workaround for LaTeXML issue described above.
\lstinline!$\mathit{definitionname}$;! (qualified import)

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

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

\lstinline!import $\mathit{shortname}$ = $\mathit{definitionname}$;! (renaming import of top-level definition)

\lstinline!import $\mathit{shortname}$ = $\mathit{packagename}$.$\mathit{definitionname}$;! (renaming import)
\lstinline!import $\mathit{shortname}$ = $\mathit{packagename}$.!% Break up \lstinline as workaround for LaTeXML issue described above.
\lstinline!$\mathit{definitionname}$;! (renaming import)

Here $\mathit{packagename}$ is the fully qualified name of the imported package including possible dot notation and $\mathit{definitionname}$ is the name of an element in a package. The multiple definition import is equivalent
to multiple single definition imports with corresponding $\mathit{packagename}$ and definition names.
Expand Down

0 comments on commit 4ae37a1

Please sign in to comment.