Re: [O] org-latex-classes with functions, incomplete doc

2013-02-10 Thread Nicolas Goaziou
Florian Beck writes: > Nicolas Goaziou writes: > >>> (toc-title (if (plist-get info :toc-title) >>> (org-element-property :toc-title headline))) >> >> There's no :toc-title property in the communication channel. The >> exhaustive list of its properties is written in ox.e

Re: [O] org-latex-classes with functions, incomplete doc

2013-02-10 Thread Florian Beck
Nicolas Goaziou writes: >> (toc-title (if (plist-get info :toc-title) >> (org-element-property :toc-title headline))) > > There's no :toc-title property in the communication channel. The > exhaustive list of its properties is written in ox.el, at "The > Communication Ch

Re: [O] org-latex-classes with functions, incomplete doc

2013-02-10 Thread Nicolas Goaziou
Florian Beck writes: > Ok, I tried this. There is a problem, however. This is what I came up > with: > > #+BEGIN_SRC emacs-lisp > (defun fb/org-latex-headline (headline contents info) > (let* ((full-section (org-latex-headline headline contents info)) I suggest (org-export-with-backend 'latex

Re: [O] org-latex-classes with functions, incomplete doc

2013-02-10 Thread Florian Beck
Thanks for your explanations, very much appreciated. Nicolas Goaziou writes: > the proper way to do this is to define a derived back-end with > a custom headline translation function. Ok, I tried this. There is a problem, however. This is what I came up with: #+BEGIN_SRC emacs-lisp (defun fb/o

Re: [O] org-latex-classes with functions, incomplete doc

2013-02-10 Thread Nicolas Goaziou
Hello, Florian Beck writes: > the docstring for `org-latex-classes' says: > > "Instead of a list of sectioning commands, you can also specify > a function name. That function will be called with two > parameters, the (reduced) level of the headline, and a predicate > non-nil when the headline s

[O] org-latex-classes with functions, incomplete doc

2013-02-10 Thread Florian Beck
Hi, the docstring for `org-latex-classes' says: "Instead of a list of sectioning commands, you can also specify a function name. That function will be called with two parameters, the (reduced) level of the headline, and a predicate non-nil when the headline should be numbered. It must return a