From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Citations and references in ODT Date: Tue, 14 Jan 2014 14:26:20 +0530 Message-ID: <871u0b9c23.fsf@gmail.com> References: <87zjn3gmvm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2znB-0008Uc-7D for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 03:56:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2zn5-0005JB-OK for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 03:56:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:53141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2zn5-0005Iw-HM for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 03:56:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2zmy-00006M-32 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 09:56:00 +0100 Received: from 115.242.210.2 ([115.242.210.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 09:56:00 +0100 Received: from kjambunathan by 115.242.210.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jan 2014 09:56:00 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: Org-mode 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 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.