From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: Exporting comments to comments? Date: Wed, 19 Feb 2020 16:13:26 +0000 Message-ID: <87sgj6pnbv.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38415) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4Ryb-0000X3-Rw for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 11:13:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4Rya-0002Ud-L2 for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 11:13:29 -0500 Received: from mail-eopbgr40096.outbound.protection.outlook.com ([40.107.4.96]:56983 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4Rya-0002Ra-Dx for emacs-orgmode@gnu.org; Wed, 19 Feb 2020 11:13:28 -0500 Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: "Allen S. Rout" Cc: "emacs-orgmode@gnu.org" 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=3D 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 =3Dt=3D clause of the =3Dcond=3D. Using this right now preparing a coursework for my students... ;-) --=20 : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-350-g39f1c1