{"id":969,"date":"2008-08-26T18:34:11","date_gmt":"2008-08-26T18:34:11","guid":{"rendered":"http:\/\/www.bartbusschots.ie\/blog\/?p=969"},"modified":"2014-08-05T20:09:05","modified_gmt":"2014-08-05T20:09:05","slug":"a-quick-dirty-bibtex-cheat-sheet","status":"publish","type":"post","link":"https:\/\/www.bartbusschots.ie\/s\/2008\/08\/26\/a-quick-dirty-bibtex-cheat-sheet\/","title":{"rendered":"A Quick &#038; Dirty BibTex Cheat-Sheet"},"content":{"rendered":"<p>This is just a quick guide to getting BibTeX to work in a LaTeX document. This is not meant to be an introduction to BibTeX for someone who&#8217;s never heard of it, but rather a cheat-sheet for those of us who don&#8217;t use it quite often enough to remember the details without a little help.<\/p>\n<p>First you need to create and manage your bibliography database (<code>.bib<\/code> file). You could do this by hand, but if you&#8217;re on OS X I&#8217;d highly recommend <a href=\"http:\/\/bibdesk.sourceforge.net\/\" target=\"_blank\">BibDesk<\/a>. Much simpler.<\/p>\n<p>Secondly, you insert citations in the document using the <code>\\cite{}<\/code> command. Each entry in your bibliography database has a separate <em>citation key<\/em>, you use this key to insert a reference. For example, if my bibliography database contained a reference with a citation key &#8216;Busschots2008&#8217; I&#8217;d insert a citation to that reference with the command: <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\cite{Busschots2008}\n<\/pre>\n<p>Thirdly, you need to include your bibliography in your document. To do this you need to set a style for it, and then include it. If you&#8217;re not sure what style to use start with <em>plain<\/em>. Assuming your bibliography database is in a file called <code>Sample.bib<\/code>, you&#8217;d include it with the following code (notice that you don&#8217;t add <code>.bib<\/code> to the end of the file name):<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\bibliographystyle{plain}\n\\bibliography{Sample}\n<\/pre>\n<p>Finally, to render the document you now need to run your document through both BibTex and LaTeX in the following order:<\/p>\n<ol>\n<li><code>latex<\/code><\/li>\n<li><code>bibtex<\/code><\/li>\n<li><code>latex<\/code><\/li>\n<li><code>latex<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This is just a quick guide to getting BibTeX to work in a LaTeX document. This is not meant to be an introduction to BibTeX for someone who&#8217;s never heard of it, but rather a cheat-sheet for those of us who don&#8217;t use it quite often enough to remember the details without a little help. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[12],"tags":[489,490,458],"series":[],"class_list":["post-969","post","type-post","status-publish","format-standard","hentry","category-computers-tech","tag-bibtex","tag-latex","tag-tutorial"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7t9xK-fD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/comments?post=969"}],"version-history":[{"count":2,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/969\/revisions"}],"predecessor-version":[{"id":7486,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/posts\/969\/revisions\/7486"}],"wp:attachment":[{"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/media?parent=969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/categories?post=969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/tags?post=969"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.bartbusschots.ie\/s\/wp-json\/wp\/v2\/series?post=969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}