对齐和列表环境之间的间距

对齐和列表环境之间的间距

如何减少对齐和列表环境之间的间距?

\begin{align*}
       {_C}\vOm=( 0, 0, 0 )
\end{align*}             <=== THERE IS STILL SOME SPACING inbetween?
 \begin{question}
      \item  askjdhaskldhklasdh klashd klajsd lökjas ldökjaslökdj 
 \end{question}

我有以下最小的例子:

\documentclass[12pt,a4paper,fleqn]{scrreprt}

\usepackage[english]{babel}
\usepackage{amsmath,lipsum}

\parindent0.0ex
\topskip0pt
\partopsep0.0ex

\renewcommand{\baselinestretch}{1.0}

\newcounter{questioncounter}
\newenvironment{question}{
  \begin{list}
  {({\itshape\alph{questioncounter}})}
  {\usecounter{questioncounter}
  \topsep=0pt
\partopsep=0pt
\parsep0.5ex \itemsep0.5ex  \leftmargin5ex \labelwidth5ex}}
  {\end{list}}



\begin{document}
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}

This is just a normal text bla bla bla 
This is just a normal text bla bla bla 
\begin{align*}
  A\cap B & = \{b,d,e\} \cap \{a,b,f,g\}
\end{align*}
\begin{question}
 \item asdasd
 \item lkasjd lkajsd lökjasd 
\end{question}
This is just a normal text bla bla bla 
This is just a normal text bla bla bla 
\begin{align*}
  A\cap B & = \{b,d,e\} \cap \{a,b,f,g\}
\end{align*}
\begin{question}
 \item asdasd
 \item lkasjd lkajsd lökjasd 
\end{question}

\end{document}

答案1

%如果你写的话,你在列表环境的定义中缺少

\newenvironment{question}{%    <-- note end-of-line %
...

事情看起来好多了。

例如为什么宏定义中要用到行尾%?

相关内容