emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Background color for literal examples in LaTeX export
@ 2011-10-14 18:14 Chris Malone
  0 siblings, 0 replies; only message in thread
From: Chris Malone @ 2011-10-14 18:14 UTC (permalink / raw)
  To: Emacs orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-14 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-14 18:14 Background color for literal examples in LaTeX export Chris Malone

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