[Orgmode] org-exp-bibtex and multiple latex runs

2010-09-10 Thread Erik Iverson

Hello,

Does anyone use org-exp-bibtex.el from the contrib directory
to get bibtex citations in both exported HTML and PDF?

If so, how do you deal with the PDF generation process,
since it requires multiple runs of latex/bibtex?  Do
you do that within org-mode, or just do it through the
shell?

Thanks for any tips,
Erik

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-exp-bibtex

2010-01-29 Thread Carsten Dominik


On Jan 29, 2010, at 12:21 AM, Peter Danenberg wrote:


Are you sure about it being in your load-path? What does

M-x locate-library RET org-exp-bibtex RET

say? If it finds it, both autoload and require should work.


locate-library says:

 Library is file ~/lib/emacs/org-mode/contrib/lisp/org-exp-bibtex.el

Just to be sure, my require form looks like:

 (require 'org-exp-bibtex)

Do I specifically need to add a preprocess hook such as this?

 (add-hook 'org-export-preprocess-hook 'org-export-bibtex-preprocess)


No, just requiring should do the trick.  Can you check if org-export- 
bibtex-preprocess does indeed end up in the hook?


If it does, maybe you can explain what you expect to happen during  
export, and what does in fact happen?


- Carsten



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-exp-bibtex

2010-01-29 Thread Peter Danenberg
 No, just requiring should do the trick.  Can you check if
 org-export-bibtex-preprocess does indeed end up in the hook?

It does now, inexplicably; thank you. And using the following code, I
can process the doc with xelatex and bibtex (provided that file.bib
accompanies file.org):

  (require 'org-latex)
  (setq org-export-latex-classes
(cons '(article
\\documentclass{article}
  \\usepackage{amsmath}
  \\usepackage{amssymb}
  \\usepackage{xunicode}
  \\usepackage{fixltx2e}
  \\usepackage{xltxtra}
  \\usepackage{graphicx}
  \\usepackage{longtable}
  \\usepackage{float}
  \\usepackage{wrapfig}
  \\usepackage{soul}
  \\usepackage{hyperref}
(\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})
(\\subsubsection{%s} . \\subsubsection*{%s})
(\\paragraph{%s} . \\paragraph*{%s})
(\\subparagraph{%s} . \\subparagraph*{%s}))
  org-export-latex-classes))

  (setq org-latex-to-pdf-process
'(xelatex -interaction nonstopmode %b
  bibtex %b
  xelatex -interaction nonstopmode %b
  xelatex -interaction nonstopmode %b))

This is fantastic!


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-exp-bibtex

2010-01-28 Thread Peter Danenberg
Despite org-mode/contrib/lisp being in my loadpath and issuing
(require 'org-exp-bibtex), org-exp-bibtex doesn't seem to be
available. Using autoload results in Autoloading failed to define
function org-exp-bibtex.

Would anyone mind sharing with me how they successfully installed
org-exp-bibtex?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Nick Dokos
Peter Danenberg p...@roxygen.org wrote:

 Despite org-mode/contrib/lisp being in my loadpath and issuing

Are you sure about it being in your load-path? What does

M-x locate-library RET org-exp-bibtex RET

say? If it finds it, both autoload and require should work.

Nick



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Carsten Dominik


On Jan 28, 2010, at 5:20 PM, Peter Danenberg wrote:


Despite org-mode/contrib/lisp being in my loadpath and issuing
(require 'org-exp-bibtex), org-exp-bibtex doesn't seem to be
available. Using autoload results in Autoloading failed to define
function org-exp-bibtex.


There is no function org-exp-bibtex.

What happens if you evalueate the following form?

(progn (require 'org-exp-bibtex) (featurep 'org-exp-bibtex))

???

- Carsten



Would anyone mind sharing with me how they successfully installed
org-exp-bibtex?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Peter Danenberg
 There is no function org-exp-bibtex.

 What happens if you evalueate the following form?

 (progn (require 'org-exp-bibtex) (featurep 'org-exp-bibtex))

That evaluates to t.

Are there hooks installed, by the way, for exported to LaTeX? C-c C-e
d (export as LaTeX, process to PDF, and open the resulting PDF
document) doesn't seem to run bibtex; nor does #+BIBLIOGRAPHY: x y
insert \bibliographystyle{y}\bibliography{x} into the LaTeX document.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-exp-bibtex

2010-01-28 Thread Peter Danenberg
 Are you sure about it being in your load-path? What does
 
 M-x locate-library RET org-exp-bibtex RET
 
 say? If it finds it, both autoload and require should work.

locate-library says:

  Library is file ~/lib/emacs/org-mode/contrib/lisp/org-exp-bibtex.el

Just to be sure, my require form looks like:

  (require 'org-exp-bibtex)

Do I specifically need to add a preprocess hook such as this?

  (add-hook 'org-export-preprocess-hook 'org-export-bibtex-preprocess)


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode