Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [verbatim]

{verbatim} is about macros and environments like “\verb” and “verbatim” which implement some form of verbatim mode, i.e. change the {catcodes}. A popular package is {fancyvrb}. For questions about the {listings} or the {minted} package, use the respective tag instead.

4
votes
1answer
339 views

SageTeX and Commenting Out Code

I'm struggling to find a way to get SageTex and any of the commenting (comment or verbatim) packages to play nicely together. I'd like to be able to comment out a section of LaTeX code, containing ...
3
votes
1answer
169 views

\VerbatimInput : adjust a long line of a .dat file

In this document, \VerbatimInput is calling test_2.dat. test_2.dat contains a line too long, so that the compilation produces a pdf where that line is not entirely seen: By using adjustbox, one can ...
5
votes
0answers
272 views

Using cprotect and environments with multiple arguments

Is there a way to use the cprotect package's \cprotEnv command to use verbatim inside environments that have optional or multiple arguments? My motivation for this question: I am working with ...
4
votes
0answers
124 views

How can I use scintillua lexers to replace minted or listings with luatex?

Scintilla is a text editor. Scintillua adds dynamic Lua LPeg lexers to Scintilla for multiple languages. According to the documentation, Scintillua can be used as a library: Using Scintillua as a ...
4
votes
0answers
316 views

Is it possible to use the `verbatim` environment in a dot2tex node?

Is it possible to use the verbatim environment (i.e. \begin{verbatim}...\end{verbatim}) in a dot2tex node? If so, please could you provide a MWE? Update: this is the closest I've got so far: digraph ...
3
votes
0answers
75 views

Suppress Fira Code ligatures involving “{” and “}” in verbatim

I am trying to improve the current implementation (v0.1b) of the lstfiracode package. In particular, I wish to achieve the opposite of Use Fira Code font with ligatures in code listings. ...
2
votes
0answers
287 views

How to use sagesilent (or verbatim) environment in pgffor loops?

I want to create different versions of an exam paper and corresponding sample solutions using sagetex. I need to assign variables for more involved computations, so I am reliant on the sagesilent ...
2
votes
0answers
70 views

Verbatim and Bacground&TikZ compatibility problems

If to compile below MWE, you'll get next error: According the error message, the problem is tikz and calc library package, which looks like links with background package. Also, you will not find any ...
2
votes
0answers
68 views

How can I mark a verbatim-part that is gets on it's own page with exact the proper size?

At the moment, I do some documentation for an old database (lucky me). To help people (including myself) understand what it does, I list 5 entries of every table inside of verbatim. But some of these ...
1
vote
0answers
25 views

savetrees and \verbatim interact badly

My MWE $ cat test1.tex \documentclass{article} %usepackage{savetrees} \begin{document} \begin{verbatim} for i in range(3): for j in range(3): for k in range (3): plot(i,j,k) # ...
1
vote
0answers
35 views

How can I hide (or blur) some code in a pythontex environment?

My question is directly related to this one. Does there exists a solution for pythontex ? At least for the verbatim environment. More precisely, let us consider the following MWE : \documentclass[...
1
vote
0answers
64 views

Root in verbatim environment

First: This is a a question similar to the one here and will (hopefully) be the last of these kind of questions from me. How do I write a pixelated n-th root sign with a number "under" it as input in ...
1
vote
0answers
84 views

Change the output of the sage function latex() on a string

Currently if you run the sage command latex('a string') using sage (or sagetex) the latex output looks like: \text{\texttt{a{ }string}}. I would like to eliminate either of these (preferably the \...
1
vote
0answers
54 views

Double quote and less characters (">) create a problem with listings

I don't know how to fix this problem, when I use "> in a listings I see a weird double > as result. See this example, where the following section of my article: De esta forma si el título ...
1
vote
0answers
34 views

fancyvrb:embedding Verbatim environemnt in new environemnt, default parameter not works

\documentclass{article} \usepackage{fancyvrb} \newenvironment{code}[1][5mm] {\VerbatimEnvironment\begin{Verbatim}[xleftmargin=#1]} {\end{Verbatim}} \begin{document} ***************************** \...
1
vote
0answers
224 views

Pandoc Output PDF with Code Block using listing other than verbatim

I using RStudio and Pandoc to output my document created in markdown to PDF. Pandoc always convert the code blocks in markdown using verbatim environment. Does anyone know how to switch the default ...
1
vote
0answers
53 views

Numbering correctly indented Verbatim code blocks

I have been looking through the tex.stackechange community answers and questions and I've not managed to find an answer to my problem. I want to be able to write blocks of code in a verbatim-like ...
1
vote
0answers
92 views

Use \verb inside \seqsplit

I need to use the \verb command inside the \seqsplit command. The compiler warns me when I insert \verb inside \seqsplit. How can I do? thank you all EDIT: \seqsplit{\verb |#####|} Error: ! ...
1
vote
0answers
72 views

Polyglossia: equivalent to \NoAutoSpacing?

I use polyglossia in XeLaTeX with the french language. When I type verbatim text, with \verb|...|, the space before a : is not removed. For exemple, I get http :// for web URLs... In Babel, I could ...
1
vote
0answers
71 views

transform variable-content to verbatim-like representation inside a newcommand (used then as optional argument)

I spend 8 hours in solving this, made some progress but now face the enormous difficulties with verbatim stuff in latex. Any help would be great! My aim: the todonotes package offers an inline option,...
1
vote
0answers
396 views

Exporting Eclipse language highlighting

Does anyone know how to insert verbatim code from Eclipse? Not just how to include a file but also keep it's highliting, I use some not-so-widespread languages so exporting it directly would be neat ...
1
vote
0answers
276 views

Add verbatim code to longtable caption

I'd like to add a caption containing verbatim characters using \verb to a long table using the package longtable. The reason for this is that I want to improve the LaTeX output of pandoc, which uses ...
1
vote
0answers
73 views

Define environment with two sections and verbatim

I'am writing a class for the standardization of some documents and I want the interface to be smoothly as possible. One of the things I need is define an environment that produces something like this. ...
0
votes
0answers
28 views

Including empty lines in verbatim text in command environment

I am trying to typeset some text on an included pdf page with the pdfpage package. This can be easily done with the pagecommand={} option. But it seems we cannot insert an empty line inside the ...
0
votes
0answers
48 views

Change language inside verbatim environment

I have the following: \documentclass[a4paper]{article} %% Language and font encodings \usepackage[greek, english]{babel} \usepackage[iso-8859-7]{inputenc} \usepackage{amsfonts} \usepackage{amsmath} ...
0
votes
0answers
38 views

Listings not breaking long lines with breaklines=true and breakatwhitespace=false

I have the following code in my Markdown: ```{latex-fontsize=scriptsize} $ ./my-new-application create app_example creating app_example Generating <path-to-app-src>/new-application/...
0
votes
0answers
57 views

\UseVerbatim equivalent for lstlisting

The package fancyvrb provides \begin{SaveVerbatim} and \UseVerbatim, which does almost exactly what I need. I want to use this with a custom lstlisting environment. The environment looks exactly how I ...
0
votes
0answers
63 views

Embed .txt file, abiding to defined margins

I am using this link to embed text files within my thesis. Include data from a .txt verbatim Unfortunately, the contents of the text file keeps ignoring the margins. I have tried using | and (/) ...
0
votes
0answers
54 views

verbatiminput on a file without .txt extention

I'm wanting to include the git hash automatically into a document using verbatiminput. However I seem to be unable to use verbatiminput on a file name does that not end with an extention. \...
0
votes
0answers
66 views

Why does a verbatim block produce an error when it is used inside a table?

The following script 14 \begin{tabular}{ l } 15 \begin{verbatim} 16 $\mathcal{M A T H C A L}$ 17 $\mathfrak{M A T H F R A C}$ 18 \end{verbatim} 19 \end{tabular} produces an error: Line 15: ...
0
votes
0answers
62 views

Using verb/verbatim in the addplots coordinates

so I am trying the following section: \pgfplotscreateplotcyclelist{myblackwhite}{% solid, every mark/.append style={solid, fill=red}, mark=*\\% dotted, every mark/.append style={solid, fill=green}, ...
0
votes
0answers
379 views

How to print code in LaTeX

This is my sentence: Below is a figure which lists document types available in the \begin{verbatim} \documentclass \end{verbatim} command. I need it to print just like that, but I have no idea how ...
0
votes
0answers
263 views

How use lstlisting package and %

When I'm using : \begin{lstlisting}[breaklines] %load:Utilisateur%owners.user.userId \end{lstlisting} Result is in italic. However, when I remove the first %, result is not in italic. \begin{...
0
votes
0answers
270 views

Using dollar sign in custom verbatim environment causing error

Lets have this environment: \newsavebox{\FVerbBox} \newenvironment{FVerbatim} {\VerbatimEnvironment \begin{center} \begin{lrbox}{\FVerbBox} \begin{BVerbatim}} {\end{BVerbatim} \end{lrbox} ...
0
votes
0answers
85 views

Pasting a long text with many special characters into Latex

I want to paste a long text with many special characters (&,...) into my Latex doc. Is there any command to tell Latex to parse this text as it is, rather than parsing it as a Latex source? ...
0
votes
0answers
307 views

Colouring in-line text within verbatim environment

I wish colour some selected text within the verbatim environment. These texts may not occupy a whole line, but rather be a small part of a line. An illustration is given below. Say for example, in ...
0
votes
0answers
63 views

Text formatting, how to generate everything not in plain text

I want to put some text in latex, which looks like { "wow": 15, "nice": 1 }, { "wow": 24, "nice": 1 }, But If i generate ...
0
votes
0answers
91 views

Automatically show verbatim content of a custom environment

I've defined an environment with \newenvironment, which I am mainly using for tikz diagrams. I have it set to dynamically change the margins, vertically and horizontally center the diagrams, and put ...
-1
votes
0answers
107 views

How to add a “Magma” out put to the document

I am trying to add a Magma/ Singular output to my latex document. "verbatim" shows an error. I have used "lstlisting", then these long lines go beyond the boundary of the page. How I can solve this ...