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