![类似情况下的换行不一致](https://linux22.com/image/399309/%E7%B1%BB%E4%BC%BC%E6%83%85%E5%86%B5%E4%B8%8B%E7%9A%84%E6%8D%A2%E8%A1%8C%E4%B8%8D%E4%B8%80%E8%87%B4.png)
下面是我的输出文件的一部分
不一致的地方出现在每个问题的第二行末尾。单词直径第一个问题和第二个问题分别是完整和损坏的。而这两部分的代码是完全相同的。以下是部分代码。
编辑:完整代码如下。
\documentclass[a5paper,11pt]{exam}
\usepackage[left=0.25in,right=0.75in,top=0.5in,bottom=0.5in,footskip=.15in]{geometry}
\usepackage{amsmath, amssymb, amsthm, amsfonts}
%\usepackage{showframe}
\usepackage[english]{babel}
\usepackage{mathtools}
\usepackage[inline]{enumitem}
\usepackage{mathrsfs}
\usepackage{nccmath}
\usepackage{stmaryrd}
\usepackage{mathdots}
\usepackage{lastpage,refcount}
\footer{}{\small\thepage}{\ifodd\value{page}\relax
\if\thepage\getpagerefnumber{LastPage}\relax
\else \tiny {\mbox{\kern\dimexpr+4.75in\relax}}\boxed{\textbf{Turn Over}}
\fi
\fi}
\usepackage{etoolbox}
\makeatletter
\setlength\@rightmargin{0.5in}
\patchcmd\setup@point@toks{\llap{\padded@point@block}}{\rlap{\padded@point@block}}{}{}
\patchcmd\droppoints{\llap{\padded@point@block}}{\rlap{\padded@point@block}}{}{}
\patchcmd\droptotalpoints{\llap{\total@block}}{\rlap{\total@block}}{}{}
\patchcmd\droptotalbonuspoints{\llap{\bonustotal@block}}{\rlap{\bonustotal@block}}{}{}
\makeatother
\marksnotpoints
\bracketedpoints
\pointsdroppedatright
\renewcommand\partlabel{(\textbf{\alph{partno}})}
\renewcommand{\thesubpart}{(\textit{\roman{subpart}})}
\renewcommand{\subpartlabel}{\thesubpart}
\renewcommand\questionlabel{\textbf{\thequestion.}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\Z}{\mathbb{Z}}
\renewcommand{\a}{\alpha}
\renewcommand{\b}{\beta}
\newcommand{\g}{\gamma}
\renewcommand{\d}{\delta}
\newcommand{\e}{\epsilon}
\begin{document}
%
%
%
\begin{questions}
%
%Qn 1. [4X3]
%
\question[4$\times$3]
Answer any \textsc{Three}.\droppoints\vspace{2ex}
\begin{parts}
%1.a. [4]
\part
If exists, give an example of\vspace{1ex}
\begin{subparts}
%1.a. (i) [2]
\subpart[2]
a metric space which has a descending sequence $ \{F_n\} $ of non-empty closed sets (i.e., $ F_{n+1}\subseteq F_{n} $) with vanishing diameters, i.e., $ \lim\limits_{n\to\infty}\d(F_n)=0 $; but $ \bigcap\limits_{n\in\N}F_n=\emptyset $.\droppoints\vspace{1ex}
%1.a. (ii) [2]
\subpart[2]
a metric space which has a descending sequence $ \{F_n\} $ of non-empty closed sets (i.e., $ F_{n+1}\subseteq F_{n} $) with vanishing diameters, i.e., $ \lim\limits_{n\to\infty}\d(F_n)=0 $; but $ \bigcap\limits_{n\in\N}F_n $ contains more than one element. \droppoints
\end{subparts}\vspace{2ex}
%1.b. [4]
\end{parts}\vspace{4ex}
\end{questions}
\begin{center}
\vspace{10ex}\rule{6cm}{0.4pt}
\end{center}
\end{document}
知道为什么会发生这种情况以及如何避免这种情况吗?我在exam
文档类中执行此操作。
提前致谢。