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:
bla bla bla
C:\Program Files\Product Name\Some other extensions\mail box name
That's my problem: I'm unable to prevent LaTeX from inserting a new line after "bla".
Is my problem somewhat related with the fact that I'm using verbatim
?
Best Answer
Your question together with your comment
is a bit confusing. You apparently want inline verbatim material yet not want to use the command that produces it. Unless you can explain why
\verb
(orlistings
'\lstinline
orminted
's\mint
or ...) doesn't work for you you're unlikely to get a better answer than what I already said in the comments.If you insist in using an environment for inline verbatim material you could use
fancyvrb
'sBVerbatim
environment which puts its contents in a TeX box. It might still not be what you're looking for when you need more than one line, though:Note that the last example will cause an overfull
\hbox
.