emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: What the difference between the non-source blocks?
Date: Sat, 15 Jun 2013 14:48:03 +0200	[thread overview]
Message-ID: <87d2rnk0ak.fsf@gmail.com> (raw)
In-Reply-To: <87bo77kbn3.fsf@gmail.com> (Thorsten Jolitz's message of "Sat, 15 Jun 2013 10:42:56 +0200")

Hello,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> I usually use my gut feeling to decide if I use an EXAMPLE or a QUOTE or
> a VERSE block. I would prefer to have a kind of mental decision like
>
> ,---------------
> | if A 
> |   then EXAMPLE
> |   else if B
> |     then QUOTE
> |     else VERSE
> `---------------
>
> or so. So what would be a complete list of these "verbatim" environments
> in Org-mode, and how could their chacteristics be described in a few
> words? Can I find that in the manual or somewhere else?
>
> In section 15.2. Easy Templates I find
>
> | block   | use for? |
> ---------------------
> |EXAMPLE  |          |
> |QUOTE    |          |
> |VERSE    |          |
> |CENTER   |          |
>
> Is this a complete list? What are the criteria to choose one or the
> other?
>
> Thanks for tips or a related link.

From the most restrictive environment to the least one:

  - example block :: Indentation, blank lines (excepted at the beginning
                     and the end of the block) and line breaks are
                     preserved. No Org syntax whatsoever is recognized
                     within. This is like a source block without
                     a language (you can number lines...).

  - verse block :: Indentation, blank lines (excepted at the beginning
                   and the end of the block) and line breaks are
                   preserved. Org objects are recognized (e.g.,
                   emphasis) but not elements (e.g., paragraphs)

  - quote block and center block :: They can contain anything, including
    elements (e.g., paragraphs, lists...). Center blocks center their
    contents (duh!) and Quote blocks make them stand out in some way.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-06-15 12:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-15  8:37 What the difference between the non-source blocks? Thorsten Jolitz
2013-06-15  8:42 ` Thorsten Jolitz
2013-06-15 12:48   ` Nicolas Goaziou [this message]
2013-06-15 13:28     ` Thorsten Jolitz

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=87d2rnk0ak.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tjolitz@gmail.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).