## LaTeX forum ⇒ Fonts & Character Sets ⇒ difference between inputenc and fontenc Topic is solved

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Cottonshirt
Posts: 9
Joined: Thu Nov 10, 2016 11:04 pm

### difference between inputenc and fontenc

good morning,

I have for some time been trying to figure out how to get a specific diacritic into my Latex documents.

the one I want is this: ð
which I normally type using Alt-0240

I already use a large number of other diacritics on a regular basis, such as ö, and ä, ü, ú, Å, etc.

today I came across a big list of such special symbols and characters that says that this one particular character is "Not available in the OT1 font encoding. Use the fontenc package to select an alternate font encoding, such as T1."

the character can then be produced using \dh

up to now pretty much every LaTex document I have produced has \usepackage[utf8]{inputenc} in the preamble. what I can't figure out is whether I have \usepackage[T1]{fontenc} as well as or instead of.

and the particular part of this that confuses me is that I have always assumed that inputenc was an abbreviation of "input encoding" which would mean that fontenc is an abbreviation of "font encoding" and in my rather limited understanding of how Latex actually gets characters onto my screen, font encoding and input encoding are different things.

so that if I change from using inputenc to fontenc, do I have to do anything to get the font that I was previously using (by default) which I like and would prefer to continue to use even though I have no idea what it is, or how to find out.

if someone could please clarify any of this that would be very much appreciated.

many thanks,

LaTeXguide.org • LaTeX-Cookbook.net

rais
Posts: 307
Joined: Sun Nov 16, 2014 8:51 pm

### difference between inputenc and fontenc  Topic is solved

Good morning,

in short: inputenc tells LaTeX, which encoding was used by your text editor to create the input (the .tex file), fontenc tells LaTeX which encoding to use for the output.
For more details click on the link to the according documentation or call, e.g.,
texdoc fontenc
BTW: utf8 has become the standard encoding for LaTeX files, so `\usepackage[utf8]{iputenc}` can be omitted, if your TeX installation is recent enough (not older than 4 years).

KR
Rainer

Cottonshirt
Posts: 9
Joined: Thu Nov 10, 2016 11:04 pm

thank you