Manual bibliography, separated or multiple parts












10















I'm creating a manual bibliography, but it needs to be divided into sections. The solutions I thought might be applicable:




  • Add textbx{"Literary works"}, textbx{"Web references"}, etc. between bibitem{} items. This does not work, since an error is reported.


  • Insert separate bibliographies and label them accordingly (which I don't know how to do).



Any help / other suggestions appreciated.










share|improve this question

























  • is this in an article or a multi-chapter work? (makes a difference.)

    – barbara beeton
    Dec 8 '11 at 22:28













  • Multi-chapter work. A book (literature dissertation). Lots of footnotes and several parts in bib.

    – marw
    Dec 8 '11 at 22:49
















10















I'm creating a manual bibliography, but it needs to be divided into sections. The solutions I thought might be applicable:




  • Add textbx{"Literary works"}, textbx{"Web references"}, etc. between bibitem{} items. This does not work, since an error is reported.


  • Insert separate bibliographies and label them accordingly (which I don't know how to do).



Any help / other suggestions appreciated.










share|improve this question

























  • is this in an article or a multi-chapter work? (makes a difference.)

    – barbara beeton
    Dec 8 '11 at 22:28













  • Multi-chapter work. A book (literature dissertation). Lots of footnotes and several parts in bib.

    – marw
    Dec 8 '11 at 22:49














10












10








10


2






I'm creating a manual bibliography, but it needs to be divided into sections. The solutions I thought might be applicable:




  • Add textbx{"Literary works"}, textbx{"Web references"}, etc. between bibitem{} items. This does not work, since an error is reported.


  • Insert separate bibliographies and label them accordingly (which I don't know how to do).



Any help / other suggestions appreciated.










share|improve this question
















I'm creating a manual bibliography, but it needs to be divided into sections. The solutions I thought might be applicable:




  • Add textbx{"Literary works"}, textbx{"Web references"}, etc. between bibitem{} items. This does not work, since an error is reported.


  • Insert separate bibliographies and label them accordingly (which I don't know how to do).



Any help / other suggestions appreciated.







bibliographies subdividing naming






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 14 '13 at 10:26









lockstep

192k53592723




192k53592723










asked Dec 8 '11 at 22:10









marwmarw

17016




17016













  • is this in an article or a multi-chapter work? (makes a difference.)

    – barbara beeton
    Dec 8 '11 at 22:28













  • Multi-chapter work. A book (literature dissertation). Lots of footnotes and several parts in bib.

    – marw
    Dec 8 '11 at 22:49



















  • is this in an article or a multi-chapter work? (makes a difference.)

    – barbara beeton
    Dec 8 '11 at 22:28













  • Multi-chapter work. A book (literature dissertation). Lots of footnotes and several parts in bib.

    – marw
    Dec 8 '11 at 22:49

















is this in an article or a multi-chapter work? (makes a difference.)

– barbara beeton
Dec 8 '11 at 22:28







is this in an article or a multi-chapter work? (makes a difference.)

– barbara beeton
Dec 8 '11 at 22:28















Multi-chapter work. A book (literature dissertation). Lots of footnotes and several parts in bib.

– marw
Dec 8 '11 at 22:49





Multi-chapter work. A book (literature dissertation). Lots of footnotes and several parts in bib.

– marw
Dec 8 '11 at 22:49










2 Answers
2






active

oldest

votes


















16















  • Create several separate thebibliography environments;


  • Redefine the bibname macro (for the book and report class) or the refname macro (for the article class) before every environment as desired;


  • To achieve unambiguous numbering of your bibitems, define a new counter (say, firstbib), use this counter to save the value of enumiv at the end of every thebibliography environment and reset enumiv to the value of firstbib at the start of the next environment.


  • (Note, however, that if you're using natbib, then the counter is NAT@ctr instead of enumiv.)



Because the redefinitions of bibname/refname take place after begin{document}, this solution also works if one uses the babel package.



documentclass{article}

newcounter{firstbib}

begin{document}

section{foo}

Some text cite{A01,B02,C03}.

renewcommand{refname}{Literary works}

begin{thebibliography}{9}

bibitem{A01} A. Author. emph{Alpha}. 2001.

bibitem{B02} B. Buthor. emph{Bravo}. 2002.

setcounter{firstbib}{value{enumiv}}

end{thebibliography}

renewcommand{refname}{Web references}

begin{thebibliography}{9}

setcounter{enumiv}{value{firstbib}}

bibitem{C03} C. Cuthor. emph{Charlie}. 2003.

end{thebibliography}

end{document}


enter image description here






share|improve this answer


























  • @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

    – lockstep
    Dec 8 '11 at 22:41













  • ...and I updated it in my document! :) Thank you, both of you. Works like charm.

    – marw
    Dec 8 '11 at 22:47






  • 2





    Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

    – mforbes
    Oct 24 '13 at 8:25



















3














A much easier solution is using the biblatex package and defining a refsection environment in the body of the chapter.



chapter{Blah}
begin{refsection}% 3rd `refsection`

end{refsection}


To print the bibliography you use:



printbibliography[section=3,title={Blah Bibliography}]


The only difference is that you have to run bibtex for each *-blx.aux file.



Creating bibliographies that depend on criteria is also possible.






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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f37649%2fmanual-bibliography-separated-or-multiple-parts%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









    16















    • Create several separate thebibliography environments;


    • Redefine the bibname macro (for the book and report class) or the refname macro (for the article class) before every environment as desired;


    • To achieve unambiguous numbering of your bibitems, define a new counter (say, firstbib), use this counter to save the value of enumiv at the end of every thebibliography environment and reset enumiv to the value of firstbib at the start of the next environment.


    • (Note, however, that if you're using natbib, then the counter is NAT@ctr instead of enumiv.)



    Because the redefinitions of bibname/refname take place after begin{document}, this solution also works if one uses the babel package.



    documentclass{article}

    newcounter{firstbib}

    begin{document}

    section{foo}

    Some text cite{A01,B02,C03}.

    renewcommand{refname}{Literary works}

    begin{thebibliography}{9}

    bibitem{A01} A. Author. emph{Alpha}. 2001.

    bibitem{B02} B. Buthor. emph{Bravo}. 2002.

    setcounter{firstbib}{value{enumiv}}

    end{thebibliography}

    renewcommand{refname}{Web references}

    begin{thebibliography}{9}

    setcounter{enumiv}{value{firstbib}}

    bibitem{C03} C. Cuthor. emph{Charlie}. 2003.

    end{thebibliography}

    end{document}


    enter image description here






    share|improve this answer


























    • @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

      – lockstep
      Dec 8 '11 at 22:41













    • ...and I updated it in my document! :) Thank you, both of you. Works like charm.

      – marw
      Dec 8 '11 at 22:47






    • 2





      Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

      – mforbes
      Oct 24 '13 at 8:25
















    16















    • Create several separate thebibliography environments;


    • Redefine the bibname macro (for the book and report class) or the refname macro (for the article class) before every environment as desired;


    • To achieve unambiguous numbering of your bibitems, define a new counter (say, firstbib), use this counter to save the value of enumiv at the end of every thebibliography environment and reset enumiv to the value of firstbib at the start of the next environment.


    • (Note, however, that if you're using natbib, then the counter is NAT@ctr instead of enumiv.)



    Because the redefinitions of bibname/refname take place after begin{document}, this solution also works if one uses the babel package.



    documentclass{article}

    newcounter{firstbib}

    begin{document}

    section{foo}

    Some text cite{A01,B02,C03}.

    renewcommand{refname}{Literary works}

    begin{thebibliography}{9}

    bibitem{A01} A. Author. emph{Alpha}. 2001.

    bibitem{B02} B. Buthor. emph{Bravo}. 2002.

    setcounter{firstbib}{value{enumiv}}

    end{thebibliography}

    renewcommand{refname}{Web references}

    begin{thebibliography}{9}

    setcounter{enumiv}{value{firstbib}}

    bibitem{C03} C. Cuthor. emph{Charlie}. 2003.

    end{thebibliography}

    end{document}


    enter image description here






    share|improve this answer


























    • @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

      – lockstep
      Dec 8 '11 at 22:41













    • ...and I updated it in my document! :) Thank you, both of you. Works like charm.

      – marw
      Dec 8 '11 at 22:47






    • 2





      Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

      – mforbes
      Oct 24 '13 at 8:25














    16












    16








    16








    • Create several separate thebibliography environments;


    • Redefine the bibname macro (for the book and report class) or the refname macro (for the article class) before every environment as desired;


    • To achieve unambiguous numbering of your bibitems, define a new counter (say, firstbib), use this counter to save the value of enumiv at the end of every thebibliography environment and reset enumiv to the value of firstbib at the start of the next environment.


    • (Note, however, that if you're using natbib, then the counter is NAT@ctr instead of enumiv.)



    Because the redefinitions of bibname/refname take place after begin{document}, this solution also works if one uses the babel package.



    documentclass{article}

    newcounter{firstbib}

    begin{document}

    section{foo}

    Some text cite{A01,B02,C03}.

    renewcommand{refname}{Literary works}

    begin{thebibliography}{9}

    bibitem{A01} A. Author. emph{Alpha}. 2001.

    bibitem{B02} B. Buthor. emph{Bravo}. 2002.

    setcounter{firstbib}{value{enumiv}}

    end{thebibliography}

    renewcommand{refname}{Web references}

    begin{thebibliography}{9}

    setcounter{enumiv}{value{firstbib}}

    bibitem{C03} C. Cuthor. emph{Charlie}. 2003.

    end{thebibliography}

    end{document}


    enter image description here






    share|improve this answer
















    • Create several separate thebibliography environments;


    • Redefine the bibname macro (for the book and report class) or the refname macro (for the article class) before every environment as desired;


    • To achieve unambiguous numbering of your bibitems, define a new counter (say, firstbib), use this counter to save the value of enumiv at the end of every thebibliography environment and reset enumiv to the value of firstbib at the start of the next environment.


    • (Note, however, that if you're using natbib, then the counter is NAT@ctr instead of enumiv.)



    Because the redefinitions of bibname/refname take place after begin{document}, this solution also works if one uses the babel package.



    documentclass{article}

    newcounter{firstbib}

    begin{document}

    section{foo}

    Some text cite{A01,B02,C03}.

    renewcommand{refname}{Literary works}

    begin{thebibliography}{9}

    bibitem{A01} A. Author. emph{Alpha}. 2001.

    bibitem{B02} B. Buthor. emph{Bravo}. 2002.

    setcounter{firstbib}{value{enumiv}}

    end{thebibliography}

    renewcommand{refname}{Web references}

    begin{thebibliography}{9}

    setcounter{enumiv}{value{firstbib}}

    bibitem{C03} C. Cuthor. emph{Charlie}. 2003.

    end{thebibliography}

    end{document}


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 3 mins ago









    E.P.

    8182722




    8182722










    answered Dec 8 '11 at 22:25









    locksteplockstep

    192k53592723




    192k53592723













    • @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

      – lockstep
      Dec 8 '11 at 22:41













    • ...and I updated it in my document! :) Thank you, both of you. Works like charm.

      – marw
      Dec 8 '11 at 22:47






    • 2





      Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

      – mforbes
      Oct 24 '13 at 8:25



















    • @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

      – lockstep
      Dec 8 '11 at 22:41













    • ...and I updated it in my document! :) Thank you, both of you. Works like charm.

      – marw
      Dec 8 '11 at 22:47






    • 2





      Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

      – mforbes
      Oct 24 '13 at 8:25

















    @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

    – lockstep
    Dec 8 '11 at 22:41







    @GonzaloMedina: Excellent suggestion -- I changed my example accordingly. (And yes, I know this in principle, but totally forgot it at the moment.)

    – lockstep
    Dec 8 '11 at 22:41















    ...and I updated it in my document! :) Thank you, both of you. Works like charm.

    – marw
    Dec 8 '11 at 22:47





    ...and I updated it in my document! :) Thank you, both of you. Works like charm.

    – marw
    Dec 8 '11 at 22:47




    2




    2





    Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

    – mforbes
    Oct 24 '13 at 8:25





    Just a note that if you use natbib, then the counter is NAT@ctr not enumiv.

    – mforbes
    Oct 24 '13 at 8:25











    3














    A much easier solution is using the biblatex package and defining a refsection environment in the body of the chapter.



    chapter{Blah}
    begin{refsection}% 3rd `refsection`

    end{refsection}


    To print the bibliography you use:



    printbibliography[section=3,title={Blah Bibliography}]


    The only difference is that you have to run bibtex for each *-blx.aux file.



    Creating bibliographies that depend on criteria is also possible.






    share|improve this answer




























      3














      A much easier solution is using the biblatex package and defining a refsection environment in the body of the chapter.



      chapter{Blah}
      begin{refsection}% 3rd `refsection`

      end{refsection}


      To print the bibliography you use:



      printbibliography[section=3,title={Blah Bibliography}]


      The only difference is that you have to run bibtex for each *-blx.aux file.



      Creating bibliographies that depend on criteria is also possible.






      share|improve this answer


























        3












        3








        3







        A much easier solution is using the biblatex package and defining a refsection environment in the body of the chapter.



        chapter{Blah}
        begin{refsection}% 3rd `refsection`

        end{refsection}


        To print the bibliography you use:



        printbibliography[section=3,title={Blah Bibliography}]


        The only difference is that you have to run bibtex for each *-blx.aux file.



        Creating bibliographies that depend on criteria is also possible.






        share|improve this answer













        A much easier solution is using the biblatex package and defining a refsection environment in the body of the chapter.



        chapter{Blah}
        begin{refsection}% 3rd `refsection`

        end{refsection}


        To print the bibliography you use:



        printbibliography[section=3,title={Blah Bibliography}]


        The only difference is that you have to run bibtex for each *-blx.aux file.



        Creating bibliographies that depend on criteria is also possible.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 '12 at 10:46







        user10274





































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f37649%2fmanual-bibliography-separated-or-multiple-parts%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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt