Org: Add a LuaLaTeX check around Julia fontspec
This commit is contained in:
parent
5eb173a3ee
commit
69655f37fc
10
config.org
10
config.org
|
@ -9871,10 +9871,12 @@ this just as a fallback font (when it isn't a pain to do so).
|
||||||
|
|
||||||
#+name: julia-mono-fontspec
|
#+name: julia-mono-fontspec
|
||||||
#+begin_src LaTeX
|
#+begin_src LaTeX
|
||||||
\\usepackage{fontspec}
|
\\ifcsname directlua\\endcsname
|
||||||
\\newfontfamily\\JuliaMono{JuliaMono-Regular.ttf}[Path=/usr/share/fonts/truetype/, Extension=.ttf]
|
\\usepackage{fontspec}
|
||||||
\\newfontface\\JuliaMonoRegular{JuliaMono-Regular}
|
\\newfontfamily\\JuliaMono{JuliaMono-Regular.ttf}[Path=/usr/share/fonts/truetype/, Extension=.ttf]
|
||||||
\\setmonofont{JuliaMonoRegular}[Contextuals=Alternate, Scale=MatchLowercase]
|
\\newfontface\\JuliaMonoRegular{JuliaMono-Regular}
|
||||||
|
\\setmonofont{JuliaMonoRegular}[Contextuals=Alternate, Scale=MatchLowercase]
|
||||||
|
\\fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Now all that remains is to hook this into the preamble generation.
|
Now all that remains is to hook this into the preamble generation.
|
||||||
|
|
Loading…
Reference in a new issue