emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-publish an org-mode outline
@ 2017-08-13  4:57 Bob Newell
  2017-08-13 18:32 ` Bob Newell
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Newell @ 2017-08-13  4:57 UTC (permalink / raw)
  To: emacs-orgmode

I may be overlooking something simple here, but I'm having a problem
with org-publish. When I try to publish a page containing something like
this (minimal example):

#+BEGIN_EXAMPLE
* top
** level 2
*** level 3
#+END_EXAMPLE

what happens is that 'top' etc. get interpreted as section markers (the
'example' seems to be overlooked).

To get it to be an actual code example I have to indent the * to make
the line a non-headline, " * top" instead of "* top" for instance.

What kind of dumb mistake am I making? I've been using org-publish for a
while but all my code samples so far haven't included org-mode headlines.

Mahalo in advance.

-- 
Bob Newell
Honolulu, Hawai`i
* Via Gnus/BBDB/Org/Emacs/Linux *

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-publish an org-mode outline
  2017-08-13  4:57 org-publish an org-mode outline Bob Newell
@ 2017-08-13 18:32 ` Bob Newell
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Newell @ 2017-08-13 18:32 UTC (permalink / raw)
  To: emacs-orgmode

Bob Newell <bobnewell@bobnewell.net> writes:

> #+BEGIN_EXAMPLE
> * top
> ** level 2
> *** level 3
> #+END_EXAMPLE

Question answered in another thread, just to confirm: ",* top"
etc. works as advertised. I missed that footnote about using a leading
comma but the syntax is consistent with Emacs convention, it seems.

-- 
Bob Newell
Honolulu, Hawai`i
* Via Gnus/BBDB/Org/Emacs/Linux *

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-13 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-13  4:57 org-publish an org-mode outline Bob Newell
2017-08-13 18:32 ` Bob Newell

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).