From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [patch] two bugs: one with comments and with exporting inline tasks Date: Thu, 04 Nov 2010 16:17:12 +0000 Message-ID: <87vd4d9i7r.fsf@ucl.ac.uk> References: <87iq0gknpg.fsf@pinto.chemeng.ucl.ac.uk> <87pqunv83v.wl%n.goaziou@gmail.com> <87iq0fla93.fsf@ucl.ac.uk> <8739rjl3s6.fsf@ucl.ac.uk> <87mxppcz8r.wl%n.goaziou@gmail.com> <87lj59cyrz.wl%n.goaziou@gmail.com> <87k4ktcyax.wl%n.goaziou@gmail.com> <878w19gzdq.fsf@ucl.ac.uk> <87iq0dchfm.wl%n.goaziou@gmail.com> <87wrotgoer.fsf@ucl.ac.uk> <87hbfxcfq2.wl%n.goaziou@gmail.com> <878w19azbv.fsf@ucl.ac.uk> <87eib1cdm4.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=35787 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE2VC-0002ID-Vn for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 12:17:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE2VB-00022a-HE for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 12:17:26 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:47797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PE2VB-00021E-Cy for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 12:17:25 -0400 In-Reply-To: <87eib1cdm4.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Thu, 04 Nov 2010 16:28:19 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Emacs Org mode mailing list Nicolas Goaziou writes: >> Argghhhhh! Not sure why this is happening. > > You need to (require 'org-inlinetask) before trying to export. d'oh. of course. doing this now makes exporting work fine, with emacs -Q and loading the right org modules, of course. Annoyingly, now it works just fine with my configuration. Maybe something left over in the existing emacs that I have been using all day... sorry for the noise! In terms of what to actually do with inline tasks on export, what I would love to see would be to have an inline task converted to a footnote with a marginpar note, along the lines of: #+begin_src org ***************************** TODO figure out why this doesn't work Some text in the body of the inline task. ***************************** END #+end_src being converted to, say: #+begin_src latex \footnote{\textbf{<>}: <>}\marginpar{\fbox{\thefootnote}} #+end_src i.e. where <> would be replaced by "TODO figure out why this doesn't work" and <> by all the text between the ****** lines. This is roughly the type of construct I use when I annotate latex documents directly. What do you think? We could make this a two argument latex function: #+begin_src latex \newcommand{\processinlinetask}[2]{% \footnote{\textbf{#1}: #2}\marginpar{\fbox{\thefootnote}}% } #+end_src which is defined in the org latex preamble and which a user could customise through =\renewcommand= if desired (or through an org emacs variable, of course). It would be invoked as #+begin_src latex \processinlinetask{<>}{<>} #+end_src We'd have to escape {}s maybe and it could be somewhat fragile if there are multiple paragraphs in the inline body text... For HTML, you could convert to end notes maybe or some type of box inline with the text... (well, customisable by the user through CSS I guess) Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.02trans (release_7.3.18.g3818.dirty)