Bibliography appearing twice in Table of Contents











up vote
0
down vote

favorite












I have two issues in my Table of Contents.




  1. Bibliography appearing twice in Table of Contents

  2. Title of Table of Content has improper spacing
    TOC


Latex below:
1. For Bibliography



phantomsection 
addcontentsline{toc}{chapter}{Bibliography}
bibliographystyle{unsrtnat}
bibliography{references}
begin{thebibliography}{9}

bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

bibitem{Yun}
Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

bibitem{Surbhi}
Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

end{thebibliography}



  1. I have used a chapter setting to automatically center all chapters. But for some reason Table of Contents seems spaced out. No other chapter or section has that error.


MWE



usepackage[pagestyles]{titlesec}

titleformat{chapter}[display]
{normalfonthugebfseriescentering}{centeringchaptertitlename thechapter}{20pt}{Huge}
titlespacing*{chapter}
{0pt}{5pt}{4pt}

newpagestyle{mystyle}{sethead{}{}{}setfoot{}{thepage}{}}
pagestyle{mystyle}









share|improve this question
























  • Just remove phantomsection addcontentsline{toc}{chapter}{Bibliography}
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:23










  • What about Table of Contents Error?
    – Ayman Arif
    Oct 2 at 16:28










  • You may try renewcommand{contentsname}{Table of Contents} after loading tocloft package
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:38















up vote
0
down vote

favorite












I have two issues in my Table of Contents.




  1. Bibliography appearing twice in Table of Contents

  2. Title of Table of Content has improper spacing
    TOC


Latex below:
1. For Bibliography



phantomsection 
addcontentsline{toc}{chapter}{Bibliography}
bibliographystyle{unsrtnat}
bibliography{references}
begin{thebibliography}{9}

bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

bibitem{Yun}
Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

bibitem{Surbhi}
Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

end{thebibliography}



  1. I have used a chapter setting to automatically center all chapters. But for some reason Table of Contents seems spaced out. No other chapter or section has that error.


MWE



usepackage[pagestyles]{titlesec}

titleformat{chapter}[display]
{normalfonthugebfseriescentering}{centeringchaptertitlename thechapter}{20pt}{Huge}
titlespacing*{chapter}
{0pt}{5pt}{4pt}

newpagestyle{mystyle}{sethead{}{}{}setfoot{}{thepage}{}}
pagestyle{mystyle}









share|improve this question
























  • Just remove phantomsection addcontentsline{toc}{chapter}{Bibliography}
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:23










  • What about Table of Contents Error?
    – Ayman Arif
    Oct 2 at 16:28










  • You may try renewcommand{contentsname}{Table of Contents} after loading tocloft package
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:38













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have two issues in my Table of Contents.




  1. Bibliography appearing twice in Table of Contents

  2. Title of Table of Content has improper spacing
    TOC


Latex below:
1. For Bibliography



phantomsection 
addcontentsline{toc}{chapter}{Bibliography}
bibliographystyle{unsrtnat}
bibliography{references}
begin{thebibliography}{9}

bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

bibitem{Yun}
Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

bibitem{Surbhi}
Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

end{thebibliography}



  1. I have used a chapter setting to automatically center all chapters. But for some reason Table of Contents seems spaced out. No other chapter or section has that error.


MWE



usepackage[pagestyles]{titlesec}

titleformat{chapter}[display]
{normalfonthugebfseriescentering}{centeringchaptertitlename thechapter}{20pt}{Huge}
titlespacing*{chapter}
{0pt}{5pt}{4pt}

newpagestyle{mystyle}{sethead{}{}{}setfoot{}{thepage}{}}
pagestyle{mystyle}









share|improve this question















I have two issues in my Table of Contents.




  1. Bibliography appearing twice in Table of Contents

  2. Title of Table of Content has improper spacing
    TOC


Latex below:
1. For Bibliography



phantomsection 
addcontentsline{toc}{chapter}{Bibliography}
bibliographystyle{unsrtnat}
bibliography{references}
begin{thebibliography}{9}

bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

bibitem{Yun}
Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

bibitem{Surbhi}
Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

end{thebibliography}



  1. I have used a chapter setting to automatically center all chapters. But for some reason Table of Contents seems spaced out. No other chapter or section has that error.


MWE



usepackage[pagestyles]{titlesec}

titleformat{chapter}[display]
{normalfonthugebfseriescentering}{centeringchaptertitlename thechapter}{20pt}{Huge}
titlespacing*{chapter}
{0pt}{5pt}{4pt}

newpagestyle{mystyle}{sethead{}{}{}setfoot{}{thepage}{}}
pagestyle{mystyle}






spacing table-of-contents bibliographies letterspacing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 2 at 16:27









Al-Motasem Aldaoudeyeh

1,375211




1,375211










asked Oct 2 at 16:21









Ayman Arif

112




112












  • Just remove phantomsection addcontentsline{toc}{chapter}{Bibliography}
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:23










  • What about Table of Contents Error?
    – Ayman Arif
    Oct 2 at 16:28










  • You may try renewcommand{contentsname}{Table of Contents} after loading tocloft package
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:38


















  • Just remove phantomsection addcontentsline{toc}{chapter}{Bibliography}
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:23










  • What about Table of Contents Error?
    – Ayman Arif
    Oct 2 at 16:28










  • You may try renewcommand{contentsname}{Table of Contents} after loading tocloft package
    – Al-Motasem Aldaoudeyeh
    Oct 2 at 16:38
















Just remove phantomsection addcontentsline{toc}{chapter}{Bibliography}
– Al-Motasem Aldaoudeyeh
Oct 2 at 16:23




Just remove phantomsection addcontentsline{toc}{chapter}{Bibliography}
– Al-Motasem Aldaoudeyeh
Oct 2 at 16:23












What about Table of Contents Error?
– Ayman Arif
Oct 2 at 16:28




What about Table of Contents Error?
– Ayman Arif
Oct 2 at 16:28












You may try renewcommand{contentsname}{Table of Contents} after loading tocloft package
– Al-Motasem Aldaoudeyeh
Oct 2 at 16:38




You may try renewcommand{contentsname}{Table of Contents} after loading tocloft package
– Al-Motasem Aldaoudeyeh
Oct 2 at 16:38










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You mix 2 different ways to produce a bibliography.



Either use



bibliographystyle{unsrtnat} 
bibliography{references}


or



begin{thebibliography}{9}

bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

bibitem{Yun}
Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

bibitem{Surbhi}
Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

end{thebibliography}


but not both (unless you want two bibliographies)






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%2f453485%2fbibliography-appearing-twice-in-table-of-contents%23new-answer', 'question_page');
    }
    );

    Post as a guest
































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You mix 2 different ways to produce a bibliography.



    Either use



    bibliographystyle{unsrtnat} 
    bibliography{references}


    or



    begin{thebibliography}{9}

    bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

    bibitem{Yun}
    Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

    bibitem{Surbhi}
    Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

    end{thebibliography}


    but not both (unless you want two bibliographies)






    share|improve this answer

























      up vote
      0
      down vote













      You mix 2 different ways to produce a bibliography.



      Either use



      bibliographystyle{unsrtnat} 
      bibliography{references}


      or



      begin{thebibliography}{9}

      bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

      bibitem{Yun}
      Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

      bibitem{Surbhi}
      Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

      end{thebibliography}


      but not both (unless you want two bibliographies)






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        You mix 2 different ways to produce a bibliography.



        Either use



        bibliographystyle{unsrtnat} 
        bibliography{references}


        or



        begin{thebibliography}{9}

        bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

        bibitem{Yun}
        Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

        bibitem{Surbhi}
        Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

        end{thebibliography}


        but not both (unless you want two bibliographies)






        share|improve this answer












        You mix 2 different ways to produce a bibliography.



        Either use



        bibliographystyle{unsrtnat} 
        bibliography{references}


        or



        begin{thebibliography}{9}

        bibitem{SVIT} Matek, Tadej and Timej Zebec, Svit. (2016). GitHub open source project recommendation system.

        bibitem{Yun}
        Zhang, Yun and Lo, David and Kochhar, Pavneet Singh and Xia, Xin and Li, Quanlai and Sun, Jianling. (2017). Detecting similar repositories on GitHub.

        bibitem{Surbhi}
        Sharma, Surbhi and Mahajan, Anuj. (2017). A Collaborative Filtering Recommender System for Github. International Journal of Emerging Technologies in Engineering Research (IJETER).

        end{thebibliography}


        but not both (unless you want two bibliographies)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        daniel

        2919




        2919






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453485%2fbibliography-appearing-twice-in-table-of-contents%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents