考试课堂中如何避免单词断掉?

考试课堂中如何避免单词断掉?

我使用考试类来表示问题,考试类中的示例问题如下:

\question \textbf{A body is moving with velocity 30 m/s towards east. After 10 seconds its velocity becomes 40 m/s towards north. The average acceleration of the body is }
 \rule{1cm}{0pt} \newline \begin{minipage}{0.98\linewidth}
\begin{choices}
\begin{multicols}{2}
\choice \textbf{5 $\displaystyle \boldsymbol{m/{s^2} }$ }
  \choice \textbf{1\ $\displaystyle \boldsymbol{m/{s^2} }$ }
 \end{multicols} \begin{multicols}{2}  \choice \textbf{7\ $\displaystyle \boldsymbol{m/{s^2} }$ }
  \choice \textbf{$\displaystyle \boldsymbol{\sqrt 7  }$ \ $\displaystyle \boldsymbol{m/{s^2} }$ }

\end{multicols}
\end{choices}
\end{minipage}

它给出的输出为在此处输入图片描述

有什么方法可以避免在一行中出现单词中断;上面的问题中的单词“towards”和“becomes”必须移到下一行,因为在给定的行中容纳它们的空间较小?

好心提醒?

答案1

答案是 CW。我会这么做。没有大胆的问题,没有大胆的答案。

我不习惯这个exam课程。我使用 C. Niederberger 的考试相关软件包和siunitxJAW 的软件包。

文档exsheets显示各种各样的根据自己的需要定制问题的方法。

结果是可读的。

pawanmudeExamRagged

\documentclass[a5paper
]{article}
\usepackage{showframe}
\usepackage{exsheets}
\SetupExSheets{
headings=runin,
headings-format=\large\bfseries
}
\DeclareTranslation{English}{exsheets-exercise-name}{}
\usepackage{tasks}
\settasks{%
    counter-format=(tsk),label-width=4ex 
}
\usepackage{siunitx}
\DeclareSIUnit{\speed}{\meter\per\second}
\DeclareSIUnit{\accel}{\meter\per\second\squared}
\begin{document}
\begin{question}
    A body is moving with velocity \SI{30}{\speed} towards east. After \SI{10}{\second} its
    velocity becomes \SI{40}{\speed} towards north. The average acceleration of the body is
    \begin{tasks}(2)
        \task \SI{5}{\accel} \task \SI{1}{\accel}
        \task \SI{7}{\accel} \task $\sqrt{7}$\,\si{\accel}
    \end{tasks}
\end{question}
\end{document}

相关内容