From: tsd@tsdye.com (Thomas S. Dye)
To: Vikas Rawal <vikaslists@agrarianresearch.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: mdframed blocks for latex export
Date: Sun, 22 Feb 2015 16:50:11 -1000 [thread overview]
Message-ID: <m2oaoliboc.fsf@tsdye.com> (raw)
In-Reply-To: <92374C1A-4019-4505-BACE-493BB409D2A6@agrarianresearch.org> (Vikas Rawal's message of "Mon, 23 Feb 2015 05:58:11 +0530")
Aloha Vikas,
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> In a document I am preparing using Org-mode, I need to create some
> “boxes” containing text, tables and figures. In LaTeX, mdframed seems
> to be the way to go. Is there a way to do it in Org-mode? How do I
> define something like
>
> #+begin_mdframed
> Contents of the box go here
> #+end_mdframed
I think you've found the answer.
This Org mode code:
,-----------------------------
| #+attr_latex: :options [foo]
| #+begin_mdframed
| Contents of box go here.
| #+end_mdframed
`-----------------------------
exports this valid mdframed code to LaTeX:
\begin{mdframed}[foo]
Contents of box go here.
\end{mdframed}
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
prev parent reply other threads:[~2015-02-23 2:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 0:28 mdframed blocks for latex export Vikas Rawal
2015-02-23 2:06 ` John Kitchin
2015-02-23 2:50 ` Thomas S. Dye [this message]
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=m2oaoliboc.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=vikaslists@agrarianresearch.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).