Include the word Appendix before A in table of contents
up vote
2
down vote
favorite
Hi I am trying to add the word Appendix before the letter A or B in my toc.
I have been browsing through the solutions with little to no luck. When using appendices I lose the functionality of the "subsection appendices" in the toc which I want to keep.
This is what I have so far:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage[colorlinks=true, allcolors=black]{hyperref}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
newpage
input{"Appendix.tex"}
end{document}
And for the appendix file:
titleformat{subsection}{largebfseries}{appendixname~thesubsection :}{0.5em}{}
appendix
section*{Appendices}
addcontentsline{toc}{section}{Appendices}
renewcommand{thesubsection}{Alph{subsection}}
subsection{Pretests}
label{apx:pretests}
subsection{Another appendix Subsection}
And this is how it appears:

appendices sharelatex overleaf
add a comment |
up vote
2
down vote
favorite
Hi I am trying to add the word Appendix before the letter A or B in my toc.
I have been browsing through the solutions with little to no luck. When using appendices I lose the functionality of the "subsection appendices" in the toc which I want to keep.
This is what I have so far:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage[colorlinks=true, allcolors=black]{hyperref}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
newpage
input{"Appendix.tex"}
end{document}
And for the appendix file:
titleformat{subsection}{largebfseries}{appendixname~thesubsection :}{0.5em}{}
appendix
section*{Appendices}
addcontentsline{toc}{section}{Appendices}
renewcommand{thesubsection}{Alph{subsection}}
subsection{Pretests}
label{apx:pretests}
subsection{Another appendix Subsection}
And this is how it appears:

appendices sharelatex overleaf
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Hi I am trying to add the word Appendix before the letter A or B in my toc.
I have been browsing through the solutions with little to no luck. When using appendices I lose the functionality of the "subsection appendices" in the toc which I want to keep.
This is what I have so far:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage[colorlinks=true, allcolors=black]{hyperref}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
newpage
input{"Appendix.tex"}
end{document}
And for the appendix file:
titleformat{subsection}{largebfseries}{appendixname~thesubsection :}{0.5em}{}
appendix
section*{Appendices}
addcontentsline{toc}{section}{Appendices}
renewcommand{thesubsection}{Alph{subsection}}
subsection{Pretests}
label{apx:pretests}
subsection{Another appendix Subsection}
And this is how it appears:

appendices sharelatex overleaf
Hi I am trying to add the word Appendix before the letter A or B in my toc.
I have been browsing through the solutions with little to no luck. When using appendices I lose the functionality of the "subsection appendices" in the toc which I want to keep.
This is what I have so far:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage[colorlinks=true, allcolors=black]{hyperref}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
newpage
input{"Appendix.tex"}
end{document}
And for the appendix file:
titleformat{subsection}{largebfseries}{appendixname~thesubsection :}{0.5em}{}
appendix
section*{Appendices}
addcontentsline{toc}{section}{Appendices}
renewcommand{thesubsection}{Alph{subsection}}
subsection{Pretests}
label{apx:pretests}
subsection{Another appendix Subsection}
And this is how it appears:

appendices sharelatex overleaf
appendices sharelatex overleaf
edited 9 hours ago
asked 9 hours ago
user3801533
154
154
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Use the appendices environment and the title and titletoc options:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page, title, titletoc]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage[demo]{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
usepackage[colorlinks=true, allcolors=black]{hyperref}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
begin{appendices}
section{Pretests}
label{apx:pretests}
section{Another appendix Subsection}
end{appendices}
end{document}

add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Use the appendices environment and the title and titletoc options:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page, title, titletoc]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage[demo]{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
usepackage[colorlinks=true, allcolors=black]{hyperref}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
begin{appendices}
section{Pretests}
label{apx:pretests}
section{Another appendix Subsection}
end{appendices}
end{document}

add a comment |
up vote
1
down vote
Use the appendices environment and the title and titletoc options:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page, title, titletoc]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage[demo]{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
usepackage[colorlinks=true, allcolors=black]{hyperref}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
begin{appendices}
section{Pretests}
label{apx:pretests}
section{Another appendix Subsection}
end{appendices}
end{document}

add a comment |
up vote
1
down vote
up vote
1
down vote
Use the appendices environment and the title and titletoc options:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page, title, titletoc]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage[demo]{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
usepackage[colorlinks=true, allcolors=black]{hyperref}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
begin{appendices}
section{Pretests}
label{apx:pretests}
section{Another appendix Subsection}
end{appendices}
end{document}

Use the appendices environment and the title and titletoc options:
documentclass[12pt]{article}
%% Language and font encodings
usepackage[english]{babel}
usepackage[utf8x]{inputenc}
usepackage[T1]{fontenc}
usepackage[toc,page, title, titletoc]{appendix}
%% Sets page size and margins
usepackage[a4paper,top=1in,bottom=1in,left=1in,right=1in]{geometry}
%% Useful packages
usepackage{amsmath}
usepackage[demo]{graphicx}
usepackage[colorinlistoftodos]{todonotes}
usepackage{url}
usepackage[natbibapa]{apacite}
usepackage{nameref}
usepackage{setspace}
usepackage{float}
usepackage{titlesec}
usepackage{makecell}
usepackage{adjustbox}
usepackage{titling}
usepackage{fancyhdr}
usepackage{changepage}
usepackage[colorlinks=true, allcolors=black]{hyperref}
pagestyle{fancy}
lhead{}
chead{}
rhead{}
lfoot{}
cfoot{thepage}
rfoot{includegraphics[scale=0.17]{Images/umlogo.jpg}}
renewcommandheadrulewidth{0pt}
renewcommandfootrulewidth{0pt}
usepackage[stable]{footmisc}
begin{document}
doublespacing
renewcommand{contentsname}{Table of contents}
newpage
tableofcontents
begin{appendices}
section{Pretests}
label{apx:pretests}
section{Another appendix Subsection}
end{appendices}
end{document}

answered 8 hours ago
Bernard
162k767192
162k767192
add a comment |
add a comment |
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%2f462027%2finclude-the-word-appendix-before-a-in-table-of-contents%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