]> git.lyx.org Git - lyx.git/blob - lib/examples/thesis/thesis.lyx
Fix pasting insets into math (bug #9302)
[lyx.git] / lib / examples / thesis / thesis.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 474
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 % http://www.ctan.org/tex-archive/macros/latex/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 \begin_modules
63 customHeadersFooters
64 \end_modules
65 \maintain_unincluded_children false
66 \language english
67 \language_package default
68 \inputencoding auto
69 \fontencoding global
70 \font_roman lmodern
71 \font_sans lmss
72 \font_typewriter lmtt
73 \font_default_family default
74 \use_non_tex_fonts false
75 \font_sc false
76 \font_osf false
77 \font_sf_scale 100
78 \font_tt_scale 100
79 \graphics default
80 \default_output_format default
81 \output_sync 0
82 \bibtex_command bibtex
83 \index_command default
84 \float_placement h
85 \paperfontsize 12
86 \spacing single
87 \use_hyperref true
88 \pdf_bookmarks true
89 \pdf_bookmarksnumbered true
90 \pdf_bookmarksopen true
91 \pdf_bookmarksopenlevel 1
92 \pdf_breaklinks false
93 \pdf_pdfborder true
94 \pdf_colorlinks false
95 \pdf_backref false
96 \pdf_pdfusetitle true
97 \pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
98 \papersize a4paper
99 \use_geometry false
100 \use_package amsmath 2
101 \use_package cancel 0
102 \use_package stackrel 0
103 \use_package stmaryrd 0
104 \use_package amssymb 2
105 \use_package mathtools 0
106 \use_package esint 1
107 \use_package mhchem 1
108 \use_package mathdots 1
109 \use_package undertilde 0
110 \cite_engine basic
111 \cite_engine_type default
112 \biblio_style plain
113 \use_bibtopic false
114 \use_indices false
115 \paperorientation portrait
116 \suppress_date true
117 \use_refstyle 0
118 \branch chapter-1
119 \selected 1
120 \filename_suffix 0
121 \color #ffaa00
122 \end_branch
123 \branch chapter-2
124 \selected 1
125 \filename_suffix 0
126 \color #55aaff
127 \end_branch
128 \branch Summary
129 \selected 1
130 \filename_suffix 0
131 \color #7f7f7f
132 \end_branch
133 \branch Acknowledgments
134 \selected 1
135 \filename_suffix 0
136 \color #ffff00
137 \end_branch
138 \branch Appendix
139 \selected 1
140 \filename_suffix 0
141 \color #faf0e6
142 \end_branch
143 \index Index
144 \shortcut idx
145 \color #008000
146 \end_index
147 \secnumdepth 3
148 \tocdepth 2
149 \paragraph_separation skip
150 \defskip medskip
151 \quotes_language english
152 \papercolumns 1
153 \papersides 2
154 \paperpagestyle fancy
155 \tracking_changes false
156 \output_changes false
157 \html_math_output 0
158 \html_css_as_file 0
159 \html_be_strict false
160 \end_header
161
162 \begin_body
163
164 \begin_layout Standard
165 \begin_inset Note Note
166 status open
167
168 \begin_layout Plain Layout
169
170 \series bold
171 Notes:
172 \end_layout
173
174 \begin_layout Itemize
175 When renaming this file, you must also rename it in all its subdocuments
176  in the document settings in the menu 
177 \family sans
178 Document\SpecialChar \menuseparator
179 Settings\SpecialChar \menuseparator
180 Document
181 \begin_inset space ~
182 \end_inset
183
184 Class\SpecialChar \menuseparator
185 Select
186 \begin_inset space ~
187 \end_inset
188
189 default
190 \begin_inset space ~
191 \end_inset
192
193 master
194 \begin_inset space ~
195 \end_inset
196
197 document
198 \end_layout
199
200 \begin_layout Itemize
201 For special settings like the header/footer lines or the font of captions,
202  see also the document preamble (menu 
203 \family sans
204 Document\SpecialChar \menuseparator
205 Settings\SpecialChar \menuseparator
206 LaTeX Preamble
207 \family default
208 ).
209 \end_layout
210
211 \begin_layout Itemize
212 If you change the document language you also need to check the document
213  preamble and replace there the English-specific setting.
214 \end_layout
215
216 \begin_layout Itemize
217 This file is not designed to change the document class.
218  You can use it nevertheless as starting point if you have to use a special
219  docment class provided by your university, but no support can be granted
220  for this transition.
221 \end_layout
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Subject
229 Thesis to get the degree of a doctor of philosophy
230 \begin_inset Note Note
231 status open
232
233 \begin_layout Plain Layout
234 Use the official terms and title page layout of your university instead
235  of this one!
236 \end_layout
237
238 \end_inset
239
240
241 \end_layout
242
243 \begin_layout Title
244 Title of the thesis
245 \end_layout
246
247 \begin_layout Subtitle
248 Subtitle (if you have one)
249 \end_layout
250
251 \begin_layout Author
252 Your name
253 \end_layout
254
255 \begin_layout Date
256 Date (optional)
257 \end_layout
258
259 \begin_layout Publishers
260 \begin_inset Box Boxed
261 position "t"
262 hor_pos "c"
263 has_inner_box 1
264 inner_pos "t"
265 use_parbox 0
266 use_makebox 0
267 width "40col%"
268 special "none"
269 height "1in"
270 height_special "totalheight"
271 status open
272
273 \begin_layout Plain Layout
274 Replace this box e.
275 \begin_inset space \thinspace{}
276 \end_inset
277
278 g.
279 \begin_inset space ~
280 \end_inset
281
282 by the coat of arms of the university.
283 \end_layout
284
285 \end_inset
286
287
288 \begin_inset ERT
289 status collapsed
290
291 \begin_layout Plain Layout
292
293
294 \backslash
295 vspace{
296 \backslash
297 baselineskip}
298 \end_layout
299
300 \end_inset
301
302
303 \begin_inset Newline newline
304 \end_inset
305
306 Bla bla University Testburg
307 \begin_inset Newline newline
308 \end_inset
309
310 Faculty for leading edge science
311 \begin_inset Newline newline
312 \end_inset
313
314 Institute for 
315 \noun on
316 Nobel
317 \noun default
318  price winning research
319 \begin_inset VSpace -3cm
320 \end_inset
321
322
323 \end_layout
324
325 \begin_layout Lowertitleback
326
327 \series bold
328 Dean
329 \series default
330
331 \begin_inset VSpace smallskip
332 \end_inset
333
334
335 \begin_inset Newline newline
336 \end_inset
337
338 Prof.
339  Dr.
340  xxx yyy
341 \begin_inset VSpace bigskip
342 \end_inset
343
344
345 \begin_inset Newline newline
346 \end_inset
347
348
349 \series bold
350 Referees
351 \series default
352
353 \begin_inset VSpace smallskip
354 \end_inset
355
356
357 \begin_inset Newline newline
358 \end_inset
359
360 Prof.
361  Dr.
362  aaa bbb
363 \begin_inset VSpace smallskip
364 \end_inset
365
366
367 \begin_inset Newline newline
368 \end_inset
369
370 Prof.
371  Dr.
372  xxx yyy
373 \begin_inset VSpace bigskip
374 \end_inset
375
376
377 \begin_inset Newline newline
378 \end_inset
379
380
381 \series bold
382 Date of the graduation (optional)
383 \series default
384
385 \begin_inset VSpace smallskip
386 \end_inset
387
388
389 \begin_inset Newline newline
390 \end_inset
391
392 xx.yy.zzzz
393 \end_layout
394
395 \begin_layout Dedication
396 Dedication, cite from a famous person, or whatever you like (optional)
397 \end_layout
398
399 \begin_layout Standard
400 \begin_inset Newpage cleardoublepage
401 \end_inset
402
403
404 \end_layout
405
406 \begin_layout Left Header
407 \begin_inset ERT
408 status collapsed
409
410 \begin_layout Plain Layout
411
412
413 \backslash
414 rightmark
415 \end_layout
416
417 \end_inset
418
419
420 \begin_inset Note Note
421 status collapsed
422
423 \begin_layout Plain Layout
424 Defines the header line.
425  If your university does not have special rules what must be in the header/foote
426 r, leave the settings as they are.
427 \end_layout
428
429 \begin_layout Plain Layout
430 Quick explanation:
431 \end_layout
432
433 \begin_layout Itemize
434 Stuff inside the 
435 \family sans
436 opt
437 \family default
438  inset appears on even pages, stuff outside the 
439 \family sans
440 opt
441 \family default
442  inset appears on uneven pages.
443 \end_layout
444
445 \begin_layout Itemize
446
447 \series bold
448
449 \backslash
450 rightmark
451 \series default
452  is stuff that usualy appears on the right side.
453  This is normally the title of the current chapter or section.
454 \end_layout
455
456 \begin_layout Itemize
457
458 \series bold
459
460 \backslash
461 leftmark
462 \series default
463  is the opposite of 
464 \series bold
465
466 \backslash
467 rightmark
468 \series default
469 .
470 \end_layout
471
472 \begin_layout Itemize
473
474 \series bold
475
476 \backslash
477 thepage
478 \series default
479  prints the current page number, 
480 \series bold
481
482 \backslash
483 thechapter
484 \series default
485  the current chapter number, 
486 \series bold
487
488 \backslash
489 thesection
490 \series default
491  the current...
492 \end_layout
493
494 \begin_layout Itemize
495 Further adjustments can be made in the LaTeX preamble of thios document
496  in the menu Document\SpecialChar \menuseparator
497 Settings.
498  For a brief description how the header/footer lines can be modified, see
499  the manual of the LaTeX package 
500 \series bold
501 fancyhdr
502 \series default
503
504 \begin_inset Flex URL
505 status collapsed
506
507 \begin_layout Plain Layout
508
509 http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf
510 \end_layout
511
512 \end_inset
513
514
515 \end_layout
516
517 \end_inset
518
519
520 \end_layout
521
522 \begin_layout Right Header
523 \begin_inset Argument 1
524 status open
525
526 \begin_layout Plain Layout
527 \begin_inset ERT
528 status collapsed
529
530 \begin_layout Plain Layout
531
532
533 \backslash
534 leftmark
535 \end_layout
536
537 \end_inset
538
539
540 \end_layout
541
542 \end_inset
543
544
545 \end_layout
546
547 \begin_layout Left Footer
548 \begin_inset Argument 1
549 status open
550
551 \begin_layout Plain Layout
552 \begin_inset ERT
553 status collapsed
554
555 \begin_layout Plain Layout
556
557
558 \backslash
559 thepage
560 \end_layout
561
562 \end_inset
563
564
565 \end_layout
566
567 \end_inset
568
569
570 \end_layout
571
572 \begin_layout Center Footer
573
574 \end_layout
575
576 \begin_layout Right Footer
577 \begin_inset Argument 1
578 status open
579
580 \begin_layout Plain Layout
581
582 \end_layout
583
584 \end_inset
585
586
587 \begin_inset ERT
588 status collapsed
589
590 \begin_layout Plain Layout
591
592
593 \backslash
594 thepage
595 \end_layout
596
597 \end_inset
598
599
600 \end_layout
601
602 \begin_layout Standard
603 \begin_inset CommandInset toc
604 LatexCommand tableofcontents
605
606 \end_inset
607
608
609 \end_layout
610
611 \begin_layout Standard
612 \begin_inset Newpage cleardoublepage
613 \end_inset
614
615
616 \end_layout
617
618 \begin_layout Standard
619 \begin_inset ERT
620 status collapsed
621
622 \begin_layout Plain Layout
623
624
625 \backslash
626 pagestyle{plain}
627 \end_layout
628
629 \end_inset
630
631
632 \begin_inset Note Note
633 status collapsed
634
635 \begin_layout Plain Layout
636 Usually the summary should not have page headers.
637  If it should, remove this TeX code.
638 \end_layout
639
640 \end_inset
641
642
643 \end_layout
644
645 \begin_layout Standard
646 \begin_inset Branch Summary
647 status open
648
649 \begin_layout Standard
650 \begin_inset CommandInset include
651 LatexCommand include
652 filename "Summary.lyx"
653
654 \end_inset
655
656
657 \end_layout
658
659 \end_inset
660
661
662 \end_layout
663
664 \begin_layout Standard
665 \begin_inset Newpage cleardoublepage
666 \end_inset
667
668
669 \end_layout
670
671 \begin_layout Standard
672 \begin_inset ERT
673 status collapsed
674
675 \begin_layout Plain Layout
676
677
678 \backslash
679 pagestyle{fancy}
680 \end_layout
681
682 \end_inset
683
684
685 \begin_inset Note Note
686 status collapsed
687
688 \begin_layout Plain Layout
689 Reset page style to get page headers again.
690 \end_layout
691
692 \end_inset
693
694
695 \end_layout
696
697 \begin_layout Left Header
698 \begin_inset Argument 1
699 status open
700
701 \begin_layout Plain Layout
702 \begin_inset ERT
703 status collapsed
704
705 \begin_layout Plain Layout
706
707
708 \backslash
709 chaptername
710 \end_layout
711
712 \end_inset
713
714
715 \begin_inset space ~
716 \end_inset
717
718
719 \begin_inset ERT
720 status collapsed
721
722 \begin_layout Plain Layout
723
724
725 \backslash
726 thechapter
727 \end_layout
728
729 \end_inset
730
731
732 \end_layout
733
734 \end_inset
735
736
737 \begin_inset ERT
738 status collapsed
739
740 \begin_layout Plain Layout
741
742
743 \backslash
744 rightmark
745 \end_layout
746
747 \end_inset
748
749
750 \begin_inset Note Note
751 status collapsed
752
753 \begin_layout Plain Layout
754 Enable page headers and add the chapter to the header line.
755 \end_layout
756
757 \end_inset
758
759
760 \end_layout
761
762 \begin_layout Standard
763 \begin_inset Branch chapter-1
764 status open
765
766 \begin_layout Standard
767 \begin_inset CommandInset include
768 LatexCommand include
769 filename "chapter-1.lyx"
770
771 \end_inset
772
773
774 \end_layout
775
776 \end_inset
777
778
779 \end_layout
780
781 \begin_layout Standard
782 \begin_inset Branch chapter-2
783 status open
784
785 \begin_layout Standard
786 \begin_inset CommandInset include
787 LatexCommand include
788 filename "chapter-2.lyx"
789
790 \end_inset
791
792
793 \end_layout
794
795 \end_inset
796
797
798 \end_layout
799
800 \begin_layout Standard
801 \begin_inset Newpage cleardoublepage
802 \end_inset
803
804
805 \end_layout
806
807 \begin_layout Left Header
808 \begin_inset Argument 1
809 status open
810
811 \begin_layout Plain Layout
812
813 \end_layout
814
815 \end_inset
816
817 Acknowledgments
818 \begin_inset Note Note
819 status collapsed
820
821 \begin_layout Plain Layout
822 print 
823 \begin_inset Quotes eld
824 \end_inset
825
826 Acknowledgments
827 \begin_inset Quotes erd
828 \end_inset
829
830  in the left header line
831 \end_layout
832
833 \end_inset
834
835
836 \end_layout
837
838 \begin_layout Right Header
839 \begin_inset Argument 1
840 status open
841
842 \begin_layout Plain Layout
843 Acknowledgments
844 \end_layout
845
846 \end_inset
847
848
849 \begin_inset Note Note
850 status collapsed
851
852 \begin_layout Plain Layout
853 print 
854 \begin_inset Quotes eld
855 \end_inset
856
857 Acknowledgments
858 \begin_inset Quotes erd
859 \end_inset
860
861  in the right header line
862 \end_layout
863
864 \end_inset
865
866
867 \end_layout
868
869 \begin_layout Standard
870 \begin_inset Branch Acknowledgments
871 status open
872
873 \begin_layout Standard
874 \begin_inset CommandInset include
875 LatexCommand include
876 filename "Acknowledgments.lyx"
877
878 \end_inset
879
880
881 \end_layout
882
883 \end_inset
884
885
886 \end_layout
887
888 \begin_layout Standard
889 \begin_inset Branch Appendix
890 status open
891
892 \begin_layout Standard
893 \start_of_appendix
894 \begin_inset CommandInset include
895 LatexCommand include
896 filename "Appendix.lyx"
897
898 \end_inset
899
900
901 \end_layout
902
903 \end_inset
904
905
906 \begin_inset Note Note
907 status open
908
909 \begin_layout Plain Layout
910 Appendix is of course optional
911 \end_layout
912
913 \end_inset
914
915
916 \end_layout
917
918 \begin_layout Standard
919 \begin_inset Newpage cleardoublepage
920 \end_inset
921
922
923 \end_layout
924
925 \begin_layout Left Header
926 \begin_inset Argument 1
927 status open
928
929 \begin_layout Plain Layout
930
931 \end_layout
932
933 \end_inset
934
935
936 \begin_inset ERT
937 status collapsed
938
939 \begin_layout Plain Layout
940
941
942 \backslash
943 rightmark
944 \end_layout
945
946 \end_inset
947
948
949 \begin_inset Note Note
950 status collapsed
951
952 \begin_layout Plain Layout
953 remove the chapter from the header line
954 \end_layout
955
956 \end_inset
957
958
959 \end_layout
960
961 \begin_layout Right Header
962 \begin_inset Argument 1
963 status open
964
965 \begin_layout Plain Layout
966 \begin_inset ERT
967 status collapsed
968
969 \begin_layout Plain Layout
970
971
972 \backslash
973 leftmark
974 \end_layout
975
976 \end_inset
977
978
979 \end_layout
980
981 \end_inset
982
983
984 \begin_inset Note Note
985 status collapsed
986
987 \begin_layout Plain Layout
988 restore the right header line
989 \end_layout
990
991 \end_inset
992
993
994 \end_layout
995
996 \begin_layout Standard
997 \begin_inset CommandInset bibtex
998 LatexCommand bibtex
999 bibfiles "thesisExample"
1000 options "alpha"
1001
1002 \end_inset
1003
1004
1005 \end_layout
1006
1007 \begin_layout Standard
1008 \begin_inset Newpage cleardoublepage
1009 \end_inset
1010
1011
1012 \end_layout
1013
1014 \begin_layout Left Header
1015 \begin_inset Argument 1
1016 status open
1017
1018 \begin_layout Plain Layout
1019
1020 \end_layout
1021
1022 \end_inset
1023
1024 Nomenclature
1025 \begin_inset Note Note
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 print 
1030 \begin_inset Quotes eld
1031 \end_inset
1032
1033 Nomenclature
1034 \begin_inset Quotes erd
1035 \end_inset
1036
1037  in the header line
1038 \end_layout
1039
1040 \end_inset
1041
1042
1043 \end_layout
1044
1045 \begin_layout Right Header
1046 \begin_inset Argument 1
1047 status open
1048
1049 \begin_layout Plain Layout
1050 Nomenclature
1051 \end_layout
1052
1053 \end_inset
1054
1055
1056 \end_layout
1057
1058 \begin_layout Standard
1059 \begin_inset CommandInset nomencl_print
1060 LatexCommand printnomenclature
1061 set_width "custom"
1062 width "2.5cm"
1063
1064 \end_inset
1065
1066
1067 \begin_inset Note Note
1068 status open
1069
1070 \begin_layout Plain Layout
1071 The width of the nomenclature entries can be changed by clicking on the
1072  nomenclature inset.
1073 \end_layout
1074
1075 \end_inset
1076
1077
1078 \end_layout
1079
1080 \end_body
1081 \end_document