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:
enter image description here










share|improve this question




























    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:
    enter image description here










    share|improve this question


























      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:
      enter image description here










      share|improve this question















      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:
      enter image description here







      appendices sharelatex overleaf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 hours ago

























      asked 9 hours ago









      user3801533

      154




      154






















          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}


          enter image description here






          share|improve this answer





















            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',
            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
            });


            }
            });














             

            draft saved


            draft discarded


















            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

























            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}


            enter image description here






            share|improve this answer

























              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}


              enter image description here






              share|improve this answer























                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}


                enter image description here






                share|improve this answer












                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}


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 8 hours ago









                Bernard

                162k767192




                162k767192






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Entries order in /etc/network/interfaces

                    新発田市

                    Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)