emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: George Jones <eludom@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: ox-bibtex.el references working in sample.org
Date: Mon, 13 May 2013 23:56:02 +0000	[thread overview]
Message-ID: <CAOhM7yUMgB+xg_ZN9yMB+murLUSwf+WEMEu-mb7CrRKZ-v9QQw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 475 bytes --]

Both LaTeX and HTML citations and bibliography generation in the new
ox-bibtex.el
seem to be working.

Test .org file attached

Ran it with a larger document I'm working on, and the references seemed to
work.
Having some issues now with figures and references, but I'm probably just
using old-style stuff here.   Next battle.

What we want is illustrated by figure \ref{WhatWeWant}

#+CAPTION: What we want
#+LABEL: fig:WhatWeWant

Thanks for your work/help,
---George Jones

[-- Attachment #1.2: Type: text/html, Size: 644 bytes --]

[-- Attachment #2: simple.org --]
[-- Type: application/octet-stream, Size: 2615 bytes --]

#+TITLE: Test of new ox-bibtex.el
#+DATE: <2013-05-13 Mon>
#+AUTHOR:George Jones 
#+EMAIL: gmj@pobox.com
#+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:(not LOGBOOK) date:t e:t
#+OPTIONS: email:nil f:t inline:t num:t p:nil pri:nil stat:t tags:t
#+OPTIONS: tasks:t tex:t timestamp:t toc:nil todo:t |:t
#+CREATOR: Emacs 24.3.50.1 (Org mode 8.0.2)
#+DESCRIPTION:
#+EXCLUDE_TAGS: noexport
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export

* Cite something
  \cite{schulte2012multi} is a most interesting and useful paper.

* Intro
  - This is a simple file for testing bibtex referecnes in the new emacs exporter.
  - It uses the file ox-bibtex.el  
    + Testing version of May 12 2013 provided by Nicolas Gaoziou
  - Inputs: this file, and refs.bib
  - Outputs: simple.pdf (via LaTeX) and simple.html (via HTML export)   

* LaTeX installation

  - Assumes you've done something like this (this example for Ubuntu 12.04)
    #+BEGIN_EXAMPLE
    sudo apt-get -y install texlive
    sudo apt-get -y install texlive-latex-extra
    sudo apt-get -y install texlive-bibtex-extra
    sudo apt-get -y install bibtex2html
    sudo apt-get -y install texlive-plain-extra
    sudo apt-get -y install xpdf
    #+END_EXAMPLE

* To Use
** LaTeX/PDF
     #+BEGIN_EXAMPLE
     CTRL-C CTRL-E l l
     #+END_EXAMPLE
     
     to create simple.tex then

     #+BEGIN_EXAMPLE
     pdflatex simple
     bibtex simple
     pdflatex simple
     pdflatex simple
     #+END_EXAMPLE
** HTML
     #+BEGIN_EXAMPLE
     CTRL-C CTRL-E h o
     #+END_EXAMPLE

     to process to .html and display

* contents of ref.bib
   #+BEGIN_SRC sh :results output :exports results
   cat > refs.bib <<END
@article{schulte2012multi,
  title={A multi-language computing environment for literate programming and reproducible research},
  author={Schulte, Eric and Davison, Dan and Dye, Thomas and Dominik, Carsten},
  journal={Journal of Statistical Software},
  volume={46},
  number={3},
  pages={1--24},
  year={2012},
  publisher={American Statistical Association}
}
END
cat refs.bib
   #+END_SRC

   #+RESULTS:
   #+begin_example
   @article{schulte2012multi,
     title={A multi-language computing environment for literate programming and reproducible research},
     author={Schulte, Eric and Davison, Dan and Dye, Thomas and Dominik, Carsten},
     journal={Journal of Statistical Software},
     volume={46},
     number={3},
     pages={1--24},
     year={2012},
     publisher={American Statistical Association}
   }
#+end_example


* Bibliography

#+BIBLIOGRAPHY: refs plain option:-d




             reply	other threads:[~2013-05-13 23:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13 23:56 George Jones [this message]
2013-05-14  0:40 ` ox-bibtex.el references working in sample.org Thomas S. Dye

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=CAOhM7yUMgB+xg_ZN9yMB+murLUSwf+WEMEu-mb7CrRKZ-v9QQw@mail.gmail.com \
    --to=eludom@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gmj@pobox.com \
    --cc=n.goaziou@gmail.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).