{fontenc} is a package that allows the user to select font encodings, and for each encoding provides an interface to ‘font-encoding-specific’ commands for each font. Its most powerful effect is to enable hyphenation to operate on texts containing any character in the font.
4
votes
1answer
283 views
Using [T1]{fontenc} with Czech language looks strange
Using \usepackage[T1]{fontenc} is important e.g. if you write something in czech "je důležitý, když chceš napsat něco v češtině", but letters looks somehow strange - is it possible? I mean in word ...
8
votes
1answer
1k views
How can I stop LaTeX from converting two hyphens to a single hyphen when loading package fontenc?
In the following minimal test document, I can have two hyphens appear as two hyphens (which is what I want):
\documentclass[letterpaper]{article}
\begin{document}
A hyphen: \texttt{-}
Two hyphens: ...
2
votes
1answer
560 views
Why aren't there well-hinted Type1 Computer Modern fonts supporting the T1 encoding yet?
Given the popularity of PDF, the pain that is OT1, and the bad on-screen rendering of bitmapped fonts in Adobe's software, I would have expected that someone would have undertaken conversion/extension ...
6
votes
1answer
1k views
Mixing latin and cyrillic characters
I have an idea of how to mix those, but failed to find out which fontenc encoding to use for Central European characters.
\documentclass{article}
\usepackage[utf8]{inputenc}
...
6
votes
2answers
3k views
Error when using T1 fontenc and urw-garamond from mathdesign
What is causing this error?
(see the transcript file for additional information){E:/MikTeX/fonts/enc/dvips/ fontname/texnansi.enc}
!pdfTeX error: miktex-pdftex (file ugmr8a.pfb): cannot open Type 1 ...
18
votes
2answers
1k views
Should the fontenc package be loaded before or after font packages?
I seem to recall reading somewhere that fontenc should be loaded either before or after the packages loading fonts, but I cannot remember which. I don't see differences between loading it before and ...
47
votes
4answers
50k views
Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation (¡) or question mark (¿)?
When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.
21
votes
4answers
13k views
How to insert pipe symbol in (La)TeX?
How to insert pipe symbol | in TeX (LaTeX)?
I have tried this sample with pdflatex tmp.tex
\documentclass{extarticle}
\begin{document}
\textpipe
\end{document}
And it give undefined control ...
9
votes
1answer
793 views
Configure LaTeX to use lmodern for T1 by default?
Like those contributing to the discussion of Why are Bitmap-Fonts used automatically?, I have also found the automatic use of bitmap fonts very annoying as the output is really horrible. My question ...
25
votes
4answers
3k views
Why are Bitmap-Fonts used automatically?
I have the following LaTeX-document:
\documentclass[a4paper,11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\title{Sample}
\author{Litb}
...
10
votes
2answers
1k views
Why words with accented characters can't be automatic hyphenated with the default OT1 enconding?
I was reading the first answer to this question: Why should I use \usepackage[T1]{fontenc}?
[...] the default font encoding (OT1) of TeX
is 7-bit and uses fonts that have 128
glyphs, and so do ...
137
votes
3answers
28k views
Why should I use \usepackage[T1]{fontenc}?
As a native English speaker, I've mostly been allowed the luxury of pretending that ASCII is enough, and have been able to treat font encodings as not my problem. I've seen lots of advice that I ought ...