8a9760ab2e8161709c4b7f04d249e60e35cd9b23
[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,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.9 0.9 0.95}
99 \newrgbcolor{cdefinition}{0.95 0.9 0.9}
100 \newrgbcolor{cremark}{0.95 0.95 0.9}
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 % theorem
117 \theoremsymbol{\ensuremath{\diamondsuit}}
118 \shadecolor{ctheorem}
119 \newshadedtheorem{theorem}{Theorem}[section]
120 % definition
121 \theoremsymbol{\ensuremath{\clubsuit}}
122 \shadecolor{cdefinition}
123 \newshadedtheorem{definition}[theorem]{Definition}
124 % remark
125 \theoremsymbol{\ensuremath{\diamondsuit}}
126 \shadecolor{cremark}
127 \newshadedtheorem{remark}[theorem]{Remark}
128 % proof
129 \theoremstyle{nonumberplain}
130 \theoremsymbol{\rule{1ex}{1ex}}
131 \shadecolor{cproof}
132 \newshadedtheorem{proof}{Proof}
133
134 % author & title
135 \author{Frank Zirkelbach}
136 \title{Physics compact}
137
138 \begin{document}
139
140 % english
141 \selectlanguage{english}
142
143 \frontmatter{}
144 \include{title}
145 \include{contents}
146
147 \mainmatter{}
148 \include{intro}
149 \include{math}
150 \include{mech}
151 \include{qm}
152 \include{stat}
153 \include{solid}
154 \include{sim}
155
156 \appendix{}
157 \part{Appendices}
158 \include{math_app}
159
160 \backmatter{}
161 \include{lists}
162 \include{literature}
163 \include{ack}
164
165 \end{document}