emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lluís <xscript@gmx.net>
To: emacs-orgmode@gnu.org
Subject: org-bibtex: "TYPE" property conflicting with bibtex's "type" parameter
Date: Mon, 19 Sep 2011 21:46:05 +0200	[thread overview]
Message-ID: <87ipoo1fk2.fsf@ginnungagap.bsc.es> (raw)

The current org-bibtex code uses the value of the "TYPE" property for two different purposes:

* identify the type of bibtex entry
* give a value to the "type" parameter in a bibtex entry

Using the "TYPE" property for both has the unfortunate effect that on an entry type like "phdthesis" (which has an optional "type" parameter), the resulting text contains the "phdthesis" text insteaad of the default "PhD thesis" text produced by bibtex when the "type" parameter is not set.

For example, this:

#+bein_source org
* One Title
:PROPERTIES:
:TITLE: One Title
:TYPE: phdthesis
:AUTHOR: John Doe
:SCHOOL: University of Somewhere
:YEAR: 2011
:CUSTOM_ID: myid
:END:
#+end_source

results in the following bibtex entry:

#+begin_source bibtex
@phdthesis{myid,
  author =       {John Doe},
  title =        {One Title},
  school =       {University of Somewhere},
  year =         2011,
  type =         {phdthesis}
}
#+end_source

which is processed into the following text:

#+begin_source fundamental
[1] J. Doe. One Title. phdthesis, University of Somewhere, 2011.
#+end_source

instead of the desired:

#+begin_source fundamental
[1] J. Doe. One Title. PhD thesis, University of Somewhere, 2011.
#+end_source

The only way out I see is to use different properties for the bibtex entry type and bibtex's "type" parameter. Preferably using a different property for org-bibtex to identify the entry type (e.g., "BIBTEX_TYPE").


Thanks a lot,
   Lluis

PS: I'm not subscribed to the list, so please put me in CC if you want me to read you.

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth

             reply	other threads:[~2011-09-19 19:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19 19:46 Lluís [this message]
2011-09-20 15:20 ` org-bibtex: "TYPE" property conflicting with bibtex's "type" parameter Eric Schulte

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=87ipoo1fk2.fsf@ginnungagap.bsc.es \
    --to=xscript@gmx.net \
    --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).