Exsheets 正在推出新系列

Exsheets 正在推出新系列

如果我必须在 exsheets 中立即使用枚举环境,如何禁止 exsheets 在新行上开始提问?

 \documentclass[12pt]{article}
 \usepackage[a4paper, top=3cm, bottom=3cm]{geometry}
 \usepackage{exsheets}
 \begin{document}
 \SetupExSheets{headings=runin}
 \begin{question}
 \begin{enumerate}
 \item Air
 \item Water
 \end{enumerate}
 \end{question}
 \end{document}

我尝试了给出的解决方案这里但它不会覆盖单词“练习 1”上的第一项。

\begin{question}
\vspace{-\parskip}\vspace{-\baselineskip}
\begin{enumerate}[leftmargin=*,topsep=0pt]
\item Air
\item Water
\end{enumerate}
\end{question}

答案1

设置leftmargin为合适的值,例如3.5cm

另外,可以将垂直空间直接添加到enumerate选项中(before={\vspace*{-\baselineskip}})。

梅威瑟:

\documentclass[12pt]{article}
\usepackage[a4paper, top=3cm, bottom=3cm]{geometry}
\usepackage{exsheets}
\usepackage{enumitem}
\begin{document}
\SetupExSheets{headings=runin}
\begin{question}
\begin{enumerate}[leftmargin=3.5cm,topsep=0pt,before={\vspace*{-\baselineskip}}]
\item Air
\item Water
\end{enumerate}
\end{question}
\end{document} 

输出

在此处输入图片描述


编辑

我不确定是否理解了您在评论中的请求,但有两种可能性:

在此处输入图片描述

代码:

\documentclass[12pt]{article}
\usepackage[a4paper, top=3cm, bottom=3cm]{geometry}
\usepackage{exsheets}
\usepackage{enumitem}
\begin{document}
\SetupExSheets{headings=runin}

\begin{question}
\begin{enumerate}[leftmargin=0cm,itemindent=3.5cm,topsep=0pt,before={\vspace*{-\baselineskip}}]
\item Very very very very very very very very very very very very
very very very very very very very very very very very very very
very very very very very very very very very very very long text
\end{enumerate}
\begin{enumerate}[leftmargin=0cm,resume]
\item Very very very very very very very very very very very very
very very very very very very very very very very very very very
very very very very very very very very very very very long text
\item Very very very very very very very very very very very very
very very very very very very very very very very very very very
very very very very very very very very very very very long text
\end{enumerate}
\end{question}

\bigskip

\begin{question}
\begin{enumerate}[leftmargin=0cm,itemindent=3.5cm,topsep=0pt,before={\vspace*{-\baselineskip}}]
\item Very very very very very very very very very very very very
very very very very very very very very very very very very very
very very very very very very very very very very very long text
\end{enumerate}
\begin{enumerate}[leftmargin=0cm,itemindent=*,resume]
\item Very very very very very very very very very very very very
very very very very very very very very very very very very very
very very very very very very very very very very very long text
\item Very very very very very very very very very very very very
very very very very very very very very very very very very very
very very very very very very very very very very very long text
\end{enumerate}
\end{question}

\end{document} 

答案2

要在“锻炼”下添加第二项(+第三项等等),您可以使用第二个enumerate会话。类似于以下两个示例之一(我使用了 karlkoeller 的 MWE):

\documentclass[12pt]{article}
\usepackage[a4paper, top=3cm, bottom=3cm]{geometry}
\usepackage{exsheets}
\usepackage{enumitem}
\begin{document}
\SetupExSheets{headings=runin}
\begin{question}
\begin{enumerate}[leftmargin=3.5cm,topsep=0pt,before={\vspace*{-\baselineskip}}]
\item Air
\end{enumerate}
\begin{enumerate}[leftmargin=0pt,partopsep=0pt,resume]
\item Water
\end{enumerate}
\end{question}
\begin{question}
    \begin{enumerate}[leftmargin=3.5cm,topsep=0pt,before={\vspace*{-\baselineskip}}]
        \item Air
    \end{enumerate}
    \begin{enumerate}[leftmargin=*,partopsep=0pt,resume]
        \item Water
    \end{enumerate}
\end{question}
\end{document}

输出

编辑: 当我想让项目像任何其他我不使用的文本enumerate(或任何其他类似文本)一样流动时,我只需手动执行此操作:

\documentclass[12pt]{article}
\usepackage[a4paper, top=3cm, bottom=3cm]{geometry}
\usepackage{exsheets}
\usepackage{blindtext}
\def\dummyText{The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.}
\begin{document}
\SetupExSheets{headings=runin}
\begin{question}
    1. \dummyText \\ 
    2. \dummyText
\end{question}
\end{document}

输出

相关内容