![如何将双线变为一条粗线](https://linux22.com/image/290797/%E5%A6%82%E4%BD%95%E5%B0%86%E5%8F%8C%E7%BA%BF%E5%8F%98%E4%B8%BA%E4%B8%80%E6%9D%A1%E7%B2%97%E7%BA%BF.png)
如何将双线变为仅一条粗线?
\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
您可以指定厚度。