我正在使用multicol
包。我想知道是否有人知道如何纠正难看的单词间距。它试图对齐它们,以便每行占据一列,但这意味着一些文本将间隔很大并且看起来很愚蠢。有没有办法让文本不对齐,而是对齐到列的左侧?
正如您所看到的,这里的一些项目间距非常大。请帮忙。这是我的代码,供参考。
\section{APPLICABLE \\ SKILLS}{\sl Educational and Practical Experience}
\begin{multicols}{3}
\begin{itemize} \itemsep -2pt
\item SDS-PAGE
\item Western Blot
\item Antibody affinity chromatography
\item Differential and Density gradient centrifugation
\item Immunoprecipitation
\item Genome sequencing
\item Genomic analysis (copy number, SNP-detection, IGV, samtools, picard, etc.)
\item Mass spec
\item Bioinformatics
\item Numerical analysis
\item Software design
\item High, medium, and low level programming design
\item Linear algebra
\item Graph theory
\item Regression analysis
\end{itemize}
\end{multicols}
答案1
您可以使用命令\raggedright
(或\RaggedRight
ragged2e
允许使用连字符的软件包)位于单个环境的开头multicols
。您还可以multicols
使用\AtBeginEnvironment
由etoolbox
包裹。
\documentclass{article}
\usepackage{multicol}
\usepackage{ragged2e}
\usepackage{etoolbox}
\AtBeginEnvironment{multicols}{\RaggedRight}
\begin{document}
\section{APPLICABLE \\ SKILLS}
{\slshape Educational and Practical Experience}
\begin{multicols}{3}
\begin{itemize} \itemsep -2pt
\item SDS-PAGE
\item Western Blot
\item Antibody affinity chromatography
\item Differential and Density gradient centrifugation
\item Immunoprecipi\-tation
\item Genome sequencing
\item Genomic analysis (copy number, SNP-detection, IGV, samtools, picard, etc.)
\item Mass spec
\item Bioinformatics
\item Numerical analysis
\item Software design
\item High, medium, and low level programming design
\item Linear algebra
\item Graph theory
\item Regression analysis
\end{itemize}
\end{multicols}
\end{document}
编辑:正如 egreg 指出的那样,另一种可能性是定义一个新的raggedmulticols
环境(像multicols
在文档主体中那样使用它):
\newenvironment{raggedmulticols}[1]{%
\RaggedRight
\begin{multicols}{#1}%
}{%
\end{multicols}%
}
答案2
如果这是专门针对列表的,你也可以使用enumitem
使用来multicol
将列表分为几列。下面的示例取自手册enumitem
(第 9 章,通用键和值)。
\documentclass{article}
\usepackage{enumitem}
\usepackage{multicol}
\usepackage{ragged2e}
\SetEnumitemKey{threecol}{
itemsep=1\itemsep,
parsep=1\parsep,
before=\raggedcolumns\begin{multicols}{3}\RaggedRight,
after=\end{multicols}}
\begin{document}
\section{APPLICABLE \\ SKILLS}{\sl Educational and Practical Experience}
\begin{itemize}[threecol] \itemsep -2pt
\item SDS-PAGE
\item Western Blot
\item Antibody affinity chromatography
\item Differential and Density gradient centrifugation
\item Immunoprecipi\-tation
\item Genome sequencing
\item Genomic analysis (copy number, SNP-detection, IGV, samtools, picard, etc.)
\item Mass spec
\item Bioinformatics
\item Numerical analysis
\item Software design
\item High, medium, and low level programming design
\item Linear algebra
\item Graph theory
\item Regression analysis
\end{itemize}
\end{document}