-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
An example:
\documentclass{article}
\usepackage{palatino}
\usepackage{minted}
\begin{document}
\section{wrap=True block}
<<wrap=True>>=
first_line = 1
second_line = 2
last_line = 'last'
@
\section{wrap=False block}
<<wrap=False>>=
first_line = 1
second_line = 2
last_line = 'last'
@
\end{document}
Compiling with -f texminted, the result is:
\documentclass{article}
\usepackage{palatino}
\usepackage{minted}
\begin{document}
\section{wrap=True block}
\begin{minted}[mathescape, fontsize=\small, xleftmargin=0.5em]{python}
first_line = 1
second_line = 2
last_line = 'last'
\end{minted}
\section{wrap=False block}
\begin{minted}[mathescape, fontsize=\small, xleftmargin=0.5em]{python}
first_line = 1
second_line = 2
last_line = 'last'\end{minted}
\end{document}
which produces the following output:
The last \end{minted} just needs bumped to the next line.
I'm using Pweave 0.23.
Metadata
Metadata
Assignees
Labels
No labels
