
我對附錄使用以下命令:
\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
這是否意味著您在定義中明確涉及了 de A 和 B ?
\renewcommand{\thechapter}{A\Alph{chapter}}
\renewcommand{\thechapter}{B\Alph{chapter}}
這取決於您,但這會破壞LaTeX
邏輯,並且可能會在目錄中產生奇怪的結果。
我標準類別report
和book
,如 Koma-script 一樣scrbook
,memoir
該\appendix
命令執行從名稱章節到附錄的更改,同時切換到從 A 開始的 Alpha 編號(計數器設定為 1)。
編輯:好的我已經加載了你的課程。它基於標準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}
我無法重現您的問題,如下所示:
我的猜測是你使用了其他破壞類別的套件...