Partial code of my main file:

``````\pagenumbering{arabic}
\pagestyle{plain}
\include{chap1}
\include{chap2}
\include{ch3}
\include{Experiment} % Extract Correlation
\bibliographystyle{apacite}
\bibliography{SpecialStudy}

\newpage
\pagestyle{plain}
\theappendix
\include{appendixA_refactoring_approach}
``````

With this code I'll get:

```     // bah bah bah
3    Test0
3.1 hello
3.2 hello2
4    Test1
4.1 Intro
4.2 Experiment Objective
4.3 Research Question
References
Appendixes

```

I really want to number References and Appendixes like below. How should I code?

```
3    Test0
3.1 hello
3.2 hello2
4    Test1
4.1 Intro
4.2 Experiment Objective
4.3 Research Question
5    References
6    Appendixes

```
-

migrated from stackoverflow.comJul 27 '11 at 22:37

This question came from our site for professional and enthusiast programmers.

It's been answered on comp.text.tex – Bertrand Marron Jul 27 '11 at 12:46
You should also provide the class you're using and the packages related to the bibliography (natbib, for example). Also the code for the appendix is not clear. – egreg Jul 27 '11 at 23:32

For the standard classes have a look at the tocbibind package. Other classes like memoir or those from the KOMA Script bundle have built-in features. For the appendix you probably need the appendix package in some cases.

-

If you use the package apacite, you can have a numbered bibliography by

``````\usepackage[numberedbib]{apacite}
``````

For the appendices, I suggest

``````\chapter{Appendices}
``````

and then using `\section` to start each appendix. My studies of Latin make me prefer this form of the plural.

-