![Multicols 项目化中的间距不合适?](https://linux22.com/image/459766/Multicols%20%E9%A1%B9%E7%9B%AE%E5%8C%96%E4%B8%AD%E7%9A%84%E9%97%B4%E8%B7%9D%E4%B8%8D%E5%90%88%E9%80%82%EF%BC%9F.png)
在以下 LaTeX 条目中,我似乎无法消除“面向对象”和“编程”之间尴尬的空格。有人知道至少可以将单词均匀地分开的方法吗?
代码:
\noindent \textbf{\underline{Selected Coursework}} \\
\vspace*{-2.0\multicolsep}
\begin{multicols}{3}
\begin{itemize}
\item Object-Oriented Programming \& Data Structures
\item Functional Programming
\item Machine Learning
\item Systems Programming
\item Operating Systems
\item Software Testing
\item Database Systems
\item Probability Models
\end{itemize}
\end{multicols}
\vspace*{-0.6\multicolsep}
结果:
我只想要“编程”之前一个正常大小的空间。
答案1
窄列中的对齐文本往往需要较大的字间空间。
使用\raggedright
或稍微不那么破烂的\RaggedRight
(从ragged2e
包装中)
\documentclass{article}
\addtolength\textwidth{4.5cm}% to approximate image shown
\usepackage{multicol}
\usepackage{ragged2e}
\begin{document}
\noindent \textbf{\underline{Selected Coursework}}
\begin{multicols}{3}
\begin{itemize}
\item Object-Oriented Programming \& Data Structures
\item Functional Programming
\item Machine Learning
\item Systems Programming
\item Operating Systems
\item Software Testing
\item Database Systems
\item Probability Models
\end{itemize}
\end{multicols}
\hrule
\begin{multicols}{3}\raggedright
\begin{itemize}
\item Object-Oriented Programming \& Data Structures
\item Functional Programming
\item Machine Learning
\item Systems Programming
\item Operating Systems
\item Software Testing
\item Database Systems
\item Probability Models
\end{itemize}
\end{multicols}
\hrule
\begin{multicols}{3}\RaggedRight
\begin{itemize}
\item Object-Oriented Programming \& Data Structures
\item Functional Programming
\item Machine Learning
\item Systems Programming
\item Operating Systems
\item Software Testing
\item Database Systems
\item Probability Models
\end{itemize}
\end{multicols}
\end{document}