Cannot change font in pdf #1202
-
I would like to render a document using the
Also tried being more explicit about the packages to use, without success:
How should I do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What is the error you get in the log ? This works on my system (windows 11 with TeX Live) ---
format:
pdf:
mainfont: Roboto
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis libero ante. Maecenas ac nisi consequat purus lobortis mattis quis sit amet magna. Vivamus ornare tincidunt arcu vel ultrices. Pellentesque vel faucibus sapien. Aenean vulputate laoreet ultrices. Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris mattis sed enim feugiat bibendum. Ut viverra convallis enim id pretium. Donec dictum id augue vel ultricies.
The TeX file will contain
used with XeLaTeX the default with pdf format and Quarto Inserting using the package can be done this way: ---
format:
pdf:
keep-tex: true
include-in-header:
text: '\usepackage[sfdefault]{roboto}'
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis libero ante. Maecenas ac nisi consequat purus lobortis mattis quis sit amet magna. Vivamus ornare tincidunt arcu vel ultrices. Pellentesque vel faucibus sapien. Aenean vulputate laoreet ultrices. Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris mattis sed enim feugiat bibendum. Ut viverra convallis enim id pretium. Donec dictum id augue vel ultricies. and in this case I am correctly getting \usepackage[sfdefault]{roboto} inserted in the temp file |
Beta Was this translation helpful? Give feedback.
What is the error you get in the log ?
This works on my system (windows 11 with TeX Live)
The TeX file will contain
used with XeLaTeX the default with pdf format and Quarto
Inse…