Latex text formatting again - quotes in monotype

  • Context: LaTeX 
  • Thread starter Thread starter Borek
  • Start date Start date
  • Tags Tags
    Latex Text
Click For Summary
SUMMARY

The discussion focuses on issues with quote formatting in LaTeX when using monotype fonts. Specifically, the user encounters problems with the rendering of quotes, particularly the Polish-style quotes (,, and ''). Standard quotes are rendered correctly, but characters preceded by quotes are misinterpreted as control sequences, leading to incorrect outputs. The user currently employs the "\hphantom{}" command to circumvent this issue but seeks a more LaTeX-appropriate solution, such as using the \texttt{} command for typewriter-style text.

PREREQUISITES
  • Familiarity with LaTeX document preparation system
  • Understanding of font types in LaTeX, particularly monotype fonts
  • Knowledge of character encoding and control sequences in LaTeX
  • Experience with Polish typographic conventions in LaTeX
NEXT STEPS
  • Research the use of the \texttt{} command for typewriter font in LaTeX
  • Explore LaTeX packages that enhance quote handling, such as csquotes
  • Investigate character encoding settings in LaTeX to prevent control sequence issues
  • Learn about font switching techniques in LaTeX to manage different text styles
USEFUL FOR

LaTeX users, typographers, and anyone involved in document formatting who needs to handle special character rendering and font issues effectively.

Borek
Mentor
Messages
29,203
Reaction score
4,626
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 5 ·
Replies
5
Views
5K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K