From: "Dario Hamidi" <dario.hamidi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: src blocks in texinfo export
Date: Tue, 12 Feb 2013 16:36:49 +0100 [thread overview]
Message-ID: <87liat35ny.fsf@sofia.zeitform.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
Hello,
I discovered a problem when exporting source blocks containing braces to
texinfo using `ox-texinfo'. The texinfo exporter wraps source blocks
into a `example' environment, which takes care of source block
indentation but doesn't allow any braces to occur in the contained text,
since braces have a special meaning in TeX.
After reading the `texinfo' manual, it became clear that literal examples
should be exported also in a `verbatim' environment. A patch making
this change to the exporter is attached.
Dario
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ox-texinfo.el.patch --]
[-- Type: text/x-patch, Size: 474 bytes --]
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 8bc3520..211bf01 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -1409,7 +1409,7 @@ contextual information."
(org-export-format-code-default src-block info)))
;; Case 2. Other blocks
(t
- (format "@example\n%s@end example"
+ (format "@example\n@verbatim\n%s@end verbatim\n@end example"
(org-export-format-code-default src-block info))))))
;;; Statistics Cookie
next reply other threads:[~2013-02-12 15:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 15:36 Dario Hamidi [this message]
2013-02-12 16:32 ` src blocks in texinfo export Jonathan Leech-Pepin
2013-02-12 22:09 ` Dario Hamidi
2013-03-10 19:49 ` Jonathan Leech-Pepin
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=87liat35ny.fsf@sofia.zeitform.net \
--to=dario.hamidi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).