使用 xsim 的 blank-command 高度

使用 xsim 的 blank-command 高度

目前我正在使用 xsim 包,我想使用 blank-command 来处理间隙文本。当我的间隙文本有几行长时,空格字里行间太窄了,写不出来。所以我想问一下,是否可以改变blank-command的高度。目标是像这样,没有setspace。

在此处输入图片描述

代替

在此处输入图片描述

\documentclass{article}
\usepackage{xsim}
\usepackage{setspace}

\begin{document}

\begin{doublespacing}
\begin{exercise}
Far far away, behind the word mountains, far from the countries \blank{Vokalia} and \blank{Consonantia}, there live the blind texts. Separated they live in \blank{Bookmarksgrove} right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. 
\end{exercise}
\end{doublespacing}

\end{document}

答案1

正如评论中提到的,您可以将其添加\doublespacing到练习的开头。如果您使用的练习模板\par在结尾处不输出 a(例如,像xsimrunin模板),您也可以将其添加到练习的结尾:

\documentclass{article}
\usepackage{xsim}
\usepackage{setspace}
\xsimsetup{
  load-style = layouts ,
  exercise/template = runin ,
  exercise/begin-hook = \doublespacing ,
  exercise/end-hook = \par
}

\begin{document}

\begin{exercise}
  Far far away, behind the word mountains, far from the countries
  \blank{Vokalia} and \blank{Consonantia}, there live the blind
  texts. Separated they live in \blank{Bookmarksgrove} right at the coast of
  the Semantics, a large language ocean. A small river named Duden flows by
  their place and supplies it with the necessary regelialia. It is a
  paradisematic country, in which roasted parts of sentences fly into your
  mouth.
\end{exercise}
Text bla blub

\end{document}

在此处输入图片描述

相关内容