From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Using orgmode to take "inline notes" for research Date: Sat, 16 Apr 2011 09:24:09 +0200 Message-ID: <878vvau09y.fsf@gmail.com> References: <80bp0iquxw.fsf@somewhere.org> <80lizkxy6j.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAzrh-0007hd-5Y for emacs-orgmode@gnu.org; Sat, 16 Apr 2011 03:24:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAzrg-0001AU-Ab for emacs-orgmode@gnu.org; Sat, 16 Apr 2011 03:24:21 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:60916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAzrg-0001AO-5h for emacs-orgmode@gnu.org; Sat, 16 Apr 2011 03:24:20 -0400 Received: by wyf19 with SMTP id 19so3363647wyf.0 for ; Sat, 16 Apr 2011 00:24:15 -0700 (PDT) In-Reply-To: (John Hendy's message of "Tue, 12 Apr 2011 11:30:07 -0500") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: =?utf-8?Q?S=C3=A9bastien?= Vauban , emacs-orgmode@gnu.org Hello, John Hendy writes: > ,--- > | (latex "\\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}" > | '((unless (eq todo "") > | (format "\\textsc{%s%s}" todo priority)) > | heading content)) > `--- > > A couple questions: > - would you be able to even broadly tell me what the latex chunk is > doing there? Is %s like the %s in python (and perhaps other > programming languages)? I don't get where the third %s gets its value. > In other words, it seems that one of them is the heading value and > another is the content... but what does the third %s get it's value in > the first line? First %s will be replaced by the result of '((unless (eq todo "") ...)). In other words, it will be the empty string or "\\textsc{todo-keyword priority}". Second %s is the heading text. Third one is the contents of the inline task. Regards, -- Nicolas Goaziou