diff --git a/README.md b/README.md index bed3b54..b20cfa3 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,9 @@ This template defines some new variables to control the appearance of the title - `toc-own-page` default=`false` begin new page after table of contents, when `true` +- `listings-disable-line-numbers` default=`false` + + disables line numbers for all listings ## Examples diff --git a/eisvogel.tex b/eisvogel.tex index 21a9700..49a13a7 100644 --- a/eisvogel.tex +++ b/eisvogel.tex @@ -578,16 +578,21 @@ $endif$ $if(listings)$ \lstdefinestyle{eisvogel_listing_style}{ language = java, +$if(listings-disable-line-numbers)$ + xleftmargin = 0.6em, + framexleftmargin = 0.4em, +$else$ numbers = left, + xleftmargin = 2.7em, + framexleftmargin = 2.5em, +$endif$ backgroundcolor = \color{listing-background}, basicstyle = \color{listing-text-color}\small\ttfamily{}\linespread{1.15}, % print whole listing small - xleftmargin = 2.7em, breaklines = true, frame = single, framesep = 0.6mm, rulecolor = \color{listing-rule}, frameround = ffff, - framexleftmargin = 2.5em, tabsize = 4, numberstyle = \color{listing-numbers}, aboveskip = 1.0em,