Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Last line of code block not displayed when using texminted and wrap=False #24

Closed
jhykes opened this issue Sep 23, 2015 · 0 comments
Closed

Comments

@jhykes
Copy link

jhykes commented Sep 23, 2015

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:

texminted-wrap-false

The last \end{minted} just needs bumped to the next line.

I'm using Pweave 0.23.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant