mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-02-21 01:51:18 +00:00
Make code-block-font-size not affect inline listings (#229)
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.
This commit is contained in:
parent
3aed2ca98d
commit
6baf692c89
@ -725,7 +725,10 @@ $else$
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user