LaTeX Creating Appendix Titles in LaTeX: A How-To Guide

  • Thread starter Thread starter philip041
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
To modify the appendix labeling in a LaTeX document using the article class, users need to adjust the formatting to display "Appendix A: name1" instead of just "A name1." This requires editing the class file without changing the overall document structure. The recommended approach is to copy the original article.cls file to a new file with a .cls extension. After making the copy, locate the section in the file that defines the appendix layout and modify it to achieve the desired format. This method allows for customization while preserving the integrity of the original article class.
philip041
Messages
104
Reaction score
0
I have written

\begin{appendix}
\section{name1}
blah blah
\section{name2}
\subsection{name3}
\end{appendix}

It calls them 'A name1' etc, I want it to write 'Appendix A: name1'

How do I get it to do this?

My class environment is article which I don't want to change because that will change other things like the numbering.

help!
 
Physics news on Phys.org
You have to go into the style file and hack it to ensure that you get Appendix A etc..as opposed to A, B etc...
 
how?
 
philip041 said:
how?

Locate the article.cls file, find the line that defines the appendix layout, and amend it to what you want it to look like.
 
cristo said:
Locate the article.cls file, find the line that defines the appendix layout, and amend it to what you want it to look like.
Noooo! First, COPY article.cls to a file with a different name and a .cls extension. Then, do the hacking.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
9K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
18
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K