Skip to content
Snippets Groups Projects
Commit e2e83f16 authored by Jan Wille's avatar Jan Wille
Browse files

included autogobble for listings (#8)

parent 1e1da135
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. ...@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
## [Current] ## [Current]
### Added
- autobobble option for `listings`, which automaticly determins the indentation width and gooble it up, removing the need to put `gobble=n` manually
every time. (#8)
### Changed ### Changed
- `\title` now accepts an optional argument. It will be used as a short version of the title and will be put into the header. - `\title` now accepts an optional argument. It will be used as a short version of the title and will be put into the header.
......
...@@ -658,6 +658,7 @@ ...@@ -658,6 +658,7 @@
\@ifpackageloaded{listings}{ \@ifpackageloaded{listings}{
\PassOptionsToPackage{svgnames}{xcolor} \PassOptionsToPackage{svgnames}{xcolor}
\RequirePackage{xcolor} \RequirePackage{xcolor}
\RequirePackage{lstautogobble}
\lstset{ \lstset{
commentstyle=\color{gray}, commentstyle=\color{gray},
keywordstyle=\color{FireBrick}\bfseries, keywordstyle=\color{FireBrick}\bfseries,
...@@ -667,6 +668,7 @@ ...@@ -667,6 +668,7 @@
tabsize=4, tabsize=4,
literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1, literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1,
escapeinside={(*@}{@*)}, escapeinside={(*@}{@*)},
autogobble=true,
} }
}{} }{}
\@ifpackageloaded{enumitem}{ \@ifpackageloaded{enumitem}{
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
\@ifpackageloaded{listings}{ \@ifpackageloaded{listings}{
\PassOptionsToPackage{svgnames}{xcolor} \PassOptionsToPackage{svgnames}{xcolor}
\RequirePackage{xcolor} \RequirePackage{xcolor}
\RequirePackage{lstautogobble}
\lstset{ \lstset{
commentstyle=\color{gray}, commentstyle=\color{gray},
keywordstyle=\color{FireBrick}\bfseries, keywordstyle=\color{FireBrick}\bfseries,
...@@ -42,6 +43,7 @@ ...@@ -42,6 +43,7 @@
tabsize=4, tabsize=4,
literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1, literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1,
escapeinside={(*@}{@*)}, escapeinside={(*@}{@*)},
autogobble=true,
} }
}{} }{}
\@ifpackageloaded{enumitem}{ \@ifpackageloaded{enumitem}{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment