帶有背景的文字標題

帶有背景的文字標題

我想為我的履歷畫下圖:

在此輸入影像描述

這個怎麼畫呢?

答案1

\documentclass{article}
\usepackage{xcolor}
\usepackage{multicol}
\begin{document}

\noindent
\colorbox{lightgray}{\makebox[\textwidth][l]{\textbf{Research Interests}}}
\begin{multicols}{2}
  \begin{itemize}
  \item Machine Learning
  \item Natural Language Processing
  \end{itemize}
\end{multicols}
\end{document}

在此輸入影像描述

如果您想讓子彈靠近盒子,請參閱enumitem包裝。

相關內容