Tagged Questions
5
votes
3answers
77 views
Use sans-serif in a verbatim environment?
What is the right way get fancyvrb’s verbatim environment (or any other variation) to use \textsf as the font?
I can do it with:
\begin{Verbatim}[commandchars=\\\{\}]
\textsf{Here’s some textsf.}
...
2
votes
1answer
77 views
Moving from fancyvrb to listing – need to reconstruct my font settings
I have happily used the fancyvrb package with the Verbatim environment so far, but I want to change my figures to use the listing package with the lstlisting environment in order to have bold-faced ...
5
votes
1answer
105 views
Retrieve em-width from another font
I’m trying to align verbatim segments with their outputs. Consider this MWE:
\documentclass{article}
\usepackage{lmodern}
\usepackage{fancyvrb}
...
3
votes
1answer
270 views
fancyvrb, helvetica and underscore… is it just me?
Ran into some weirdness with fancyvrb, helvetica and _. Here's a MWE (for me):
\documentclass{article}
\usepackage{fancyvrb}
\begin{document}
\begin{Verbatim}[fontfamily=helvetica]
Oh no! It's a ...