Skip to content

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

@jhykes

Description

@jhykes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions