考试课堂:如何避免题目超出范围

考试课堂:如何避免题目超出范围

我能够使用下面提到的 LaTeX 代码创建试卷:

\documentclass{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage{amsmath}
\setlength\columnsep{46pt}
\begin{document}
\begin{multicols}{2}
\begin{questions}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question The points with position vectors\ $\displaystyle \boldsymbol{61i + 2j,\,10i-9j,\,ai-12j }$ \ are collinear, if\ $\displaystyle \boldsymbol{a =  }$
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\end{questions}
\end{multicols}
\end{document}

它生成如下所示的输出: 在此处输入图片描述

如果您注意到问题 9,它超出了页边距。当我添加数学符号时,这种情况经常发生,有什么方法可以避免此错误?

答案1

不要使用\boldsymbol但从\bmbm包裹。

\documentclass{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{bm}
\setlength\columnsep{46pt}
\begin{document}
\begin{multicols*}{2}
\begin{questions}
\question The points with position vectors $\bm{61i + 2j}$, $\bm{10i-9j}$, $\bm{ai-12j}$ are collinear, if $\bm{a =  }$

\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\end{questions}
\end{multicols*}
\end{document} 

在此处输入图片描述

顺便问一句:你为​​什么要把所有的方程式都加粗?我建议只把ij加粗,其余的都用普通数学字体(除非你想用这种方式来表示其他内容),就像这样

$61\bm{i} + 2\bm{j}$

答案2

在此处输入图片描述

代码(仅提供有问题的代码)

\question The points with position vectors\ $\displaystyle \boldsymbol{61i + 2j}$, $\displaystyle \boldsymbol{10i-9j,\,ai-12j }$ \ are collinear, if\ $\displaystyle \boldsymbol{a =  }$
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}

答案3

在这里将数字加粗是没有意义的。通常只有向量(包括单位向量)才需要加粗。除了将向量加粗之外,我们还可以将\vec向量用作一般向量或\hat单位向量。

无粗体

\documentclass{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage{amsmath}
\def\ihat{\hat{\imath}}
\def\jhat{\hat{\jmath}}
\def\khat{\hat{k}}
\setlength\columnsep{46pt}
\begin{document}
\begin{multicols}{2}
\begin{questions}

\question The points with position vectors
\[ 
61\ihat + 2\jhat,\,10\ihat-9\jhat,\,a\ihat-12\jhat
\] are collinear, if $a=\cdots$. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\end{questions}
\end{multicols}
\end{document}

在此处输入图片描述

使用粗体

\documentclass{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{bm}
\def\ihat{\,\bm{i}}
\def\jhat{\,\bm{j}}
\def\khat{\,\bm{k}}
\setlength\columnsep{46pt}
\begin{document}
\begin{multicols}{2}
\begin{questions}

\question The points with position vectors
\[ 
61\ihat + 2\jhat,\, 10\ihat-9\jhat,\, a\ihat-12\jhat
\] are collinear, if $a=\cdots$. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\end{questions}
\end{multicols}
\end{document}

在此处输入图片描述

建议

\documentclass{exam}
\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{bm}
\def\ihat{\,\bm{i}}
\def\jhat{\,\bm{j}}
\def\khat{\,\bm{k}}
\setlength\columnsep{46pt}

\begin{document}
\begin{multicols}{2}
\begin{questions}

\question The points with position vectors
\begin{align*}
\bm a &= 61\ihat + 2\jhat\\    %
\bm b &= 10\ihat-9\jhat\\    %          
\bm c &= x\ihat-12\jhat
%           
\end{align*}
are collinear, if $x=\cdots$. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}

\question The points with position vectors
\begin{align*}
\bm a 
            &= \begin{pmatrix} 61\\ 2\end{pmatrix} \\
\bm b 
            &=\begin{pmatrix} 10\\ -9\end{pmatrix}\\
\bm c 
            &=\begin{pmatrix} x\\ -12\end{pmatrix}
\end{align*}
are collinear, if $x=\cdots$. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\end{questions}
\end{multicols}
\end{document}

在此处输入图片描述

答案4

正如您在评论中所说,您希望所有数学运算都加粗以便打印清晰,那么我建议您切换到\mathversion{bold}

正如其他人所说,这三个向量是独立的实体,因此应写成\( a \), \( b \), \( c \)而不是\( a,b,c \)。请注意,如果在数学中引入分组,{...}则会创建不会跨行的实体:

示例输出

\documentclass{exam}

\usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry}
\usepackage{multicol}
\usepackage{amsmath}

\mathversion{bold}

\begin{document}
\begin{multicols}{2}
\begin{questions}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question. Let This be the test question.Let This be the test question. Let This be the test question. 
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\question The points with position vectors \( 61i + 2j \), \( {10i-9j}
\), \(ai-12j\) are collinear, if \( a = \)
\begin{choices}
\choice 1
\choice 2
\choice 3
\choice 4
\end{choices}
\end{questions}
\end{multicols}
\end{document}

相关内容