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.
## [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
- `\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 @@
\@ifpackageloaded{listings}{
\PassOptionsToPackage{svgnames}{xcolor}
\RequirePackage{xcolor}
\RequirePackage{lstautogobble}
\lstset{
commentstyle=\color{gray},
keywordstyle=\color{FireBrick}\bfseries,
......@@ -667,6 +668,7 @@
tabsize=4,
literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1,
escapeinside={(*@}{@*)},
autogobble=true,
}
}{}
\@ifpackageloaded{enumitem}{
......
......@@ -33,6 +33,7 @@
\@ifpackageloaded{listings}{
\PassOptionsToPackage{svgnames}{xcolor}
\RequirePackage{xcolor}
\RequirePackage{lstautogobble}
\lstset{
commentstyle=\color{gray},
keywordstyle=\color{FireBrick}\bfseries,
......@@ -42,6 +43,7 @@
tabsize=4,
literate={Ö}{{\"O}}1{Ä}{{\"A}}1{Ü}{{\"U}}1{ß}{{\ss}}1{ü}{{\"u}}1{ä}{{\"a}}1{ö}{{\"o}}1,
escapeinside={(*@}{@*)},
autogobble=true,
}
}{}
\@ifpackageloaded{enumitem}{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment