]> git.lyx.org Git - lyx.git/blob - lib/templates/thesis/chapter-1.lyx
do \addto\extras \AtBeginDocument, which is after polyglossia, if this package is...
[lyx.git] / lib / templates / thesis / chapter-1.lyx
1 #LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 410
3 \begin_document
4 \begin_header
5 \textclass scrbook
6 \begin_preamble
7 % increase link area for cross-references and autoname them
8 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
9 \newlength{\abc}
10 \settowidth{\abc}{\space}
11 \AtBeginDocument{%
12 \addto\extrasenglish{
13  \renewcommand{\equationautorefname}{\hspace{-\abc}}
14  \renewcommand{\sectionautorefname}{sec.\negthinspace}
15  \renewcommand{\subsectionautorefname}{sec.\negthinspace}
16  \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
17  \renewcommand{\figureautorefname}{Fig.\negthinspace}
18  \renewcommand{\tableautorefname}{Tab.\negthinspace}
19 }
20 }
21
22 % in case somebody want to have the label "Gleichung"
23 %\renewcommand{\eqref}[1]{Gleichung~(\negthinspace\autoref{#1})}
24
25 % put the link to figure floats to the beginning
26 % of the figure and not to its end
27 \usepackage[figure]{hypcap}
28
29 % the pages of the TOC is numbered roman
30 % and a pdf-bookmark for the TOC is added
31 \let\myTOC\tableofcontents
32 \renewcommand\tableofcontents{%
33   \frontmatter
34   \pdfbookmark[1]{\contentsname}{}
35   \myTOC
36   \mainmatter }
37
38 % make caption labels bold
39 \setkomafont{captionlabel}{\bfseries}
40 \setcapindent{1em}
41
42 % enable calculations
43 \usepackage{calc}
44
45 % fancy page header/footer settings
46 \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
47 \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
48
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
51
52 % avoid that floats are placed above its sections
53 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
54 \end_preamble
55 \options intoc,bibliography=totoc,index=totoc,BCOR10mm,captions=tableheading,titlepage,fleqn
56 \use_default_options true
57 \begin_modules
58 customHeadersFooters
59 \end_modules
60 \maintain_unincluded_children false
61 \language english
62 \inputencoding auto
63 \fontencoding global
64 \font_roman lmodern
65 \font_sans lmss
66 \font_typewriter lmtt
67 \font_default_family default
68 \use_non_tex_fonts false
69 \font_sc false
70 \font_osf false
71 \font_sf_scale 100
72 \font_tt_scale 100
73
74 \graphics default
75 \default_output_format default
76 \output_sync 0
77 \bibtex_command default
78 \index_command default
79 \float_placement h
80 \paperfontsize 12
81 \spacing single
82 \use_hyperref true
83 \pdf_title "Your title"
84 \pdf_author "Your name"
85 \pdf_bookmarks true
86 \pdf_bookmarksnumbered true
87 \pdf_bookmarksopen true
88 \pdf_bookmarksopenlevel 1
89 \pdf_breaklinks false
90 \pdf_pdfborder true
91 \pdf_colorlinks false
92 \pdf_backref false
93 \pdf_pdfusetitle false
94 \pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
95 \papersize a4paper
96 \use_geometry false
97 \use_amsmath 2
98 \use_esint 1
99 \use_mhchem 1
100 \use_mathdots 1
101 \cite_engine basic
102 \use_bibtopic false
103 \use_indices false
104 \paperorientation portrait
105 \suppress_date false
106 \use_refstyle 0
107 \branch NoChildDocument
108 \selected 0
109 \filename_suffix 0
110 \color #ff0000
111 \end_branch
112 \index Index
113 \shortcut idx
114 \color #008000
115 \end_index
116 \secnumdepth 3
117 \tocdepth 2
118 \paragraph_separation skip
119 \defskip medskip
120 \quotes_language english
121 \papercolumns 1
122 \papersides 2
123 \paperpagestyle fancy
124 \tracking_changes false
125 \output_changes false
126 \html_math_output 0
127 \html_be_strict false
128 \end_header
129
130 \begin_body
131
132 \begin_layout Left Header
133 \begin_inset Argument
134 status open
135
136 \begin_layout Plain Layout
137 \begin_inset ERT
138 status collapsed
139
140 \begin_layout Plain Layout
141
142
143 \backslash
144 chaptername
145 \end_layout
146
147 \end_inset
148
149
150 \begin_inset space ~
151 \end_inset
152
153
154 \begin_inset ERT
155 status collapsed
156
157 \begin_layout Plain Layout
158
159
160 \backslash
161 thechapter
162 \end_layout
163
164 \end_inset
165
166
167 \end_layout
168
169 \end_inset
170
171
172 \begin_inset ERT
173 status collapsed
174
175 \begin_layout Plain Layout
176
177
178 \backslash
179 rightmark
180 \end_layout
181
182 \end_inset
183
184
185 \begin_inset Note Note
186 status collapsed
187
188 \begin_layout Plain Layout
189 Enable page headers and add the chapter to the header line.
190 \end_layout
191
192 \end_inset
193
194
195 \end_layout
196
197 \begin_layout Right Header
198 \begin_inset Argument
199 status open
200
201 \begin_layout Plain Layout
202 \begin_inset ERT
203 status collapsed
204
205 \begin_layout Plain Layout
206
207
208 \backslash
209 leftmark
210 \end_layout
211
212 \end_inset
213
214
215 \end_layout
216
217 \end_inset
218
219
220 \end_layout
221
222 \begin_layout Left Footer
223 \begin_inset Argument
224 status open
225
226 \begin_layout Plain Layout
227 \begin_inset ERT
228 status collapsed
229
230 \begin_layout Plain Layout
231
232
233 \backslash
234 thepage
235 \end_layout
236
237 \end_inset
238
239
240 \end_layout
241
242 \end_inset
243
244
245 \end_layout
246
247 \begin_layout Center Footer
248
249 \end_layout
250
251 \begin_layout Right Footer
252 \begin_inset ERT
253 status collapsed
254
255 \begin_layout Plain Layout
256
257
258 \backslash
259 thepage
260 \end_layout
261
262 \end_inset
263
264
265 \end_layout
266
267 \begin_layout Chapter
268 Title of first chapter
269 \end_layout
270
271 \begin_layout Section
272 Overview
273 \end_layout
274
275 \begin_layout Standard
276 bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
277  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
278  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
279  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
280  bla bla bla bla DLC-coatings
281 \begin_inset CommandInset nomenclature
282 LatexCommand nomenclature
283 symbol "DLC"
284 description "diamond-like carbon"
285
286 \end_inset
287
288  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
289  bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla,
290  see 
291 \begin_inset CommandInset citation
292 LatexCommand cite
293 key "Fowl1928"
294
295 \end_inset
296
297 .
298 \end_layout
299
300 \begin_layout Section
301 The next section
302 \end_layout
303
304 \begin_layout Standard
305 \begin_inset Branch NoChildDocument
306 status collapsed
307
308 \begin_layout Standard
309 \begin_inset CommandInset bibtex
310 LatexCommand bibtex
311 bibfiles "thesisExample"
312 options "alpha"
313
314 \end_inset
315
316
317 \end_layout
318
319 \begin_layout Standard
320 \begin_inset CommandInset nomencl_print
321 LatexCommand printnomenclature
322 set_width "custom"
323 width "2.5cm"
324
325 \end_inset
326
327
328 \end_layout
329
330 \end_inset
331
332
333 \end_layout
334
335 \end_body
336 \end_document