From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Citations and references in ODT Date: Mon, 13 Jan 2014 10:49:28 -0500 Message-ID: References: <87zjn3gmvm.fsf@gmail.com> <87eh4c4ckg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a0ecc5fbbc604efdc057c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2jla-0007jH-Nm for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 10:49:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2jlZ-0003Dg-OR for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 10:49:30 -0500 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:51381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2jlZ-0003Dc-JR for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 10:49:29 -0500 Received: by mail-ob0-f174.google.com with SMTP id wo20so1199182obc.5 for ; Mon, 13 Jan 2014 07:49:29 -0800 (PST) In-Reply-To: <87eh4c4ckg.fsf@gmail.com> 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 To: Nick Dokos Cc: Org-mode --089e013a0ecc5fbbc604efdc057c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes I just figured out I need the "." before the "?". It works now. I also made changes in both ox-odt.el and ox-jabref.el, everywhere that I found the \cite regex. Works well now. Thank you! -k. On Mon, Jan 13, 2014 at 1:31 AM, Nick Dokos wrote: > 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 (=E2=88=A7 (string-match "\\\\cite{\\(.*?\\)}" latex-fr= ag) > > > > to > > > > (value (=E2=88=A7 (string-match "\\\\cite?{\\(.*?\\)}" latex-f= rag) > > > > Try "\\\\cite[tp]?{\\(.*?\\)}" or "\\\\cite.?{\\(.*?\\)}"instead > (untested). > > > But it did not help. > > > > -k. > > > > -- > Nick > > > --089e013a0ecc5fbbc604efdc057c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes I just figured out I need the "." before the= "?". It works now. I also made changes in both ox-odt.el and ox-= jabref.el, everywhere that I found the \cite regex.

Work= s well now. Thank you!

=C2=A0 =C2=A0-k.



On Mon, Jan 13, 2014 at= 1:31 AM, Nick Dokos <ndokos@gmail.com> wrote:
Ken = Mankoff <mankoff@gmail.com> = writes:

> Hi,
>
> I find the ODT export very useful. Working on another document importe= d 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
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(value (=E2=88=A7 (string-match &quo= t;\\\\cite{\\(.*?\\)}" latex-frag)
>
> to
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(value (=E2=88=A7 (string-match &quo= t;\\\\cite?{\\(.*?\\)}" latex-frag)
>

Try "\\\\cite[tp]?{\\(.*?\\)}" =C2=A0or "\\\\cit= e.?{\\(.*?\\)}"instead
(untested).

> But it did not help.
>
> =C2=A0 =C2=A0-k.
>

--
Nick



--089e013a0ecc5fbbc604efdc057c--