Zulip Chat Archive

Stream: general

Topic: LaTeX: avoiding type 3 fonts


Siddhartha Gadgil (Dec 16 2023 at 03:17):

We are using lstlisting to include Lean code in LaTeX. Unfortunately this seems to generate Type 3 fonts, and CPP does not allow these. Does anyone know a solution (I assume others have bumped into this issue)?

Kevin Buzzard (Dec 16 2023 at 09:01):

Use minted?

Siddhartha Gadgil (Dec 16 2023 at 09:22):

Kevin Buzzard said:

Use minted?

Thanks. Let me try this.

Utensil Song (Dec 16 2023 at 09:23):

For minted, check here for a still working Lean 3 syntax highlight. For Lean 4, the current solution on the community page has some issues discussed in the thread, hope you have better luck with it.

Siddhartha Gadgil (Dec 16 2023 at 15:19):

In case someone runs into the same problem, it turns out that code in backticks in comments inside lstlisting blocks was generating the type 3 fonts (we had a long journey of overcorrecting before narrowing to this and restoring).


Last updated: Dec 20 2023 at 11:08 UTC