From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: "Allen S. Rout" <asr@ufl.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Exporting comments to comments?
Date: Wed, 19 Feb 2020 16:13:26 +0000 [thread overview]
Message-ID: <87sgj6pnbv.fsf@ucl.ac.uk> (raw)
In-Reply-To: r2jm9t$32hj$1@ciao.gmane.io
On Wednesday, 19 Feb 2020 at 11:04, Allen S. Rout wrote:
> I thought about making a block of a 'comment' type, but of course all
I use drawers for this functionality. By default, I do not export
drawers (#+options: d:nil) but I can turn this on and then process
specific drawers using filters, as in:
#+begin_src elisp
(setq org-latex-format-drawer-function
(lambda (name contents)
(cond ((string= name "solution")
(format
"\\begin{mdframed}\\paragraph{Solution.} %s\\end{mdframed}"
contents))
(t (format "\\textbf{%s}: %s" name contents)))))
#+end_src
which I use for :solution: drawers when preparing courseworks/exams. If
you want to ignore all other drawers except specific ones, have no
action in the =t= clause of the =cond=.
Using this right now preparing a coursework for my students... ;-)
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-350-g39f1c1
next prev parent reply other threads:[~2020-02-19 16:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 16:04 Exporting comments to comments? Allen S. Rout
2020-02-19 16:13 ` Fraga, Eric [this message]
2020-02-23 20:41 ` Christian Moe
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=87sgj6pnbv.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=asr@ufl.edu \
--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).