From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Bug: dates in heading break beamer export Date: Mon, 30 Sep 2013 19:05:38 +0200 Message-ID: <20130930190538.5397f472@aga-netbook> References: <524801E3.7040709@toel.it> <87bo3bwug5.fsf@gmail.com> <20130929172751.4644b537@aga-netbook> <5249A0AB.7080408@toel.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQguu-0007Kb-BD for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 13:05:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQgup-00064t-JW for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 13:05:52 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:58015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQgup-00063s-0t for emacs-orgmode@gnu.org; Mon, 30 Sep 2013 13:05:47 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id C59294AC70 for ; Mon, 30 Sep 2013 19:05:41 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6APwzAGZDw82 for ; Mon, 30 Sep 2013 19:05:41 +0200 (CEST) Received: from aga-netbook (99-52.echostar.pl [213.156.99.52]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 13CCE4AC43 for ; Mon, 30 Sep 2013 19:05:41 +0200 (CEST) In-Reply-To: <5249A0AB.7080408@toel.it> 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 Dnia 2013-09-30, o godz. 18:02:51 Daniele Pizzolli napisa=C5=82(a): > >> It's a LaTeX Beamer problem: it doesn't like > >> > >> \section{title \textit{[2013-09-29 Sun]}} > >> > >> produced by Org, although regular LaTeX accepts it. > >> > >> Do you know about a workaround for this? >=20 > Not really. >=20 > > This is really a workaround: put a \protect before \textit. >=20 > Or why not drop \textit? Sounds good for me. (NB: there's a similar problems with tags, AFAIR. And (AFAIR!) it's even worse, since the exporter uses a low-level TeX command \hfill.) > > In general, putting formatting commands in \section title etc., > > even if not erroneous, is considered a bad practice. >=20 > But org-mode allow this! >=20 > I think that if something is allowed in org-mode syntax but not by the > underlining tools used for export, the exporter should take care to > find a suitable workaround. Definitely agreed. The point is, what is a "suitable workaround"? One idea is to define a command \orgsection, with syntax like this: \orgsection[timestamp=3D...,tags=3D{...,...}]{title proper} This could be even defined in a specialized package, call it org.sty, which is then turned on by means of \usepackage in exported files. This is probably the cleanest solution I can think of, but has one disadvantage: it diverges from LaTeX syntax, so if I edit manually (or worse, transform automatically) such a file, I can encounter problems: the (non-TeX) parser (e.g. an editor's one) may not know that \orgsection is in fact a flavor of \section. For pdf export this is a non-issue, but AFAIK people use Org LaTeX export to create a file for further work on it. Another idea is to redefine \section so that it either accepts optional arguments (therefore breaking its default interface!), or allow something like this: \timestamp{...} \tags{...,...} \section{title proper} This is easy to do, but far from elegant. Also, it does not help further maintenance of such a LaTeX file. Yet another solution would be to forget about LaTeX and use ConTeXt, where defining custom sections etc. is much easier. Of course, this is fine only assuming that (1) I do not want to e.g. submit my file to a LaTeX-accepting journal and (2) I'm fine with learning ConTeXt, which - even though much better than LaTeX in terms of UI (and also featurewise, btw) - has its own learning curve. > I just found that the same problem (work in latex, does not work in > beamer) exists for footnotes in header! Quite possible. You can always use \footnotemark and \footnotetext. (Beamer hacks deeply into LaTeX innards, so things like this are no surprise.) > A feature request would be to have some checks on org files a la > flymake, at least for common potential sources of problems that > usually break the export like: >=20 > - missing two empty lines after footnotes > - missing empty line after RESULTS: > - =3Dstring=3D[footnote] Just curious: what's the problem with =3Dstring=3D[footnote]? > Maybe something already exists and I am simply not aware. >=20 > Regards, > Daniele Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University