多列列表中的长单词

多列列表中的长单词

我正在创建一个包含两列的列表。我使用了以下代码

\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 项中包含以下内容:

  1. 柱孢藻

(柱孢藻毒素)

  1. ...
  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}

相关内容