Rewrite definition for proglist that irritate tex2page.sty
This commit is contained in:
parent
ebc119bb43
commit
b264662160
|
@ -285,21 +285,21 @@
|
||||||
\def\sunet{SUnet\xspace}
|
\def\sunet{SUnet\xspace}
|
||||||
|
|
||||||
%From surflet/decls.tex
|
%From surflet/decls.tex
|
||||||
{\theoremstyle{break}
|
%{\theoremstyle{break}
|
||||||
\theoremheaderfont{\normalfont\bfseries\em}
|
%\theoremheaderfont{\normalfont\bfseries\em}
|
||||||
\newtheorem{proglist}{Listing}[section]}
|
% \newtheorem{proglist}{Listing}[section]}
|
||||||
\setlength{\theorempreskipamount}{1.5ex plus0.2ex minus0.2ex}
|
%\setlength{\theorempreskipamount}{1.5ex plus0.2ex minus0.2ex}
|
||||||
\setlength{\theorempostskipamount}{2ex plus0.5ex minus0.2ex}
|
%\setlength{\theorempostskipamount}{2ex plus0.5ex minus0.2ex}
|
||||||
|
|
||||||
% These environments differ from the other definition by the
|
% These environments differ from the other definition by the
|
||||||
% positioning of \normalem
|
% positioning of \normalem
|
||||||
\newenvironment{listing}
|
\newenvironment{listing}
|
||||||
{\ULforem\begin{proglist}\begin{alltt}\small\normalem}
|
{\ULforem\begin{alltt}\small\normalem}
|
||||||
{\end{alltt}\end{proglist}}
|
{\end{alltt}}
|
||||||
|
|
||||||
\newenvironment{reflisting}[1]
|
\newenvironment{reflisting}[1]
|
||||||
{\ULforem\begin{proglist}[\refinlisting{#1}]\begin{alltt}\small\normalem}
|
{\ULforem[\refinlisting{#1}]\begin{alltt}\small\normalem}
|
||||||
{\end{alltt}\end{proglist}}
|
{\end{alltt}}
|
||||||
|
|
||||||
\newcommand{\contatlisting}[1]{%
|
\newcommand{\contatlisting}[1]{%
|
||||||
{\normalfont\textit{$<$continued in listing~\ref{#1}\/$>$}}}
|
{\normalfont\textit{$<$continued in listing~\ref{#1}\/$>$}}}
|
||||||
|
|
Loading…
Reference in New Issue