feat: add background color to md code highlighting
This commit is contained in:
parent
521ffd29c9
commit
f099ac6a85
@ -29,6 +29,8 @@ case "$ext" in
|
||||
-V geometry:margin=2cm \
|
||||
-V mainfont="Liberation Sans" \
|
||||
-V monofont="Liberation Mono" \
|
||||
--highlight-style tango \
|
||||
--include-in-header ~/.local/bin/inline_code.tex \
|
||||
-o "$base".pdf "$file" ;;
|
||||
tex) compile_tex ;;
|
||||
esac
|
||||
|
8
roles/scripts/files/inline_code.tex
Normal file
8
roles/scripts/files/inline_code.tex
Normal file
@ -0,0 +1,8 @@
|
||||
\usepackage{fancyvrb,newverbs,xcolor}
|
||||
|
||||
\definecolor{Light}{HTML}{F8F8F8}
|
||||
|
||||
\let\oldtexttt\texttt
|
||||
\renewcommand{\texttt}[1]{
|
||||
\colorbox{Light}{\oldtexttt{#1}}
|
||||
}
|
@ -23,4 +23,5 @@
|
||||
mode: '0755'
|
||||
with_items:
|
||||
- { src: compiledoc, dest: ~/.local/bin/compiledoc }
|
||||
- { src: inline_code.tex, dest: ~/.local/bin/inline_code.tex }
|
||||
tags: pc
|
||||
|
Loading…
Reference in New Issue
Block a user