11.07.2015 Aufrufe

Paket zur Erstellung wissenschaftlicher Arbeiten in LaTeX

Paket zur Erstellung wissenschaftlicher Arbeiten in LaTeX

Paket zur Erstellung wissenschaftlicher Arbeiten in LaTeX

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

Anhang A504: % Param3: This obligational parameter def<strong>in</strong>es the code505: % list<strong>in</strong>g’s reference label to be used.506: \newcommand{\@lstsetup}[3]{%507: % Setup additional marg<strong>in</strong>!508: \setlength{\@lstmarg<strong>in</strong>}{\@lstborder}509: % Add additional <strong>in</strong>dent to the list<strong>in</strong>g (if needed).510: \addtolength{\@lstmarg<strong>in</strong>}{#1}511: % Setup list<strong>in</strong>g’s left and right <strong>in</strong>dent!512: \lstset{xleftmarg<strong>in</strong>=\@lstmarg<strong>in</strong>}513: \lstset{xrightmarg<strong>in</strong>=\@lstmarg<strong>in</strong>}514: % Set list<strong>in</strong>g’s caption.515: \lstset{caption={#2}}516: % Set list<strong>in</strong>g’s reference label.517: \lstset{label=#3}518: }%519: %-----------------------------------------------------------520: % List<strong>in</strong>gs font size setup macro.521: %-----------------------------------------------------------522: % Def<strong>in</strong>ition of macro which adjusts the code list<strong>in</strong>g’s font523: % size to be used. It def<strong>in</strong>es one optional parameter.524: % Param1: Represents the font size to be used with code525: % list<strong>in</strong>gs. The follow<strong>in</strong>g pre-def<strong>in</strong>ed key words are526: % available to this parameter:527: % small: A smaller font size will be used. This528: % parameter uses \scriptsize and allows529: % about 74 characters per code l<strong>in</strong>e.530: % normal: The normal (=default) font size will be531: % used. This parameter uses \footnotesize532: % and allows about 60 characters per code533: % l<strong>in</strong>e.534: % large: A bigger font size will be used. This535: % parameter uses \small and allows about 55536: % characters per code l<strong>in</strong>e.537: \newcommand{\List<strong>in</strong>gFontSize}[1][normal]{%538: % Option [normal] allows about 60 characters.539: \ifthenelse{\equal{#1}{normal}}540: {\lstset{basicstyle=\footnotesize\ttfamily}}541: % Option [large] allows about 55 characters.542: {\ifthenelse{\equal{#1}{large}}543: {\lstset{basicstyle=\small\ttfamily}}544: % Option [small] allows about 74 characters.545: {\ifthenelse{\equal{#1}{small}}546: {\lstset{basicstyle=\scriptsize\ttfamily}}547: {\lstset{basicstyle=\footnotesize\ttfamily}}}}548: }%549: %-----------------------------------------------------------550: % General setup for all list<strong>in</strong>gs.551: %-----------------------------------------------------------552: % Def<strong>in</strong>ition of macro which restore all pre-configured code553: % list<strong>in</strong>g sett<strong>in</strong>gs because the user has the opportunity to554: % change all code list<strong>in</strong>g sett<strong>in</strong>g through macro \lstset139

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!