Questions tagged [fontspec]

Fontspec is a pack­age for X∃LaTeX and LuaLaTeX. It pro­vides an au­to­matic and uni­fied in­ter­face to fea­ture-rich AAT and OpenType fonts through the NFSS in LaTeX run­ning on X∃TeX or LuaTeX en­gines.

17 questions
4
votes
0 answers

LuaLaTex using fontspec package and luacode reading JSON file

I'm using Latex since years but I'm new to embedded luacode (with Lualatex). Below you can see a simplified example: \begin{filecontents*}{data.json} [ {"firstName":"Max", "lastName":"Möller"}, {"firstName":"Anna",…
Jerome
  • 45
  • 6
2
votes
0 answers

XeLaTeX setup with fontspec in matplotlib

I am preparing figures for a manuscript where I would like to have precise control over the font used for each level of text. Specifically, I want to use different weights for e.g. tick labels and the figure titles. To do this, I am using the pgf…
ARGratrex
  • 73
  • 5
2
votes
1 answer

knitr caching fails when using XeLaTeX fontspec package through RStudio

I use knitr with XeLaTeX within RStudio. I use chunk caching so that I don't have to rerun certain code every time I compile my document. This minimal example shows that the caching appears to be broken if the fontspec package is…
nograpes
  • 18,623
  • 1
  • 44
  • 67
1
vote
0 answers

The font "Andale Mono" cannot be found while using rstudio/bookdown package to build book

I cloned materials of Hadley Wickham's book Advanced R Programming from a github repository https://github.com/hadley/adv-r. I tried to build the html format book and encountered the following issues: ! Package fontspec Error: The font "Andale Mono"…
Jinji
  • 11
  • 1
1
vote
0 answers

how to resolve error using Cambria font in make4ht

I need to compile my .Rnw (Sweave) file into HTML, using Cambria as the default font and UTF-8 encoding so that e.g. Greek letters are represented correctly as characters in inline text (obviously equation mode is fine since those are embedded as…
1
vote
1 answer

Fontsize in custom class with XeLatex and fontspec

I'm working on a couple of latex templates that belong together (letter, article, report). I've achieved nearly all my objectives except for a single one, having the font size change using the \documentclass[.pt]{} command, whether I use 9pt or 12pt…
aijLag
  • 27
  • 6
1
vote
1 answer

! LaTeX Error: Option clash for package fontspec

I am trying to generate pdf from rmarkdown file using xelatex as latex engine. The file generates pdf while using pdflatex as latex engine. But, if I use xelatex, the file is giving the following error. `! LaTeX Error: Option clash for package…
Rubayat Jinnah
  • 414
  • 4
  • 20
1
vote
1 answer

When including Minion Pro Font only a few work, the rest won't

I have the whole package of the Minion Pro / Math fonts and want to use them in a self made class, but only some of them work and the majority does not. Minion Pro contains sizes: regular, capt, disp and subhead width: regular and…
Pibe_chorro
  • 99
  • 1
  • 8
1
vote
0 answers

fontspec (xetex/luatex) and fontconfig

LuaTeX and XeTeX are passing on a warning on from the fontspec package, and I'm not sure whether I should worry. The following minimal code will generate the…
Mike Maxwell
  • 547
  • 4
  • 11
1
vote
0 answers

How to set fonts with multiple font files in LuaLatex

I am using ShareLatex as my online Latex editor. I want to use Times New Roman as my font but due to licence issues, ShareLatex can not distrubute this font. With the help of their documentation page I added the following lines, uploaded the fonts…
Gökhan Çoban
  • 600
  • 8
  • 17
1
vote
1 answer

xelatex not finding font on Mac

I'm trying to use the polyglossia package along with xelatex to compile some Arabic text. It seems that xelatex is not recognizing the fonts that I have…
plam
  • 1,305
  • 3
  • 15
  • 24
0
votes
0 answers

Error when changing font in Quarto/tinytex

I have a Quarto document I would like to create a pdf with using tinytex. I would like to use two different fonts at different points in the document, and so I'm using \setmainfont{font-name} at various points in the document. All the fonts I'm…
user1713174
  • 307
  • 2
  • 7
0
votes
1 answer

using different font for headers/title vs body of rmarkdown pdf

I'm writing an automated PDF report (Word doc is not an option) for a state agency in Rmarkdown, and need to adhere to their font requirements. They require Fira Sans for the main text, and Anton for the title and headers. I'm able to set Fira Sans…
Jason
  • 892
  • 1
  • 8
  • 19
0
votes
0 answers

\setmathfont command requires 2 minutes to compile with lualatex

This code takes 10 seconds to compile to a pdf. If I enable in the code the additional lines it takes 2 minutes to compile for the 5 lines. And this happens everytime. Why does it take so long, and how can I prevent it? The system is texlive on…
Matthias Pospiech
  • 3,130
  • 18
  • 55
  • 76
0
votes
1 answer

Package fontspec Error: The Font SimSun can't be found

I am using Overleaf for my Chinese thesis work and having this issue "Package fontspec Error: The font "SimSun" cannot be found." \setCJKmainfont[AutoFakeBold = {2.25},ItalicFont={[simkai.ttf]}]{SimSun} ` I am using XELateX Compiler. How I can…
elecengsab
  • 1
  • 1
  • 2
1
2