Wie schreibe ich kleinen Text zwischen die Einzelaufzählungen?

Wie schreibe ich kleinen Text zwischen die Einzelaufzählungen?

Ich möchte zwischen den Aufzählungspunkten, also nach einem Aufzählungspunkt, zwei kleine Sätze darunter schreiben. Sehen Sie sich meinen Code an. Was ich möchte, ist unten angegeben:

\documentclass{amsart}
 \newtheorem{thm}{Theorem}
 \usepackage{xcolor}

 \begin{document}
 \section{\textcolor{blue}{Testing Nilpotence in linear time}}
 Given a group $G$ in the form of mutiplication table, we want to check to decide  divides the order of $G$}. Algorithm for testing nilpotence is given below. \\

 \begin{itemize}
 \item Compute the prime factorization of $n= p_1^{\alpha_1} \times p_2^{\alpha_2} \cdots p_i^{\alpha_i}$. \\
 \item Determine the order of all elements in $G$. \\
 \item For $1 \le i \le r$, check if $\mathcal{N}(p_i^{\alpha_i}) \neq p_i^{\alpha_i}$ then $G$ is not nilpotent. \\
\item Else output that $G$ is nilpotent  
 \end{itemize}

siehe kompilierte Ausgabe: Bildbeschreibung hier eingeben

Frage: Wie füge ich kleinen Text wie im Bild hinzu?

Bildbeschreibung hier eingeben

Antwort1

Ich schlage vor, dass Sie ein kleines Hilfsmakro namens erstellen \aside. Wenn \footnotesizeder Text für Ihren Geschmack zu klein wird, verwenden Sie \smallstattdessen.

Bildbeschreibung hier eingeben

\documentclass{amsart}
\usepackage{xcolor}
\newcommand\aside[1]{\par\quad{\footnotesize(#1)}\par} % or "\small", if you prefer

\begin{document}
\section{\color{blue}Testing Nilpotence in linear time}

Given a group $G$ in the form of multiplication table, we want to check to 
decide [...] divides the order of $G$. An algorithm for testing nilpotence 
is given below.

\begin{itemize}
\item Compute the prime factorization of $n = p_1^{\alpha_1} \times 
     p_2^{\alpha_2} \cdots \times p_i^{\alpha_i}$.
     \aside{Each $p_i^{\alpha_i}$ is the highest power}

\item Determine the order of all elements in $G$. 
     \aside{It can be done easily}

\item For $1 \le i \le r$, check if $\mathcal{N}(p_i^{\alpha_i}) \neq 
     p_i^{\alpha_i}$. If true, $G$ is not nilpotent.

\item Else, conclude that $G$ is nilpotent.
\end{itemize}

\end{document} 

Antwort2

  • Ihr MWE ist nicht vollständig (es fehlt \end{document})
  • es enthält auch Fehler (überflüssig }nach $G$)
  • alle \\nachfolgenden Elemente sind überflüssig
  • zusätzliche Zeile unter (Haupt-)Element, einfach in neue Zeile schreiben (Sie können für diese Zeile(n) eine kleinere Schriftgröße auswählen)
  • für eine bessere Formatierung verwenden Sie das Paketenumitem

\documentclass{amsart}
\newtheorem{thm}{Theorem}
\usepackage{xcolor}
\usepackage{enumitem}

\begin{document}
\section{\textcolor{blue}{Testing Nilpotence in linear time}}
Given a group $G$ in the form of multiplication table, we want to check to decide  divides the order of $G$. Algorithm for testing nilpotence is given below. %\\ had to be removed

\begin{itemize}[itemsep=1ex,leftmargin=1cm]
\item Compute the prime factorization of $n= p_1^{\alpha_1} \times p_2^{\alpha_2} \cdots p_i^{\alpha_i}$.               % "\\" had to be removed

    {\small(small text in the next line)}
\item Determine the order of all elements in $G$. % "\\" had to be removed

    {\small(small text in the next line)}
\item For $1 \le i \le r$, check if $\mathcal{N}(p_i^{\alpha_i}) \neq p_i^{\alpha_i}$ then $G$ is not nilpotent.            % "\\" had to be removed

    {\small(small text in the next line)}
\item Else output that $G$ is nilpotent
\end{itemize}
\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen