Closed GoogleCodeExporter closed 8 years ago
I ran into this problem as well. A workaround (for the listings package only)
is to
follow the instructions in section 5.1 "Listings inside arguments" of the
listings
package documentation: escape the spaces and place a ^^J 'line feed' at the end
of
each line.
So something like this works:
\begin{lstlisting}^^J
int x = 5;^^J
while (x > 4)^^J
\ \ x--;^^J
\end{lstlisting}
It's not ideal but the output looks fine.
Original comment by nmgas...@gmail.com
on 31 Jul 2009 at 7:03
The fancyverb package might help you. Especially first saving a verbatim
snippet and then using it makes it robust within arguments.
If more feedback is posted here, I will add it to the FAQ
Original comment by brian.amberg@gmail.com
on 5 Jul 2010 at 7:21
This works as well :
declare a \newsavebox\mybox before \begin{document}
declare
\begin{lrbox}{\mybox}
\begin{lstlisting}
...
\end{lstlisting}
\end{lrbox}
just inside your \begin{document}
and place
\usebox\mybox \\
where you want it within a \headerbox
Hope this helps for next time
Sam Bayliss
PhD Candidate : Circuits and Systems Group, Imperial College London
Original comment by samuel.b...@gmail.com
on 9 Mar 2011 at 7:42
The latest version of baposter now has a posterbox environment instead of the
old \headerbox command. As the box contents are now no longer arguments to a
LaTeX macro, you can freely use verbatim inside a box.
So this issue is fixed.
Original comment by reinhold...@gmail.com
on 10 Oct 2011 at 2:50
Fixed.
Original comment by brian.amberg@gmail.com
on 10 Oct 2011 at 6:13
Issue 27 has been merged into this issue.
Original comment by brian.amberg@gmail.com
on 17 Dec 2011 at 7:09
Original issue reported on code.google.com by
mount.sarah
on 27 May 2009 at 5:34Attachments: