在以下 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}