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

2013-02-10 Thread Nicolas Goaziou
Hello, Florian Beck f...@miszellen.de 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

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

2013-02-10 Thread Florian Beck
Thanks for your explanations, very much appreciated. Nicolas Goaziou n.goaz...@gmail.com 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

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

2013-02-10 Thread Nicolas Goaziou
Florian Beck f...@miszellen.de 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

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

2013-02-10 Thread Florian Beck
Nicolas Goaziou n.goaz...@gmail.com 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

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

2013-02-10 Thread Nicolas Goaziou
Florian Beck f...@fbeck.net writes: Nicolas Goaziou n.goaz...@gmail.com 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