有人知道如何在表格中设置垂直条以使其与表格的两端成比例吗?
代码:
\newcolumntype{L}{p{0.00\textwidth}}
\newcolumntype{R}{>{\raggedright\arraybackslash}p{1.0\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}
\begin{tabular}{L!{\VRule}@{\hspace{5pt}}R}
& Instructor of record...
& Introduce...
& Demonstrate...
& Develop...
\end{tabular}
答案1
我的建议是插入一个适当高度的支柱,因为您注意到的差异实际上取决于内容tabular
。下面我插入了一个.9\normalbaselineskip
支柱,它稍微增加了第一行的高度:
\documentclass{article}
\usepackage{array,xcolor}
\newcolumntype{L}{p{0pt}}
\newcolumntype{R}{>{\raggedright\arraybackslash}p{.5\linewidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}
\begin{document}
\noindent
\begin{tabular}{L!{\VRule}@{\hspace{5pt}}R}
\rule{0pt}{.9\normalbaselineskip}
& Instructor of record for \ldots \\
& Introduce basic principles \ldots \\
& Demonstrate engineering \ldots \\
& Develop syllabus, \ldots
\end{tabular}
\end{document}