使用 Enumerate+Hyperref+Varwidth 的居中列表问题

使用 Enumerate+Hyperref+Varwidth 的居中列表问题

我想将枚举列表居中,因此我尝试使用答案这个问题由伟大的 David Carlisle 提供。但是使用hyperrefvarwidthenumerate(在序言中以任何顺序)会导致失败:列表(我希望居中)左对齐。

这个小型页面是根据我的实际情况创建的。

如果有人能提供修复和一些解释,我将非常感激。

妈妈:

\documentclass{article}
\usepackage{hyperref}
\usepackage{enumerate}
\usepackage{varwidth}

\begin{document}
\begin{minipage}{\textwidth}
\centering

\begin{varwidth}{\textwidth}% it's OK : "aaa" is centered
aaa
\end{varwidth}

\begin{varwidth}{\textwidth}% Ouch ! the list is left aligned
\begin{enumerate}
\item One
\item Two
\item Three
\end{enumerate}
\end{varwidth}

\end{minipage}
\end{document}

谢谢

PS:抱歉我的英语不好,我尽力了。

相关内容