forked from llegoff/Slic3r-Manual-FR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Slic3r-Manual.tex
319 lines (266 loc) · 7.65 KB
/
Slic3r-Manual.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
%%% MEMOIR CLASS %%%
\documentclass[twoside,12pt,openright,final,english]{memoir}
% Memoir Divisions: \book, \part, \chapter, \section, \subsection
% Fine divisions: \subsubsection, \paragraph \subparagraph.
%%% END MEMOIR CLASS %%%
\setlength{\parskip}{\baselineskip}%
\setlength{\parindent}{0pt}%
\usepackage{float}
\usepackage{graphicx}
% For full size print graphics
\graphicspath{{./images-original/}}
\makeindex
\makeglossary
\usepackage{color}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
%%% PAGE, STOCK, AND MARGIN SIZE %%%
% Lulu 7.44 x 9.68" 18.90 x 24.58cm
\setstocksize{24.58cm}{18.90cm} % { height }{ width }
\settrimmedsize{\stockheight}{\stockwidth}{*}
%\settypeblocksize{ height }{ width }{ ratio }
\settypeblocksize{19.0cm}{*}{*}
%\setlrmarginsandblock{ spine }{ edge }{ ratio }
% make the spine have more space than outer edge
\setlrmarginsandblock{*}{2.5cm}{1.2}
% \setulmargins{ upper }{ lower }{ ratio }
\setulmargins{2.0cm}{*}{*}
% \setheadfoot{ headheight }{ footskip }
\setheadfoot{12pt}{2cm}
\checkandfixthelayout[fixed]
%%% END PAGE, STOCK, AND MARGIN SIZE %%%
%%% INCLUDED FILES %%%
% select which chapters to render:
\newif\iftitle\titletrue
\newif\ifcopyright\copyrighttrue
\newif\ifintro\introtrue %true
\newif\ifgetting\gettingtrue %true
\newif\iffirst\firsttrue %true
\newif\iftuning\tuningtrue %true
\newif\iforganize\organizetrue %true
\newif\ifadvanced\advancedtrue %true
\newif\iftrouble\troubletrue %true
\newif\ifedge\edgetrue %true
\newif\ifsupport\supporttrue %true
\newif\ifcontact\contacttrue %true
\newif\ifcolophon\colophontrue %true
%% or just render everything:
\newif\ifrendereverything\rendereverythingfalse
\ifrendereverything \titletrue \copyrighttrue \introtrue \gettingtrue \firsttrue \tuningtrue \organizetrue \advancedtrue \troubletrue \edgetrue \supporttrue \contacttrue \colophontrue \fi
%%% END INCLUDED FILES %%%
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage[french]{babel}
\usepackage{ucs}
%%% PDFLATEX %%%
\usepackage{etex}
\usepackage[protrusion,expansion,spacing,kerning,babel,final]{microtype}
\usepackage[utf8x]{inputenc}
%%% PAGE STYLE %%%
\makepagestyle{jebstyle}
\pagestyle{jebstyle}
\makeevenhead{jebstyle}{}{\hspace{2em}\itshape\small\leftmark}{} % KLUDGE
\makeoddhead{jebstyle}{}{\scshape\small\rightmark}{}
\makeevenfoot{jebstyle}{}{\hspace{2em}\thepage}{} % KLUDGE
\makeoddfoot{jebstyle}{}{\thepage}{}
%%% END
%%% jebinski CHAPTER STYLE %%%
\makechapterstyle{jebinski}{%
% Clear out the chapter name (e.g. capítulo)
\renewcommand*{\printchaptername}{}
% Clear out the chapter number
\renewcommand*{\printchapternum}{}
% Set chapter font
\renewcommand*{\chaptitlefont}{\normalfont\large\scshape}
\renewcommand*{\printchaptertitle}[1]{%
\hrule\vskip\onelineskip \centering \chaptitlefont{##1}\par}
\renewcommand*{\afterchaptertitle}{\vskip\onelineskip \hrule\vskip
\afterchapskip}
}
%%% END jebinski CHAPTER STYLE %%%
%%% FORMATTING KLUDGES %%%
% fewer overfull lines compared with \fussy and fewer obvious
% large interword spaces than with \sloppy.
\midsloppy
% "fix" for Overfull \hbox
%\emergencystretch=8pt
\setlength{\emergencystretch}{3em}
% \tolerance is a paragraph parameter, probably ignored here
\tolerance=5000 % allow looser spacing
%\tolerance=95000 % allow waaay looser spacing
% 10000 almost prevents hyphenation. What's default?
\hyphenpenalty=500 % 500 seems reasonable
%the default \flushbottom
%\sloppypar
\setlength{\topskip}{1.6\topskip}
\checkandfixthelayout
%\sloppybottom
\raggedbottom
%%%%%%%% WIDOWS AND ORPHANS %%%%%%%%%%%
\widowpenalty=10000
\clubpenalty=10000
%%%%%%%% END WIDOWS AND ORPHANS %%%%%%%%%%%
%%% END FORMATTING KLUDGES %%%
%%% FOOTNOTES %%%
% no horizontal rule before footnotes:
\let\oldfootnoterule\footnoterule
\renewcommand*{\footnoterule}{}
% This indents the footnote, or it lines up too far to the
% left on the spanish side. The right page note should really
% move over more to the left
% KLUDGE
\setlength{\footmarkwidth}{3.5em}
%%% END FOOTNOTES %%%
%%% Fancy dings %%%
\usepackage{pifont}
%%% DEBUG %%%
%\showoutput
%\typeoutlayout
%\typeoutstandardlayout
%%% END DEBUG %%%
\usepackage[hidelinks]{hyperref}
%%% END OF PREAMBLE %%%
\begin{document}
%%% BEGIN FRONT MATTER %%%
\frontmatter
% Set page numbers to lowercase roman numerals, and reset the count to 1 (no *)
\pagenumbering{roman}
%%% TITLE PAGE %%%
% We want the title to be on the right hand page.
% If we pad a page, it gives us two with openright
\iftitle
{\include{Title}}
\fi
%%% END TITLE PAGE
%%% COPYRIGHT PAGE %%%
\ifcopyright
{\include{Copyright}}
\fi
%%% END COPYRIGHT PAGE %%%
%%% TABLE OF CONTENTS ToC %%%
\maxtocdepth{section}
% Dots
% space between dots
\renewcommand{\cftchapterdotsep}{15}
% dot symbol (default is period)
\renewcommand{\cftdot}{\textperiodcentered} % centered period
% Set space between each entry in ToC
\setlength{\cftbeforechapterskip}{5pt} % 5pt % 3pt
\tableofcontents*
%%% END TABLE OF CONTENTS ToC %%%
%%% LIST OF FIGURES %%%
%\addtodef{\listoffigures}{\clearpage\pagestyle{lof}}{}
% Fit all of List of Figures on one page
\renewcommand*{\lofheadstart}{\vspace{1cm}}
\clearpage
\listoffigures*
%%% END LIST OF FIGURES %%%
%%% CHAPTER STYLE %%%
\chapterstyle{jebinski} % defined in preamble
\def\topblockvspace{0.11}
%%% END FRONTMATTER %%%
%%% BEGIN MAINMATTER %%%
\mainmatter*
% Set page numbering to arabic, but don't reset numbering (*)
\pagenumbering*{arabic}
%%% Introduction %%%
\ifgetting
\chapter{\emph{Introduction}}
\thispagestyle{empty}
\markboth{Introduction}{Manuel Utilisateur de Slic3r}
{\include{Intro}}
\fi
%%% END Introduction %%%
%%% GETTING SLIC3R %%%
\ifgetting
\chapter{\emph{Obtenir Slic3r}}
\thispagestyle{empty}
\markboth{Obtenir Slic3r}{Manuel Utilisateur de Slic3r}
{\include{GettingSlic3r}}
\fi
%%% END GETTING SLIC3R %%%
%%% FIRST PRINT %%%
\ifgetting
\chapter{\emph{D\'ebuter}}
\thispagestyle{empty}
\markboth{D\'ebuter}{Manuel Utilisateur de Slic3r}
{\include{FirstPrint}}
\fi
%%% END FIRST PRINT %%%
%%% SIMPLE MODE %%%
\ifgetting
\chapter{\emph{Mode Simple}}
\thispagestyle{empty}
\markboth{Mode Simple}{Manuel Utilisateur de Slic3r}
{\include{SimpleMode}}
\fi
%%% END SIMPLE MODE %%%
%%% EXPERT MODE %%%
\ifadvanced
\chapter{\emph{Mode Expert}}
\thispagestyle{empty}
\markboth{Mode Expert}{Manuel Utilisateur de Slic3r}
{\include{ExpertMode}}
\fi
%%% END EXPERT MODE %%%
%%% INPUT OUTPUT FILES %%%
\ifadvanced
\chapter{\emph{Fichiers d'entr\'es et de sorties}}
\thispagestyle{empty}
\markboth{Fichiers d'entr\'es et de sorties}{Manuel Utilisateur de Slic3r}
{\include{IOFiles}}
\fi
%%% END INPUT OUTPUT FILES %%%
%%% ADVANCED %%%
\ifadvanced
\chapter{\emph{Sujets Avanc\'es}}
\thispagestyle{empty}
\markboth{Sujets Avanc\'es}{Manuel Utilisateur de Slic3r}
{\include{AdvancedTopics}}
\fi
%%% END ADVANCED %%%
%%% TROUBLESHOOTING %%%
\ifadvanced
\chapter{\emph{D\'epannage}}
\thispagestyle{empty}
\markboth{D\'epannage}{Manuel Utilisateur de Slic3r}
{\include{Troubleshooting}}
\fi
%%% END TROUBLESHOOTING %%%
%%% SUPPORT %%%
%\ifsupport
%\chapter{\emph{Soutien Slic3r}}
%\thispagestyle{empty}
%\markboth{Soutien Slic3r}{Manuel Utilisateur de Slic3r}
%{\include{Slic3rSupport}}
%\fi
%%% END SUPPORT %%%
%%% END MAINMATTER %%%
%%% BEGIN BACKMATTER %%%
\backmatter
% section section_name (end)
%%% INDEX %%%
\clearpage
\printindex
%%% END INDEX %%%
%%% GLOSSARY %%%
% Presently disabled, until filled
% Sample:
%\glossary{glossary}{A list of terms and their descriptions.}
%\clearpage
%\printglossary
%%% END GLOSSARY %%%
%%% COLOPHON %%%
\ifcolophon
%%% skip a couple pages
\pagebreak{}
\thispagestyle{empty}
\begingroup
\vfill\null
\endgroup
\pagebreak{}
\thispagestyle{empty}
{\include{Colophon}}
\fi
%%% END COLOPHON %%%
%%% END BACKMATTER %%%
\end{document}