Skip to content
Snippets Groups Projects
Commit 7ed59bb2 authored by Michael Grinberg's avatar Michael Grinberg
Browse files

Bessere Formatierung für Listings (Box drumherum) + "Translations" für "List...

Bessere Formatierung für Listings (Box drumherum) + "Translations" für "List of Listings" hinzugefügt
parent 69cf64b7
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,8 @@
\addtolanguagecommand{\acronymname}{ngerman}{Abkürzungsverzeichnis}
\addtolanguagecommand{\acronymname}{english}{Acronyms}
\addtolanguagecommand{\lstlistlistingname}{ngerman}{Listings}
\addtolanguagecommand{\lstlistlistingname}{english}{Listings}
%-----------------------------------------------------------
%% Befehle für korrekte Behandlung von Textteilen in anderen Sprachen
......
......@@ -454,9 +454,15 @@ verbose,
\lstset{
basicstyle=\small\ttfamily, % Standardschrift
%numbers=left, % Ort der Zeilennummern
frame = single, % Rahmen um Listings zeichnen
%numbers=left, % Ort der Zeilennummern (falls gewünscht,
%numberstyle=\tiny, % Stil der Zeilennummern
%xleftmargin=\marginparsep, % Einrückung, damit die Zeilennummern innerhalb des Textrahmens stehen!
%xleftmargin=\marginparsep,
framesep=\mylistingframesep,
framerule=\mylistingframerule,
xleftmargin=\dimexpr\mylistingframesep+\mylistingframerule,
xrightmargin=\dimexpr\mylistingframesep+\mylistingframerule,
%stepnumber=1, % Abstand zwischen den Zeilennummern
%numbersep=5pt, % Abstand der Nummern zum Text
tabsize=2, % Groesse von Tabs
......
......@@ -124,6 +124,11 @@
\newlength{\mytextwidth}
\setlength{\mytextwidth}{106mm}
\newlength{\mylistingframesep}
\setlength{\mylistingframesep}{1ex}
\newlength{\mylistingframerule}
\setlength{\mylistingframerule}{0.4pt}
%vertical float alignment for the only-float pages:
%on float-only pages the figures/tables shall be aligned at the top of the page instead of being centered
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment