LaTeX Latex text formatting again - quotes in monotype

  • Thread starter Thread starter Borek
  • Start date Start date
  • Tags Tags
    Latex Text
AI Thread Summary
The discussion focuses on issues with monotype fonts and quote rendering in LaTeX. When using typewriter fonts, the expected opening and closing quotes (`` and '') are not recognized, leading to incorrect rendering. Standard quotes are mostly fine, but characters preceded by quotes can be misinterpreted as control sequences, resulting in unexpected characters like "A" being rendered as Ą. A temporary solution involves using "\hphantom{}A" to prevent this misinterpretation, but a more LaTeX-friendly method is sought. Alternatives suggested include switching to a different typewriter-style font that doesn’t treat certain characters as control sequences or using the \texttt{} command to format text in typewriter style without the same issues.
Borek
Mentor
Messages
29,125
Reaction score
4,546
This time I have a problem with monotype font and quotes.

When I switch to typewriter font using ``quotes'' stops to work*. Character sequences (`` and '') that in other parts of the text are understood as opening and closing quotes are not translated. Standard "quotes" are rendered mostly OK (and as these parts of the text are intended to look like an old, typed document from seventies, fact that they don't get changed is OK with me).

But that's where things get ugly, as some characters preceded by " are treated as a control sequences (perhaps that's not the correct name, but you should get what I mean). For example "A is rendered as Ą. What I am doing at the moment is I am using "\hphantom{}A to break the control sequence. It works, but I wonder if there is no better, more "latexish" method to do so.

*actually I am using ,,quotes'', as these are correct in Polish; I don't remember details but I did some research last year and that was the best option to get quotes rendered correctly in my book
 
Physics news on Phys.org
.The best option would be to switch fonts or to write the text in a different way. For example, you could use a typewriter-style font that doesn't interpret certain characters as control sequences. You could also try using the \texttt{} command to enclose text in typewriter font instead of using the typewriter font style.
 

Similar threads

Replies
12
Views
3K
Replies
3
Views
3K
Replies
12
Views
3K
Replies
3
Views
2K
Replies
9
Views
2K
Replies
2
Views
2K
Replies
4
Views
4K
Replies
16
Views
4K
Back
Top