diff options
author | ax006ho <j.hoffmann@fh-aachen.de> | 2018-11-19 11:58:49 +0100 |
---|---|---|
committer | ax006ho <j.hoffmann@fh-aachen.de> | 2018-11-19 11:58:49 +0100 |
commit | 47ea639320a2f45cb64a93b93b6fd9dcb0bcf3db (patch) | |
tree | 54139469383ad337ab3d86b889680c4dbc3444e3 | |
parent | c77d02bc73433490d47e783d921bbe38c73f190b (diff) | |
download | listings-47ea639320a2f45cb64a93b93b6fd9dcb0bcf3db.tar.gz listings-47ea639320a2f45cb64a93b93b6fd9dcb0bcf3db.tar.bz2 |
added another example sent to F. Mittelbach
-rw-r--r-- | testing/errors/paragraph/README.md | 1 | ||||
-rw-r--r-- | testing/errors/paragraph/paragraph_04.tex | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/testing/errors/paragraph/README.md b/testing/errors/paragraph/README.md new file mode 100644 index 0000000..83f44a5 --- /dev/null +++ b/testing/errors/paragraph/README.md @@ -0,0 +1 @@ +# Testing the behaviour of the \paragraph command before a listing environment # diff --git a/testing/errors/paragraph/paragraph_04.tex b/testing/errors/paragraph/paragraph_04.tex new file mode 100644 index 0000000..9bcc806 --- /dev/null +++ b/testing/errors/paragraph/paragraph_04.tex @@ -0,0 +1,72 @@ +\documentclass{article} + +\pagestyle{empty} +\setcounter{page}{6} +\setlength\textwidth{207.0pt} + + +\usepackage{listings} +\lstset{language=fortran} + +\usepackage[T1]{fontenc} + +\begin{document} + +\section{This Is A Section } +\label{sec:this-section} + +\subsection{This Is A Subsection} +\label{sec:this-subsection} + +\subsubsection{This Is A Subsubsection} +\label{sec:this-subsubsection} + +\paragraph{This Is A Paragraph} +\label{sec:this-paragraph} + +\begin{lstlisting} +s = "This string gets assigned in a paragraph" +\end{lstlisting} + + +\section{This Is Another Section} +\label{sec:this-section} + +\subsection{This Is Another Subsection} +\label{sec:this-subsection} + +\subsubsection{This Is Another Subsubsection} +\label{sec:this-subsubsection} + +\paragraph{This Is Another Paragraph} +\label{sec:this-paragraph} + +\leavevmode + +\begin{lstlisting} +s = "This string gets assigned in a paragraph" +\end{lstlisting} + + +\section{This Is One More Section} +\label{sec:this-section} + +\subsection{This Is One More Subsection} +\label{sec:this-subsection} + +\subsubsection{This Is One More Subsubsection} +\label{sec:this-subsubsection} + +\paragraph{This Is One More Paragraph} +\label{sec:this-paragraph} + +\makeatletter % this doesn't help anymore +\let\if@nobreak\iffalse +\makeatother + +\begin{lstlisting} +s = "This string gets assigned in a paragraph" +\end{lstlisting} + + +\end{document} |