1
0
Fork 0

Wrap listings in minipage to prevent page breaks

pull/1040/head
Igor Wiedler 2012-08-31 02:33:37 +02:00
parent 674a0b12a6
commit 129a061318
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ echo >> book.tex
echo "\end{document}" >> book.tex
# apply to whole book
sed -i.bak 's/\\begin{verbatim}/\\vspace{1em} \\begin{lstlisting}/g' book.tex
sed -i.bak 's/\\end{verbatim}/\\end{lstlisting}/g' book.tex
sed -i.bak 's/\\begin{verbatim}/\\begin{minipage}{\\textwidth} \\begin{lstlisting}/g' book.tex
sed -i.bak 's/\\end{verbatim}/\\end{lstlisting} \\end{minipage}/g' book.tex
rm book.tex.bak
pdflatex book.tex