Skip to content

Commit

Permalink
experiment: use Latin Modern Math
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev committed Oct 4, 2024
1 parent 897ae52 commit ca7bfb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions css/ar5iv-fonts.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@400..700');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400..700;1,400..700');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400..700;1,400..700');
@import url('https://fonts.googleapis.com/css2?family=STIX+Two+Math');
@import url('https://fonts.cdnfonts.com/css/latin-modern-math');

/*======================================================================
Fallback fonts -- check locally if CDN access is blocked. */
Expand Down Expand Up @@ -70,10 +70,4 @@
font-family: "Noto Serif Fallback";
font-style: normal;
src: local("Noto Serif"),
local("NotoSerif-Regular"); }
@font-face {
font-display: fallback;
font-family: "STIX Two Math Fallback";
font-style: normal;
src: local("STIX Two Math"),
local("STIXTwoMath-Regular"); }
local("NotoSerif-Regular"); }
4 changes: 2 additions & 2 deletions css/ar5iv.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
/* fonts */
--headings-font-family: "Noto Sans", "Noto Sans Fallback", sans-serif;
--text-font-family: "Noto Serif", "Noto Serif Fallback", serif;
--math-font-family: "STIX Two Math", "STIX Two Math Fallback", "Cambria Math", math;
--math-font-family: "latin modern math", "Cambria Math", math;
/* Should we do anything special for caligraphic?
e.g. "Lucida Calligraphy","Zapf Chancery","URW Chancery L", TeX Gyre Termes...*/
--math-caligraphic-font-family: "STIX Two Math", "STIX Two Math Fallback", "Cambria Math", math;
--math-caligraphic-font-family: "latin modern math", "Cambria Math", math;
--code-font-family: "Noto Sans Mono", "Noto Sans Mono Fallback", monospace;
/* default color theme is light */
--background-color: white;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ar5iv-css",
"version": "0.7.9",
"version": "0.8.0",
"description": "Experimental CSS to style arXiv articles converted with LaTeXML",
"main": "ar5iv.css",
"repository": "git@github.com:dginev/ar5iv-css.git",
Expand Down

0 comments on commit ca7bfb2

Please sign in to comment.