以下是 MWE:
\documentclass{article}
\usepackage[a4paper, portrait, margin=1in, top=.25in, bottom=1.75in]{geometry}
\usepackage{%
fontspec,
parskip,
lastpage,
booktabs,
polyglossia,
graphicx,
fancyhdr,
lato
}
\usepackage[shortlabels]{enumitem}
\setmainfont{Lato}
\usepackage{hyperref}
\setlength{\headheight}{1.15in}
\setlength{\headsep}{.15in}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\lhead{\footnotesize{Hello\\Hello }}
\rhead{}
\rfoot{}
\pagestyle{fancy}
\setcounter{secnumdepth}{-1}
\begin{document}
\begin{center}
\fbox{
\begin{minipage}{0.9\textwidth}
\begin{enumerate}
\item This is 1
\item This is 2
\end{enumerate}
\end{minipage}
}
\end{center}
\begin{enumerate}
\item This is 1
\item This is 2
\end{enumerate}
\end{document}
它看起来是这样的:
小页面内和小页面外的项目之间的间距是不同的!
如何让间距均匀?
答案1
我将使用 tcolorbox 来创建框架:
\documentclass{article}
\usepackage[many]{tcolorbox}
\usepackage[shortlabels]{enumitem}
\begin{document}
\begin{tcolorbox}[enhanced jigsaw,opacityback=0,sharp corners]
\begin{enumerate}
\item This is 1
\item This is 2
\end{enumerate}
\end{tcolorbox}
\begin{enumerate}
\item This is 1
\item This is 2
\end{enumerate}
\end{document}