在我的简历/履历的技能部分,我想将内容添加到表格的右侧并将其保持在第一行以下并有条理。
如图所示,我希望将“Highcharts,D3.js”直接放在“Tableau,Bash...”下。我使用的代码如下;
\begin{tabular}{ @{} >{\bfseries}l @{\hspace{6ex}} l }
Computer Languages & Python, R, Unix, JavaScript, HTML \\
Software \& Tools & Tableau, Bash, Decision Trees, Support Vector Machine, Sci-kit learn,
& HighCharts, D3.js \\
\end{tabular}
谢谢你!
答案1
首先,您应该将最后一列类型更改为p{...}
并删除最后一列\\
取决于您想要的结果:
\\
在倒数第二行后添加\documentclass{文章}
\usepackage{array} \begin{document} \begin{tabular}{ @{} >{\bfseries}l @{\hspace{6ex}} p{6cm}} Computer Languages & Python, R, Unix, JavaScript, HTML \\ Software \& Tools & Tableau, Bash, Decision Trees, Support Vector Machine, Sci-kit learn\\ & HighCharts, D3.js \end{tabular} \end{document}
或删除最后一个
&
\documentclass{report} \usepackage{array} \begin{document} \begin{tabular}{ @{} >{\bfseries}l @{\hspace{6ex}} p{6cm}} Computer Languages & Python, R, Unix, JavaScript, HTML \\ Software \& Tools & Tableau, Bash, Decision Trees, Support Vector Machine, Sci-kit learn, HighCharts, D3.js \end{tabular} \end{document}