From adbef370d38667b3e2e109e8b3ba7a72bf8c1d0a Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 30 Mar 2011 18:08:58 -0600 Subject: [PATCH] Scribble: use \abovedisplayskip and \belowdisplayskip for code insets original commit: 4703265503c1ff3dca6bef8831d452a17ba2e213 --- collects/scribble/scribble.tex | 6 ++++-- collects/scribble/sigplan/style.tex | 8 -------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/collects/scribble/scribble.tex b/collects/scribble/scribble.tex index e9affd92..4bb39e86 100644 --- a/collects/scribble/scribble.tex +++ b/collects/scribble/scribble.tex @@ -96,9 +96,11 @@ % The 'inset nested-flow style uses the `quote' environment % Indent a 'code-inset nested flow: -\newenvironment{SCodeFlow}{\begin{list}{}{\topsep=0pt\partopsep=0pt% +\newcommand{\SCodePreSkip}{\vskip\abovedisplayskip} +\newcommand{\SCodePostSkip}{\vskip\belowdisplayskip} +\newenvironment{SCodeFlow}{\SCodePreSkip\begin{list}{}{\topsep=0pt\partopsep=0pt% \listparindent=0pt\itemindent=0pt\labelwidth=0pt\leftmargin=2ex\rightmargin=0pt% -\itemsep=0pt\parsep=0pt}\item}{\end{list}} +\itemsep=0pt\parsep=0pt}\item}{\end{list}\SCodePostSkip} % The 'compact itemization style: \newenvironment{compact}{\begin{itemize}}{\end{itemize}} diff --git a/collects/scribble/sigplan/style.tex b/collects/scribble/sigplan/style.tex index 65966ba2..39f4f6b9 100644 --- a/collects/scribble/sigplan/style.tex +++ b/collects/scribble/sigplan/style.tex @@ -18,11 +18,3 @@ \renewcommand{\SCategoryPlus}[4]{\category{#1}{#2}{#3}[#4]} \renewcommand{\STerms}[1]{\terms{#1}} \renewcommand{\SKeywords}[1]{\keywords{#1}} - -% Add space around code insets: -% Indent a 'code-inset nested flow: -\newcommand{\SCodePreSkip}{\vskip\medskipamount} -\newcommand{\SCodePostSkip}{\vskip\medskipamount} -\renewenvironment{SCodeFlow}{\SCodePreSkip\begin{list}{}{\topsep=0pt\partopsep=0pt% -\listparindent=0pt\itemindent=0pt\labelwidth=0pt\leftmargin=2ex\rightmargin=0pt% -\itemsep=0pt\parsep=0pt}\item}{\end{list}\SCodePostSkip}