Two Bibliographies: one for main text and one for appendix












46















I have a manuscript in which has the following structure:



Main Text
Bibliography
Appendix


However, there are citations which are only cited in the appendix, and they show up in the main bibliography. I would like to split my Bibliography into two different sections, so that the structure of the paper would look like this:



Main Text
Bibliography for Main Text
Appendix
Bibliography for Appendix


I'm currently using bibtex and a single .bib file, and creating the bibliography with



bibliographystyle {someBibStyleFile}
bibliography {bibFileName}


I'm interested in a method to split my single bibliography into main bibliography and appendix bibliography with minimal changes to the rest of the document.
I'm aware that biblatex is more powerful than bibtex, but I'm not prepared to make the switch before the deadline of this project. There are many related bibliography-with-multiple-sections type of questions, but I didn't see one that covers this case.










share|improve this question




















  • 2





    have a look at Per-chapter bibliographies in biblatex

    – cmhughes
    Feb 18 '13 at 4:39
















46















I have a manuscript in which has the following structure:



Main Text
Bibliography
Appendix


However, there are citations which are only cited in the appendix, and they show up in the main bibliography. I would like to split my Bibliography into two different sections, so that the structure of the paper would look like this:



Main Text
Bibliography for Main Text
Appendix
Bibliography for Appendix


I'm currently using bibtex and a single .bib file, and creating the bibliography with



bibliographystyle {someBibStyleFile}
bibliography {bibFileName}


I'm interested in a method to split my single bibliography into main bibliography and appendix bibliography with minimal changes to the rest of the document.
I'm aware that biblatex is more powerful than bibtex, but I'm not prepared to make the switch before the deadline of this project. There are many related bibliography-with-multiple-sections type of questions, but I didn't see one that covers this case.










share|improve this question




















  • 2





    have a look at Per-chapter bibliographies in biblatex

    – cmhughes
    Feb 18 '13 at 4:39














46












46








46


11






I have a manuscript in which has the following structure:



Main Text
Bibliography
Appendix


However, there are citations which are only cited in the appendix, and they show up in the main bibliography. I would like to split my Bibliography into two different sections, so that the structure of the paper would look like this:



Main Text
Bibliography for Main Text
Appendix
Bibliography for Appendix


I'm currently using bibtex and a single .bib file, and creating the bibliography with



bibliographystyle {someBibStyleFile}
bibliography {bibFileName}


I'm interested in a method to split my single bibliography into main bibliography and appendix bibliography with minimal changes to the rest of the document.
I'm aware that biblatex is more powerful than bibtex, but I'm not prepared to make the switch before the deadline of this project. There are many related bibliography-with-multiple-sections type of questions, but I didn't see one that covers this case.










share|improve this question
















I have a manuscript in which has the following structure:



Main Text
Bibliography
Appendix


However, there are citations which are only cited in the appendix, and they show up in the main bibliography. I would like to split my Bibliography into two different sections, so that the structure of the paper would look like this:



Main Text
Bibliography for Main Text
Appendix
Bibliography for Appendix


I'm currently using bibtex and a single .bib file, and creating the bibliography with



bibliographystyle {someBibStyleFile}
bibliography {bibFileName}


I'm interested in a method to split my single bibliography into main bibliography and appendix bibliography with minimal changes to the rest of the document.
I'm aware that biblatex is more powerful than bibtex, but I'm not prepared to make the switch before the deadline of this project. There are many related bibliography-with-multiple-sections type of questions, but I didn't see one that covers this case.







bibtex bibliographies appendices subdividing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 18 '13 at 2:39









lockstep

193k53593723




193k53593723










asked Feb 17 '13 at 22:59









JoeJoe

5371510




5371510








  • 2





    have a look at Per-chapter bibliographies in biblatex

    – cmhughes
    Feb 18 '13 at 4:39














  • 2





    have a look at Per-chapter bibliographies in biblatex

    – cmhughes
    Feb 18 '13 at 4:39








2




2





have a look at Per-chapter bibliographies in biblatex

– cmhughes
Feb 18 '13 at 4:39





have a look at Per-chapter bibliographies in biblatex

– cmhughes
Feb 18 '13 at 4:39










4 Answers
4






active

oldest

votes


















25














Here's a solution with the biblatex package. The following shows how to do it. Make sure you run bibtex on all auxiliary files, all *[0-9]-blx.aux files.



documentclass{article}

usepackage{filecontents}
usepackage{biblatex}

begin{filecontents}{myrefs.bib}
@Book{Knuth:1990,
author = {Knuth, Donald E.},
title = {The {TeX}book},
year = {1990},
isbn = {0-201-13447-0},
publisher = {Addison,textendash,Wesley},
}

@Book{Lamport:94,
author = {Lamport, Leslie},
title = {LaTeX: A Document Preparation System},
year = {1994},
isbn = {0-021-52983-1},
publisher = {Addison,textendash,Wesley},
}
end{filecontents}

addbibresource{myrefs.bib}
begin{document}

section{First}
{LaTeX} is aTuring-complete
(procedural) markup language and
typesetting processor~parencite{Lamport:94}.


printbibliography
appendix
section{Second}
begin{refsection}
The ultimate reference of {TeX} is~parencite{Knuth:1990}.
printbibliography[heading=subbibliography]
end{refsection}

end{document}


example output






share|improve this answer





















  • 3





    I was hoping for a solution that didn't use biblatex

    – Joe
    Feb 18 '13 at 5:46











  • @Joe Any reason why you don't want to use biblatex?

    – user10274
    Feb 18 '13 at 6:12






  • 1





    @PatrickT No, I meant bibtex.

    – user10274
    May 14 '16 at 8:34






  • 1





    Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

    – PatrickT
    May 15 '16 at 8:58






  • 1





    I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

    – PatrickT
    May 15 '16 at 9:00



















16














with multibibyou can define more than one bib.



RequirePackage{filecontents}
begin{filecontents}{myrefs.bib}
@Book{Knuth:1990,
author = {Knuth, Donald E.},
title = {The {TeX}book},
year = {1990},
isbn = {0-201-13447-0},
publisher = {Addison,textendash,Wesley},
}

@Book{Lamport:94,
author = {Lamport, Leslie},
title = {{LaTeX}: A Document Preparation System},
year = {1994},
isbn = {0-021-52983-1},
publisher = {Addison,textendash,Wesley},
}
end{filecontents}

documentclass{article}
usepackage{multibib}
newcites{latex}{LaTeX-Literature}% citelatex, nocitelatex, ...

begin{document}

section{First}
citelatex{Lamport:94} wrote LaTeX.

bibliographystylelatex{alpha}
bibliographylatex{myrefs}

appendix
section{Second}
The ultimate reference~cite{Knuth:1990}

bibliographystyle{plain}
bibliography{myrefs}

end{document}


with newcites{suffix}{heading} you can define the special macros.
The example has to be run with



pdflatex <file>
bibtex <file>.aux
bibtex latex.aux
pdflatex <file>


every additional bib needs its own bibtex run and can have a different bibstyle:



enter image description here






share|improve this answer

































    11














    You can use the bibunits package and structure your document as follows



    documentclass{book}
    usepackage{bibunits}

    defaultbibliography{<bib-file>}
    defaultbibliographystyle{<preferred bib style>}

    begin{document}
    begin{bibunit}
    Main Text
    putbib
    end{bibunit}

    begin{bibunit}
    Appendix
    putbib
    end{bibunit}
    end{document}





    share|improve this answer
























    • It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

      – leo
      Feb 18 '13 at 4:41






    • 1





      This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

      – Andrew Swann
      Dec 5 '13 at 20:11



















    0














    Another possible solution is to simply compile the body and the appendix separately, and then append them on the back end. A basic script to do this would look like:



    latex body.tex
    bibtex body.aux
    latex body.tex
    latex body.tex
    dvips -P pdf body.dvi
    ps2pdf body.ps

    latex appendix.tex
    bibtex appendix.aux
    latex body.tex
    latex body.tex
    dvips -P pdf appendix.dvi
    ps2pdf appendix.ps

    gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=main.pdf body.pdf appendix.pdf


    In this situation, you would need to surround your appendix.tex with appropriate preamble, begin{document}, and end{document}.



    The last command (appending via Ghostscript) is taken from the second-ranked answer here. You need to run latex at least thrice, as explained here.



    A streamlined script that I wrote (and regularly use), and which you can run from your Linux terminal, is available on GitHub here. It has a few more bells and whistles (syntax checking, deletion of temporary LaTeX compilation files, etc.). The basic syntax is combiner body.tex appendix.tex master.pdf.






    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%2f98660%2ftwo-bibliographies-one-for-main-text-and-one-for-appendix%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      25














      Here's a solution with the biblatex package. The following shows how to do it. Make sure you run bibtex on all auxiliary files, all *[0-9]-blx.aux files.



      documentclass{article}

      usepackage{filecontents}
      usepackage{biblatex}

      begin{filecontents}{myrefs.bib}
      @Book{Knuth:1990,
      author = {Knuth, Donald E.},
      title = {The {TeX}book},
      year = {1990},
      isbn = {0-201-13447-0},
      publisher = {Addison,textendash,Wesley},
      }

      @Book{Lamport:94,
      author = {Lamport, Leslie},
      title = {LaTeX: A Document Preparation System},
      year = {1994},
      isbn = {0-021-52983-1},
      publisher = {Addison,textendash,Wesley},
      }
      end{filecontents}

      addbibresource{myrefs.bib}
      begin{document}

      section{First}
      {LaTeX} is aTuring-complete
      (procedural) markup language and
      typesetting processor~parencite{Lamport:94}.


      printbibliography
      appendix
      section{Second}
      begin{refsection}
      The ultimate reference of {TeX} is~parencite{Knuth:1990}.
      printbibliography[heading=subbibliography]
      end{refsection}

      end{document}


      example output






      share|improve this answer





















      • 3





        I was hoping for a solution that didn't use biblatex

        – Joe
        Feb 18 '13 at 5:46











      • @Joe Any reason why you don't want to use biblatex?

        – user10274
        Feb 18 '13 at 6:12






      • 1





        @PatrickT No, I meant bibtex.

        – user10274
        May 14 '16 at 8:34






      • 1





        Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

        – PatrickT
        May 15 '16 at 8:58






      • 1





        I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

        – PatrickT
        May 15 '16 at 9:00
















      25














      Here's a solution with the biblatex package. The following shows how to do it. Make sure you run bibtex on all auxiliary files, all *[0-9]-blx.aux files.



      documentclass{article}

      usepackage{filecontents}
      usepackage{biblatex}

      begin{filecontents}{myrefs.bib}
      @Book{Knuth:1990,
      author = {Knuth, Donald E.},
      title = {The {TeX}book},
      year = {1990},
      isbn = {0-201-13447-0},
      publisher = {Addison,textendash,Wesley},
      }

      @Book{Lamport:94,
      author = {Lamport, Leslie},
      title = {LaTeX: A Document Preparation System},
      year = {1994},
      isbn = {0-021-52983-1},
      publisher = {Addison,textendash,Wesley},
      }
      end{filecontents}

      addbibresource{myrefs.bib}
      begin{document}

      section{First}
      {LaTeX} is aTuring-complete
      (procedural) markup language and
      typesetting processor~parencite{Lamport:94}.


      printbibliography
      appendix
      section{Second}
      begin{refsection}
      The ultimate reference of {TeX} is~parencite{Knuth:1990}.
      printbibliography[heading=subbibliography]
      end{refsection}

      end{document}


      example output






      share|improve this answer





















      • 3





        I was hoping for a solution that didn't use biblatex

        – Joe
        Feb 18 '13 at 5:46











      • @Joe Any reason why you don't want to use biblatex?

        – user10274
        Feb 18 '13 at 6:12






      • 1





        @PatrickT No, I meant bibtex.

        – user10274
        May 14 '16 at 8:34






      • 1





        Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

        – PatrickT
        May 15 '16 at 8:58






      • 1





        I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

        – PatrickT
        May 15 '16 at 9:00














      25












      25








      25







      Here's a solution with the biblatex package. The following shows how to do it. Make sure you run bibtex on all auxiliary files, all *[0-9]-blx.aux files.



      documentclass{article}

      usepackage{filecontents}
      usepackage{biblatex}

      begin{filecontents}{myrefs.bib}
      @Book{Knuth:1990,
      author = {Knuth, Donald E.},
      title = {The {TeX}book},
      year = {1990},
      isbn = {0-201-13447-0},
      publisher = {Addison,textendash,Wesley},
      }

      @Book{Lamport:94,
      author = {Lamport, Leslie},
      title = {LaTeX: A Document Preparation System},
      year = {1994},
      isbn = {0-021-52983-1},
      publisher = {Addison,textendash,Wesley},
      }
      end{filecontents}

      addbibresource{myrefs.bib}
      begin{document}

      section{First}
      {LaTeX} is aTuring-complete
      (procedural) markup language and
      typesetting processor~parencite{Lamport:94}.


      printbibliography
      appendix
      section{Second}
      begin{refsection}
      The ultimate reference of {TeX} is~parencite{Knuth:1990}.
      printbibliography[heading=subbibliography]
      end{refsection}

      end{document}


      example output






      share|improve this answer















      Here's a solution with the biblatex package. The following shows how to do it. Make sure you run bibtex on all auxiliary files, all *[0-9]-blx.aux files.



      documentclass{article}

      usepackage{filecontents}
      usepackage{biblatex}

      begin{filecontents}{myrefs.bib}
      @Book{Knuth:1990,
      author = {Knuth, Donald E.},
      title = {The {TeX}book},
      year = {1990},
      isbn = {0-201-13447-0},
      publisher = {Addison,textendash,Wesley},
      }

      @Book{Lamport:94,
      author = {Lamport, Leslie},
      title = {LaTeX: A Document Preparation System},
      year = {1994},
      isbn = {0-021-52983-1},
      publisher = {Addison,textendash,Wesley},
      }
      end{filecontents}

      addbibresource{myrefs.bib}
      begin{document}

      section{First}
      {LaTeX} is aTuring-complete
      (procedural) markup language and
      typesetting processor~parencite{Lamport:94}.


      printbibliography
      appendix
      section{Second}
      begin{refsection}
      The ultimate reference of {TeX} is~parencite{Knuth:1990}.
      printbibliography[heading=subbibliography]
      end{refsection}

      end{document}


      example output







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 18 '13 at 12:20

























      answered Feb 18 '13 at 4:35







      user10274















      • 3





        I was hoping for a solution that didn't use biblatex

        – Joe
        Feb 18 '13 at 5:46











      • @Joe Any reason why you don't want to use biblatex?

        – user10274
        Feb 18 '13 at 6:12






      • 1





        @PatrickT No, I meant bibtex.

        – user10274
        May 14 '16 at 8:34






      • 1





        Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

        – PatrickT
        May 15 '16 at 8:58






      • 1





        I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

        – PatrickT
        May 15 '16 at 9:00














      • 3





        I was hoping for a solution that didn't use biblatex

        – Joe
        Feb 18 '13 at 5:46











      • @Joe Any reason why you don't want to use biblatex?

        – user10274
        Feb 18 '13 at 6:12






      • 1





        @PatrickT No, I meant bibtex.

        – user10274
        May 14 '16 at 8:34






      • 1





        Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

        – PatrickT
        May 15 '16 at 8:58






      • 1





        I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

        – PatrickT
        May 15 '16 at 9:00








      3




      3





      I was hoping for a solution that didn't use biblatex

      – Joe
      Feb 18 '13 at 5:46





      I was hoping for a solution that didn't use biblatex

      – Joe
      Feb 18 '13 at 5:46













      @Joe Any reason why you don't want to use biblatex?

      – user10274
      Feb 18 '13 at 6:12





      @Joe Any reason why you don't want to use biblatex?

      – user10274
      Feb 18 '13 at 6:12




      1




      1





      @PatrickT No, I meant bibtex.

      – user10274
      May 14 '16 at 8:34





      @PatrickT No, I meant bibtex.

      – user10274
      May 14 '16 at 8:34




      1




      1





      Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

      – PatrickT
      May 15 '16 at 8:58





      Apologies, I was trying to compile it with XeLaTeX. I have successfully compiled it with PDFLaTeX and it looks just like your screenshot (a single .aux file was produced). But no luck with XeLaTeX. Since I was interested in XeLaTeX, I apparently hadn't tried with PDFLaTeX.

      – PatrickT
      May 15 '16 at 8:58




      1




      1





      I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

      – PatrickT
      May 15 '16 at 9:00





      I deleted the comment above where I claimed that I had tried with PDFLaTeX, obviously not true. Problem came from having various shortcuts to compile with different engines and getting mixed up about which shortcut was calling which engine... sigh.

      – PatrickT
      May 15 '16 at 9:00











      16














      with multibibyou can define more than one bib.



      RequirePackage{filecontents}
      begin{filecontents}{myrefs.bib}
      @Book{Knuth:1990,
      author = {Knuth, Donald E.},
      title = {The {TeX}book},
      year = {1990},
      isbn = {0-201-13447-0},
      publisher = {Addison,textendash,Wesley},
      }

      @Book{Lamport:94,
      author = {Lamport, Leslie},
      title = {{LaTeX}: A Document Preparation System},
      year = {1994},
      isbn = {0-021-52983-1},
      publisher = {Addison,textendash,Wesley},
      }
      end{filecontents}

      documentclass{article}
      usepackage{multibib}
      newcites{latex}{LaTeX-Literature}% citelatex, nocitelatex, ...

      begin{document}

      section{First}
      citelatex{Lamport:94} wrote LaTeX.

      bibliographystylelatex{alpha}
      bibliographylatex{myrefs}

      appendix
      section{Second}
      The ultimate reference~cite{Knuth:1990}

      bibliographystyle{plain}
      bibliography{myrefs}

      end{document}


      with newcites{suffix}{heading} you can define the special macros.
      The example has to be run with



      pdflatex <file>
      bibtex <file>.aux
      bibtex latex.aux
      pdflatex <file>


      every additional bib needs its own bibtex run and can have a different bibstyle:



      enter image description here






      share|improve this answer






























        16














        with multibibyou can define more than one bib.



        RequirePackage{filecontents}
        begin{filecontents}{myrefs.bib}
        @Book{Knuth:1990,
        author = {Knuth, Donald E.},
        title = {The {TeX}book},
        year = {1990},
        isbn = {0-201-13447-0},
        publisher = {Addison,textendash,Wesley},
        }

        @Book{Lamport:94,
        author = {Lamport, Leslie},
        title = {{LaTeX}: A Document Preparation System},
        year = {1994},
        isbn = {0-021-52983-1},
        publisher = {Addison,textendash,Wesley},
        }
        end{filecontents}

        documentclass{article}
        usepackage{multibib}
        newcites{latex}{LaTeX-Literature}% citelatex, nocitelatex, ...

        begin{document}

        section{First}
        citelatex{Lamport:94} wrote LaTeX.

        bibliographystylelatex{alpha}
        bibliographylatex{myrefs}

        appendix
        section{Second}
        The ultimate reference~cite{Knuth:1990}

        bibliographystyle{plain}
        bibliography{myrefs}

        end{document}


        with newcites{suffix}{heading} you can define the special macros.
        The example has to be run with



        pdflatex <file>
        bibtex <file>.aux
        bibtex latex.aux
        pdflatex <file>


        every additional bib needs its own bibtex run and can have a different bibstyle:



        enter image description here






        share|improve this answer




























          16












          16








          16







          with multibibyou can define more than one bib.



          RequirePackage{filecontents}
          begin{filecontents}{myrefs.bib}
          @Book{Knuth:1990,
          author = {Knuth, Donald E.},
          title = {The {TeX}book},
          year = {1990},
          isbn = {0-201-13447-0},
          publisher = {Addison,textendash,Wesley},
          }

          @Book{Lamport:94,
          author = {Lamport, Leslie},
          title = {{LaTeX}: A Document Preparation System},
          year = {1994},
          isbn = {0-021-52983-1},
          publisher = {Addison,textendash,Wesley},
          }
          end{filecontents}

          documentclass{article}
          usepackage{multibib}
          newcites{latex}{LaTeX-Literature}% citelatex, nocitelatex, ...

          begin{document}

          section{First}
          citelatex{Lamport:94} wrote LaTeX.

          bibliographystylelatex{alpha}
          bibliographylatex{myrefs}

          appendix
          section{Second}
          The ultimate reference~cite{Knuth:1990}

          bibliographystyle{plain}
          bibliography{myrefs}

          end{document}


          with newcites{suffix}{heading} you can define the special macros.
          The example has to be run with



          pdflatex <file>
          bibtex <file>.aux
          bibtex latex.aux
          pdflatex <file>


          every additional bib needs its own bibtex run and can have a different bibstyle:



          enter image description here






          share|improve this answer















          with multibibyou can define more than one bib.



          RequirePackage{filecontents}
          begin{filecontents}{myrefs.bib}
          @Book{Knuth:1990,
          author = {Knuth, Donald E.},
          title = {The {TeX}book},
          year = {1990},
          isbn = {0-201-13447-0},
          publisher = {Addison,textendash,Wesley},
          }

          @Book{Lamport:94,
          author = {Lamport, Leslie},
          title = {{LaTeX}: A Document Preparation System},
          year = {1994},
          isbn = {0-021-52983-1},
          publisher = {Addison,textendash,Wesley},
          }
          end{filecontents}

          documentclass{article}
          usepackage{multibib}
          newcites{latex}{LaTeX-Literature}% citelatex, nocitelatex, ...

          begin{document}

          section{First}
          citelatex{Lamport:94} wrote LaTeX.

          bibliographystylelatex{alpha}
          bibliographylatex{myrefs}

          appendix
          section{Second}
          The ultimate reference~cite{Knuth:1990}

          bibliographystyle{plain}
          bibliography{myrefs}

          end{document}


          with newcites{suffix}{heading} you can define the special macros.
          The example has to be run with



          pdflatex <file>
          bibtex <file>.aux
          bibtex latex.aux
          pdflatex <file>


          every additional bib needs its own bibtex run and can have a different bibstyle:



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 18 '13 at 6:52

























          answered Feb 18 '13 at 6:36







          user2478






























              11














              You can use the bibunits package and structure your document as follows



              documentclass{book}
              usepackage{bibunits}

              defaultbibliography{<bib-file>}
              defaultbibliographystyle{<preferred bib style>}

              begin{document}
              begin{bibunit}
              Main Text
              putbib
              end{bibunit}

              begin{bibunit}
              Appendix
              putbib
              end{bibunit}
              end{document}





              share|improve this answer
























              • It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

                – leo
                Feb 18 '13 at 4:41






              • 1





                This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

                – Andrew Swann
                Dec 5 '13 at 20:11
















              11














              You can use the bibunits package and structure your document as follows



              documentclass{book}
              usepackage{bibunits}

              defaultbibliography{<bib-file>}
              defaultbibliographystyle{<preferred bib style>}

              begin{document}
              begin{bibunit}
              Main Text
              putbib
              end{bibunit}

              begin{bibunit}
              Appendix
              putbib
              end{bibunit}
              end{document}





              share|improve this answer
























              • It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

                – leo
                Feb 18 '13 at 4:41






              • 1





                This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

                – Andrew Swann
                Dec 5 '13 at 20:11














              11












              11








              11







              You can use the bibunits package and structure your document as follows



              documentclass{book}
              usepackage{bibunits}

              defaultbibliography{<bib-file>}
              defaultbibliographystyle{<preferred bib style>}

              begin{document}
              begin{bibunit}
              Main Text
              putbib
              end{bibunit}

              begin{bibunit}
              Appendix
              putbib
              end{bibunit}
              end{document}





              share|improve this answer













              You can use the bibunits package and structure your document as follows



              documentclass{book}
              usepackage{bibunits}

              defaultbibliography{<bib-file>}
              defaultbibliographystyle{<preferred bib style>}

              begin{document}
              begin{bibunit}
              Main Text
              putbib
              end{bibunit}

              begin{bibunit}
              Appendix
              putbib
              end{bibunit}
              end{document}






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Feb 18 '13 at 4:22









              GuidoGuido

              24.7k55188




              24.7k55188













              • It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

                – leo
                Feb 18 '13 at 4:41






              • 1





                This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

                – Andrew Swann
                Dec 5 '13 at 20:11



















              • It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

                – leo
                Feb 18 '13 at 4:41






              • 1





                This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

                – Andrew Swann
                Dec 5 '13 at 20:11

















              It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

              – leo
              Feb 18 '13 at 4:41





              It is not clear to me how do you put the two different bibliographys as requested. As is, this seems to print the same biblio in two different places.

              – leo
              Feb 18 '13 at 4:41




              1




              1





              This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

              – Andrew Swann
              Dec 5 '13 at 20:11





              This is the standard way bibunit works, putbib just prints a list of references for the cite commands in the current unit.

              – Andrew Swann
              Dec 5 '13 at 20:11











              0














              Another possible solution is to simply compile the body and the appendix separately, and then append them on the back end. A basic script to do this would look like:



              latex body.tex
              bibtex body.aux
              latex body.tex
              latex body.tex
              dvips -P pdf body.dvi
              ps2pdf body.ps

              latex appendix.tex
              bibtex appendix.aux
              latex body.tex
              latex body.tex
              dvips -P pdf appendix.dvi
              ps2pdf appendix.ps

              gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=main.pdf body.pdf appendix.pdf


              In this situation, you would need to surround your appendix.tex with appropriate preamble, begin{document}, and end{document}.



              The last command (appending via Ghostscript) is taken from the second-ranked answer here. You need to run latex at least thrice, as explained here.



              A streamlined script that I wrote (and regularly use), and which you can run from your Linux terminal, is available on GitHub here. It has a few more bells and whistles (syntax checking, deletion of temporary LaTeX compilation files, etc.). The basic syntax is combiner body.tex appendix.tex master.pdf.






              share|improve this answer




























                0














                Another possible solution is to simply compile the body and the appendix separately, and then append them on the back end. A basic script to do this would look like:



                latex body.tex
                bibtex body.aux
                latex body.tex
                latex body.tex
                dvips -P pdf body.dvi
                ps2pdf body.ps

                latex appendix.tex
                bibtex appendix.aux
                latex body.tex
                latex body.tex
                dvips -P pdf appendix.dvi
                ps2pdf appendix.ps

                gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=main.pdf body.pdf appendix.pdf


                In this situation, you would need to surround your appendix.tex with appropriate preamble, begin{document}, and end{document}.



                The last command (appending via Ghostscript) is taken from the second-ranked answer here. You need to run latex at least thrice, as explained here.



                A streamlined script that I wrote (and regularly use), and which you can run from your Linux terminal, is available on GitHub here. It has a few more bells and whistles (syntax checking, deletion of temporary LaTeX compilation files, etc.). The basic syntax is combiner body.tex appendix.tex master.pdf.






                share|improve this answer


























                  0












                  0








                  0







                  Another possible solution is to simply compile the body and the appendix separately, and then append them on the back end. A basic script to do this would look like:



                  latex body.tex
                  bibtex body.aux
                  latex body.tex
                  latex body.tex
                  dvips -P pdf body.dvi
                  ps2pdf body.ps

                  latex appendix.tex
                  bibtex appendix.aux
                  latex body.tex
                  latex body.tex
                  dvips -P pdf appendix.dvi
                  ps2pdf appendix.ps

                  gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=main.pdf body.pdf appendix.pdf


                  In this situation, you would need to surround your appendix.tex with appropriate preamble, begin{document}, and end{document}.



                  The last command (appending via Ghostscript) is taken from the second-ranked answer here. You need to run latex at least thrice, as explained here.



                  A streamlined script that I wrote (and regularly use), and which you can run from your Linux terminal, is available on GitHub here. It has a few more bells and whistles (syntax checking, deletion of temporary LaTeX compilation files, etc.). The basic syntax is combiner body.tex appendix.tex master.pdf.






                  share|improve this answer













                  Another possible solution is to simply compile the body and the appendix separately, and then append them on the back end. A basic script to do this would look like:



                  latex body.tex
                  bibtex body.aux
                  latex body.tex
                  latex body.tex
                  dvips -P pdf body.dvi
                  ps2pdf body.ps

                  latex appendix.tex
                  bibtex appendix.aux
                  latex body.tex
                  latex body.tex
                  dvips -P pdf appendix.dvi
                  ps2pdf appendix.ps

                  gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=main.pdf body.pdf appendix.pdf


                  In this situation, you would need to surround your appendix.tex with appropriate preamble, begin{document}, and end{document}.



                  The last command (appending via Ghostscript) is taken from the second-ranked answer here. You need to run latex at least thrice, as explained here.



                  A streamlined script that I wrote (and regularly use), and which you can run from your Linux terminal, is available on GitHub here. It has a few more bells and whistles (syntax checking, deletion of temporary LaTeX compilation files, etc.). The basic syntax is combiner body.tex appendix.tex master.pdf.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 17 '18 at 16:06









                  Tyler R.Tyler R.

                  415




                  415






























                      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%2f98660%2ftwo-bibliographies-one-for-main-text-and-one-for-appendix%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

                      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