emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] problem with code blocks


From: Thomas S. Dye
Subject: Re: [O] problem with code blocks
Date: Sun, 07 Aug 2011 13:57:52 -1000

LanX <address@hidden> writes:

> Hi
>
> hier a ECM which fails
>
> -----------------------
> #+LaTeX_CLASS: beamer
> #+startup: beamer
>
> * title
>
> #+BEGIN_Example: perl
>  grep { $_ ->[0] }
>   X{1,2,3} X{1,2,3} X{1,2,3};
> #+END_Example:
> ---------------------------
>
> originally I tried Begin_src but I wanted to be sure that it has not to do
> with highlighting.
>
> I get the message "if: Wrong type argument: stringp, nil"
>
> But deleting the [0] solves the problem
>
> -----------------------------
> #+BEGIN_Example: perl
>  grep { $_ -> }
>   X{1,2,3} X{1,2,3} X{1,2,3};
> #+END_Example:
> ---------------------------
>
> Does org try to find footnotes in code blocks?
>
> Any help appreciated!!!
>
> Cheers
>  Rolf
Aloha Rolf,

Try removing the colons after Example.  The following exports fine here:

* Lanx
#+LaTeX_CLASS: beamer
#+startup: beamer

** title

#+BEGIN_Example perl
 grep { $_ ->[0] }
 X{1,2,3} X{1,2,3} X{1,2,3};
#+END_Example

hth,
Tom

> Hihier a ECM which fails-----------------------#+LaTeX_CLASS: 
> beamer#+startup: beamer* title#+BEGIN_Example: perl grep { $_ ->[0] }   
> X{1,2,3} X{1,2,3} X{1,2,3};#+END_Example:
> ---------------------------originally I tried Begin_src but I wanted to be 
> sure that it has not to do with highlighting.I get the message "if: Wrong 
> type argument: stringp, nil"But deleting the [0] solves the problem
> -----------------------------#+BEGIN_Example: perl
>  grep { $_ -> } 
>   X{1,2,3} X{1,2,3} X{1,2,3};
> #+END_Example:
> ---------------------------
> Does org try to find footnotes in code blocks?Any help appreciated!!!Cheers 
> Rolf

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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