54 votes
Accepted

Command \k unavailable in encoding OT1 (error takes me to line which doesn't even have "\k" in it

The error happens when LaTeX is reading line 538 in the bibliography file, probably generated by BibTeX. The entry refers to an author named Patrycja Dynarowicz-Łątka (a chemist at the ...
egreg's user avatar
  • 1.1m
29 votes
Accepted

How is a mathematical formula represented in PDF?

Essentially in pdf every letter (or run of letters) is positioned by coordinates so even a normal word might be encoded as individual letters positioned to "look" like text, so as to take account of ...
David Carlisle's user avatar
26 votes

Why does inputenc abandon so quickly under "utf8 based engines"?

inputenc is abandoned because it does absolutely nothing with XeTeX or LuaLaTeX. Better said, it would do bad! See fontenc vs inputenc Essentially, the task performed by inputenc is translating ...
egreg's user avatar
  • 1.1m
22 votes

Are the original CM fonts better than the current type1 fonts?

(As many readers tend not to follow links all the way through, and as links can die, this reproduces relevant bits of stuff referred to in the answer by bubba.) I agree with the observation in the ...
ShreevatsaR's user avatar
  • 45.2k
18 votes

Can we stop recommending fontspec as first choice in case lualatex is used?

fontspec doesn't change the math setup to unicode math fonts -- this is done by unicode-math -- it only change some math alphabet like \mathrm and with the option no-math you could avoid this too. So ...
Ulrike Fischer's user avatar
18 votes
Accepted

Georgian capital letter “Ⴒ” (“tar”) in pdfLaTeX

Would this alternative approach suffice? \documentclass{article} \begin{document} \begingroup\ooalign{P\cr L}\endgroup \end{document}
Steven B. Segletes's user avatar
16 votes
Accepted

Interpreting unicode ², ³, etc... characters in math mode

ConTeXt does it right. \starttext x²³ and $x²³$ \stoptext The same can be achieved with LaTeX and unicode-math. \documentclass{article} \usepackage{unicode-math} \begin{document} x²³ and $x²³$ \...
Henri Menke's user avatar
16 votes

Georgian capital letter “Ⴒ” (“tar”) in pdfLaTeX

For completeness, there is a Georgian font package for pdflatex, see https://www.ctan.org/pkg/mxedruli. The Tar character is part of the Xucuri set, which can be accessed with \usepackage{xucuri}. The ...
Marijn's user avatar
  • 37.1k
15 votes

Error in TeX Live – Font ... not loadable: Metric (TFM) file not found

On macOS / MacTeX install collection-fontsrecommended in the TeX Live Utility or tlmgr install collection-fontsrecommended from the command line.
n1000's user avatar
  • 497
14 votes

Font with Dollars but no line through it

TeX Gyre Adventor (similar to Avantgarde) \documentclass{article} \usepackage{tgadventor} \begin{document} \textsf{\$} \end{document} Only the symbol without changing the whole sans-serif font: ...
Heiko Oberdiek's user avatar
14 votes
Accepted

Can we stop recommending fontspec as first choice in case lualatex is used?

One reason to rely on fontspec over luainputenc comes from the package documentation of the second package. The abstract says simply: Input encoding management for LuaTeX, needed only for ...
jon's user avatar
  • 22.3k
13 votes
Accepted

When should package fontenc be used with pdflatex?

There is no simple answer to this. Or, rather, you already know the simple answer. In general, I would recommend \usepackage[T1]{fontenc} unless you know you need something different. In general, ...
cfr's user avatar
  • 196k
12 votes

Why is \AA still defined as it was in LaTeX2.09?

In LaTeX 2.09 the definitions were \def\aa{\accent23a} \def\AA{\leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex% \rlap{\raise.67\dimen@\hbox{\char'27}}A} as there was no encoding support,...
David Carlisle's user avatar
12 votes

Easiest way to create TeX macro/code to access symbols from particular font?

It's really not hard to do, but it would make sense to make it a package. Update I've now packaged this as a package with command names for all the keys. It is now on CTAN. Since I don't use the ...
Alan Munn's user avatar
  • 217k
12 votes
Accepted

Getting fontspec Fonts with pdfLaTeX

It is not possible to get the same font encodings for LuaTeX and pdfTeX, for the simple reason that LuaTeX with fontspec uses OpenType fonts, whereas pdfTeX uses Type 1 fonts. It is possible to get ...
Henri Menke's user avatar
12 votes
Accepted

Is it still necessary to use packages T1 and utf8 in editor TeXstudio?

A short writeup of the comments if you use pdflatex T1 with fontenc is still relevant for better use of the fonts. as for utf8 it is now the default has has been for some time, so you ought to be ...
daleif's user avatar
  • 54k
11 votes
Accepted

What fonts are available to me, when using \usepackage[T1]{fontenc}?

fontenc does not provide any fonts. It supports additional font (output) encodings. T1 is recommended for most languages using Latin scripts, if using TeX or pdfTeX to compile (i.e. LaTeX or pdfLaTeX),...
cfr's user avatar
  • 196k
10 votes

Why does inputenc abandon so quickly under "utf8 based engines"?

inputenc's utf8 option is designed to take sequences of characters representing the bytes in utf8 representation as individual characters and collect them together and use the utf8 encoding to expand ...
David Carlisle's user avatar
10 votes
Accepted

How many font styles of $x$ and $X$ can we use?

Here’s a list of some fonts: second \mathcal requires eucal package \mathbb requires amsfonts package \mathscrrequires mathrsfs package not all of them support lowercase and/or greek letters \mathtt ...
Tobi's user avatar
  • 56.1k
10 votes
Accepted

Fine tuning diacritical marks in fonts

Complex solution This solution skips loading fontenc and uses the package newunicodechar to redefine the accented characters, in order to preserve the original accents while retaining some ...
Jonas Granholm's user avatar
10 votes

Why use both fontenc and inputenc in the same document?

OK I'll try to take a different slant than the answers in the duplicate question. A document (let's say it is saved in UTF-8) \documentclass{article} %\usepackage[utf8]{inputenc} %\usepackage[T1]{...
David Carlisle's user avatar
10 votes

How is a mathematical formula represented in PDF?

For my opinion (I hope to have understand well) you could use a special tool called MaxTract. It can be found at the link http://www.cs.bham.ac.uk/research/groupings/reasoning/sdag/maxtract.php. ...
Sebastiano's user avatar
  • 53.6k
10 votes
Accepted

Why does additional encoding T2A make text fonts lighter weight?

In the Modern Toolchain To answer your second question first, here is what I recommend. If possible, replace fontenc with fontspec and use a modern TrueType or OpenType font. \documentclass[12pt]{...
Davislor's user avatar
  • 43.7k
10 votes
Accepted

How can I produce the old glyph "long s" in Latex?

Computer Modern Unicode does have the glyph, as well as a few other fonts, e.g. erewhon, libertinus, &c. However, I found only ebgaramond that worked – yet it doesn't make the difference with the ...
Bernard's user avatar
  • 271k
9 votes
Accepted

Arial font baseline for letters 'i' and 'L'

I don't think that uarial is a good choice. It is a rather curious mix between Arial and Helvetica. As you can see in the following picture the "C", "t" and "a" are from Helvetica, while the "G" and "...
Ulrike Fischer's user avatar
9 votes
Accepted

fi ligature not shown in output

You can add declarations for such inputs: \documentclass{article} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{FB01}{fi} \begin{document} find \end{document}
Ulrike Fischer's user avatar
9 votes
Accepted

Issue with diacritics in Romanian language document

There is currently no font encoding fully supporting Romanian, I'm afraid. New fonts should be created: not from scratch, but it would be a big job and you'd not have many of them available anyway. ...
egreg's user avatar
  • 1.1m
9 votes

Do I need to use \usepackage[T1]{fontenc} if I use lualatex?

If you want to use pdflatex, you should use in your preamble: \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} If you want to use lualatex or xelatex, you should use in your preamble: \...
sergiokapone's user avatar
  • 5,454
9 votes

How is a mathematical formula represented in PDF?

If you use a Unicode math font, then all of the glyphs are just Unicode symbols in the resulting PDF. \documentclass{article} \pagestyle{empty} \usepackage{unicode-math} \begin{document} $\int_0^2 x^...
Henri Menke's user avatar
9 votes
Accepted

Easiest way to create TeX macro/code to access symbols from particular font?

You can call the glyphs by number rather than “by character”. With the following code we can gather the number of each glyph in the font: \documentclass{article} \usepackage[a4paper,margin=2cm,...
egreg's user avatar
  • 1.1m

Only top scored, non community-wiki answers of a minimum length are eligible