emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [beamer] a bug in exporting


From: zwz
Subject: Re: [O] [beamer] a bug in exporting
Date: Thu, 12 May 2011 21:26:26 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Eric S Fraga <address@hidden> writes:

> 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:
>
> * what is x?                                            
>   #+BEGIN_SRC c                                         
>   char (*(*x())[])();                                   
>   #+END_SRC                                             
>   \pause                                                
>   #+LATEX: char \fbox{\fbox{(*\fbox{\fbox{(*\fbox{x()})}[]})}()};
>
> Code like this reminds me why I left the C world more than 15 years
> ago... ;-)

Problem solved by the latex directive. Thanks.
The C code is from K&R's book. :)

BTW, I also use some code like this in headlines (\textcolor, \fbox),
where I guess the latex directive can not work. Is there any solutions
for this situation or any better way to colorize the text while also
support to export to other target (e.g. html)?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]