{font-encodings} is about the various font or output code pages like T1 (for Latin) or T2x (for Cyrillic) which tell the compiler where to find a particular glyph (character) in a font file, hereby supporting correct hyphenation of words. A popular package for pdfLaTeX is fontenc.
Questions tagged [font-encodings]
694 questions
28
votes
2 answers
Font encoding in LaTeX
I've been using LaTeX for a while and I've read a lot of discussion about fonts encodings.
Some suggest to use T1 fonts adding \usepackage[T1]{fontenc}, other suggest to add nothing, other suggest to use T1 in addition to the package ae while others…
Rev2
- 283
12
votes
4 answers
What is the reason behind why > and < don't display properly without T1 font encoding?
I've read a number of posts that ask about why the symbols > and < show up incorrectly as ¡ and ¿. The solution is to use the T1 font encoding. Okay.
I'd like to learn about why these symbols show up the way they do with the original OT1 font…
ana
- 481
11
votes
3 answers
Do I really have to specify the font encoding like this?
This input file typesets with no errors, and the PDF is what I wanted, with the three characters:
\documentclass{article}
\usepackage[T5,TS1,T1]{fontenc} % 3 of lmodern's 8…
Peter Hopcroft
- 173
- 1
- 4
9
votes
1 answer
How does LaTeX know which of multiple loaded output encodings to use?
The difference between LaTeX's input and output encodings has been discussed in various places; I especially like user @egreg's answer here.
There is however an aspect of dealing with output encodings that I do not understand: When a user loads…
Lover of Structure
- 22,025
9
votes
2 answers
'\v{C}' character not rendered in fonts which don't have 'Č' with T1 encoding
I'm trying to typeset a word that contains a 'Č', and due to context, it has to appear in a sans, bold, quattrocento font.
However, whenever I have the fontencoding set to T1, then the character doesn't appear at all. The following MWE creates a…
PTNobel
- 356
- 1
- 14
8
votes
1 answer
Tool to find characters encoded differently in T1 vs OT1
Suppose I have written a very long document using \usepackage[T1]{fontenc}; then I remove the line to revert to the default OT1 encoding (or vice versa.) Now I want to know if anything's changed in the output, without trying to do it by eye over 180…
Nick Matteo
- 2,427
8
votes
1 answer
How does \_ work if OT1 is default encoding for LaTeX?
Fair warning: I know approximately zero things about fonts and font encodings, so this is perhaps another naive question on my part.
Recently, I asked about the behavior of \detokenize{_}, as one needs to specify \usepackage[T1]{fontenc} for it to…
Adam Liter
- 12,567
8
votes
2 answers
Double chevron instead of guillemets
Here's a minimal working example:
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\texttt{>>}
\end{document}
This makes a right guillemet. I'd like a double chevron. If I comment out the fontenc package, I indeed get a double…
oleks
- 619
8
votes
1 answer
Why is the cmss font in OT1 and T1 very different?
When I compile the code below with and without the \usepackage[T1]{fontenc}, I get quite different results. The normalfonts are the same, but with T1 the characters in the section heading seem way too wide (a smaller font is scaled up?) while those…
user27080
- 393
- 1
- 4
- 11
7
votes
1 answer
Unexpected side effect of font encoding
It is often recommended to include \usepackage[T1]{fontenc}, but I have been hit by the following difference:
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
texttt: \texttt{-->}
verb: \verb+-->+
\end{document}
Without fontenc…
false
- 289
7
votes
1 answer
Temporarily change font encoding with fontenc
Is there a way to temporarily change the font encoding with fontenc inside a document? Something like this:
\documentclass{article}
\usepackage[OT1]{fontenc}
\begin{document}
I'm writing something with OT1 encoding here.
But then I want the…
Sverre
- 20,729
6
votes
2 answers
Why is \AA still defined as it was in LaTeX2.09?
The \AA and \aa macros are defined in latex.ltx as
\def \aa {\r a}
\def \AA {\r A}
This fails with the X2 encoding which has no Latin letters. Why didn't the LaTeX team revert to the following…
Igor Kotelnikov
- 13,332
6
votes
1 answer
Use russian letter in section title
I try to typeset russian character by ascii letter, so I referenced latex_cyrillic. It works but failed in section title. How to solve…
Martin Wang
- 657
6
votes
2 answers
How to make ACM style pdfs searchable?
When I create pdfs using the ACM template, searching for and copying umlauts doesn't work. Using cmap gives an error "fontenc already loaded". How can this be…
Cephalopod
- 715
6
votes
1 answer
How can I have known current font encoding?
How can I have known current font encoding? I know that a list of font encodings is saved in
\cdp@list macro. Last element of \cdp@list is usually the effective encoding but this is not always true; for example, \setlanguage might switch current…
Igor Kotelnikov
- 13,332