숫자와 로마자로 표시된 챕터 보유

숫자와 로마자로 표시된 챕터 보유

저는 LaTex를 처음 접했고 현재 논문 작성에 LaTex를 사용하고 있습니다. 내 논문에는 내용 목록 앞에 서문, 감사의 글, 사용된 약어 목록 페이지가 있습니다. 내용 목록 다음에는 논문 소개가 이어집니다. 여기서 "문제"는 목차 앞의 모든 장이 "1장", "2장" 등(로마자)으로 나열되고 목차 뒤의 모든 장은 "1장"으로 표시되기를 원한다는 것입니다. ", "제2장" 등

이것을 할 수 있는 방법이 있나요?

MWE의 방법현재공장:

\documentclass{report}  
\usepackage[utf8]{inputenc}  
\usepackage{lipsum} % just for dummy text

\begin{document}  
\pagenumbering{arabic}  
\chapter{Abbreviations}  
\lipsum[1-2]  
\section{Some extra special abbreviations}  
\lipsum[1-2]  
\subsection{Some math}  
\lipsum[1-2]  
\tableofcontents  
\chapter{Introduction}  
\lipsum[1-2]  
\end{document}

나열된 MWE는 현재 상태이지만 변경하고 싶은 것은 "약어" 장의 "1장"입니다. 나는 그것을 갖고 로마자로 된 섹션/하위 섹션을 갖고 "소개" 장에서 시작하는 "일반" 번호 매기기(1장, 1절, 하위 섹션 1.1 등)를 갖습니다.

다음을 사용하여 약어에서 1장 부분을 제거할 수 있다는 것을 알고 있습니다.

\chapter*  

하지만 대신에 "Chapter II"를 추가하는 방법이 아직 없습니다.

답변1

서문에서 \thechapter할 일을 정의한 다음 카운터를 재설정하고 표준으로 재정의합니다 . 또한 호환성을 위해 코드를 추가합니다.\Roman{chapter}chapter\thechapter\arabic{chapter}hyperref

\documentclass{report}

\usepackage[utf8]{inputenc}

%\usepackage{hyperref} % if you want it

\usepackage{lipsum} % just for dummy text

% uncomment the following line if using hyperref
%\renewcommand{\theHchapter}{\arabic{chapter}\thechapter}

\begin{document}

\renewcommand{\thechapter}{\Roman{chapter}}

\chapter{Preface}
\lipsum[1-2]

\chapter{Acknowledgments}
\lipsum[1-2]

\chapter{Abbreviations}
\lipsum[1-2]

\section{Some extra special abbreviations}
\lipsum[1-2]

\subsection{Some math}
\lipsum[1-2]

\tableofcontents

\renewcommand{\thechapter}{\arabic{chapter}}
\setcounter{chapter}{0}

\chapter{Introduction}
\lipsum[1-2]

\end{document}

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

하위 카운터에 대해서도 로마 숫자를 얻으려면 다음을 수행하십시오.

\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\thechapter.\Roman{section}}
\renewcommand{\thesubsection}{\thesection.\Roman{subsection}}

처음에는 그리고

\renewcommand{\thechapter}{\arabic{chapter}}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\setcounter{chapter}{0}

1장 전.

관련 정보