From: Nicolas Goaziou <n.goaziou@gmail.com>
To: "S.S" <super.quazimodo@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Literal Examples are malformed in exports (to html/tex) [8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)]
Date: Wed, 29 May 2013 21:10:04 +0200 [thread overview]
Message-ID: <8761y1hab7.fsf@gmail.com> (raw)
In-Reply-To: <87d2s9629y.fsf@gmail.com> (S. S.'s message of "Thu, 30 May 2013 04:59:05 +1000")
Hello,
super.quazimodo@gmail.com (S.S) writes:
> I add a literal example like
>
> #+BEGIN_SRC
> (defun org-xor (a b)
> "Exclusive or."
> (if a (not b) b))
> #+END_SRC
You need to provide a language for src blocks.
> and
>
> #+BEGIN_EXAMPLE
> (defun org-xor (a b)
> "Exclusive or."
> (if a (not b) b))
> #+END_EXAMPLE
>
> to an org file in various places.
>
> Export with (org-html-export-to-html) and (org-latex-export-to-latex)
> produces inconsistent and malformed example blocks. Some of these blocks
> produce
> <p>
> #+BEGIN<sub>EXAMPLE</sub>
> (defun org-xor (a b)
> "Exclusive or."
> (if a (not b) b))
> </p>
>
> Others produce
>
> <p>
> (defun org-xor (a b)
> "Exclusive or."
> (if a (not b) b))
> </p>
>
> and
>
> \#+BEGIN$_{\text{EXAMPLE}}$
> (defun org-xor (a b)
> "Exclusive or."
> (if a (not b) b))
> \#+END$_{\text{EXAMPLE}}$
It means the example blocks are not recognized as such, for some reason.
I cannot reproduce it, so I'd need a bit more context around your wrong
blocks. Could you provide an ECM?
> I add the following before an example block
> #+ATTR_HTML: :textarea t :width 40
>
> and it creates
>
> <div textarea="t" width="40" class="example
> ">
> <p>
> (defun org-xor (a b)
> "Exclusive or."
> (if a (not b) b))
> </p>
I cannot reproduce it either, but it seems related to the first problem.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2013-05-29 19:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 18:59 Bug: Literal Examples are malformed in exports (to html/tex) [8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)] S.S
2013-05-29 19:10 ` Nicolas Goaziou [this message]
[not found] ` <CAKnJoB5cg-7m0qyh2nun5ANMxg=d9tukTrXEg2d8Oo-fXZDWuw@mail.gmail.com>
[not found] ` <871u8ph9r5.fsf@gmail.com>
2013-05-29 19:45 ` S S
2013-05-29 21:36 ` Nicolas Goaziou
2013-05-30 1:16 ` S S
2013-05-30 2:20 ` S S
2013-05-30 6:34 ` S S
2013-05-30 7:38 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2013-05-29 18:15 S.S
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761y1hab7.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=super.quazimodo@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.