How do I refer Appendix in latex so as to display 'A' or 'B' in my paper
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:

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.
cross-referencing appendices
add a comment |
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:

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.
cross-referencing appendices
2
Useappendixsection{foo}label{sec.foo}and then call its labelref{sec.foo}.
– Sigur
Jul 23 '14 at 2:23
labelshould be placed after the "counter-stepping mechanism" (the sectional unit in your case). See Understanding how references and labels work.
– Werner
Jul 23 '14 at 2:43
Thanks. I think I have to leave the section{} empty. But this time ref{sec.foo} displays 'Appendix A'. But I only want it to display 'A'. How could I do it?
– Zizhao
Jul 23 '14 at 13:12
I suppose you are using specialized package for references?
– Christian Hupfer
Jul 23 '14 at 23:13
Yes. I use hyperref package, but I only use it to ref table and fig by autoref.
– Zizhao
Jul 24 '14 at 4:05
add a comment |
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:

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.
cross-referencing appendices
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:

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.
cross-referencing appendices
cross-referencing appendices
asked Jul 23 '14 at 2:21
Zizhao
76114
76114
2
Useappendixsection{foo}label{sec.foo}and then call its labelref{sec.foo}.
– Sigur
Jul 23 '14 at 2:23
labelshould be placed after the "counter-stepping mechanism" (the sectional unit in your case). See Understanding how references and labels work.
– Werner
Jul 23 '14 at 2:43
Thanks. I think I have to leave the section{} empty. But this time ref{sec.foo} displays 'Appendix A'. But I only want it to display 'A'. How could I do it?
– Zizhao
Jul 23 '14 at 13:12
I suppose you are using specialized package for references?
– Christian Hupfer
Jul 23 '14 at 23:13
Yes. I use hyperref package, but I only use it to ref table and fig by autoref.
– Zizhao
Jul 24 '14 at 4:05
add a comment |
2
Useappendixsection{foo}label{sec.foo}and then call its labelref{sec.foo}.
– Sigur
Jul 23 '14 at 2:23
labelshould be placed after the "counter-stepping mechanism" (the sectional unit in your case). See Understanding how references and labels work.
– Werner
Jul 23 '14 at 2:43
Thanks. I think I have to leave the section{} empty. But this time ref{sec.foo} displays 'Appendix A'. But I only want it to display 'A'. How could I do it?
– Zizhao
Jul 23 '14 at 13:12
I suppose you are using specialized package for references?
– Christian Hupfer
Jul 23 '14 at 23:13
Yes. I use hyperref package, but I only use it to ref table and fig by autoref.
– Zizhao
Jul 24 '14 at 4:05
2
2
Use
appendixsection{foo}label{sec.foo} and then call its label ref{sec.foo}.– Sigur
Jul 23 '14 at 2:23
Use
appendixsection{foo}label{sec.foo} and then call its label ref{sec.foo}.– Sigur
Jul 23 '14 at 2:23
label should be placed after the "counter-stepping mechanism" (the sectional unit in your case). See Understanding how references and labels work.– Werner
Jul 23 '14 at 2:43
label should be placed after the "counter-stepping mechanism" (the sectional unit in your case). See Understanding how references and labels work.– Werner
Jul 23 '14 at 2:43
Thanks. I think I have to leave the section{} empty. But this time ref{sec.foo} displays 'Appendix A'. But I only want it to display 'A'. How could I do it?
– Zizhao
Jul 23 '14 at 13:12
Thanks. I think I have to leave the section{} empty. But this time ref{sec.foo} displays 'Appendix A'. But I only want it to display 'A'. How could I do it?
– Zizhao
Jul 23 '14 at 13:12
I suppose you are using specialized package for references?
– Christian Hupfer
Jul 23 '14 at 23:13
I suppose you are using specialized package for references?
– Christian Hupfer
Jul 23 '14 at 23:13
Yes. I use hyperref package, but I only use it to ref table and fig by autoref.
– Zizhao
Jul 24 '14 at 4:05
Yes. I use hyperref package, but I only use it to ref table and fig by autoref.
– Zizhao
Jul 24 '14 at 4:05
add a comment |
2 Answers
2
active
oldest
votes
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:

Appendix:

1
There is no necessity to loadappendix.
– Werner
Oct 1 '15 at 5:26
add a comment |
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}
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f192769%2fhow-do-i-refer-appendix-in-latex-so-as-to-display-a-or-b-in-my-paper%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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:

Appendix:

1
There is no necessity to loadappendix.
– Werner
Oct 1 '15 at 5:26
add a comment |
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:

Appendix:

1
There is no necessity to loadappendix.
– Werner
Oct 1 '15 at 5:26
add a comment |
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:

Appendix:

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:

Appendix:

answered Oct 1 '15 at 4:57
David
317310
317310
1
There is no necessity to loadappendix.
– Werner
Oct 1 '15 at 5:26
add a comment |
1
There is no necessity to loadappendix.
– Werner
Oct 1 '15 at 5:26
1
1
There is no necessity to load
appendix.– Werner
Oct 1 '15 at 5:26
There is no necessity to load
appendix.– Werner
Oct 1 '15 at 5:26
add a comment |
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}
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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}
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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}
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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}
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 7 mins ago
eLeMeNOhPi
11
11
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
eLeMeNOhPi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f192769%2fhow-do-i-refer-appendix-in-latex-so-as-to-display-a-or-b-in-my-paper%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Use
appendixsection{foo}label{sec.foo}and then call its labelref{sec.foo}.– Sigur
Jul 23 '14 at 2:23
labelshould be placed after the "counter-stepping mechanism" (the sectional unit in your case). See Understanding how references and labels work.– Werner
Jul 23 '14 at 2:43
Thanks. I think I have to leave the section{} empty. But this time ref{sec.foo} displays 'Appendix A'. But I only want it to display 'A'. How could I do it?
– Zizhao
Jul 23 '14 at 13:12
I suppose you are using specialized package for references?
– Christian Hupfer
Jul 23 '14 at 23:13
Yes. I use hyperref package, but I only use it to ref table and fig by autoref.
– Zizhao
Jul 24 '14 at 4:05