From: tsd@tsdye.com (Thomas S. Dye)
To: LanX <lanx.perl@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: problem with code blocks
Date: Sun, 07 Aug 2011 13:57:52 -1000 [thread overview]
Message-ID: <m1d3ggixkv.fsf@tsdye.com> (raw)
In-Reply-To: <CAGzSEhe+DOgDFFmhGmB5TNmY0BO67wT7b1v9N1MEoz-hRmsxCg@mail.gmail.com> (LanX's message of "Mon, 8 Aug 2011 01:45:14 +0200")
LanX <lanx.perl@googlemail.com> 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
next prev parent reply other threads:[~2011-08-07 23:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-07 23:45 problem with code blocks LanX
2011-08-07 23:48 ` LanX
2011-08-07 23:57 ` Thomas S. Dye [this message]
2011-08-08 6:58 ` LanX
2011-08-08 7:47 ` Sebastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1d3ggixkv.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=lanx.perl@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).