Comments (8)
Hi @dginev , thanks for the prompt reply. Yes, I was trying to use the Docker
to generate the HTML file. Is it possible to import some stylesheets that contain online fonts? Such as
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Noto+Serif" />
from ar5ivist.
Yes, I think there is a good case to create a new ar5iv-fonts.css
set of directives, bundled with the ar5iv-css repository, and have that included by default for the ar5ivist Dockerfile.
Thanks, I'll write back when that lands.
from ar5ivist.
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!
from ar5ivist.
All good now! Thanks :) @dginev
from ar5ivist.
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.
from ar5ivist.
Oh, this is filed under the ar5ivist
repository, now I see.
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.
from ar5ivist.
For example, the "STIX Two Math" fonts are pointed to by ar5iv-site.0.2.1.css via:
https://github.com/dginev/ar5iv/blob/73d60c3c45b3806c2ca6ef63c12ed653b69d1525/assets/ar5iv-site.0.2.1.css#L86
Which implies there is a web service that will provide the files on GET request to /assets/fonts/STIXTwoMath-Regular.woff2
.
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...
from ar5ivist.
@SubtleMuffin let me know if the latest recipe in this repository is workable for you. I have added the fonts via @import
directives and using Google's CSS CDN.
from ar5ivist.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ar5ivist.