From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [beamer] a bug in exporting Date: Thu, 12 May 2011 08:12:33 +0100 Message-ID: <87k4dw1jfi.fsf@ucl.ac.uk> References: <87tyd1wfhk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKRWy-0001O0-2z for emacs-orgmode@gnu.org; Thu, 12 May 2011 04:46:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKRWw-0007Cc-FZ for emacs-orgmode@gnu.org; Thu, 12 May 2011 04:45:59 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:32977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKRWw-0007CT-8e for emacs-orgmode@gnu.org; Thu, 12 May 2011 04:45:58 -0400 In-Reply-To: <87tyd1wfhk.fsf@gmail.com> (zwz's message of "Wed, 11 May 2011 21:09:43 +0800") 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: zwz Cc: emacs-orgmode@gnu.org zwz writes: > In a org file I have > > * what is x? > #+BEGIN_SRC c > char (*(*x())[])(); > #+END_SRC > \pause > char \fbox{\fbox{(*\fbox{\fbox{(*\fbox{x()})}[]})}()}; > > The latex generated for the last line turned out to be > char \fbox\{\fbox\{(*\fbox{\fbox{(*\fbox{x()})}[]})\}()\}; > which is not expected. > > Is it a bug? I am using Emacs 23.3.1 and org 7.4, by the way. I am not sure if the regex for identifying latex snippets inline has changed or not but an expression like this one is going to test that regex to the limit in any case. I would suggest that you use the latex directive directly given that the code is not likely to export sensibly to any other target anyway: --8<---------------cut here---------------start------------->8--- * what is x? #+BEGIN_SRC c char (*(*x())[])(); #+END_SRC \pause #+LATEX: char \fbox{\fbox{(*\fbox{\fbox{(*\fbox{x()})}[]})}()}; --8<---------------cut here---------------end--------------->8--- Code like this reminds me why I left the C world more than 15 years ago... ;-) -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.274.gd6aba)