X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Flatex.git;a=blobdiff_plain;f=physics_compact%2Fphys_comp.tex;h=b4d5e66b9e3867d86592127041b8afa58eb3cd98;hp=c82c627c6b8442396356a23ea8e23e5f0e19847c;hb=eac23ae428984d20c62851681234b206ec1e3dc7;hpb=4359ea153bdf6212f1ecd120306586c5e0411c97 diff --git a/physics_compact/phys_comp.tex b/physics_compact/phys_comp.tex index c82c627..b4d5e66 100644 --- a/physics_compact/phys_comp.tex +++ b/physics_compact/phys_comp.tex @@ -12,7 +12,7 @@ \usepackage{ae} \usepackage{aecompl} \usepackage[dvips]{graphicx} -\graphicspath{{../img/}} +\graphicspath{{./img/}} \usepackage{subfigure} \usepackage{color} \usepackage{pstricks} @@ -38,7 +38,7 @@ \usepackage{miller} % in use? -\usepackage{slashbox} +%\usepackage{slashbox} % smaller captions ... \usepackage[small,bf]{caption} @@ -46,6 +46,13 @@ % 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}}${}} @@ -56,6 +63,10 @@ \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]% @@ -87,6 +98,11 @@ \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{}}} @@ -94,25 +110,28 @@ % vectors are simply represented by bold font characters \renewcommand{\vec}[1]{{\bf #1{}}} - -\newtheorem{theorem}{Theorem}[section] -\newtheorem{lemma}[theorem]{Lemma} -\newtheorem{proposition}[theorem]{Proposition} -\newtheorem{corollary}[theorem]{Corollary} - -\newenvironment{proof}[1][Proof]{\begin{trivlist} -\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}} -\newenvironment{definition}[1][Definition]{\begin{trivlist} -\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}} -\newenvironment{example}[1][Example]{\begin{trivlist} -\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}} -\newenvironment{remark}[1][Remark]{\begin{trivlist} -\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}} - -\newcommand{\qed}{\nobreak \ifvmode \relax \else -\ifdim\lastskip<1.5em \hskip-\lastskip -\hskip1.5em plus0em minus0.5em \fi \nobreak -\vrule height0.75em width0.5em depth0.25em\fi} +% +% 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} @@ -126,7 +145,6 @@ \frontmatter{} \include{title} \include{contents} -%\include{lists} \mainmatter{} \include{intro} @@ -142,6 +160,7 @@ \include{math_app} \backmatter{} +\include{lists} \include{literature} \include{ack}