Skip to content

Commit

Permalink
Make code-block-font-size not affect inline listings (#229)
Browse files Browse the repository at this point in the history
When using listings, the variable `code-block-font-size`
also affected `lstinline` environments.
This will make inline listings follow the surronding font size, as expected.
  • Loading branch information
LudvigHz authored Oct 22, 2021
1 parent 3aed2ca commit 6baf692
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eisvogel.tex
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,10 @@
framexleftmargin = 2.5em,
$endif$
backgroundcolor = \color{listing-background},
basicstyle = \color{listing-text-color}\linespread{1.0}$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$\ttfamily{},
basicstyle = \color{listing-text-color}\linespread{1.0}%
\lst@ifdisplaystyle%
$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$%
\fi\ttfamily{},
breaklines = true,
frame = single,
framesep = 0.19em,
Expand Down

0 comments on commit 6baf692

Please # to comment.