pp + so started
[lectures/latex.git] / physics_compact / phys_comp.tex
index a7b42a5..b4d5e66 100644 (file)
@@ -1,5 +1,5 @@
 \pdfoutput=0
-\documentclass[twoside,a4paper,11pt]{book}
+\documentclass[twoside,a4paper,11pt,openany]{book}
 %\documentclass[twoside,a4paper,11pt,draft]{book}
 \usepackage[activate]{pdfcprot}
 \usepackage{verbatim}
@@ -8,10 +8,11 @@
 \usepackage[latin1]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{amsmath}
+\usepackage{amssymb}
 \usepackage{ae}
 \usepackage{aecompl}
 \usepackage[dvips]{graphicx}
-\graphicspath{{../img/}}
+\graphicspath{{./img/}}
 \usepackage{subfigure}
 \usepackage{color}
 \usepackage{pstricks}
@@ -37,7 +38,7 @@
 \usepackage{miller}
 
 % in use?
-\usepackage{slashbox}
+%\usepackage{slashbox}
 
 % smaller captions ...
 \usepackage[small,bf]{caption}
 % units
 \usepackage{units}
 
+% theorem environment
+\usepackage{framed}
+\usepackage[framed,thref,thmmarks,amsmath,hyperref]{ntheorem}
+
+% hyperlinks
+\usepackage[colorlinks=true,linkcolor=black,citecolor=black]{hyperref}
+
 % shortcuts
 \newcommand{\si}{Si$_{\text{i}}${}}
 \newcommand{\ci}{C$_{\text{i}}${}}
 \newcommand{\dista}[1]{\unit[#1]{\AA}{}}
 \newcommand{\perc}[1]{\unit[#1]{\%}{}}
 
+\newcommand{\bra}[1]{\langle #1 |}
+\newcommand{\ket}[1]{| #1 \rangle}
+\newcommand{\braket}[2]{\langle #1 | #2 \rangle}
+
 % (re)new commands
 \newcommand{\printimg}[5]{%
  \begin{figure}[#1]%
 \newrgbcolor{hb}{0.75 0.77 0.89}
 \newrgbcolor{lbb}{0.75 0.8 0.88}
 \newrgbcolor{lachs}{1.0 .93 .81}
+%
+\newrgbcolor{ctheorem}{0.85 0.85 0.95}
+\newrgbcolor{cdefinition}{0.95 0.85 0.85}
+\newrgbcolor{cremark}{0.97 0.97 0.97}
+\newrgbcolor{cproof}{0.95 0.92 0.95}
 
 % roman numbers
 \newcommand{\RM}[1]{\MakeUppercase{\romannumeral #1{}}}
 % vectors are simply represented by bold font characters
 \renewcommand{\vec}[1]{{\bf #1{}}}
 
+%
+% theorem environment
+%
+% common
+\theoremstyle{plain}
+\theoremseparator{:}
+\theorembodyfont{\normalfont}
+\theoremsymbol{}
+% theorem
+\shadecolor{ctheorem}
+\newshadedtheorem{theorem}{Theorem}[section]
+% definition
+\shadecolor{cdefinition}
+\newshadedtheorem{definition}[theorem]{Definition}
+% remark
+\shadecolor{cremark}
+\newshadedtheorem{remark}[theorem]{Remark}
+% proof
+\theoremstyle{nonumberplain}
+\theoremsymbol{\rule{1ex}{1ex}}
+\shadecolor{cproof}
+\newtheorem{proof}{Proof}
+
 % author & title
 \author{Frank Zirkelbach}
 \title{Physics compact}
 \frontmatter{}
 \include{title}
 \include{contents}
-%\include{lists}
 
 \mainmatter{}
 \include{intro}
+\include{math}
 \include{mech}
 \include{qm}
 \include{stat}
 \include{solid}
+\include{sim}
 
 \appendix{}
-\include{app}
+\part{Appendices}
+\include{math_app}
 
 \backmatter{}
+\include{lists}
 \include{literature}
 \include{ack}