Reputation: 2920
I am using pandoc along with LaTex to create pdf output.
I am highlighting some code using ` backticks.
The text within the backtick is just highlighted using a different font.
How can I change the color of the highlighted text along with the background color.
Note that this is for in-line highlighting.
Upvotes: 3
Views: 1969
Reputation: 19867
You could create a new file header.tex with this (from a tex.SE answer):
\usepackage{fancyvrb,newverbs,xcolor}
\definecolor{Light}{gray}{.90}
\let\oldtexttt\texttt
\renewcommand{\texttt}[1]{
\colorbox{Light}{\oldtexttt{#1}}
}
And then compile your file with pandoc myfile.md -o myfile.pdf -H header.tex
.
Upvotes: 4