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 A453: % Def<strong>in</strong>ition of an <strong>in</strong>ternal totally use marg<strong>in</strong> for code454: % list<strong>in</strong>gs. The default value is set to 0pt and will be455: % calculated at runtime.456: \newlength\@lstmarg<strong>in</strong>457: \setlength{\@lstmarg<strong>in</strong>}{0pt}458: %-----------------------------------------------------------459: % Def<strong>in</strong>ition of list<strong>in</strong>g environment.460: %-----------------------------------------------------------461: % Def<strong>in</strong>ition of an environment which supports code list<strong>in</strong>gs462: % directly written with<strong>in</strong> the document. It def<strong>in</strong>es two463: % obligational parameters and supports one optional parameter464: % to setup the code list<strong>in</strong>g.465: % Param1: Represents the marg<strong>in</strong> to be used around the code466: % list<strong>in</strong>g. The value of \@lstdefmarg<strong>in</strong> (=7pt) will467: % be used by default.468: % Param2: This obligational parameter def<strong>in</strong>es the code469: % list<strong>in</strong>g’s caption to be used.470: % Param3: This obligational parameter def<strong>in</strong>es the code471: % list<strong>in</strong>g’s reference label to be used.472: \lstnewenvironment{CodeList<strong>in</strong>g}[3][\@lstdefmarg<strong>in</strong>]{%473: \@lstsetup{#1}{#2}{#3}}{}474: %-----------------------------------------------------------475: % Def<strong>in</strong>ition of list<strong>in</strong>g command for file <strong>in</strong>put.476: %-----------------------------------------------------------477: % Def<strong>in</strong>ition of macro which supports code list<strong>in</strong>gs read from478: % an external file. It def<strong>in</strong>es three obligational parameters479: % and supports one optional parameter to setup the code480: % list<strong>in</strong>g.481: % Param1: Represents the marg<strong>in</strong> to be used around the code482: % list<strong>in</strong>g. The value of \@lstdefmarg<strong>in</strong> (=7pt) will483: % be used by default.484: % Param2: This obligational parameter def<strong>in</strong>es the code485: % list<strong>in</strong>g’s caption to be used.486: % Param3: This obligational parameter def<strong>in</strong>es the code487: % list<strong>in</strong>g’s reference label to be used.488: % Param4: This obligational parameter def<strong>in</strong>es the file name489: % to be used as code list<strong>in</strong>g’s <strong>in</strong>put file.490: \newcommand{\CodeList<strong>in</strong>gFile}[4][\@lstdefmarg<strong>in</strong>]{%491: \@lstsetup{#1}{#2}{#3}\lst<strong>in</strong>putlist<strong>in</strong>g{#4}}492: %-----------------------------------------------------------493: % Special list<strong>in</strong>g setup depends on given parameter.494: %-----------------------------------------------------------495: % Def<strong>in</strong>ition of an <strong>in</strong>ternally used macro which really does496: % the work of support<strong>in</strong>g code list<strong>in</strong>gs. It def<strong>in</strong>es three497: % obligational parameters to setup the code list<strong>in</strong>g.498: % Param1: This obligational parameter def<strong>in</strong>es the additional499: % border width around a code list<strong>in</strong>g. The real border500: % width is calculated from value of \@lstborder plus501: % value of this parameter.502: % Param2: This obligational parameter def<strong>in</strong>es the code503: % list<strong>in</strong>g’s caption to be used.138

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

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!