36

I want to refer appendix in my paper.

Here is my sample latex code:

\section{hello1}
\label{h1}
bala.......

\section{hello2}
\label{h2}
bala.....

\appendix
\label{appendix}
\section{}
bala....

Here is what the appendix displays:

enter image description here

I use \ref to link sections and \eqref to refer equations, and \autoref to refer figs and tables. How do I refer appendix to display 'A' in papers?

Thanks so much.

Zizhao
  • 471

2 Answers2

38
\usepackage[toc,page]{appendix}

Then in the body of the text.

This is a reference to the graph appendix \ref{appendix:graph}

\begin{appendices}

\section{Graph Appendix}
\label{appendix:graph}
This is the graph appendix...

\section{Another Appendix}

\end{appendices}

Result in body of text:

reference to appendix latex

Appendix:

appendix for graph

David
  • 607
22

You don't necessarily need to import any packages. You can have appendices defined like the following:

\appendix

\section{Appendix: Rule Tables for Chapter 2}
\label{appendix:a}

And refer to them using:

\ref{appendix:a}