如何将双线变为一条粗线

如何将双线变为一条粗线

如何将双线变为仅一条粗线?

\documentclass[french]{beamer}
\usepackage{babel}
\usepackage{adjustbox}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\begin{document}   

\begingroup
\defbeamertemplate{enumerate item}{image}{\small\includegraphics[height=1.8ex]{images/gofor}}
\makeatletter
\def\@listii{\leftmargin\leftmarginii
              \topsep    2ex
              \parsep    0\p@   \@plus\p@
              \itemsep   \parsep}
\makeatother
\begin{frame}{Conclusion}
\begin{table}
\centering
\caption{Comparatif entre ATL et MFC}
\vspace{0.4cm}
\begin{tabular}{
  | C{0.07\textwidth}
  *{3}{|C{\dimexpr0.22\textwidth-2\tabcolsep\relax}}
  ||C{\dimexpr0.22\textwidth-2\tabcolsep\relax} |
  }
\hline
& {\fontsize{9}{9}\selectfont Gestion avancée des threads} & {\fontsize{9}{9}\selectfont Gestion de la mémoire} & {\fontsize{9}{9}\selectfont Vitesse d'exécution} & {\fontsize{9}{9}\selectfont Difficulté} \\
\hline
MFC & \adjustbox{valign=c}{\includegraphics[height=1.8ex]{example-image-a}} & \adjustbox{valign=c}{\includegraphics[height=1.8ex]{example-image-a}} & \adjustbox{valign=c}{\includegraphics[height=1.8ex]{example-image-a}} & \textcolor{green}{F}\\
\hline
ATL & \adjustbox{valign=c}{\includegraphics[height=1.8ex]{example-image-a}} &\adjustbox{valign=c}{\includegraphics[height=1.8ex]{example-image-a}\includegraphics[height=1.8ex]{example-image-a}} & \adjustbox{valign=c}{\includegraphics[height=1.8ex]{example-image-a}\includegraphics[height=1.8ex]{example-image-a}\includegraphics[height=1.8ex]{example-image-a}} & \textcolor{red}{D} \\
\hline
\end{tabular}
\end{table}
\end{frame}
\endgroup
\end{document}

答案1

列规范中给出了两个垂直线,它们之间用一个空格(在\tabcolsep中)隔开。要删除它们之间的空格,请使用。如果希望它更粗,可以使用,或添加更多。tabular|||@{}||@{}|@{}|@{}|

在此处输入图片描述

\documentclass{beamer}
\begin{document}   

\begin{frame}
  \begin{tabular}{c | c || c |@{}| c |@{}|@{}| c |@{}|@{}|@{}| c |@{}|@{}|@{}|@{}| c}
    A & B & C & D & E & F & G
  \end{tabular}
\end{frame}

\end{document}

答案2

我会推荐不是使用垂直线,这样线较粗的问题就消失了。但您可以这样做。

\documentclass{beamer}
\usepackage{array}

\newcolumntype{I}{% I for a thick rule
 !{\vline width 1pt}%
}
\newcolumntype{J}[1]{% variable thickness rule
 !{\vline width #1}%
}
\begin{document}

\begin{frame}
  \begin{tabular}{c | c || c I c J{2pt} c J{3pt} c }
    A & B & C & D & E & F
  \end{tabular}
\end{frame}

\end{document}

说明者I给出了 1pt 厚度的规则;请根据需要更改 1pt。J您可以指定厚度。

在此处输入图片描述

相关内容