如何创建两列带项目符号的表格

如何创建两列带项目符号的表格

如何在 Latex 中创建如图所示的表格在此处输入图片描述

\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % 
Document margins
\usepackage{array}
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
\usepackage{multirow}
\begin{document}
\begin{tabular}{ c | l  } 
\multirow{2}{2.6cm}{Achievements} & \tabitem reviwed 20+ publication  \\
& \tabitem Performed comparative analysis of MATLAB results with FEA results 
from material strength aspect \\
\hline
Impact & \tabitem Generated 2 Gear Design models based on feasibility 
analysis of geometric parameters of spur gear  \\ 
\end{tabular}
\end{document}

答案1

使用的解决方案multirow包。可以缩放表格以适合文本宽度(第一个示例)或使用手动换行符(第二个示例):

\documentclass{article}
% Allows using the \multirow command, that allows table cells to span multiple rows (first parameter)
\usepackage{multirow}
% Provides \resizebox command that allows scaling an entire table
\usepackage{graphicx}

% Define line spacing in table
\renewcommand{\arraystretch}{1.1}
% Command for printing a bullet point with some spacing afterwards
\newcommand{\bulletpoint}{\textbullet\hspace{\labelsep}}

\begin{document}

% Table that is scaled to table text width
\resizebox{\textwidth}{!}{%
    \begin{tabular}{c|l}
       \multirow{2}{*}{\textbf{Work}}   & \bulletpoint Reviewed \textbf{20$+$ research} publications \& developed thorough understanding of Gear Design techniques \\
                                        & \bulletpoint Performed comparative analysis \ldots \\
       \hline
       \multirow{2}{*}{\textbf{Impact}} & \bulletpoint Generated 2 Gear Design models \ldots \\
                                        & \bulletpoint Graphically demonstrated \ldots \\
    \end{tabular}
}

\bigskip

% Table with manual line breaks (as separate table lines) and spacing for indentation
\begin{tabular}{c|l}
   \multirow{3}{*}{\textbf{Work}}   & \bulletpoint Reviewed \textbf{20$+$ research} publications \& developed thorough \\
                                    & \quad understanding of Gear Design techniques \\
                                    & \bulletpoint Performed comparative analysis \ldots \\
   \hline
   \multirow{2}{*}{\textbf{Impact}} & \bulletpoint Generated 2 Gear Design models \ldots \\
                                    & \bulletpoint Graphically demonstrated \ldots \\
\end{tabular}

\end{document}

渲染后的 LaTeX

相关内容