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:
Ludvig Hozman 2021-10-22 21:16:42 +02:00 committed by GitHub
parent 3aed2ca98d
commit 6baf692c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,