ncg

bachelorthesis in physics
git clone git://popovic.xyz/ncg.git
Log | Files | Refs

packages.tex (7231B)


      1 \usepackage[utf8]{inputenc}
      2 \usepackage{mathptmx}
      3 
      4 %\usepackage{ngerman}	% Sprachanpassung Deutsch
      5 
      6 \usepackage{graphicx}
      7 \usepackage{geometry}
      8 %\geometry{a4paper,left=25mm,right=25mm, top=20mm, bottom=30mm}
      9 \geometry{a4paper, top=15mm}
     10 
     11 \usepackage{subcaption}
     12 \usepackage[shortlabels]{enumitem}
     13 \usepackage{amssymb}
     14 \usepackage{amsthm}
     15 \usepackage{mathtools}
     16 \usepackage{braket}
     17 \usepackage{bbm}
     18 \usepackage{graphicx}
     19 \usepackage{float}
     20 \usepackage{yhmath}
     21 \usepackage{tikz}
     22 \usetikzlibrary{calc,decorations.markings}
     23 \usepackage[colorlinks=true,naturalnames=true,plainpages=false,pdfpagelabels=true]{hyperref}
     24 %\usepackage[parfill]{parskip}
     25 \usepackage{lipsum}
     26 
     27 \newcounter{definition}
     28 \newcounter{theorem}
     29 \newcounter{lemma}
     30 \newcounter{proposition}
     31 \numberwithin{equation}{section}
     32 
     33 \usepackage[backend=biber, sorting=none]{biblatex}
     34 \addbibresource{thesis.bib}
     35 
     36 \usepackage{tikz}
     37 \usepackage{tcolorbox}
     38 \tcbuselibrary{skins,breakable}
     39 
     40 \colorlet{colexam}{black}
     41 \newtcolorbox[use counter=definition]{mydefinition}{
     42     empty,
     43     title={Definition~\thetcbcounter},
     44     attach boxed title to top left,
     45     fontupper=\sl,
     46     boxed title style={
     47         empty,
     48         size=minimal,
     49         bottomrule=1pt,
     50         top=1pt,
     51         left skip=0cm,
     52         overlay=
     53             {\draw[colexam,line width=1pt]([yshift=-0.4cm]frame.north
     54         west)--([yshift=-0.4cm]frame.north east);}},
     55             coltitle=colexam,
     56             fonttitle=\bfseries,
     57             before=\par\medskip\noindent,
     58             parbox=false,
     59             boxsep=-1pt,
     60             left=0.75cm,
     61             right=3mm,
     62             top=4pt,
     63             breakable,
     64             pad at break*=0mm,
     65             vfill before first,
     66             overlay unbroken={
     67                 \draw[colexam,line width=1pt]
     68                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
     69                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
     70                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
     71             overlay first={
     72                 \draw[colexam,line width=1pt]
     73                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
     74                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
     75                 --([xshift=0.6cm]frame.south west); },
     76             overlay last={
     77                 \draw[colexam,line width=1pt]
     78                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
     79                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
     80                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); }
     81 }
     82 
     83 \newtcolorbox[use counter=theorem]{mytheorem}{
     84     empty,
     85     title={Theorem~\thetcbcounter},
     86     attach boxed title to top left,
     87     fontupper=\sl,
     88     boxed title style={
     89         empty,
     90         size=minimal,
     91         bottomrule=1pt,
     92         top=1pt,
     93         left skip=0cm,
     94         overlay=
     95             {\draw[colexam,line width=1pt]([yshift=-0.4cm]frame.north
     96         west)--([yshift=-0.4cm]frame.north east);}},
     97             coltitle=colexam,
     98             fonttitle=\bfseries,
     99             before=\par\medskip\noindent,
    100             parbox=false,
    101             boxsep=0pt,
    102             left=0.75cm,
    103             right=3mm,
    104             top=4pt,
    105             breakable,
    106             pad at break*=0mm,
    107             vfill before first,
    108             overlay unbroken={
    109                 \draw[colexam,line width=1pt]
    110                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    111                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    112                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
    113             overlay first={
    114                 \draw[colexam,line width=1pt]
    115                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    116                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    117                 --([xshift=0.6cm]frame.south west); },
    118             overlay last={
    119                 \draw[colexam,line width=1pt]
    120                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    121                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    122                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
    123 }
    124 
    125 \newtcolorbox[use counter=lemma]{mylemma}{
    126     empty,
    127     title={Lemma~\thetcbcounter},
    128     attach boxed title to top left,
    129     fontupper=\sl,
    130     boxed title style={
    131         empty,
    132         size=minimal,
    133         bottomrule=1pt,
    134         top=1pt,
    135         left skip=0cm,
    136         overlay=
    137             {\draw[colexam,line width=1pt]([yshift=-0.4cm]frame.north
    138         west)--([yshift=-0.4cm]frame.north east);}},
    139             coltitle=colexam,
    140             fonttitle=\bfseries,
    141             before=\par\medskip\noindent,
    142             parbox=false,
    143             boxsep=0pt,
    144             left=0.75cm,
    145             right=3mm,
    146             top=4pt,
    147             breakable,
    148             pad at break*=0mm,
    149             vfill before first,
    150             overlay unbroken={
    151                 \draw[colexam,line width=1pt]
    152                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    153                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    154                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
    155             overlay first={
    156                 \draw[colexam,line width=1pt]
    157                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    158                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    159                 --([xshift=0.6cm]frame.south west); },
    160             overlay last={
    161                 \draw[colexam,line width=1pt]
    162                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    163                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    164                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
    165 }
    166 
    167 \newtcolorbox[use counter=proposition]{myproposition}{
    168     empty,
    169     title={Proposition~\thetcbcounter},
    170     attach boxed title to top left,
    171     fontupper=\sl,
    172     boxed title style={
    173         empty,
    174         size=minimal,
    175         bottomrule=-1pt,
    176         top=1pt,
    177         left skip=0cm,
    178         overlay=
    179             {\draw[colexam,line width=1pt]([yshift=-0.4cm]frame.north
    180         west)--([yshift=-0.4cm]frame.north east);}},
    181             coltitle=colexam,
    182             fonttitle=\bfseries,
    183             before=\par\medskip\noindent,
    184             parbox=false,
    185             boxsep=0pt,
    186             left=0.75cm,
    187             right=3mm,
    188             top=4pt,
    189             breakable,
    190             pad at break*=0mm,
    191             vfill before first,
    192             overlay unbroken={
    193                 \draw[colexam,line width=1pt]
    194                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    195                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    196                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
    197             overlay first={
    198                 \draw[colexam,line width=1pt]
    199                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    200                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    201                 --([xshift=0.6cm]frame.south west); },
    202             overlay last={
    203                 \draw[colexam,line width=1pt]
    204                 ([xshift=0.6cm, yshift=-0.5pt]frame.south
    205                 west)--([xshift=0.6cm,yshift=-1pt]frame.north west)
    206                 --([xshift=0.6cm]frame.south west)--([xshift=-13cm]frame.south east); },
    207 }