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