-
Notifications
You must be signed in to change notification settings - Fork 99
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
Support for the .sty files already included in the directory #2379
Comments
@sherlcok314159 tthis is already available in LaTeXML as an experimental switch through The feature can be activated with passing an option through the
There are several variations:
It is often the case in recent arXiv conversions with LaTeXML that some of the (many) subtle differences in implementation between LaTeXML and the native latex.ltx machinery leads to fragility in the internal expansion mechanics. Which can cascade into undefined macros, or at aworst even infinite loops. To that end there is an active project targeting loading the native Source link: LaTeXML/lib/LaTeXML/Package/latexml.sty.ltxml Lines 60 to 66 in 40e9fa8
Edit: I see we've added these in 2020. I recall we followed the same reasoning that led you to opening this issues. |
Thanks so much for the detailed explanation. Maybe you can add an external docker run argument for supporting local sty files if you have time. @bfirsh |
I think the latest ar5ivist Dockerfile should already allow for modding these options, as it uses a base image. And a user ought to be able to override via calling with a different Code here: https://github.com/dginev/ar5ivist/blob/main/ar5ivist/Dockerfile#L19 |
Thanks for your quick reply. But I am using engrafo. It will be much more convenient if engrafo also accepts preload argument or automatically scans the folder to add the external sty files. Can you help to do this? |
@sherlcok314159 sorry, I am not a maintainer of engrafo. There is a natural continuation between the projects as you can read at the present day page of https://www.arxiv-vanity.com/ I suspect eventually arXiv may maintain their own official latexml Dockerfile. We have an open issue about doing this on the latexml side ( #1178 ), which is still pending some resolution. For the moment I plan on maintaining ar5ivist, as long as ar5iv keeps getting actively updated. |
When using latexml to convert arXiv paper to HTML, it is common to face problems that something is undefined due to the miss of sty files. However, the author includes all the sty files just in the same directory.
Are there any method to preload sty files which are already included in the input directory? IMHO, latexml can be more flexible in this way and does not have to adapt to many sty files by hand.
The text was updated successfully, but these errors were encountered: