![多列列表中的长单词](https://linux22.com/image/355575/%E5%A4%9A%E5%88%97%E5%88%97%E8%A1%A8%E4%B8%AD%E7%9A%84%E9%95%BF%E5%8D%95%E8%AF%8D.png)
我正在创建一个包含两列的列表。我使用了以下代码
\begin{multicols}{2}
\begin{enumerate}[font=\bfseries,noitemsep]
\item Cianotoxina(s) (\textit{Cyanotoxins(s)})
\item Cilindrospermopsina(s) (\textit{Cylindrospermopsin(s)})
\item Microcistina(s) (\textit{Microcystin(s)})
\item Biodegradação (\textit{Biodegradation})
\item Degradação (\textit{Degradation})
\item Lago Paranoá (\textit{Paranoá Lake})
\item Microbiota (\textit{Microbiota})
\item Microbiota Bacteriana (\textit{Bacterial Microbiota})
\end{enumerate}
\end{multicols}
在第二项中我遇到了问题
我怎样才能让 LaTeX 在包含此类长单词的列表中自动换行?
编辑:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage[none]{hyphenat}
\begin{document}
\begin{multicols}{2}
\begin{enumerate}[font=\bfseries,noitemsep]
\item Cianotoxina(s) (\textit{Cyanotoxins(s)})
\item Cilindrospermopsina(s) (\textit{Cylindrospermopsin(s)})
\item Microcistina(s) (\textit{Microcystin(s)})
\item Biodegradação (\textit{Biodegradation})
\item Degradação (\textit{Degradation})
\item Lago Paranoá (\textit{Paranoá Lake})
\item Microbiota (\textit{Microbiota})
\item Microbiota Bacteriana (\textit{Bacterial Microbiota})
\end{enumerate}
\end{multicols}
\end{document}
我希望第 2 项中包含以下内容:
- 柱孢藻
(柱孢藻毒素)
- ...
- ...
编辑 2:我手动完成了
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage[none]{hyphenat}
\begin{document}
\begin{multicols}{2}
\begin{enumerate}[font=\bfseries,noitemsep]
\item Cianotoxina(s) (\textit{Cyanotoxins(s)})
\item Cilindrospermopsina(s) \\(\textit{Cylindrospermopsin(s)})
\item Microcistina(s) (\textit{Microcystin(s)})
\item Biodegradação (\textit{Biodegradation})
\item Degradação (\textit{Degradation})
\item Lago Paranoá (\textit{Paranoá Lake})
\item Microbiota (\textit{Microbiota})
\item Microbiota Bacteriana (\textit{Bacterial Microbiota})
\end{enumerate}
\end{multicols}
\end{document}
有办法自动完成吗?
答案1
默认情况下,环境的内容multicols
以完全对齐模式排版;这似乎不是您在示例中想要的。因此,我建议您在 之后(和 之前)\raggedright
立即提供一个指令。\begin{multicols}{2}
\begin{enumerate}...
代码片段:
\begin{document}
\begin{multicols}{2}
\raggedright % <--- new
\begin{enumerate}[font=\bfseries,noitemsep]
\item Cianotoxina(s) \dots
完整的 MWE:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{multicol,enumitem,geometry}
\usepackage[none]{hyphenat}
\begin{document}
\begin{multicols}{2}
\raggedright
\begin{enumerate}[font=\bfseries,noitemsep]
\item Cianotoxina(s)
(\textit{Cyanotoxins(s)})
\item Cilindrospermopsina(s)
(\textit{Cylindrospermopsin(s)})
\item Microcistina(s)
(\textit{Microcystin(s)})
\item Biodegradação (\textit{Biodegradation})
\item Degradação (\textit{Degradation})
\item Lago Paranoá (\textit{Paranoá Lake})
\item Microbiota (\textit{Microbiota})
\item Microbiota Bacteriana
(\textit{Bacterial Microbiota})
\end{enumerate}
\end{multicols}
\end{document}