emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Boice <danboice@gmail.com>
To: emacs-orgmode@gnu.org
Subject: in-text citation ox-bibtex for html export
Date: Tue, 24 May 2016 21:07:58 -0700	[thread overview]
Message-ID: <5117E085-05BD-4170-94E3-6AEE924FE6DE@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2899 bytes --]

Hello,

I am exporting an org document to html with references. The setup with ox-bibtex I have works well to produce the references with a cite link.  However, the in-text citations have a square bracket around the reference link and only the first author's last name.  I am not able to use other in-text citation formats such as parencite or natbib citep:key.  Is there a way to add that to the org file to produce the html output with the formatted in-text citation?

From the looks of it, no with the the ox-bibtex package. http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=HEAD

I was about to embark on creating something like this http://kitchingroup.cheme.cmu.edu/blog/category/org-mode/ to pre or post process the exported html, but wanted to check if there looks to be an easier way to achieve the same result.. Perhaps exporting it to latex and then use http://tug.org/applications/tex4ht/mn.html was also suggested in another post for something similar( https://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00337.html ), but that was not working yet.

—begin org text—

* Some very interesting latin text to start

  Lorem ipsum  cite:northrup2007 dolor sit amet, an cum laoreet noluisse, cum mucius indoctum te. Sea laudem scripta tamquam ex, et nam eirmod aeterno tamquam, ex usu nobis essent. Sea ea possim aperiam dissentias, est ei unum minim. Ullum iudico officiis id pri

#+BIBLIOGRAPHY: references.bib apalike limit:t option:--no-abstract

—-end org text —


Produces html output

—begin html output—-

<div id="outline-container-orgheadline1" class="outline-2">
<h2 id="orgheadline1">Some very interesting latin text to start</h2>
<div class="outline-text-2" id="text-orgheadline1">
<p>
Lorem ipsum  [<a href="#northrup2007">Northrup</a>] dolor sit amet, an cum laoreet noluisse, cum mucius indoctum te. Sea laudem scripta tamquam ex, et nam eirmod aeterno tamquam, ex usu nobis essent. Sea ea possim aperiam dissentias, est ei unum minim. Ullum iudico officiis id pri </p>
</div>
</div>

<div id="bibliography">
<h2>References</h2>

<table>

<tr valign="top">
<td align="right" class="bibtexnumber">
[<a name="northrup2007">Northrup and Bean, 2007</a>]
</td>
<td class="bibtexitem">
Northrup, J.&nbsp;C. and Bean, R.&nbsp;A. (2007).
 Culturally competent family therapy with latino/anglo-american
  adolescents: Facilitating identity formation.
 <em>American Journal of Family Therapy</em>, 35(3):251 -- 263.
[&nbsp;<a href="conceptualizationPaper_bib.html#northrup2007">bib</a>&nbsp;]

</td>
</tr>
</table>
</div>

—end html- output —-

—begin what I want—

<a href="#northrup2007”>Northrup and Bean (2007)(</a>

not

 [<a href="#northrup2007">Northrup</a>]

—-end what I want—

other links

http://merkel.zoneo.net/Latex/natbib.php







[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

                 reply	other threads:[~2016-05-25  4:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5117E085-05BD-4170-94E3-6AEE924FE6DE@gmail.com \
    --to=danboice@gmail.com \
    --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).