From: Chris Malone <malone@ucolick.org>
To: Emacs orgmode <emacs-orgmode@gnu.org>
Subject: Background color for literal examples in LaTeX export
Date: Fri, 14 Oct 2011 11:14:07 -0700 [thread overview]
Message-ID: <AD90153D-5F43-46BF-97AB-06972EC9EC61@ucolick.org> (raw)
Hi all,
I would like to include some lines in an example block and upon LaTeX export give the block a colored background, analogous to HTML export. For src blocks, this is easy using =listings=, but the lines I want to include are not necessarily source code. By default an example block is exported in a LaTeX =verbatim= environment. There are LaTeX ways of changing the verbatim environment to have a background and colors, but I'm curious if there is a way to do this within org-mode with a flag or different type of block?
Another option would be to define a new language for the =src= block, which can then use the =lstset= for listings, but this seems like more work than just adding the LaTeX to renew the =verbatim= environment.
Chris
reply other threads:[~2011-10-14 18:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=AD90153D-5F43-46BF-97AB-06972EC9EC61@ucolick.org \
--to=malone@ucolick.org \
--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).