From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Richard Lawrence <richard.lawrence@berkeley.edu>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: More questions about CSL and org-mode
Date: Mon, 07 Dec 2015 11:18:09 -0500 [thread overview]
Message-ID: <m21taydygu.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <87r3izupne.fsf@berkeley.edu>
Richard Lawrence writes:
> Hi John,
>
> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> Hi all,
>>
>> This is mostly for the people working on citations in org-mode.
>>
>> I have been reading about CSL more this weekend. IIRC, one of the
>> reasons to develop the new citation syntax was to get the ability to
>> have pre/post text in citations more conveniently than what is currently
>> possible.
>
> Yes, that is my understanding, too.
>
>> I have not seen any possibility for this with CSL, however. Is my
>> understanding correct? Is this a problem, or something partially handled
>> by org-export and partially by a citeproc?
>
> The CSL processors I've looked at support prefix and suffix text for
> individual references within a citation. See, for example, the
> citeproc-js documentation:
>
> http://gsl-nagoya-u.net/http/pub/citeproc-doc.html#citation-data-object
>
> prefix, suffix, and some other fields are supported. pandoc-citeproc
> supports the same set of fields.
Interesting. I guess these are not standard for all processors? It also
looks like it would be hard to get something like an inline reference
formatted as [1] but refer to Reference 1, e.g. from citenum. It is
possible to have (Kitchin 2007) and (2007) but not a citation reference
to Kitchin that is derived from e.g. a citeauthor command in LaTeX. I am
not raising any objections here, just getting a sense for what is
feasible.
>
> However, my understanding is that neither citeproc-js nor
> pandoc-citeproc support a BibLaTeX-style "common" prefix/suffix that
> belongs to the citation as a whole, rather than the individual
> references within it, as is available in the multi-cite commands. We
> currently have support for such common prefixes/suffixes in Org syntax.
>
> My solution to this in my org-citeproc wrapper for pandoc-citeproc is to
> prepend the common prefix to the prefix for the first reference in a
> citation, and append the common suffix to the last reference. This is
> not a great solution, because it is not really defined what kind of
> punctuation (if any) should separate the common prefix from the first
> item's prefix, and so on. But I figured that was not an important issue
> to address until we actually have people making use of common prefix and
> suffix syntax who are not exporting to LaTeX...
agreed.
>
>> IIUC, the current aim is to get a citeproc that will do the following on
>> export:
>> 1. replace in-text citation syntax with org-formatted replacements
>> 2. Insert an org-formatted bibliography somewhere in the document
>> 3. proceed with org-to-something export, with built-in
>> exporters.
>
> That's basically my understanding too. There is one snag with the
> "org-formatted replacement" plan, though, which I saw in a Zotero dev
> discussion yesterday. CSL processing might result in multiple levels of
> formatting, e.g. nested italics like
>
> <em>Something with an internal <em>Title</em></em>
>
> and that won't translate very well back to Org syntax in general:
>
> /Something with an internal /Title//
>
> The suggestion was to just use HTML output, and then parse the HTML to
> get a data structure that could be directly rendered into HTML, LaTeX,
> etc., which support nested italics just fine. I think we could do this,
> though maybe there's a better solution. That is, we can take HTML from
> the citation processor and go directly to org-element objects, without
> producing and re-parsing citations in Org format.
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
prev parent reply other threads:[~2015-12-07 16:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 21:25 More questions about CSL and org-mode John Kitchin
2015-12-06 23:24 ` Richard Lawrence
2015-12-06 23:45 ` Richard Lawrence
2015-12-07 11:56 ` John Kitchin
2015-12-07 19:55 ` Richard Lawrence
2015-12-08 11:41 ` John Kitchin
2015-12-07 16:18 ` John Kitchin [this message]
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=m21taydygu.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=richard.lawrence@berkeley.edu \
/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).