Contenu de la page
Aller au menu contextuel - Aller au menu principal
Internationalized LaTeX to PS and PDF mini-howto
Sébastien Munch, Adelux
mailto:sebastien.munch@adelux.fr
v0.9 - August 2003
This document describes the different steps to generate "good" PS or PDF files with LaTeX, using T1 font encoding (with accentuated characters, etc). These explications are based on french LaTeX documents generation, but are the same for any language using characters other than 7bits ASCII.
1. Introduction
This document is written by Sébastien Munch for Adelux.
1.1 Copyright
Copyright © 2003 Adelux and Sébastien Munch.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html.
1.2 Errors, mistakes, etc.
If you find any error, mistake or bug in this document, or if you know something that would be good to be added, just send an email to the author, mailto:sebastien.munch@adelux.fr.
Some more information is to be put in this doc.
2. The default behavior
2.1 LaTeX
Without loading special packages for fonts, encoding, etc., there are several limitations; one of them being not to allow you to use "extended" characters in your LaTeX files.
2.2 Generating a PDF or PS file
With the commands "latex", "dvips" and "dvipdf",
generating a PS or PDF file makes horrible characters,
whatever you'll do, as long as you are using extended characters.
"pslatex" and "pdflatex" generate DVI files with a
better rendering: it makes them use the default Roman PS font: looks good, but
it's not as beautiful as the LaTeX font...
3. How to make LaTeX files look better ?
3.1 Extended characters
To be able to use extended characters, you need to use a different font
encoding than the default : T1. Use the
\usepackage[T1]{fontenc} command in your .tex file. By only
using this, you can make PS or PDF files with pslatex or
pdflatex, using the default Roman font (as explained before).
3.2 The font
There is a LaTeX package that allows you to export the T1
font in the generated PS or PDF file: ae. Just include it with
\usepackage{ae}.
Another useful package is aeguill, allowing to use several
different guillemets that weren't integrated with ae. When using
\usepackage{aeguill}, \usepackage{ae} is not necessary.
3.3 PS file generation option
After generating the DVI file with latex (not
pslatex nor pdflatex), you should give some options to
dvips: (-Ppdf) -Pcmz -Pamz -G0.
3.4 The solution
To generate a beautiful PS or PDF file using extended characters, you need the following packages inclusions:
\usepackage[T1]{fontenc}
\usepackage{ae}
or
\usepackage[T1]{fontenc}
\usepackage{aeguill}
in your LaTeX file headers.
To generate the PS and/or PDF file(s), use the following commands :
latex <file>.tex && latex <file>.tex
dvips -Ppdf -Pcmz -Pamz -G0 <file>.dvi
ps2pdf <file>.ps
