表格、hyperref 套件中的垂直間距

表格、hyperref 套件中的垂直間距

我正在編譯這段程式碼:

\documentclass{article}
\usepackage{hyperref}

\newcounter{MS} %\renewcommand*{\theMS}{MS\arabic{MS}} % milestones

\begin{document}

\begin{tabular}{p{2cm}|l}
No. & Title \\
\refstepcounter{MS} \theMS \label{MS1} & this line takes too much vertical space  
\\
-- & this one is OK  
\\
\refstepcounter{MS} \theMS \label{MS2} & this line takes too much vertical space
\\
\end{tabular}

Reference to the first row: \ref{MS1}.
I need package hyperref for \url{url.com} 
\end{document}

我得到的表格在有步數計數器的行中使用了太多垂直空間:

在此輸入影像描述

誰能建議如何擺脫這個?如果我刪除該包,hyperref它可以正常工作,但我需要該包在我的文件中用於其他目的。

相關內容