항목별 작은 크기의 텍스트를 작성하는 방법은 무엇입니까?

항목별 작은 크기의 텍스트를 작성하는 방법은 무엇입니까?

항목 사이, 즉 글머리 기호 하나 뒤에 쓰고 싶은데, 그 아래에 작은 문장 2개를 추가하고 싶습니다. 내 코드를 확인하고 내가 원하는 것은 아래에 나와 있습니다.

\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}

컴파일된 출력을 참조하세요. 여기에 이미지 설명을 입력하세요

질문: 이미지에 표시된 대로 작은 텍스트를 추가하는 방법은 무엇입니까?

여기에 이미지 설명을 입력하세요

답변1

이라는 작은 유틸리티 매크로를 만드는 것이 좋습니다 \aside. \footnotesize텍스트가 취향에 비해 너무 작 다면 \small대신 사용하세요.

여기에 이미지 설명을 입력하세요

\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} 

답변2

  • 귀하의 mwe가 완료되지 않았습니다(누락됨 \end{document})
  • 또한 오류가 포함되어 있습니다( }이후에는 불필요함 $G$).
  • \\항목이 불필요한 이후의 모든 것
  • (기본) 항목 아래의 추가 줄은 새 줄에 작성하면 됩니다. (이 줄에 대해 더 작은 글꼴 크기를 선택할 수 있습니다.)
  • 더 나은 포맷 사용 패키지를 위해enumitem

\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}

여기에 이미지 설명을 입력하세요

관련 정보