线宽问题

线宽问题

在此处输入图片描述我对线的粗细有问题。代码中的所有线都应该在表中找到相同的粗细,但其中一些在同一个表中却产生了不同的粗细。这是代码。

\documentclass{article}
\usepackage{threeparttable}
\setlength{\arrayrulewidth}{1.5pt}
\begin{document}
  \begin{table}[!htb]
    \begin{threeparttable}
      \caption{List of video tutorials}
      \label{tab:videoTutorials}
      \begin{tabular}{ccc}
        \hline
          Tutorial Description &
         Length & Number of Comments\tnote{\textasteriskcentered} \\ \hline
        Putting two pictures together & 5:39 & 235 \\
        Fire text effect & 6:00 & 123 \\
        Splatter effect in a photo & 6:39 & 115 \\ \hline
      \end{tabular}
      \begin{tablenotes}
        \item[\textasteriskcentered] As of May 15, 2015
      \end{tablenotes}
    \end{threeparttable}
  \end{table}
\end{document}

答案1

线条的粗细相同。问题很可能仅由 PDF 查看器引起,因为在低分辨率下,像素数会因舍入而有所不同。

包装booktabs提供了更漂亮、更细的线条,周围有一些空间,\toprule并且\bottomrule比默认的要粗一些\midrule

下面的示例显示了原始表格,其中线条具有相同的粗细,下表显示了通过包显示的版本booktabs

\documentclass{article}
\usepackage{booktabs}
\usepackage{threeparttable}
\setlength{\arrayrulewidth}{1.5pt}
\begin{document}
  \begin{table}
    \begin{threeparttable}
      \caption{List of video tutorials}
      \label{tab:videoTutorials}
      \begin{tabular}{ccc}
        \hline
          Tutorial Description &
         Length & Number of Comments\tnote{\textasteriskcentered} \\ \hline
        Putting two pictures together & 5:39 & 235 \\
        Fire text effect & 6:00 & 123 \\
        Splatter effect in a photo & 6:39 & 115 \\ \hline
      \end{tabular}
      \begin{tablenotes}
        \item[\textasteriskcentered] As of May 15, 2015
      \end{tablenotes}
    \end{threeparttable}

    \vspace{5mm}

    \begin{threeparttable}
      \begin{tabular}{ccc}
        \toprule
          Tutorial Description &
         Length & Number of Comments\tnote{\textasteriskcentered} \\
        \midrule
        Putting two pictures together & 5:39 & 235 \\
        Fire text effect & 6:00 & 123 \\
        Splatter effect in a photo & 6:39 & 115 \\
        \bottomrule
      \end{tabular}
      \begin{tablenotes}
        \item[\textasteriskcentered] As of May 15, 2015
      \end{tablenotes}
    \end{threeparttable}
  \end{table}
\end{document}

结果

相关内容