emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: edgar@openmail.cc
To: emacs-orgmode@gnu.org
Subject: Re: Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: > Citations with org-ref in apa style)
Date: Sat, 17 Jun 2017 02:25:56 +0000	[thread overview]
Message-ID: <3ac55d833016ae849247c0012c394d81@openmail.cc> (raw)
In-Reply-To: <mailman.87.1497628817.13493.emacs-orgmode@gnu.org>

Hello Lars,

I am a beginner with Emacs, so my advice may not be very good. I assume 
that you are using org-ref (I missed part of the conversation). I have 
no problems with PDF and References (well, except that I don't know how 
to set an independent headline. I know this is not clear, but I won't 
hijack your post).

> If I want HTML export with citations, I need to use
> `bibliography:ref.bib' at the end, where I want the list of
> references. However, when exporting to pdf, it works only if I have
> \printbibliography at the end. If I use bibliograph:ref.bib, I get the

In my Org file, I have this at the end:

    bibliographystyle:unsrt
    bibliography:../References.bib

  I have no #+LATEX_HEADER, but I tried this with a clean Emacs (emacs 
-Q; you may need to evaluate line by line), and it works for me:

my_file.org
=================================
#+BEGIN_SRC emacs-lisp
   (require 'package)
   (package-initialize)
   (require 'org)
   (require 'org-ref)
   (require 'ox-latex)

   (setq org-latex-pdf-process
	    '("pdflatex -interaction nonstopmode -output-directory %o %f"
	      "bibtex %b"
	      "pdflatex -interaction nonstopmode -output-directory %o %f"
	      "pdflatex -interaction nonstopmode -output-directory %o %f"))
#+END_SRC

* My first section
   According to cite:SmartGuy17, this should work!

* I want this to say "References"
   I don't need this to say References again:
   bibliographystyle:unsrt
   bibliography:References.bib
=================================

References.bib
=================================
@article{SmartGuy17,
   author =       {A. Smart and Handsome Guy},
   title =        {Enjoying Emacs and Org-mode},
   journal =      {Hacking Accounts of Freedom},
   volume =       {2},
   number =       {4},
   pages =        {1858-1894},
   year =         {2017},
}
=================================

I hope that this helps :) . Good hacking!

Org mode version 9.0.7
GNU Emacs 24.4.1
org-ref: Version 0.9.0

-------------------------------------------------

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  

  parent reply	other threads:[~2017-06-17 15:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.87.1497628817.13493.emacs-orgmode@gnu.org>
2017-06-17  1:41 ` org-table export to ods/xlsx etc edgar
2017-06-17  2:25 ` edgar [this message]
2017-06-18 20:38   ` Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: > Citations with org-ref in apa style) John Kitchin
2017-06-21 19:54     ` edgar
2017-06-17  2:34 ` How to export LaTeX amsmath align bmatrix to ODT? edgar
     [not found] ` <540c9e41077e41ed940a64e1caaebb3f@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-17 15:56   ` Eric S Fraga
     [not found] <mailman.96.1497715218.27257.emacs-orgmode@gnu.org>
2017-06-17 23:17 ` Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: Citations with org-ref in apa style) edgar
     [not found] <6dc0a293c50c44f3bffeb638fed1b744@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-25 16:36 ` Citations with org-ref in apa style Eric S Fraga
2017-05-25 19:57   ` Lars Bjørndal
2017-05-26  0:36     ` John Kitchin
2017-05-26 11:24       ` Lars Bjørndal
2017-06-16 12:40         ` Bibliograph:ref.bib vs. \printbibliograpy (WAS: Re: Citations with org-ref in apa style) Lars Bjørndal
2017-06-17 16:17           ` John Kitchin

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=3ac55d833016ae849247c0012c394d81@openmail.cc \
    --to=edgar@openmail.cc \
    --cc=emacs-orgmode@gnu.org \
    /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).