emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: "Martin Schöön" <martin.schoon@gmail.com>,
	org-mode <emacs-orgmode@gnu.org>, "Thomas S. Dye" <tsd@tsdye.com>
Subject: Re: First attempt at exporting to PDF.
Date: Sun, 04 May 2014 09:05:07 +0100	[thread overview]
Message-ID: <87bnve0y18.fsf@skimble.plus.com> (raw)
In-Reply-To: <CAJ51ETr=Uisv3VJjk=AKr=i3gh8VC+TC4Sm9AV2diMG_0Jcq=g@mail.gmail.com> (John Kitchin's message of "Sat, 3 May 2014 16:11:33 -0400")

[-- Attachment #1: Type: text/plain, Size: 4725 bytes --]

Thanks for this John, replies in line -
John Kitchin <jkitchin@andrew.cmu.edu> writes:

> you should be able to get references with \cite{key1} and \cite{key2}.
> where key1 and key2 are bibtex keys in a bibtex file called
> references.bib.

I now have references showing in the document as "[\cite{10}]" where
10 is a specified entry in the "references.bib" database. I've put
it in square brackets so that when it appears in the document then
it appears as [10].

Having these as headers helps too
--8<---------------cut here---------------start------------->8---
# -*- mode:org; mode:reftex; indent-tabs-mode:nil; tab-width:2 -*-
#+STARTUP: content
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+OPTIONS: toc:t
#+OPTIONS: ^:{}
#+TITLE: The custard pie mystery.
#+AUTHOR: Sharon Kimble & Sarah ?
#+LINK: notes #%s
#+LATEX_HEADER: \usepackage[hyperref,x11names]{xcolor}
#+LATEX_HEADER: \usepackage[colorlinks=true,urlcolor=SteelBlue4,linkcolor=Firebrick4]{hyperref}
#+LaTeX_HEADER: \usepackage[backend=biber,style=verbose]{biblatex}
#+LaTeX_HEADER: \bibliography{/home/boudiccas/.emacs.d/research/references.bib}
#+LaTeX_HEADER: \usepackage{bussproofs}
#+LaTeX_HEADER: \usepackage{amsmath,amssymb,amsopn}
#+LaTeX_HEADER: \usepackage{graphicx}
#+LaTeX_HEADER: \usepackage{makeidx} %robustindex % Indexing
#+LaTeX_HEADER: \usepackage[british]{babel} % For british english hyphenation patterns
#+LaTeX_HEADER: \usepackage{fancyhdr} % Change caption style; changes headers and page styles
--8<---------------cut here---------------end--------------->8---


> you need at the end of your org-file where you want the bibliography
> to appear:
>
> \bibliographystyle{unsrt}
> \bibliography{references}

I have
--8<---------------cut here---------------start------------->8---
* Bibliography
\bibliographystyle{plain}
\bibliography{references}
--8<---------------cut here---------------end--------------->8---
But all it shows in the pdf is
╭────
│* Bibliography
│
│references
╰────

>
> In your init file, you may need to do this:
> ;; for minted you must run latex with -shell-escape because it calls
> pygmentize as an external program
> (setq org-latex-pdf-process
> '("pdflatex -shell-escape -interaction nonstopmode -output-directory
> %o %b"
> "bibtex %b"
> "pdflatex -shell-escape -interaction nonstopmode -output-directory %o
> %b"
> "pdflatex -shell-escape -interaction nonstopmode -output-directory %o
> %b"))
>
> I do not think org-mode runs bibtex by default. After that you should
> see the references.

I'm not sure what you mean by "minted" but I've included it in my
"setup-testbed.el" at the end, where all new testing code goes, but
I don't see what difference its made.

This is one of the bibliographic references from its database
--8<---------------cut here---------------start------------->8---
@Article{,
  author = 		 {MacRae K. Pattison J.},
  title = 		 {Home chemotherapy.},
  journaltitle = {Nursing Times},
  ALTyear = 	 {2002},
  OPTkey = 		 {8},
  OPTvolume = 	 {98},
  OPTnumber = 	 {35},
  OPTpages = 	 {34-35},
}
--8<---------------cut here---------------end--------------->8---
Where 'key' is actually displayed as "OPTkey", does that make a
difference please?

Thanks
Sharon.
>
> John
>
> -----------------------------------
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu
>
> On Sat, May 3, 2014 at 4:00 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
>
>     Aloha Sharon,
>     
>     
>     Sharon Kimble <boudiccas@skimble.plus.com> writes:
>     
>     >> I have never tried what you are trying to do with references so
>     >> someone
>     >> else must step in and help you there.
>     >
>     > Just hope someone steps up to the plate?
>     
>     
>     This was written for the old exporter, but it might be useful to
>     you:
>     
>     http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17
>     
>     Also, the BibTeX entry in your original post was mal-formed. It
>     lacked
>     a key and the author field looked wrong, IIRC. You might want to
>     check out
>     the BibTeX file format:
>     
>     http://www.bibtex.org/Format/
>     
>     hth,
>     Tom
>     
>     --
>     Thomas S. Dye
>     http://www.tsdye.com
>     
>     
>
>

-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.4.50.19

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2014-05-04  8:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03 15:55 First attempt at exporting to PDF Sharon Kimble
2014-05-03 17:32 ` Martin Schöön
2014-05-03 19:05   ` Sharon Kimble
2014-05-03 20:00     ` Thomas S. Dye
2014-05-03 20:11       ` John Kitchin
2014-05-04  8:05         ` Sharon Kimble [this message]
2014-05-03 17:41 ` Nick Dokos
2014-05-05 16:47 ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnve0y18.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    --cc=martin.schoon@gmail.com \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).