/
main.tex
167 lines (132 loc) · 4.09 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
% These lines tell TeXShop to typeset with xelatex, and to open
% and save the source with Unicode encoding.
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{article}
%%%%%%%%%
%%%%%%%%%%%%%%% ENCODAGE %%%%%%%%%%%%%%%%%%%%%%%%
%%% Commande pour compiler: xelatex main.tex
%%% La distribution XeteX permet d'utiliser facilement une fonte externe (ici Helvetica).
%%% On a besoin de xunicode (parce que les fichiers texte sont en unicode) et de fontspec
%%% pour que XeteX fonctionne bien.
\usepackage{fontspec}
\usepackage{xunicode}
\setromanfont[Mapping=tex-text]{DejaVu Serif}
%%% Décommenter ces lignes et commenter les 3 du dessus pour faire l'export vers html
%%% Commande: htlatex main.tex -> plein d'erreurs, faire Control+D pour les passer, l'export
%%% fonctionne plutôt bien.
%\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx}
\usepackage[frenchb]{babel}
\usepackage[babel,french=guillemets*]{csquotes}
\MakeOuterQuote{"}
\frenchspacing
%%% liens et références dans les PDF
\usepackage{hyperref}
\hypersetup{
unicode=true, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={The Island}, % title
pdfauthor={Peter Watts}, % author
pdfsubject={Traduction en Français}, % subject of the document
pdfcreator={Guillaume B}, % creator of the document
pdfkeywords={the island} {traduction} {Francais}, % list of keywords
pdfnewwindow=true, % links in new window
colorlinks= true, % false: boxed links; true: colored links
linkcolor= blue, % color of internal links
citecolor= blue, % color of links to bibliography
filecolor= blue, % color of file links
urlcolor=blue % color of external links
}
%%% Pas de numéro de page sur la première page des chapitres
\makeatletter
\let\ps@plain=\ps@empty
\makeatother
%%% Cul de lampe -> trois étoiles
\newlength{\cotetriangle}
\setlength{\cotetriangle}{2ex}
\newcommand*\troisetoile{%
\begingroup % pour que le \centering soit local
% ainsi que les précautions de fontes qui suivent
\normalsize % taille habituelle
\mdseries % en graisse moyenne
\upshape % et en romain
\par\nobreak
\vspace*{1.5 cm}
\centering
*\hspace{\cotetriangle}*\hspace{\cotetriangle}*
\par\penalty-150 % par exemple
\vspace*{1.5 cm}
\endgroup
}
%%% Commande de 'transit': comment on passe d'un chapitre à un autre
\newcommand{\transit}{
\troisetoile
}
%%% pas d'indentation au début des paragraphes
\parindent=0pt
%\setlength{\parskip}{0pt}
\setlength{\parskip}{2ex plus 0.5ex minus 0.2ex}
%%% plus petites marges
\addtolength{\textwidth}{2cm}
\addtolength{\oddsidemargin}{-1cm}
\title{L'Île}
\author{Peter Watts}
\date{}
\begin{document}
%%% les pages du début n'ont pas de numéro de page
\pagestyle{empty}
\maketitle
\cleardoublepage
\input{header}
\cleardoublepage
%%% le reste a un numéro de page, on commence à 1
\setcounter{page}{1}
%%% Style de des headers de chaque page
\pagestyle{myheadings}
\markright{\emph{The Island}\hfill}
%%% le texte en lui-même
\input{Chapitres/Intro}
\transit
\input{Chapitres/Chapter01}
\transit
\input{Chapitres/Chapter02}
\transit
\input{Chapitres/Chapter03}
\transit
\input{Chapitres/Chapter04}
\transit
\input{Chapitres/Chapter05}
\transit
\input{Chapitres/Chapter06}
\transit
\input{Chapitres/Chapter07}
\transit
\input{Chapitres/Chapter08}
\transit
\input{Chapitres/Chapter09}
\transit
\input{Chapitres/Chapter10}
\transit
\input{Chapitres/Chapter11}
\transit
\input{Chapitres/Chapter12}
\transit
\input{Chapitres/Chapter13}
\transit
\input{Chapitres/Chapter14}
\transit
\input{Chapitres/Chapter15}
\transit
\input{Chapitres/Chapter16}
\transit
\cleardoublepage
\pagestyle{empty}
\input{Notes}
\input{footer}
\end{document}