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 <mank...@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.