From: Jambunathan K <kjambunathan@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Citations and references in ODT
Date: Tue, 14 Jan 2014 14:26:20 +0530 [thread overview]
Message-ID: <871u0b9c23.fsf@gmail.com> (raw)
In-Reply-To: CAFdBzEp8sXO8OKzJOU5n1hXw_rK1=kZo_WW9asSmDYH=NZ6EVg@mail.gmail.com
I have introduced a new variable `org-odt-cite-regexp'. You can use M-x
customize-variable to change the default settings. [1, 4]
I would like to (eventually) add support for prenote and postnote
options for ODT export [2]. These intext options could be quite useful
when citation references use text rather than numbers [3].
[1] Download ox-odt.el and ox-jabref.el from my private repo at
http://repo.or.cz/w/org-mode/org-kjn.git
[2] http://orgmode.org/worg/org-tutorials/org-latex-export.html
[3]
(custom-set-variables
'(org-jabref-odt-citation-transcoders
(quote (org-jabref-odt-citation-reference/text
. org-jabref-odt-bibliography/numbered))))
[4]
,----[ C-h v org-odt-cite-regexp RET ]
| org-odt-cite-regexp is a variable defined in `ox-odt.el'.
| Its value is
| "\\(?:\\(\\\\cite[[:word:]]*\\)\\(\\(?:\\[\\(?:.\\|\n\\)*]\\)?\\)\\({.*?}\\)\\)"
|
| Documentation:
| Regular expression to identify \cite[]{} fragments.
| After a match against this regular expression, various portions
| of the latex fragment - command, options and argument - is
| available in `match-string's 1, 2 and 3 respectively.
|
| For example, given the following cite command
|
| \citep[see][chap. 2]{jon90}
|
| a match against the above regexp, will result in `match-string's
| as below:
|
| 1 => citep
| 2 => [see][chap. 2]
| 3 => {jon90}.
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
|
| [back]
`----
Ken Mankoff <mankoff@gmail.com> writes:
> Hi,
>
> I find the ODT export very useful. Working on another document
> imported from LaTeX I have a lot of \citep{} and \citet{} in addition
> to \cite{}. Is it possible for ox-jabref.el to support this even if it
> does not distinguish between the T and P?
>
> I edited the line near the bottom with the regex and changed
>
> (value (∧ (string-match "\\\\cite{\\(.*?\\)}" latex-frag)
>
> to
>
> (value (∧ (string-match "\\\\cite?{\\(.*?\\)}" latex-frag)
>
> But it did not help.
>
> -k.
next prev parent reply other threads:[~2014-01-14 8:56 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 18:10 Citations and references in ODT Ken Mankoff
2014-01-10 20:24 ` Aric
2014-01-11 4:31 ` Jambunathan K
2014-01-11 12:59 ` Ken Mankoff
2014-01-11 13:53 ` Jambunathan K
2014-01-11 14:13 ` Ken Mankoff
2014-01-14 0:18 ` Aric Gregson
2014-01-13 2:51 ` Ken Mankoff
2014-01-13 6:31 ` Nick Dokos
2014-01-13 15:49 ` Ken Mankoff
2014-01-14 0:16 ` Aric Gregson
2014-01-14 9:16 ` Jambunathan K
2014-01-14 19:10 ` Aric Gregson
2014-01-15 12:26 ` Ken Mankoff
2014-01-16 21:31 ` Aric Gregson
2014-01-19 5:46 ` Jambunathan K
2014-01-21 1:25 ` Aric Gregson
2014-01-23 14:18 ` Jambunathan K
2014-01-23 14:31 ` Jambunathan K
2014-01-14 8:56 ` Jambunathan K [this message]
2014-01-14 0:59 ` Aric Gregson
2014-01-14 9:24 ` Jambunathan K
2014-01-14 19:14 ` Aric Gregson
2014-01-11 4:38 ` Jambunathan K
2014-01-11 12:35 ` Christopher Kotfila
2014-01-14 0:17 ` Aric Gregson
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=871u0b9c23.fsf@gmail.com \
--to=kjambunathan@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).