
付録では次のコマンドを使用しています:
\appendix
\chapter{First Appendix}
\input{AppendixA}
章は表示されますが、章番号は表示されません。
Frist Appendix (no appendex number A)
.1 section title
.1.1 subsection title
このフォーラムを閲覧していくつかのヒントを見つけましたが、問題は解決できませんでした。次のコマンドを使用すると:
\appendix \renewcommand{\thechapter}{\arabic{chapter}}
\renewcommand{\thesection}{A.\arabic{section}}
\chapter{First Appendix}
\input{AppendixA}
\chapter{Second Appendix}
\input{AppendixB}
出力は次のようになります。
Frist Appendix 0 (appendex number starts from 0 not A)
A.1 section title
A.1.1 subsection title
Frist Appendix 0 (it repeat same number with all chapters)
A.1 section title
A.1.1 subsection title
カスタマイズされたクラスファイルはここ。
他のパッケージとの競合が原因の可能性があります。私は次のパッケージを使用しています。
\documentclass[12pt, english, squeezeCommittee, fancyChapter, fancyPart]{these-LUNAM}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{longtable}
\usepackage{amsmath,amssymb,amsfonts,amsthm,stmaryrd}
\usepackage{mathabx}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{lscape}
\usepackage{textcomp}
\usepackage{graphics}
\usepackage{todonotes}
\usepackage{appendix}
\usepackage{paralist} % %for inline numbering
\usepackage{makeidx}
\makeindex
% to resize tables
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{csvsimple}
% to draw graphics in latex
\usepackage{array}
\newcolumntype{C}{>{$}c<{$}}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes, arrows}
\tikzset{
events/.style={ellipse, draw, align=center},
}
\usepackage{glossaries}
\geometry{inner=4.5cm, outer=2.5cm, top=2.5cm, bottom=2cm}
\usepackage{times}
\RequirePackage[bookmarks,%
colorlinks,%
urlcolor=blue,%
citecolor=blue,%
linkcolor=blue,%
hyperfigures,%
pagebackref,%
pdfcreator=LaTeX,%
breaklinks=true,%
pdfpagelayout=SinglePage,%
bookmarksopen=true,%
bookmarksopenlevel=2]{hyperref}
\usepackage{url}
\usepackage{hyperref}
\usepackage{breakurl}
% to set
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\usepackage{minitoc}
答え1
最後に、付録の番号付けの問題は、\backmatter
付録の配置が悪すぎるために、付録の番号付けが早すぎるために発生します。付録の番号付けはその後に抑制されます。この質問
論文の適切な順序は次のようになります。
\chapter{Perspectives ....}
<some input>
\appendix
\chapter{Comparison table for ....}
<some input>
\chapter{Implementation ....}
<some input>
%------------
\backmatter
\listoftables
\listoffigures
\listofalgorithms
\tableofcontents
%-------------
\bibliographystyle{mybibstylewithoutbst}
\bibliography{mybibfileswithoutbib}
答え2
それは、定義に A と B を明示的に含めることを意味しますか?
\renewcommand{\thechapter}{A\Alph{chapter}}
\renewcommand{\thechapter}{B\Alph{chapter}}
それを実行するかどうかはあなた次第ですが、これはLaTeX
論理に反し、TOC に奇妙な結果をもたらす可能性があります。
I 標準クラスreport
およびbook
では、Koma スクリプトの場合と同様scrbook
にmemoir
、\appendix
コマンドは、名前の chapter から appendix への変更を実行し、同時に A から始まる Alph 番号付け に切り替えます (カウンターは 1 に設定されています)。
編集: OK、クラスをロードしました。これは標準book
クラスに基づいています。パッケージをランダムな順序でロードし、他のパッケージはユーザーがロードしたと想定しているため、かなりバグがあります。オプション セットは奇妙に見え、英語に切り替えるにはオプションを使用しないようにする必要がありますenglish
。(結局のところ、私もフランス人です!)
いずれにせよ、コンパイルしてコード(想定されるパッケージ)
\documentclass[11pt,fancyPart]{these-LUNAM}
\usepackage[francais,english]{babel}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\maketitle
\chapter{The first chapter}
Un petit chapeau pour mon chapitre
\section{a normal section}
\lipsum[1]
\appendix
\chapter{An appendix}
\section{An appendix section}
\lipsum[3]
\end{document}
ここに示されている問題を再現できません:
私の推測では、クラスを壊す他のパッケージを使用していると思います...