Scribble: use \abovedisplayskip and \belowdisplayskip for code insets

original commit: 4703265503c1ff3dca6bef8831d452a17ba2e213
This commit is contained in:
Matthew Flatt 2011-03-30 18:08:58 -06:00
parent 742843af7b
commit adbef370d3
2 changed files with 4 additions and 10 deletions

View File

@ -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}}

View File

@ -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}