{fonts} is about fonts and how to use them. It deals with questions about changing family, shape and weight of fonts, but also with font packages. If your question is not about a font in general but about specific symbols, use {symbols} instead. For questions about font sizes, use {fontsize}.

learn more… | top users | synonyms (1)

54
votes
5answers
39k views

How do I find out what fonts are used in a document/picture?

Is it possible to identify the font used in a specific document/picture? Answers to this question should identify: Possible methods to do this (perhaps one answer per method) and adequately ...
170
votes
4answers
51k views

How do I use a particular font for a small section of text in my document?

The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text? How do I find the right name of the font? How do I ...
46
votes
2answers
5k views

Importing a Single Symbol From a Different Font

Is there a general way to change the font of a particular symbol without switching packages? For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to ...
67
votes
3answers
13k views

Does it matter if I use \textit or \it, \bfseries or \bf, etc

I typically use \textit{Some italicized text} while some of my colleagues use {\it Some other text} Should I bother changing one or the other, or does it matter?
30
votes
1answer
16k views

Manual font installation

Frequently there are questions about, how to manually install a font, what very often means “Type1 font”. So I thought, we should write a general answer about the several aspects to regard. Beside ...
36
votes
3answers
4k views

Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX?

I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font ...
34
votes
4answers
6k 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} ...
79
votes
6answers
17k views

Latin Modern vs cm-super?

I've read various answers to questions on here that suggest the original Computer Modern fonts have been superceded. Sometimes it is suggested we use the cm-super package, sometimes that we instead ...
30
votes
7answers
16k views

Why are some pages in my PDF coming out bold? [duplicate]

When I run my LaTeX document through pdflatex, some of the pages (the ones where figures appear) have all the text bolded. Why, and what can I do to make it stop?
391
votes
8answers
74k views

How do I make my document look like it was written by a Cthulhu-worshipping madman?

I want to type up some spells from the RPG Call of Cthulhu and give them to my players. I could just type them up in Word or LaTeX, but that seems too...neat. I'd like to make these things look like ...
42
votes
2answers
19k views

How to remove the warnings “Font shape `OT1/cmss/m/n' in size <4> not available” and “Size substitutions with differences” in beamer?

LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available LaTeX Font Warning: Size substitutions with differences I am using the files from ...
97
votes
6answers
144k views

How can I get bold math symbols?

To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ...
68
votes
7answers
11k views

How to create small PDF files for the Internet

I feel that PDF documents when intended to be uploaded to the Internet should be of a minimal final size in bytes. Many strategies exist to create a small document: Pay attention to the size of the ...
34
votes
2answers
26k views

How to set the font for a \section title (and chapter etc)

How do I specify the fonts, and general font size, for the titles, chapters and sections in my document Update: I can see how my question is confusing. I use \section and \chapter etc. to organise ...
40
votes
5answers
12k views

Installing TTF fonts in LaTeX

One of the annoying aspects of LaTeX is the limited number of fonts that come by default, and the pain involved in making new fonts 'LaTeX' ready. I have a collection of truetype fonts that I'd like ...
94
votes
5answers
16k views

Suggest a “nice” font family for my basic LaTeX template (text and math)

My goal is to choose a "nice" font family (serif, sans serif, monospace, and "math") for my basic LaTeX template. I know the default setting (Computer Modern's family) is a very good choice. However, ...
79
votes
4answers
66k views

What are all the font styles I can use in math mode?

As can be seen in above picture, there are lots of fonts or font styles that can be used in math mode. What are all the fonts or font styles I can use in math mode, and which packages are required ...
40
votes
2answers
15k views

How to get Beamer Math to look like Article Math

In a LaTeX article, the math characters are more "curvy" than the text characters: \documentclass[12pt]{article} \begin{document} $x^2 + y^2 = z^2$ \end{document} In a beamer presentation, the ...
28
votes
1answer
13k views

Simplest way to typeset entire document in sans serif (Helvetica)

How do I typeset an entire document in Helvetica/sans serif without littering the document with font changes for every heading/paragraph, etc.? Like this but with the paragraphs all in Helvetica. For ...
18
votes
1answer
22k views

Change section fonts

I am trying to emulate MS Word 2010 functionality with LaTeX since I am fed up with word. I am using TexShop, and I have been able to set the main font to Calibri through the use of XeTeX. How do I ...
48
votes
4answers
21k views

Blackboard bold characters

The blackboard bold font in the AMSFonts package only has capital letters. I sometimes wish to use a blackboard bold "1", for which I can use \usepackage{bbold}. But this changes the entire ...
32
votes
1answer
3k views

How to automatically hyphenate within \texttt?

This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer). The person had a lot of "common words" in typewriter font sprinkled ...
68
votes
4answers
78k views

Small Caps and Bold Face

I can't seem to have both the small caps and boldface styles on a line: \huge\sc\bf Hello This will generate bold text, and if the \sc is placed after, it will generate small caps text but not ...
19
votes
2answers
1k views

Make mathfont respect the surrounding family

How can one make the math mode change its font according to the surrounding text? I have to use (pdf)latex. xelatex, luatex etc. are not possible alternatives in this case. \documentclass{scrartcl} ...
27
votes
1answer
802 views

What does different \fontdimen<num> mean

I know that \fontdimen<num> returns some dimensions associated with the current font. What are they?
33
votes
3answers
3k views

Bad spacing of math letters within italic text

I use the standard AMS theorem style, which means that my theorems are set in italic. In combination with math variables, this sometimes gives horrible spacing: The input If $U$ or $V$ \dots yields ...
58
votes
5answers
5k views

Keyboard Font for LaTeX

I'm currently writing a user guide containing a lot of keyboard shortcuts. I'm looking for a "keyboard" font where single characters or special keys (like tab or backspace) appear like the "real" key ...
48
votes
1answer
2k views

Blur the text so it's not readable

On a related note to How do I make my document look like it was written by an Cthulhu worshipping madman?, I want to create a LaTeX command that blurs the text so it's unreadable. Unfortunately, ...
17
votes
2answers
2k views

How do I get a list of all available fonts for luaotfload?

luaotfload uses an internal database that gets updated with mkluatexfontdb. So it knows about a lot of fonts installed on my computer. How can I query this database? Something like luatexfontdb ...
16
votes
1answer
940 views

TeX accents do not seem to work with fontspec and xe/lua/latex

I am using Minion Pro as mainfont and it does not have in its glyph table the character U+1E47 Latin small letter with dot below which I need only once in my document. Rather than change to another ...
65
votes
5answers
16k views

Adding a signature on an online job application

Nowadays many job applications are sent in digital form as PDF. We use of course LaTeX to create such. Usually you add a cover letter to your CV and credentials. If you sent this as print-out by ...
85
votes
2answers
41k views

\emph or \textit

In the comments section of Does it matter if I use \textit or \it, I asked for a clarification of these points. The clarification has mostly been made, but it was requested that I turn this into a ...
25
votes
3answers
3k views

Create a symbol font from SVG symbols

Is it possible to create an own scalable font from a set of symbols (~700), all in SVG format. All of them are symbols (like Zapf Dingbats), so there would be no need for special settings like ...
25
votes
5answers
22k views

Lowercase \mathcal

The standard font used for \mathcal does not include any lowercase characters. The Comprehensive LaTeX Symbols List suggests redefining \mathcal to use Zapf Chancery. However I do not particularly ...
21
votes
2answers
20k views

How to embed fonts at compile time with pdflatex

I just ran into the problem of embedding fonts while trying to publish with lulu.com. Although everyone apparently is 'supposed' to handle those 35 standard fonts for some strange reason they won't ...
14
votes
3answers
1k views

Can I change the font and colour of a letter permanently?

For my lectures, I like to colour the symbols in the equations to make it easier to follow what's going on - a bit like syntax highlighting. So all vector spaces are one colour, all sets another, e ...
20
votes
6answers
9k views

How do I make my document use the Times font, both for the text and the math?

I know that I can put \usepackage{times} in the preamble in order to use the Times font instead of Computer Modern for my document. But this only affects the text; the math is still typeset using ...
25
votes
3answers
7k views

Is there a difference between \textit and \itshape?

I have only ever used \textit (and \emph for emphasized text), but have noticed that in some TeX examples, \itshape is used instead of \textit. Is there a difference between \textit and \itshape? If ...
13
votes
4answers
529 views

Which ligatures do the fonts used in my document offer?

This is a follow-up question to: How do I know which ligatures are used in my document? In order to know which ligatures I might consider disabling (I have in mind microtype's \DisableLigatures ...
30
votes
1answer
2k views

How do I use TrueType Fonts with PDFTeX using otftotfm?

I've heard that PDFTeX can use TrueType fonts. There have been several answers related to this, but of these only the first one mentions using otftotfm, which I'm told is the standard way to do it ...
19
votes
2answers
2k 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 ...
24
votes
1answer
1k views

How can I use a symbol provided by a package without changing the entire mathematics font?

I wish to use a symbol provided by the package MnSymbol but if I have a \usepackage{MnSymbol} in my document then many other symbols change, including even the equals sign (=), which appears much ...
26
votes
5answers
17k views

Where can I find computer modern fonts for use in other programs, e.g. Adobe Illustrator?

For some complicated diagrams, I need to use something like Adobe Illustrator or Inkscape, and would like to include nicely typeset labels. (I'm aware of post-processing solutions, such as pinlabel.) ...
18
votes
3answers
15k views

pdfTeX error (font expansion): auto expansion is only possible with scalable

I'm using a custom class file. My main file looks like this: \documentclass[12pt,a4paper]{thesis} \begin{document} \frontmatter \pagenumbering{alph} \pagenumbering{roman} \clearpage ...
18
votes
4answers
29k views

How to change font size mid document?

I want to create a TeX document for which the first (summary) page is \documentclass[10pt]{article}, but for which the rest of the document is \documentclass[12pt]{article}. Is there an easy way to do ...
47
votes
1answer
9k views

What font packages are installed in TeX live?

What font packages are installed in a full installation of TeX live? Which are obsolete? Example: \usepackage{mathpazo} brings Palatino as the roman font. The times package seems to be obsolete (as ...
51
votes
4answers
8k views

What package allows Elvish in TeX?

Anyone who has read The Lord of the Rings will recognise the Elvish script at the top of the page. If this is meant to be an example of what is typesettable in TeX/related software, what package is ...
32
votes
3answers
6k views

Utilizing oldstyle figures without resorting to \oldstylenums

Quite a few of the freely available LaTeX fonts include oldstyle figures (numerals that harmonize with lower case letters) in addition to lining figures. (Generally, you have to load the textcomp ...
14
votes
2answers
5k views

How to install OTF fonts with otfinst.py?

I want to install some fonts that I have in OTF format for use in LaTeX. I learned that I should use otfinst.py, but I have absolutely no idea how. The manual is by far the worst ever I've seen. I ...
26
votes
5answers
41k views

Is there a way to set math mode font non-italic?

I read many things about people wanting math mode in sans-serif font and doing crazy things with packages and options to get that, but I did not find anything that would simply make my math mode font ...