如何创建半高边框?

如何创建半高边框?

我对乳胶还很陌生,我在 Google 上搜索过,但没有找到与我想要的东西类似的东西。

因此,基本上,我试图创建一个带有水平和垂直分隔符但没有角的表格,如下图所示

enter image description here

答案1

booktabs软件包中有\cmidrule可以满足您对水平线的需求的函数。我不知道是否有类似的“自动化”垂直线解决方案,但也许您并不真正需要它。

\documentclass{article}

\usepackage{booktabs}
\usepackage{enumitem} % to change separation in lists
\setlist{nosep} % no separation

\begin{document}

\begin{tabular}[t]{lcr}
  \multicolumn{3}{c}{\large \textbf{Projects}}         \\
  \cmidrule(l{.5cm}r{.5cm}){1-3}
  \textbf{Eyeshare } &       & \textsc{Co-Founder}     \\
  \multicolumn{3}{p{.5\linewidth}}{Helping visually impaired
  people see by connecting them to sighted volunteers} \\
  \textbf{Enki4kids} &       & \textsc{Developer}      \\
                     & \dots &                         \\
                     &       &                         \\
  \multicolumn{3}{c}{\large \textbf{Mini Bootcamps}}   \\
  \cmidrule(l{.5cm}r{.5cm}){1-3}
  \multicolumn{3}{p{.5\linewidth}}{
  \begin{itemize}
  \item Web development end2end
  \item Into ReactJS
  \item The JS way
  \end{itemize}
  }
\end{tabular}
\quad
\begin{tabular}[t]{lcr}
  \multicolumn{3}{c}{\large \textbf{Activities}}          \\
  \cmidrule(l{.5cm}r{.5cm}){1-3}
  \textbf{CSE}         &       & \textsc{Section manager} \\
  \multicolumn{3}{p{.5\linewidth}}{Monitoring and supervising
  projects, as well as teams}                             \\
  \textbf{GDG Algiers} &       & \textsc{Team Leader}     \\
                       & \dots &                          \\
                       &       &                          \\
  \multicolumn{3}{c}{\large \textbf{Presentations}}       \\
  \cmidrule(l{.5cm}r{.5cm}){1-3}
  \multicolumn{3}{p{.5\linewidth}}{
  \begin{itemize}
  \item WebDev
  \item ES6 the sexy JavaScript
  \item Think like a child: introduction to algorithms
  \end{itemize}
  }
\end{tabular}

\end{document}

partially spanning lines

相关内容