2
votes
1answer
80 views

Using Sagetex on cloud.sagemath.com, is it possible to make Sageblock code wrap automatically?

Creating a LaTeX document on the Sage Math Cloud. Whenever I use a sageblock, I end up with endless typesetting warnings because the notes and code inside the sageblock does not automatically wrap ...
7
votes
2answers
89 views

Break line within a macro while writing to a file

I am trying to use (La)TeX as a macro pre-processor for a programming language. My idea is to use the VerbatimOut environment from the fancyvrb package to output essentially verbatim text, but using @ ...
1
vote
1answer
917 views

Wrap lines in verbatim

I just started to learn LaTeX, and I have to do some documentation with it. However, the guy editing the TeX manuscript of the documentation before me didn't pay attention to word wrapping, so long ...
3
votes
1answer
200 views

Hyphenation when using \verb command

I'm having a problem using \verb command. Usually when I want some verbatim font in the current line (not in a new paragraph) I use the \verb command, not the verbatim environment. So, when I use ...
2
votes
1answer
244 views

Verbatim Linebreaks

I would like to enable automatic line breaking in Verbatim environment; besides I do not want to use lstlisting as it will not have exactly the same font shapes as Verbatim and some other special ...
13
votes
2answers
761 views

Format a verbatim paragraph

How can I format a verbatim paragraph? I.e. break, fill and join input lines to produce globally balanced output with the lengths of each line approaching the target \textwidth as closely as possible. ...
6
votes
2answers
253 views

Custom verbatim that sets all spaces (“ ”) as visible spaces (“␣”) that can line-break

It makes sense to typeset code in a monospaced font. Sometimes such code needs to be embedded in a paragraph context, and then it will be useful to allow it to linebreak. In order to visualize spaces ...
6
votes
1answer
158 views

How to write text within \begin{verbatim} and \end{verbatim} in same line?

I am stuck on the following problem and don't know how to solve it. Here is my problem : \documentclass{article} \begin{document} \begin{verbatim}'\hfill\end{verbatim} MKS' which puts the word ...
3
votes
1answer
395 views

Automatic hyphenation in verbatim text, with guidance

I would like to typeset verbatim text that can have linebreaks on certain text points. I know that spverbatim and listings can break at spaces, but sometimes this is not enough. Of course, no ...
3
votes
1answer
601 views

Prevent LaTeX from inserting a new line [closed]

How do I prevent LaTeX from inserting a new line? Here's the code: bla bla bla \begin{verbatim}C:\Program Files\Product Name\Some other extensions\mail box name\end{verbatim} The output is: ...
2
votes
1answer
198 views

issues after verbatim section

I'm havin an issue which I cannot solve. If I have a subsubsection containing text with a verbatim section in between, the first line after the verbatim section is not aligned properly. If I put a ...
3
votes
1answer
82 views

Verb end of the line alignement

I have a problem when I use the command \verb|detectionFinProgramme|. I don't know how to manage LaTex to get a normal alignement at the end of the line. Does someone have a solution ? Thanks in ...
8
votes
2answers
2k views

Line-break inside a `\verb'

I have set my text editor to wrap text at 76 columns. When including verbatim text in-line, my text editor did an auto-word-wrap and I ended up with something that looked like: \item Just another ...
3
votes
1answer
1k views

alltt package's \alltt{} makes a newline

alltt causes a line break (newline). How do i suppress this? I want something to the effect of \verb+HELLO+ in that it does what \begin{verbatim} \end{verbatim} does except doesn't cause the line to ...
6
votes
1answer
2k views

How to force line breaks within a fancyvrb verbatim environment?

Consider the following LaTeX document: \documentclass{article} \usepackage{fancyvrb} \DefineVerbatimEnvironment{example}{Verbatim}{commandchars=\\\{\}} \begin{document} \begin{example} Foo\\{}Bar ...
6
votes
2answers
976 views

How can I fix verbatim causing an extra newline inside a description list environment?

I'm trying to create a documentation listing similar to that used by MSDN. Here was my first attempt at that: \subsubsection{User Default Page URL} \begin{description} \item[Rationale] This is the ...
1
vote
0answers
115 views

How to prevent contents of verbatim text from running off the page? [duplicate]

Possible Duplicate: Verbatim environment that can break too long lines? How to prevent contents of verbatim text from running off the page? \documentclass[12pt,a4paper]{article} ...
3
votes
2answers
1k views

How to prevent verbatim from generating linebreak?

I tried: \begin{verbatim} is_terminating() \end{verbatim} function can be implemented as follows: But the text after verbatim section will be printed in a next line, is there a way to prevent this ...
15
votes
1answer
3k views

Verbatim environment and line-breaking

I've been wondering about how to display simple codes. I used verbatim and then found the fancyvrb package which added a lot of nice little features, but then I inserted some code with a long line and ...
14
votes
1answer
32k views

In-line \verb — overfull hbox problem

I'm having a problem that I've had before and I'm tired of hacking my way through it and hope that there is some supported solution. I'll go ahead and create a document for example: \documentclass ...
7
votes
1answer
820 views

Line length in fancyvrb

What I'm doing: Typsetting source code using pygments. What is happening: the code typsets fine, but because pygments puts the code into a Verbatim environment, some of the lines are far too long. ...
22
votes
4answers
12k views

Verbatim environment that can break too long lines?

I want to generate a PDF of user-submitted text using LaTeX. To handle crazy user input, I first thought about using the verbatim package, but of course it doesn't break up too long lines. Is there ...