章を数字とローマ字で表示する

章を数字とローマ字で表示する

私は 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*  

しかし、代わりに「第 2 章」を追加する方法がまだわかりません。

答え1

フロントマターで\thechapterdo を定義し、カウンターをリセットして標準に再定義します。互換性のためのコードも追加します。\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章の前に。

関連情報