From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: How to move from inline tasks to drawers? [was: How to change the width of a latex exported inlinetask?] Date: Sun, 3 Nov 2019 13:50:26 +0000 Message-ID: <871rupax29.fsf@ucl.ac.uk> References: <23997.32316.900106.897373@frac.u-strasbg.fr> 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]:34186) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRGH1-0007cR-0m for emacs-orgmode@gnu.org; Sun, 03 Nov 2019 08:50:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRGGz-0000ps-M3 for emacs-orgmode@gnu.org; Sun, 03 Nov 2019 08:50:30 -0500 Received: from mail-eopbgr80125.outbound.protection.outlook.com ([40.107.8.125]:64484 helo=EUR04-VI1-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 1iRGGz-0000p6-FQ for emacs-orgmode@gnu.org; Sun, 03 Nov 2019 08:50:29 -0500 In-Reply-To: <23997.32316.900106.897373@frac.u-strasbg.fr> (Alain Cochard's message of "Sat, 2 Nov 2019 14:01:48 +0100") 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.org@gnu.org Sender: "Emacs-orgmode" To: "Alain.Cochard@unistra.fr" Cc: "emacs-orgmode@gnu.org" On Saturday, 2 Nov 2019 at 14:01, Alain.Cochard@unistra.fr wrote: > You also said that you had "already moved to using drawers for a large > number of [your] inline task use cases, the ones that weren't really > tasks!". Is this consistent with your "almost completely" above? > This leads me to the question of what precisely _defines_ a "task"; Good question! I guess, for me, a task is one that will appear in my agenda so has a TODO state (possibly) and/or scheduling/deadline information. But the distinction is rather blurry. So, in fact, when I am working on a long document, I have tasks of the "must improve this section" type which are not tasks for scheduling (the whole document is itself a task) or "notes" for processing later (by myself or by others involved in the same document). I use drawers for these types of activities. I then use the export formatting options to make the pseudo-tasks and notes appear differently in the exported output, whether for sharing or for printing/display. So, for instance, I look for ":todo:" and ":note:" drawers. If the document I am working on is a coursework or test, I use drawers for storing the solutions, e.g. a drawer called ":solution:"! For this, for instance, I have the following elisp in the document that is invoked when I open the document: #+begin_src emacs-lisp (setq-local 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=20 together with #+latex_header: \usepackage[backgroundcolor=3Dyellow!10!white]{mdframed} to make the solution stand out clearly. The nice thing about drawers is I can turn them on or off for exporting via the "d:" document option: HTH, eric --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78