-
Notifications
You must be signed in to change notification settings - Fork 3
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
Font issue #3
Comments
Hi @SubtleMuffin - I am not sure I follow the exact issue you are resolving. Are you running your own Rocket web service using this ar5iv repository? Or are you saving an ar5iv article locally, and trying to open it on your local machine? As you have remarked, as long as the font assets are made available and the web page is successfully pointing to them, you should be able to reproduce the usual web rendering. |
Oh, this is filed under the Right, while this Dockerfile allows to convert the latex sources using the same process used in ar5iv, you still need a separate web service setup (as with the Rocket web service in the ar5iv repository), which will make the fonts available, especially for math expressions. |
For example, the "STIX Two Math" fonts are pointed to by ar5iv-site.0.2.1.css via: Which implies there is a web service that will provide the files on GET request to I wonder if there is a more convenient way to include these for specifically using the standalone Dockerfile... Maybe it's possible to create a self-contained "standalone" CSS bundle that uses remote CDN access for the web fonts... |
Hi @dginev , thanks for the prompt reply. Yes, I was trying to use the <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Serif" /> |
Yes, I think there is a good case to create a new Thanks, I'll write back when that lands. |
Awesome, thanks! I plan to use this toolset to generate HTML versions of my papers and host those files on GitHub.io etc. I saw a few glitches such as superscripts (non-equation mode) and bibliography, and I will report with a new issue containing a minimal Tex example that can reproduce the issue. Thanks! |
@SubtleMuffin let me know if the latest recipe in this repository is workable for you. I have added the fonts via |
All good now! Thanks :) @dginev |
Hi, great work! I am having trouble with the rendered HTML font. It seems that if I
<link media="all" rel="stylesheet" href="/assets/ar5iv-site.0.2.1.css">
to the generated HTML filethe fonts are just fine. How could we fix this issue? Thanks!
The text was updated successfully, but these errors were encountered: