\item[option]... 在列边缘(枚举环境)

\item[option]... 在列边缘(枚举环境)

\item[option]我对int环境有一个问题enumerate:里面的单词[option](这里是规则 1)超出了列边缘,无论是在单列模式还是双列模式下。

我是这样编码的:

\documentclass[a4paper,11pt,parskip,twocolumn]{scrartcl}
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage[english]{babel} 
\usepackage{marvosym} 
\usepackage{lmodern} %Latin Modern fonts are a better alternative, but they unfortunately don't contain bold small caps.
\usepackage{calc}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{enumitem} 
\usepackage{enumerate}
\usepackage{textgreek}
\usepackage{here}
\usepackage{xprintlen} %Zeigt mit dem Befehl \printlen[x][cm]{length register (z. B. \columnwidth)} die Spaltenbreite bis zur x Nachkommastelle an.

\usepackage[svgnames,table,hyperref]{xcolor}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{url}

\usepackage{floatflt,epsfig}  % Um Text und Abb nebeneinander zu positionieren

\usepackage{wrapfig,lipsum} % Um Text und Abb nebeneinander zu positionieren

\usepackage{float}

\usepackage{siunitx}  
\usepackage{framed, color}
\usepackage{mhchem}
\usepackage{adjustbox}
\usepackage{wrapfig}
\usepackage{realboxes}
\sisetup{locale = DE} 
\usepackage[intlimits]{empheq}
\usepackage{amssymb,mathrsfs}
\usepackage{theorem} 
\usepackage{physics}
\usepackage{subfig}
\usepackage{nameref}
\usepackage{array}

%%% Pagestyle
\usepackage{fancyhdr}
\pagestyle{fancy} %eigener Seitenstil
\fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
\fancyhead[L]{{\sffamily{\bfseries Biotechnologie:} Amino acids, peptides, proteins and enzymes}}
\fancyhead[R]{{\sffamily{\bfseries WiSe 2019/2020}}}
\renewcommand{\headrulewidth}{1pt}
\fancyfoot[L]{{\sffamily{\bfseries \thepage}}}
\fancyfoot[R]{{\sffamily{\bfseries Henri Lila}}}
\renewcommand{\footrulewidth}{1pt}

% LaTeX colores: https://latexcolor.com
\definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66}
\definecolor{babypink}{rgb}{0.96, 0.76, 0.76}
\definecolor{asparagus}{rgb}{0.53, 0.66, 0.42}
\definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}
\definecolor{blizzardblue}{rgb}{0.67, 0.9, 0.93}
\definecolor{arsenic}{rgb}{0.23, 0.27, 0.29}
\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}


% Caption
\DeclareCaptionLabelFormat{bf-parens}{\textcolor{darkcerulean}{\textbf{Fig. #2: }}}
\usepackage[margin=0pt,font={small},labelformat=bf-parens,labelsep=none,format=plain]{caption} % https://ctan.kako-dev.de/macros/latex/contrib/caption/caption-eng.pdf

\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}

\renewcommand{\thetable}{\arabic{section}.\arabic{table}}

\newcommand{\scap}[1]{\textcolor{darkcerulean}{\textbf{#1}}}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}

\begin{enumerate}
    \item[{\bfseries Rule 1}] 
    Rotations of the Fischer projection by 180$^\circ$ in either direction doe not change the absolute configuration at the chiral center (see fig. \ref{rule} a).\\
    After a 90$^\circ$ or 270$^\circ$ rotation, bonds located above the paper plane before the rotation are beneath the paper plane after the rotation and vice versa, thus resulting in an inverted stereochemical configuration which is only realizable through a bond dissociation and a following rebound.
    \item[{\bfseries Rule 2}] Rotation of three substitutes on the chiral center in either direction, keeping the remaining substitutes in place, does not change the absolute configuration at the chiral center (see fig. \ref{rule} b).
\end{enumerate}


\end{document}

在此处输入图片描述

使用时

\begin{enumerate}[align=left, font=\bfseries]
    \item[{\bfseries Rule 1}] 
    Rotations of the Fischer projection by 180$^\circ$ in either direction doe not change the absolute configuration at the chiral center (see fig. \ref{rule} a).\\
    After a 90$^\circ$ or 270$^\circ$ rotation, bonds located above the paper plane before the rotation are beneath the paper plane after the rotation and vice versa, thus resulting in an inverted stereochemical configuration which is only realizable through a bond dissociation and a following rebound.
    \item[{\bfseries Rule 2}] Rotation of three substitutes on the chiral center in either direction, keeping the remaining substitutes in place, does not change the absolute configuration at the chiral center (see fig. \ref{rule} b).
\end{enumerate}

它看起来是这样的: 在此处输入图片描述 (好一些,但还是不够好)。谢谢您的帮助,谢谢

答案1

这是解决方案enumitem。你只需要输入\item不带任何可选参数即可。顺便说一句,不要加载两个都enumitem 和 enumerate。

无关:你不应该加载epsfig——它只是一个包装器graphicx确保与旧文档的兼容性(参见禁忌)。

\documentclass[a4paper,11pt,parskip,twocolumn]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{marvosym}
\usepackage{lmodern} %Latin Modern fonts are a better alternative, but they unfortunately don't contain bold small caps.
\usepackage{calc}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{enumitem}
%\usepackage{enumerate}
%\usepackage{textgreek}
%\usepackage{here}
%\usepackage{xprintlen} %Zeigt mit dem Befehl \printlen[x][cm]{length register (z. B. \columnwidth)} die Spaltenbreite bis zur x Nachkommastelle an.

\usepackage[svgnames,table,hyperref]{xcolor}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{url}

\usepackage{wrapfig,lipsum} % Um Text und Abb nebeneinander zu positionieren

\usepackage{float}

\usepackage{siunitx}
\usepackage{framed, color}
\usepackage{mhchem}
\usepackage{adjustbox}
\usepackage{wrapfig}
\usepackage{realboxes}
\sisetup{locale = DE}
\usepackage[intlimits]{empheq}
\usepackage{amssymb,mathrsfs}
\usepackage{theorem}
\usepackage{physics}
\usepackage{subfig}
\usepackage{nameref}
\usepackage{array}

%%% Pagestyle
\usepackage{fancyhdr}
\pagestyle{fancy} %eigener Seitenstil
\fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
\fancyhead[L]{{\sffamily{\bfseries Biotechnologie:} Amino acids, peptides, proteins and enzymes}}
\fancyhead[R]{{\sffamily{\bfseries WiSe 2019/2020}}}
\renewcommand{\headrulewidth}{1pt}
\fancyfoot[L]{{\sffamily{\bfseries \thepage}}}
\fancyfoot[R]{{\sffamily{\bfseries Henri Lila}}}
\renewcommand{\footrulewidth}{1pt}

% LaTeX colores: https://latexcolor.com
\definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66}
\definecolor{babypink}{rgb}{0.96, 0.76, 0.76}
\definecolor{asparagus}{rgb}{0.53, 0.66, 0.42}
\definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}
\definecolor{blizzardblue}{rgb}{0.67, 0.9, 0.93}
\definecolor{arsenic}{rgb}{0.23, 0.27, 0.29}
\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}


% Caption
\usepackage{caption} %
\DeclareCaptionLabelFormat{bf-parens}{\textcolor{darkcerulean}{\textbf{Fig. #2: }}} %https://ctan.kako-dev.de/macros/latex/contrib/caption/caption-eng.pdf
\captionsetup{margin=0pt,font={small},labelformat=bf-parens,labelsep=none,format=plain}

\renewcommand{\thefigure}{\arabic{section}.\arabic{figure}}

\renewcommand{\thetable}{\arabic{section}.\arabic{table}}

\newcommand{\scap}[1]{\textcolor{darkcerulean}{\textbf{#1}}}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}

\begin{enumerate}[label=Rule \arabic*\space, font = \bfseries, wide=0pt, widest, itemindent=-3pt, leftmargin=*]
    \item%
     Rotations of the Fischer projection by 180$^\circ$ in either direction doe not change the absolute configuration at the chiral center (see fig. \ref{rule} a).\\
    After a 90$^\circ$ or 270$^\circ$ rotation, bonds located above the paper plane before the rotation are beneath the paper plane after the rotation and vice versa, thus resulting in an inverted stereochemical configuration which is only realizable through a bond dissociation and a following rebound.
    \item% 
    Rotation of three substitutes on the chiral center in either direction, keeping the remaining substitutes in place, does not change the absolute configuration at the chiral center (see fig. \ref{rule} b).
\end{enumerate}

\end{document} 

在此处输入图片描述

相关内容