so, BibTeX, eh?

Discussion in 'Mac Apps and Mac App Store' started by flat6, Mar 7, 2007.

  1. flat6 macrumors regular

    Joined:
    Oct 24, 2004
    #1
    I'm trying to use BibTeX for the first time, ran into trouble.

    I've got a "document.tex" file:

    Code:
    \input{preamble}
    \begin{document}
    \include{chapter1}
    
    \bibliography{references}
    \end{document}
    ...and a "references.bib" file:

    Code:
    @article{a+b,
    	author =	"P. Aaaaaa, O. Bbbbbb, and K. Ccccccc",
    	title =		"Toward Large of Stuff",
    	journal =	"Some Letters",
    	volume =	3,
    	pages =	(347--351),
    	year =		2003,
    }
    I've tried this using TeXShop's 'Typeset' command (gives "I couldn't open file references.aux") and also using texmaker's 'BibTex' command (gives "Process exited with error(s)").

    So, what am I doing wrong?
     
  2. swiftaw macrumors 603

    swiftaw

    Joined:
    Jan 31, 2005
    Location:
    Omaha, NE, USA
    #2
    In texShop I believe you have to typeset the document using Latex then typeset it again using BibTex. The .aux file is created when you typeset using latex.
     
  3. flat6 thread starter macrumors regular

    Joined:
    Oct 24, 2004
    #3
    If I understand you correctly, that means open up the .bib file in TeXShop, select "LaTeX" from the drop-down menu, press "Typeset", then select "BibTeX" from drop-down menu, press "Typeset" again?

    I just gave that a try now, got "! LaTeX Error: Missing \begin{document}." at the first step, that is, when I press "Typeset" while in "LaTeX" mode.
     
  4. swiftaw macrumors 603

    swiftaw

    Joined:
    Jan 31, 2005
    Location:
    Omaha, NE, USA
    #4
    No, you never complie the .bib file, just the .tex file.

    Open up the .tex file and compile it using Latex (Shift+Apple+L) then compile it using Bibtex (Shift+Apple+B)

    You might then have to compile it again using Latex to finish the process.
     
  5. flat6 thread starter macrumors regular

    Joined:
    Oct 24, 2004
    #5
    Ah, excellent. Works beautifully, thanks for teaching me that swiftaw.
     

Share This Page