From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: new odt-exporter: problems with formatting in captions Date: Mon, 16 Dec 2013 23:31:56 +0100 Message-ID: <87d2kwxw9v.fsf@med.uni-goettingen.de> References: <86zjo09ael.fsf@gmx.de> 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]:58217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsghx-0004Q9-R6 for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 17:32:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vsghs-00073d-F2 for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 17:32:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:36809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsghs-00072l-8w for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 17:32:08 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vsghr-0007Ji-F9 for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 23:32:07 +0100 Received: from vpn-2025.gwdg.de ([134.76.2.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Dec 2013 23:32:07 +0100 Received: from andreas.leha by vpn-2025.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Dec 2013 23:32:07 +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 To: emacs-orgmode@gnu.org martin.guertler@gmx.de (Martin Gürtler) writes: > Hi, > > I just converted a 150 page document I used to convert to odt with the old > exporter. Following problems occurred: > > 1. table with #+CAPTION > If the caption contains formatting (~, ==, _, ^), the exporter > produces an invalid content.xml. > > minimal example: > > ---8<------------------------------------------------------------ > #+OPTIONS: num:t toc:nil \n:nil @:t ::t |:t ^:{} -:t f:t *:t <:nil > > * First paragraph > #+CAPTION: A_{1}^{2} > | head 1 | head2 | > |-----------+----------| > | content 1 | content2 | > ---8<------------------------------------------------------------ > > The problem can be seen in the following xml fragment: > > ---8<------------------------------------------------------------ > table:name="A<text:span > text:style-name="OrgSubscript">1</text:span><text:span > text:style-name="OrgSuperscript">2</text:span>"> > ---8<------------------------------------------------------------ > > The table:name attribute ends prematurely at the "OrgSubscript". This > could probably be mended by using single quotes for these attributes > inside attributes. > > 2. again #+CAPTION > > if the caption contains a string with /escaped/ underlines (please > note the #+OPTION ^:t) > > ---8<------------------------------------------------------------ > #+OPTIONS: num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:nil > > * First paragraph > #+CAPTION: YYYYMMDD\_hhmmss.csv. > | head 1 | head2 | > |-----------+----------| > | content 1 | content2 | > ---8<------------------------------------------------------------ > > The escaped _ is not detected; instead, a literal \ and subscript > are detected, and teh document is invalid as above. This escaping > seems not to be mentioned in the documentation, probably because it > is no longer valid. Might be of interest to people who want to > convert old documents. > > 3. the \ref syntax seems not to work anymore; substituting by \ref{text} > by [[text]] worked. > > 4. Empty lines between #+NAME and the respective table are no longer tolerated > > remarks: I like the new smart quotes. More comfortable than putting in > the utf characters via C-8-RET (which is handy, though, for simple > formulae). > > Regards > > Martin Hi Martin, I think 1-2 are related to an earlier report [fn:1]. As it seems this is on the todo-list of the right person. Regards, Andreas Footnotes: [fn:1] http://article.gmane.org/gmane.emacs.orgmode/77937