[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] First attempt at exporting to PDF.
From: |
Sharon Kimble |
Subject: |
Re: [O] First attempt at exporting to PDF. |
Date: |
Sun, 04 May 2014 09:05:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Thanks for this John, replies in line -
John Kitchin <address@hidden> 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 <address@hidden> wrote:
>
> Aloha Sharon,
>
>
> Sharon Kimble <address@hidden> 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
signature.asc
Description: PGP signature
Re: [O] First attempt at exporting to PDF., Nick Dokos, 2014/05/03
Re: [O] First attempt at exporting to PDF., Eric S Fraga, 2014/05/05