LaTeX(또는 amsthm 패키지)가 Theorem, Lemma, Corollary, Definition 등의 번호 매기기 스타일을 Lemma 1.2.5 대신 Lemma 1B5와 같은 것으로 변경하는 것이 가능한지 궁금합니다. (모든 구두점을 피하십시오). 예를 들어 이는 1장 섹션 B의 5번째 결과입니다. 가능하다면 Lemma 1B5b는 Lemma 1B5의 b 부분이 될 수 있습니다. 이는 Lemma 1.2.5.2보다 더 간결한 스타일입니다. 이것을 달성하려는 실패한 시도는 다음과 같습니다.
\documentclass[12pt,leqno]{book}
\usepackage{amsthm}
\usepackage{enumitem}
\renewcommand{\thechapter}{\arabic{chapter}}
\renewcommand{\thesection}{\thechapter\Alph{section}}
\renewcommand{\thesection}{\arabic{chapter}\Alph{section}}
\renewcommand{\thesubsection}{\thesection\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\Alph{subsubsection}}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\begin{document}
\chapter{Modules}
\section{Definition $R$-modules}
Let $R$ be a ring.
\begin{theorem} First Theorem\end{theorem}
\begin{lemma}\label{2}
Second Lemma
\begin{enumerate}[label={\rm (\alph*)}]
\item part a
\item part b\label{b}
\end{enumerate}
\end{lemma}
It follows from Lemma~\ref{2}\ref{b} that \dots.
\section{Examples of $F[t]$-modules}
\begin{proposition} First proposition\end{proposition}
\begin{lemma} Second lemma\end{lemma}
\end{document}
답변1
\documentclass[12pt,leqno]{book}
\usepackage{amsthm}
\usepackage{enumitem}
\renewcommand{\thechapter}{\arabic{chapter}}
\renewcommand{\thesection}{\thechapter\Alph{section}}
\renewcommand{\thesection}{\arabic{chapter}\Alph{section}}
\renewcommand{\thesubsection}{\thesection\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\Alph{subsubsection}}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\renewcommand\thetheorem{\thesection\arabic{theorem}}
\begin{document}
\chapter{Modules}
\section{Definition $R$-modules}
Let $R$ be a ring.
\begin{theorem} First Theorem\end{theorem}
\begin{lemma}\label{2}
Second Lemma
\begin{enumerate}[label={\textup{(\alph*)}},ref=\alph*]
\item part a
\item part b\label{b}
\end{enumerate}
\end{lemma}
It follows from Lemma~\ref{2}\ref{b} that \dots.
\section{Examples of $F[t]$-modules}
\begin{proposition} First proposition\end{proposition}
\begin{lemma} Second lemma\end{lemma}
\end{document}