[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [beamer] a bug in exporting
From: |
Eric S Fraga |
Subject: |
Re: [O] [beamer] a bug in exporting |
Date: |
Thu, 12 May 2011 08:12:33 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
zwz <address@hidden> 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)