Tagged Questions
5
votes
3answers
78 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.}
...
1
vote
0answers
36 views
code-block directive causing error Empty verbatim environment
When I use directive .. code-block:: c in rst on Ubuntu 12.04 version
and compile using latexpdf
Error:
(/usr/share/texmf-texlive/tex/latex/psnfss/t1pcr.fd)
! FancyVerb Error:
Empty verbatim ...
3
votes
1answer
55 views
Block element characters (pmboxdraw) are shown too wide in verbatim and Verbatim (fancyvrb) environments
I want to put source code into verbatim and Verbatim (fancyvrb) environments that uses box-drawing characters from codepage 850 (0xDB, 0xDC, 0xDF) (see http://en.wikipedia.org/wiki/Code_page_850). By ...
4
votes
2answers
57 views
How to embed verbatim in pspicture?
I'm trying to insert a QR code at the beginning of my thesis with the contents being the BibTeX entry for it.
Any way of embedding the raw text in \psbarcode?
\documentclass[a4paper,12pt]{minimal}
...
3
votes
1answer
97 views
Using math mode escapes with listings enabled fancyvrb
I am trying to escape math mode within Verbatim, using this answer. This works fine, until I use the listings package with fancyvrb=true
\documentclass{article}
\usepackage{fancyvrb}
...
1
vote
1answer
407 views
Frame line width within DefineVerbatimEnvironment
I am trying to define an environment which requires a frame line as wide as \textwidth
\DefineVerbatimEnvironment%
{code}{Verbatim}{...,frame=lines,%
xleftmargin=7pt,fontsize=...}
I ...
3
votes
1answer
155 views
How to set the Top Margin for a custom Verbatim environment (fancyvrb)
From the fancyvrb documentation, it looks like I can set left and right margins (paragraph 4.1.13) only. How can I set the top margin for my environment?
More specifically, given that I have a frame ...
3
votes
1answer
144 views
Command right after closing a verbatim environment
I need to use a form of a verbatim environment, so that after the closing of the environment, there immediately follows another command. In particular I need something like the following - assuming ...
3
votes
1answer
1k views
inputenc error with unicode chars and verbatim
I am writing a package where I need to save the contents of several environments in verbatim mode to an auxiliary file. Then the auxiliary file is processed by an external program. In the next ...
3
votes
1answer
95 views
Possible to use certain delimiters for macros with fancyvrb?
In this document:
\documentclass{article}
\usepackage{fancyvrb}
\DefineVerbatimEnvironment{AVerb}{Verbatim}{commandchars=\\\{\}}
\def\foo#1-#2;{}
\begin{document}
\begin{AVerb}
\foo x-z;
...
3
votes
1answer
719 views
New command using inline verbatim
I would like to define a command using verbatim like in the commented line in the following code.
\documentclass{article}
\usepackage{amsmath,amsfonts,amssymb}
% ...
6
votes
1answer
240 views
Determine number of lines in a verbatim environment
I'm trying to implement two new key-value pairs for the fancyvrb package:
head= and tail= specify how many lines to display: That is, head=10, tail=5 specifies to print the first 10 lines of the ...
2
votes
1answer
877 views
fancyvrb alternate commandchars and \textcolor
The following works:
\documentclass{article}
\usepackage{fancyvrb}
\usepackage{color}
\begin{document}
\begin{Verbatim}[commandchars=\\\{\}]
test\textcolor{red}{foo}test
\end{Verbatim}
...
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 ...
1
vote
1answer
1k views
using fancyvrb Verbatim environment from within newenvironment
As with this question, I want to use a verbatim environment from within an environment definition, but I want the listings to be numbered, so I think I need to use fancyvrb. It appears that fancyvrb ...
1
vote
1answer
223 views
How to make my unusual environment accept one argument?
I cannot find a good title to express my question. Therefore, please parse the following code first.
Minimal Code
\documentclass[dvips,dvipsnames,cmyk,table]{book}
...