eddfa8f787e98af01922c5c4fe2a0199f2a79f41
[lectures/latex.git] / physics_compact / phys_comp.tex
1 \pdfoutput=0
2 \documentclass[twoside,a4paper,11pt,openany]{book}
3 %\documentclass[twoside,a4paper,11pt,draft]{book}
4 \usepackage[activate]{pdfcprot}
5 \usepackage{verbatim}
6 \usepackage[a4paper,textheight=636pt,textwidth=442pt,includeheadfoot]{geometry}
7 \usepackage[english,german]{babel}
8 \usepackage[latin1]{inputenc}
9 \usepackage[T1]{fontenc}
10 \usepackage{amsmath}
11 \usepackage{ae}
12 \usepackage{aecompl}
13 \usepackage[dvips]{graphicx}
14 \graphicspath{{../img/}}
15 \usepackage{subfigure}
16 \usepackage{color}
17 \usepackage{pstricks}
18 \usepackage{pst-node}
19 \usepackage{rotating}
20 \usepackage{fancyhdr}
21
22 % custom sections
23 \usepackage{titlesec}
24
25 % cites
26 \usepackage[numbers,sort,compress]{natbib}
27
28 % list of publications
29 \usepackage{multibib}
30 %\usepackage[resetlabels]{multibib}
31 \newcites{pub}{List of publications}
32
33 % box around verbatim text
34 \usepackage{fancyvrb}
35
36 % miller
37 \usepackage{miller}
38
39 % in use?
40 \usepackage{slashbox}
41
42 % smaller captions ...
43 \usepackage[small,bf]{caption}
44
45 % units
46 \usepackage{units}
47
48 % shortcuts
49 \newcommand{\si}{Si$_{\text{i}}${}}
50 \newcommand{\ci}{C$_{\text{i}}${}}
51 \newcommand{\cs}{C$_{\text{s}}${}}
52 \newcommand{\degc}[1]{\unit[#1]{$^{\circ}$C}{}}
53 \newcommand{\degk}[1]{\unit[#1]{K}{}}
54 \newcommand{\distn}[1]{\unit[#1]{nm}{}}
55 \newcommand{\dista}[1]{\unit[#1]{\AA}{}}
56 \newcommand{\perc}[1]{\unit[#1]{\%}{}}
57
58 % (re)new commands
59 \newcommand{\printimg}[5]{%
60  \begin{figure}[#1]%
61  \begin{center}%
62  \includegraphics[#2]{#3}%
63  \caption{#4}%
64  \label{#5}%
65  \end{center}%
66  \end{figure}%
67 }
68
69 \pagestyle{fancy}
70
71 \renewcommand{\chaptermark}[1]{
72  \markboth{\thechapter.\ #1}{}
73 }
74 \renewcommand{\sectionmark}[1]{
75  \markright{\thesection.\ #1}
76 }
77 \fancyhf{}
78 \fancyhead[LE,RO]{\thepage}
79 \fancyhead[LO]{\nouppercase\rightmark}
80 \fancyhead[RE]{\nouppercase\leftmark}
81
82 % hyphenation
83 \hyphenation{}
84
85 % colors
86 \newrgbcolor{hb}{0.75 0.77 0.89}
87 \newrgbcolor{lbb}{0.75 0.8 0.88}
88 \newrgbcolor{lachs}{1.0 .93 .81}
89
90 % roman numbers
91 \newcommand{\RM}[1]{\MakeUppercase{\romannumeral #1{}}}
92
93 % vectors are simply represented by bold font characters
94 \renewcommand{\vec}[1]{{\bf #1{}}}
95
96
97 \newtheorem{theorem}{Theorem}[section]
98 \newtheorem{lemma}[theorem]{Lemma}
99 \newtheorem{proposition}[theorem]{Proposition}
100 \newtheorem{corollary}[theorem]{Corollary}
101
102 \newenvironment{proof}[1][Proof]{\begin{trivlist}
103 \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
104 \newenvironment{definition}[1][Definition]{\begin{trivlist}
105 \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
106 \newenvironment{example}[1][Example]{\begin{trivlist}
107 \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
108 \newenvironment{remark}[1][Remark]{\begin{trivlist}
109 \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
110
111 \newcommand{\qed}{\nobreak \ifvmode \relax \else
112 \ifdim\lastskip<1.5em \hskip-\lastskip
113 \hskip1.5em plus0em minus0.5em \fi \nobreak
114 \vrule height0.75em width0.5em depth0.25em\fi}
115
116 % author & title
117 \author{Frank Zirkelbach}
118 \title{Physics compact}
119
120 \begin{document}
121
122 % english
123 \selectlanguage{english}
124
125 \frontmatter{}
126 \include{title}
127 \include{contents}
128 %\include{lists}
129
130 \mainmatter{}
131 \include{intro}
132 \include{math}
133 \include{mech}
134 \include{qm}
135 \include{stat}
136 \include{solid}
137 \include{sim}
138
139 \appendix{}
140 \part{Appendices}
141 \include{math_app}
142
143 \backmatter{}
144 \include{literature}
145 \include{ack}
146
147 \end{document}