emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: texinfo -- markup in example blocks
Date: Tue, 11 Dec 2012 11:51:21 -0500	[thread overview]
Message-ID: <CAEWDx5eKuGO7cz9o8-Mp2vpcJmo5EO-ZYS25-kBj9wQwNPFtKw@mail.gmail.com> (raw)
In-Reply-To: <m17got364n.fsf@poto.westell.com>

[-- Attachment #1: Type: text/plain, Size: 2265 bytes --]

Hello Tom

On 7 December 2012 16:27, Thomas S. Dye <tsd@tsdye.com> wrote:

> Aloha Jon,
>
> How can I mark up text in an example block? The following describes what
> I'm after, but the markup, @b{} and @i{}, is passed through on export.
>
> #+begin_example
> ,** Lord of the Rings
>    My favorite scenes are (in this order)
>    1. The attack of the Rohirrim
>    2. Eowyn's fight with the witch king
>       + this was already my favorite scene in the book
>       + I really like Miranda Otto.
>    3. Peter Jackson being shot by Legolas
>       - on DVD only
>       He makes a really funny face when it happens.
>    But in the end, no individual scenes matter but the film as a whole.
>    Important actors in this film are:
>    - @@info:@b{Elijah Wood}@@ :: He plays Frodo
>    - @@info:@b{Sean Austin}@@ :: He plays Sam, Frodo's friend.  I still
> remember
>      him very well from his role as Mikey Walsh in @@info:@i{The Goonies}@
> @.
> #+end_example
>

Your best bet would be to wrap the block in #+begin_src texinfo/#+end_src

#+begin_src texinfo
  ** Lord of the Rings
     My favorite scenes are (in this order)
     1. The attack of the Rohirrim
     2. Eowyn's fight with the witch king
        + this was already my favorite scene in the book
        + I really like Miranda Otto.
     3. Peter Jackson being shot by Legolas
        - on DVD only
        He makes a really funny face when it happens.
     But in the end, no individual scenes matter but the film as a whole.
     Important actors in this film are:
     - @b{Elijah Wood} :: He plays Frodo
     - @b{Sean Austin} :: He plays Sam, Frodo's friend.  I still remember
       him very well from his role as Mikey Walsh in @i{The Goonies}.
#+end_src

You'll have to insert normal @b{...} and @i{...} but they will be properly
exported.

Non-lisp source blocks are treated as @example/@end example in the
exporter, as are fixed width blocks (although those escape any
@-commands).  Example blocks are exported as verbatim since those
perform no transformation on the content within.


> All the best,
> Tom
>
> --
> T.S. Dye & Colleagues, Archaeologists
> 735 Bishop St, Suite 315, Honolulu, HI 96813
> Tel: 808-529-0866, Fax: 808-529-0884
> http://www.tsdye.com
>
>

Regards,

--
Jon

[-- Attachment #2: Type: text/html, Size: 3162 bytes --]

      reply	other threads:[~2012-12-11 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 21:27 texinfo -- markup in example blocks Thomas S. Dye
2012-12-11 16:51 ` Jonathan Leech-Pepin [this message]

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=CAEWDx5eKuGO7cz9o8-Mp2vpcJmo5EO-ZYS25-kBj9wQwNPFtKw@mail.gmail.com \
    --to=jonathan.leechpepin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.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).