From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Spelled out example of org-latex-format-headline-function customization? Date: Tue, 19 Mar 2013 17:37:12 +0100 Message-ID: <87a9pzz6pz.fsf@bzg.ath.cx> References: <871ubbs80b.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHzXQ-0006OK-Ed for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 12:37:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHzXP-00085l-4W for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 12:37:24 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:34720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHzXO-00085c-Uj for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 12:37:23 -0400 Received: by mail-wi0-f179.google.com with SMTP id ez12so745374wid.12 for ; Tue, 19 Mar 2013 09:37:22 -0700 (PDT) In-Reply-To: (John Hendy's message of "Tue, 19 Mar 2013 11:18:37 -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: emacs-orgmode John Hendy writes: > So the docstring is just the documentation definition? (In this case > "Documentation: Function for formatting the headline's text..."?) Yes. >> C-h f org-latex-format-headline-default-function RET >> >> will show you the docstring of the function. > > And in this case: "(org-latex-format-headline-default-function TODO > TODO-TYPE PRIORITY TEXT TAGS)"? Not exactly... Emacs display the documentation after the definition of the function and its arguments. The definition here is: Default format function for a headline. See `org-latex-format-headline-function' for details. > Good to know. It seems that variables *could* be passed to the format > function. After all, the function takes five arguments which are all > either strings or nil... so it would seem that one could have a > variable like: > > (setq org-latex-headline-format ("string" "string" "string" "string" > "string")) which would feed into the default-headline-function > function. > > Or splitting out into separate variables. Seems like the tension is > between minimizing locations to make all of these settings and ease of > use (for noobs). This is what our discussion with Nicolas is really about. There are problems with tags, though: you need to handle them one by one, not as a string. I'll send news if any! -- Bastien