more so
[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{amssymb}
12 \usepackage{ae}
13 \usepackage{aecompl}
14 \usepackage[dvips]{graphicx}
15 \graphicspath{{./img/}}
16 \usepackage{subfigure}
17 \usepackage{color}
18 \usepackage{pstricks}
19 \usepackage{pst-node}
20 \usepackage{rotating}
21 \usepackage{fancyhdr}
22
23 % custom sections
24 \usepackage{titlesec}
25
26 % cites
27 \usepackage[numbers,sort,compress]{natbib}
28
29 % list of publications
30 \usepackage{multibib}
31 %\usepackage[resetlabels]{multibib}
32 \newcites{pub}{List of publications}
33
34 % box around verbatim text
35 \usepackage{fancyvrb}
36
37 % miller
38 \usepackage{miller}
39
40 % in use?
41 %\usepackage{slashbox}
42
43 % smaller captions ...
44 \usepackage[small,bf]{caption}
45
46 % units
47 \usepackage{units}
48
49 % theorem environment
50 \usepackage{framed}
51 \usepackage[framed,thref,thmmarks,amsmath,hyperref]{ntheorem}
52
53 % hyperlinks
54 \usepackage[colorlinks=true,linkcolor=black,citecolor=black]{hyperref}
55
56 % shortcuts
57 \newcommand{\si}{Si$_{\text{i}}${}}
58 \newcommand{\ci}{C$_{\text{i}}${}}
59 \newcommand{\cs}{C$_{\text{s}}${}}
60 \newcommand{\degc}[1]{\unit[#1]{$^{\circ}$C}{}}
61 \newcommand{\degk}[1]{\unit[#1]{K}{}}
62 \newcommand{\distn}[1]{\unit[#1]{nm}{}}
63 \newcommand{\dista}[1]{\unit[#1]{\AA}{}}
64 \newcommand{\perc}[1]{\unit[#1]{\%}{}}
65
66 \newcommand{\bra}[1]{\langle #1 |}
67 \newcommand{\ket}[1]{| #1 \rangle}
68 \newcommand{\braket}[2]{\langle #1 | #2 \rangle}
69
70 % (re)new commands
71 \newcommand{\printimg}[5]{%
72  \begin{figure}[#1]%
73  \begin{center}%
74  \includegraphics[#2]{#3}%
75  \caption{#4}%
76  \label{#5}%
77  \end{center}%
78  \end{figure}%
79 }
80
81 \pagestyle{fancy}
82
83 \renewcommand{\chaptermark}[1]{
84  \markboth{\thechapter.\ #1}{}
85 }
86 \renewcommand{\sectionmark}[1]{
87  \markright{\thesection.\ #1}
88 }
89 \fancyhf{}
90 \fancyhead[LE,RO]{\thepage}
91 \fancyhead[LO]{\nouppercase\rightmark}
92 \fancyhead[RE]{\nouppercase\leftmark}
93
94 % hyphenation
95 \hyphenation{}
96
97 % colors
98 \newrgbcolor{hb}{0.75 0.77 0.89}
99 \newrgbcolor{lbb}{0.75 0.8 0.88}
100 \newrgbcolor{lachs}{1.0 .93 .81}
101 %
102 \newrgbcolor{ctheorem}{0.85 0.85 0.95}
103 \newrgbcolor{cdefinition}{0.95 0.85 0.85}
104 \newrgbcolor{cremark}{0.97 0.97 0.97}
105 \newrgbcolor{cproof}{0.95 0.92 0.95}
106
107 % roman numbers
108 \newcommand{\RM}[1]{\MakeUppercase{\romannumeral #1{}}}
109
110 % vectors are simply represented by bold font characters
111 \renewcommand{\vec}[1]{{\bf #1{}}}
112
113 %
114 % theorem environment
115 %
116 % common
117 \theoremstyle{plain}
118 \theoremseparator{:}
119 \theorembodyfont{\normalfont}
120 \theoremsymbol{}
121 % theorem
122 \shadecolor{ctheorem}
123 \newshadedtheorem{theorem}{Theorem}[section]
124 % definition
125 \shadecolor{cdefinition}
126 \newshadedtheorem{definition}[theorem]{Definition}
127 % remark
128 \shadecolor{cremark}
129 \newshadedtheorem{remark}[theorem]{Remark}
130 % proof
131 \theoremstyle{nonumberplain}
132 \theoremsymbol{\rule{1ex}{1ex}}
133 \shadecolor{cproof}
134 \newtheorem{proof}{Proof}
135
136 % author & title
137 \author{Frank Zirkelbach}
138 \title{Physics compact}
139
140 \begin{document}
141
142 % english
143 \selectlanguage{english}
144
145 \frontmatter{}
146 \include{title}
147 \include{contents}
148
149 \mainmatter{}
150 \include{intro}
151 \include{math}
152 \include{mech}
153 \include{qm}
154 \include{stat}
155 \include{solid}
156 \include{sim}
157
158 \appendix{}
159 \part{Appendices}
160 \include{math_app}
161
162 \backmatter{}
163 \include{lists}
164 \include{literature}
165 \include{ack}
166
167 \end{document}