new stuff
[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 % (re)new commands
67 \newcommand{\printimg}[5]{%
68  \begin{figure}[#1]%
69  \begin{center}%
70  \includegraphics[#2]{#3}%
71  \caption{#4}%
72  \label{#5}%
73  \end{center}%
74  \end{figure}%
75 }
76
77 \pagestyle{fancy}
78
79 \renewcommand{\chaptermark}[1]{
80  \markboth{\thechapter.\ #1}{}
81 }
82 \renewcommand{\sectionmark}[1]{
83  \markright{\thesection.\ #1}
84 }
85 \fancyhf{}
86 \fancyhead[LE,RO]{\thepage}
87 \fancyhead[LO]{\nouppercase\rightmark}
88 \fancyhead[RE]{\nouppercase\leftmark}
89
90 % hyphenation
91 \hyphenation{}
92
93 % colors
94 \newrgbcolor{hb}{0.75 0.77 0.89}
95 \newrgbcolor{lbb}{0.75 0.8 0.88}
96 \newrgbcolor{lachs}{1.0 .93 .81}
97 %
98 \newrgbcolor{ctheorem}{0.85 0.85 0.95}
99 \newrgbcolor{cdefinition}{0.95 0.85 0.85}
100 \newrgbcolor{cremark}{0.97 0.97 0.97}
101 \newrgbcolor{cproof}{0.95 0.92 0.95}
102
103 % roman numbers
104 \newcommand{\RM}[1]{\MakeUppercase{\romannumeral #1{}}}
105
106 % vectors are simply represented by bold font characters
107 \renewcommand{\vec}[1]{{\bf #1{}}}
108
109 %
110 % theorem environment
111 %
112 % common
113 \theoremstyle{plain}
114 \theoremseparator{:}
115 \theorembodyfont{\normalfont}
116 \theoremsymbol{}
117 % theorem
118 \shadecolor{ctheorem}
119 \newshadedtheorem{theorem}{Theorem}[section]
120 % definition
121 \shadecolor{cdefinition}
122 \newshadedtheorem{definition}[theorem]{Definition}
123 % remark
124 \shadecolor{cremark}
125 \newshadedtheorem{remark}[theorem]{Remark}
126 % proof
127 \theoremstyle{nonumberplain}
128 \theoremsymbol{\rule{1ex}{1ex}}
129 \shadecolor{cproof}
130 \newtheorem{proof}{Proof}
131
132 % author & title
133 \author{Frank Zirkelbach}
134 \title{Physics compact}
135
136 \begin{document}
137
138 % english
139 \selectlanguage{english}
140
141 \frontmatter{}
142 \include{title}
143 \include{contents}
144
145 \mainmatter{}
146 \include{intro}
147 \include{math}
148 \include{mech}
149 \include{qm}
150 \include{stat}
151 \include{solid}
152 \include{sim}
153
154 \appendix{}
155 \part{Appendices}
156 \include{math_app}
157
158 \backmatter{}
159 \include{lists}
160 \include{literature}
161 \include{ack}
162
163 \end{document}