What's the point of using both fontenc
and inputenc
in the same preamble? Why would anyone want to specify an input encoding (with inputenc
) and an output encoding (with fontenc
) that don't coincide? And if they do coincide, why use both?
This question is not a duplicate of this one. In the answer given to that question two scenarios are described:
Scenario 1
When you type
ä
in an editor set up for Latin-1, the machine stores character number 228.When TeX reads the file it finds the character number 228 and the macros of
inputenc
transform this into\"a
.Now
fontenc
comes into action; the command\"
has an associated table of the known accented characters the font has available, andä
is among these, so the sequence\"a
is transformed into the command "print character 228" in the current (T1-encoded) font.In this case the two coincide.
Scenario 2
for instance, of
ß
:
The machine stores character number 223
The macros of
inputenc
change this into\ss
fontenc
transforms this into "print character 255" (where T1 encoded fonts have a ß character).
In the first scenario what's the point in specifying both inputenc
and fontenc
if they coincide (e.g. they both associate the character number 228 with the string \"a
.
In the second scenario, why would you want to convert the character number 223 to the character number 225? Why can't you stick to 223?