From d25dc1ed183d268a8555d8d6df04e4c50a267302 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 27 Feb 2012 22:21:20 +0100 Subject: [PATCH] org-e-latex: Don't ignore num:number option * EXPERIMENTAL/org-e-latex.el (org-e-latex-headline): Don't ignore num:number option. --- EXPERIMENTAL/org-e-latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXPERIMENTAL/org-e-latex.el b/EXPERIMENTAL/org-e-latex.el index 43bbde731..9b61407f3 100644 --- a/EXPERIMENTAL/org-e-latex.el +++ b/EXPERIMENTAL/org-e-latex.el @@ -1071,9 +1071,9 @@ CONTENTS is nil. INFO is a plist holding contextual information." CONTENTS holds the contents of the headline. INFO is a plist holding contextual information." (let* ((class (plist-get info :latex-class)) - (numberedp (plist-get info :section-numbers)) - ;; Get level relative to current parsed data. (level (org-export-get-relative-level headline info)) + (numberedp (let ((sec-num (plist-get info :section-numbers))) + (if (wholenump sec-num) (<= level sec-num) sec-num))) (class-sectionning (assoc class org-e-latex-classes)) ;; Section formatting will set two placeholders: one for the ;; title and the other for the contents. -- 2.11.4.GIT