-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work-around for latexml bug for MyLicense.txt #3661
base: master
Are you sure you want to change the base?
Conversation
Test of work-around for #3660 |
chapters/functions.tex
Outdated
@@ -2277,7 +2277,7 @@ \subsection{Annotations for External Functions}\label{annotations-for-external-l | |||
The preceding one is the default and need not be specified; but another location could be specified by using an URI name for the source directory, see \cref{external-resources}. | |||
It is not specified how they are built. | |||
\item | |||
The {\lstinline!annotation(License="modelica:/ModelicaLibraryName/Resources/Licenses/MyLicense.txt")!}\annotationindex{License}, gives the license text file for the function. | |||
The {\lstinline!annotation(License="modelica:/ModelicaLibraryName/Resources/Licenses/$\mathit{license.txt}$")!}\annotationindex{License}, gives the license text file for the function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried a couple of variants, and this one gave the best results:
The {\lstinline!annotation(License="modelica:/ModelicaLibraryName/Resources/Licenses/$\mathit{license.txt}$")!}\annotationindex{License}, gives the license text file for the function. | |
The | |
\ifpdf | |
\lstinline!annotation(License="modelica:/ModelicaLibraryName/Resources/Licenses/MyLicense.txt")!% | |
\else | |
% TODO: Make sure this LaTeXML problem (that is, a % being generated before ".txt") has been reported, | |
% and add a link to the issue here. | |
\lstinline!annotation(License="$\text{modelica:/ModelicaLibraryName/Resources/Licenses/MyLicense.txt}$")!% | |
\fi\annotationindex{License}, | |
gives the license text file for the function. |
This is the corresponding fix for annotations.tex:
For a top-level class the
\ifpdf
\lstinline!annotation(License="modelica:/ModelicaLibraryName/Resources/Licenses/MyLicense.txt")!%
\else
% TODO: Make sure this LaTeXML problem (that is, a % being generated before ".txt") has been reported,
% and add a link to the issue here.
\lstinline!annotation(License="$\text{modelica:/ModelicaLibraryName/Resources/Licenses/MyLicense.txt}$")!%
\fi\annotationindex{License},
gives a license text file for the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Providing a better fix with no impact on PDF generation, and minimal – if any – impact on HTML generation.
I tried finding an issue for this in the LaTeXML tracker, but couldn't find one. Has anyone else been able to find the issue, or should I report it? |
I haven't seen it reported either. |
I have now updated to use ifpdf, but with comment separated and link to modelica-issue, so that we don't have to update it when reported and fixed for Latexml. |
No description provided.