From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: multi-line citation export issue Date: Mon, 13 Jan 2014 12:07:29 +0100 Message-ID: <87zjn0jg26.fsf@gmail.com> References: <874n58lpe8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2fMV-0001Ij-TL for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 06:07:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2fMN-0002P7-FC for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 06:07:19 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:37201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2fMN-0002P3-7U for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 06:07:11 -0500 Received: by mail-we0-f169.google.com with SMTP id u57so6301092wes.14 for ; Mon, 13 Jan 2014 03:07:10 -0800 (PST) In-Reply-To: (Ken Mankoff's message of "Sun, 12 Jan 2014 21:04:11 -0500 (EST)") 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: Ken Mankoff Cc: Org-mode Hello, Ken Mankoff writes: > I am not familiar with export snippets, but I guess from that syntax > that I will not be able to export with citations to ODT/DOC. Right now > one org file exports well to both formats. You can also write the same for odt: @@odt:\cite{key}@@ So, in your buffer, it would become: @@latex:\cite{key}@@@@odt:\cite{key}@@ And you can avoid the implied repetition with a macro: #+MACRO: cite @@latex:\cite{$1}@@@@odt:\cite{$1}@@ and write in your document: {{{cite(key)}}} Note that you will need to escape commas (with backslashed) in key. This also works for your more complicated example : #+MACRO: cite2 @@latex:\cite[$1]{$2}@@@@odt:\cite[$1]{$2}@@ > I will deal with multiple citations by not having spaces, and find > some other way (rewording?) to deal with the \cite[foo bar]{baz} > situation. And maybe someone more versed in org source can file this > as a bug, even if not a priority. This is not a bug. Parsing any LaTeX macro is way out of Org's league. Org conveniently support some simple macros, that's all. Regards, -- Nicolas Goaziou