Issue converting a Jupyter notebook to PDF

Hello,

I was having some issues converting a jupyter notebook to pdf. Most of them i have been able to solve (they were mostly missing packages or .sty files). However, I have notice that the unicode charaters in the code blocks are not being rendered. For example

image

That is from the converted pdf. While the following

image

is from the notebook in the browser. You may see that there are thetas missing in and out side the code block while there is a unicode pi which does render. This is not causing any error during the conversion process.

Thanks,

Frog

Looks like the monospace font used in the PDF is missing the θ character… :thinking:

Do you know which one it is?

image

\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\else
\usepackage{fontspec}
\fi
I found this on the top of the tex file generate by jupyter.

However, there are other bits that do appear outside the code boxes but not outside like subscripts or alpha.