Scribble: use \abovedisplayskip and \belowdisplayskip for code insets
original commit: 4703265503c1ff3dca6bef8831d452a17ba2e213
This commit is contained in:
parent
742843af7b
commit
adbef370d3
|
@ -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}}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user