]> git.lyx.org Git - lyx.git/blob - lib/templates/thesis/thesis.lyx
Add optional argument to right footer in order to eliminate the Double page numbers...
[lyx.git] / lib / templates / thesis / thesis.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 414
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 "equation"
23 %\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}
24
25 % that links to image floats jumps to the beginning
26 % of the float and not to its caption
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 \language_package default
63 \inputencoding auto
64 \fontencoding global
65 \font_roman lmodern
66 \font_sans lmss
67 \font_typewriter lmtt
68 \font_default_family default
69 \use_non_tex_fonts false
70 \font_sc false
71 \font_osf false
72 \font_sf_scale 100
73 \font_tt_scale 100
74
75 \graphics default
76 \default_output_format default
77 \output_sync 0
78 \bibtex_command default
79 \index_command default
80 \float_placement h
81 \paperfontsize 12
82 \spacing single
83 \use_hyperref true
84 \pdf_bookmarks true
85 \pdf_bookmarksnumbered true
86 \pdf_bookmarksopen true
87 \pdf_bookmarksopenlevel 1
88 \pdf_breaklinks false
89 \pdf_pdfborder true
90 \pdf_colorlinks false
91 \pdf_backref false
92 \pdf_pdfusetitle true
93 \pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
94 \papersize a4paper
95 \use_geometry false
96 \use_amsmath 2
97 \use_esint 1
98 \use_mhchem 1
99 \use_mathdots 1
100 \cite_engine basic
101 \use_bibtopic false
102 \use_indices false
103 \paperorientation portrait
104 \suppress_date true
105 \use_refstyle 0
106 \branch chapter-1
107 \selected 1
108 \filename_suffix 0
109 \color #ffaa00
110 \end_branch
111 \branch chapter-2
112 \selected 1
113 \filename_suffix 0
114 \color #55aaff
115 \end_branch
116 \branch Summary
117 \selected 1
118 \filename_suffix 0
119 \color #7f7f7f
120 \end_branch
121 \branch Acknowledgments
122 \selected 1
123 \filename_suffix 0
124 \color #ffff00
125 \end_branch
126 \branch Appendix
127 \selected 1
128 \filename_suffix 0
129 \color #faf0e6
130 \end_branch
131 \index Index
132 \shortcut idx
133 \color #008000
134 \end_index
135 \secnumdepth 3
136 \tocdepth 2
137 \paragraph_separation skip
138 \defskip medskip
139 \quotes_language english
140 \papercolumns 1
141 \papersides 2
142 \paperpagestyle fancy
143 \tracking_changes false
144 \output_changes false
145 \html_math_output 0
146 \html_css_as_file 0
147 \html_be_strict false
148 \end_header
149
150 \begin_body
151
152 \begin_layout Subject
153 Thesis to get the degree of a doctor of philosophy
154 \begin_inset Note Note
155 status open
156
157 \begin_layout Plain Layout
158 Use the official terms and title page layout instead of this one!
159 \end_layout
160
161 \end_inset
162
163
164 \end_layout
165
166 \begin_layout Title
167 Title of the thesis
168 \end_layout
169
170 \begin_layout Subtitle
171 Subtitle (if you have one)
172 \end_layout
173
174 \begin_layout Author
175 Your name
176 \end_layout
177
178 \begin_layout Date
179 Date (optional)
180 \end_layout
181
182 \begin_layout Publishers
183 \begin_inset Box Boxed
184 position "t"
185 hor_pos "c"
186 has_inner_box 1
187 inner_pos "t"
188 use_parbox 0
189 use_makebox 0
190 width "40col%"
191 special "none"
192 height "1in"
193 height_special "totalheight"
194 status open
195
196 \begin_layout Plain Layout
197 Replace this box e.
198 \begin_inset space \thinspace{}
199 \end_inset
200
201 g.
202 \begin_inset space ~
203 \end_inset
204
205 by the coat of arms of the university.
206 \end_layout
207
208 \end_inset
209
210
211 \begin_inset ERT
212 status collapsed
213
214 \begin_layout Plain Layout
215
216
217 \backslash
218 vspace{
219 \backslash
220 baselineskip}
221 \end_layout
222
223 \end_inset
224
225
226 \begin_inset Newline newline
227 \end_inset
228
229 Bla bla University Testburg
230 \begin_inset Newline newline
231 \end_inset
232
233 Faculty for leading edge science
234 \begin_inset Newline newline
235 \end_inset
236
237 Institute for 
238 \noun on
239 Nobel
240 \noun default
241  price winning research
242 \begin_inset VSpace -3cm
243 \end_inset
244
245
246 \end_layout
247
248 \begin_layout Lowertitleback
249
250 \series bold
251 Dean
252 \series default
253
254 \begin_inset VSpace smallskip
255 \end_inset
256
257
258 \begin_inset Newline newline
259 \end_inset
260
261 Prof.
262  Dr.
263  xxx yyy
264 \begin_inset VSpace bigskip
265 \end_inset
266
267
268 \begin_inset Newline newline
269 \end_inset
270
271
272 \series bold
273 Referees
274 \series default
275
276 \begin_inset VSpace smallskip
277 \end_inset
278
279
280 \begin_inset Newline newline
281 \end_inset
282
283 Prof.
284  Dr.
285  aaa bbb
286 \begin_inset VSpace smallskip
287 \end_inset
288
289
290 \begin_inset Newline newline
291 \end_inset
292
293 Prof.
294  Dr.
295  xxx yyy
296 \begin_inset VSpace bigskip
297 \end_inset
298
299
300 \begin_inset Newline newline
301 \end_inset
302
303
304 \series bold
305 Date of the graduation (optional)
306 \series default
307
308 \begin_inset VSpace smallskip
309 \end_inset
310
311
312 \begin_inset Newline newline
313 \end_inset
314
315 xx.yy.zzzz
316 \end_layout
317
318 \begin_layout Dedication
319 Dedication, cite from a famous person, or whatever you like (optional)
320 \end_layout
321
322 \begin_layout Standard
323 \begin_inset Newpage cleardoublepage
324 \end_inset
325
326
327 \end_layout
328
329 \begin_layout Left Header
330 \begin_inset ERT
331 status collapsed
332
333 \begin_layout Plain Layout
334
335
336 \backslash
337 rightmark
338 \end_layout
339
340 \end_inset
341
342
343 \begin_inset Note Note
344 status collapsed
345
346 \begin_layout Plain Layout
347 defines the header line
348 \end_layout
349
350 \end_inset
351
352
353 \end_layout
354
355 \begin_layout Right Header
356 \begin_inset Argument
357 status open
358
359 \begin_layout Plain Layout
360 \begin_inset ERT
361 status collapsed
362
363 \begin_layout Plain Layout
364
365
366 \backslash
367 leftmark
368 \end_layout
369
370 \end_inset
371
372
373 \end_layout
374
375 \end_inset
376
377
378 \end_layout
379
380 \begin_layout Left Footer
381 \begin_inset Argument
382 status open
383
384 \begin_layout Plain Layout
385 \begin_inset ERT
386 status collapsed
387
388 \begin_layout Plain Layout
389
390
391 \backslash
392 thepage
393 \end_layout
394
395 \end_inset
396
397
398 \end_layout
399
400 \end_inset
401
402
403 \end_layout
404
405 \begin_layout Center Footer
406
407 \end_layout
408
409 \begin_layout Right Footer
410 \begin_inset Argument
411 status open
412
413 \begin_layout Plain Layout
414
415 \end_layout
416
417 \end_inset
418
419
420 \begin_inset ERT
421 status collapsed
422
423 \begin_layout Plain Layout
424
425
426 \backslash
427 thepage
428 \end_layout
429
430 \end_inset
431
432
433 \end_layout
434
435 \begin_layout Standard
436 \begin_inset CommandInset toc
437 LatexCommand tableofcontents
438
439 \end_inset
440
441
442 \end_layout
443
444 \begin_layout Standard
445 \begin_inset Newpage cleardoublepage
446 \end_inset
447
448
449 \end_layout
450
451 \begin_layout Standard
452 \begin_inset ERT
453 status collapsed
454
455 \begin_layout Plain Layout
456
457
458 \backslash
459 pagestyle{plain}
460 \end_layout
461
462 \end_inset
463
464
465 \begin_inset Note Note
466 status collapsed
467
468 \begin_layout Plain Layout
469 The summary should not have page headers.
470 \end_layout
471
472 \end_inset
473
474
475 \end_layout
476
477 \begin_layout Standard
478 \begin_inset Branch Summary
479 status open
480
481 \begin_layout Standard
482 \begin_inset CommandInset include
483 LatexCommand include
484 filename "Summary.lyx"
485
486 \end_inset
487
488
489 \end_layout
490
491 \end_inset
492
493
494 \end_layout
495
496 \begin_layout Standard
497 \begin_inset Newpage cleardoublepage
498 \end_inset
499
500
501 \end_layout
502
503 \begin_layout Standard
504 \begin_inset ERT
505 status collapsed
506
507 \begin_layout Plain Layout
508
509
510 \backslash
511 pagestyle{fancy}
512 \end_layout
513
514 \end_inset
515
516
517 \end_layout
518
519 \begin_layout Left Header
520 \begin_inset Argument
521 status open
522
523 \begin_layout Plain Layout
524 \begin_inset ERT
525 status collapsed
526
527 \begin_layout Plain Layout
528
529
530 \backslash
531 chaptername
532 \end_layout
533
534 \end_inset
535
536
537 \begin_inset space ~
538 \end_inset
539
540
541 \begin_inset ERT
542 status collapsed
543
544 \begin_layout Plain Layout
545
546
547 \backslash
548 thechapter
549 \end_layout
550
551 \end_inset
552
553
554 \end_layout
555
556 \end_inset
557
558
559 \begin_inset ERT
560 status collapsed
561
562 \begin_layout Plain Layout
563
564
565 \backslash
566 rightmark
567 \end_layout
568
569 \end_inset
570
571
572 \begin_inset Note Note
573 status collapsed
574
575 \begin_layout Plain Layout
576 Enable page headers and add the chapter to the header line.
577 \end_layout
578
579 \end_inset
580
581
582 \end_layout
583
584 \begin_layout Standard
585 \begin_inset Branch chapter-1
586 status open
587
588 \begin_layout Standard
589 \begin_inset CommandInset include
590 LatexCommand include
591 filename "chapter-1.lyx"
592
593 \end_inset
594
595
596 \end_layout
597
598 \end_inset
599
600
601 \end_layout
602
603 \begin_layout Standard
604 \begin_inset Branch chapter-2
605 status open
606
607 \begin_layout Standard
608 \begin_inset CommandInset include
609 LatexCommand include
610 filename "chapter-2.lyx"
611
612 \end_inset
613
614
615 \end_layout
616
617 \end_inset
618
619
620 \end_layout
621
622 \begin_layout Standard
623 \begin_inset Newpage cleardoublepage
624 \end_inset
625
626
627 \end_layout
628
629 \begin_layout Left Header
630 \begin_inset Argument
631 status open
632
633 \begin_layout Plain Layout
634
635 \end_layout
636
637 \end_inset
638
639 Acknowledgments
640 \begin_inset Note Note
641 status collapsed
642
643 \begin_layout Plain Layout
644 print 
645 \begin_inset Quotes eld
646 \end_inset
647
648 Acknowledgments
649 \begin_inset Quotes erd
650 \end_inset
651
652  in the left header line
653 \end_layout
654
655 \end_inset
656
657
658 \end_layout
659
660 \begin_layout Right Header
661 \begin_inset Argument
662 status open
663
664 \begin_layout Plain Layout
665 Acknowledgments
666 \end_layout
667
668 \end_inset
669
670
671 \begin_inset Note Note
672 status collapsed
673
674 \begin_layout Plain Layout
675 print 
676 \begin_inset Quotes eld
677 \end_inset
678
679 Acknowledgments
680 \begin_inset Quotes erd
681 \end_inset
682
683  in the right header line
684 \end_layout
685
686 \end_inset
687
688
689 \end_layout
690
691 \begin_layout Standard
692 \begin_inset Branch Acknowledgments
693 status open
694
695 \begin_layout Standard
696 \begin_inset CommandInset include
697 LatexCommand include
698 filename "Acknowledgments.lyx"
699
700 \end_inset
701
702
703 \end_layout
704
705 \end_inset
706
707
708 \end_layout
709
710 \begin_layout Standard
711 \begin_inset Branch Appendix
712 status open
713
714 \begin_layout Standard
715 \begin_inset CommandInset include
716 LatexCommand include
717 filename "Appendix.lyx"
718
719 \end_inset
720
721
722 \end_layout
723
724 \end_inset
725
726
727 \begin_inset Note Note
728 status open
729
730 \begin_layout Plain Layout
731 Appendix is of course optional
732 \end_layout
733
734 \end_inset
735
736
737 \end_layout
738
739 \begin_layout Standard
740 \begin_inset Newpage cleardoublepage
741 \end_inset
742
743
744 \end_layout
745
746 \begin_layout Left Header
747 \begin_inset Argument
748 status open
749
750 \begin_layout Plain Layout
751
752 \end_layout
753
754 \end_inset
755
756
757 \begin_inset ERT
758 status collapsed
759
760 \begin_layout Plain Layout
761
762
763 \backslash
764 rightmark
765 \end_layout
766
767 \end_inset
768
769
770 \begin_inset Note Note
771 status collapsed
772
773 \begin_layout Plain Layout
774 remove the chapter from the header line
775 \end_layout
776
777 \end_inset
778
779
780 \end_layout
781
782 \begin_layout Right Header
783 \begin_inset Argument
784 status open
785
786 \begin_layout Plain Layout
787 \begin_inset ERT
788 status collapsed
789
790 \begin_layout Plain Layout
791
792
793 \backslash
794 leftmark
795 \end_layout
796
797 \end_inset
798
799
800 \end_layout
801
802 \end_inset
803
804
805 \begin_inset Note Note
806 status collapsed
807
808 \begin_layout Plain Layout
809 restore the right header line
810 \end_layout
811
812 \end_inset
813
814
815 \end_layout
816
817 \begin_layout Standard
818 \begin_inset CommandInset bibtex
819 LatexCommand bibtex
820 bibfiles "thesisExample"
821 options "alpha"
822
823 \end_inset
824
825
826 \end_layout
827
828 \begin_layout Standard
829 \begin_inset Newpage cleardoublepage
830 \end_inset
831
832
833 \end_layout
834
835 \begin_layout Left Header
836 \begin_inset Argument
837 status open
838
839 \begin_layout Plain Layout
840
841 \end_layout
842
843 \end_inset
844
845 Nomenclature
846 \begin_inset Note Note
847 status collapsed
848
849 \begin_layout Plain Layout
850 print 
851 \begin_inset Quotes eld
852 \end_inset
853
854 Nomenclature
855 \begin_inset Quotes erd
856 \end_inset
857
858  in the header line
859 \end_layout
860
861 \end_inset
862
863
864 \end_layout
865
866 \begin_layout Right Header
867 \begin_inset Argument
868 status open
869
870 \begin_layout Plain Layout
871 Nomenclature
872 \end_layout
873
874 \end_inset
875
876
877 \end_layout
878
879 \begin_layout Standard
880 \begin_inset CommandInset nomencl_print
881 LatexCommand printnomenclature
882 set_width "custom"
883 width "2.5cm"
884
885 \end_inset
886
887
888 \begin_inset Note Note
889 status open
890
891 \begin_layout Plain Layout
892 The width of the nomenclature entries can be changed by clicking on the
893  nomenclature inset.
894 \end_layout
895
896 \end_inset
897
898
899 \end_layout
900
901 \end_body
902 \end_document