Greek letters are not printed out correctly in PDF #5519
-
Hi, I have my .qmd files written for an HTML book. In a table like this,
Greek letters could be printed out correctly in HTML. However, when I tried to build PDF using this .qmd file. They are printed out as raw texts. I need to modify the table into the table below (replace \phi with φ, \omega with ω) and use "fontfamily: libertinus" to get these Greek letters printed out correctly. Do you know why?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Could you share a small "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
project:
type: book
book:
title: "Dynamics"
author: "xxx"
date: "03/30/2023"
chapters:
- index.qmd
- multidof.qmd
search: false
anchor-sections: false
reference-location: margin
quarto:
packages:
- amsmath
format:
html:
theme:
- cosmo
code-fold: true
code-line-numbers: true
html-math-method:
method: mathjax
url: "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
toc: true
toc_depth: 5
toc-expand: 1
toc-title: On this page
toc-location: left
number-sections: true
number-depth: 5
embed-resources: false
pdf:
documentclass: book
fontfamily: libertinus
colorlinks: true Thanks! |
Beta Was this translation helpful? Give feedback.
-
Your issue is 100% a LaTeX issue using |
Beta Was this translation helpful? Give feedback.
Again, it's 100% LaTeX,
\boldsymbol
for example and other packages such asbm
.Here, you'll better luck looking on stack overflow/exchange especially in LaTeX related categories.