From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Org publish restrict to certain levels Date: Tue, 27 Mar 2012 21:20:56 -0400 Message-ID: <4627.1332897656@alphaville> References: <4502.1330040124@alphaville> <87pqbxpx87.fsf@gnu.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SChZb-00075S-Kv for emacs-orgmode@gnu.org; Tue, 27 Mar 2012 21:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SChZZ-00014y-W6 for emacs-orgmode@gnu.org; Tue, 27 Mar 2012 21:21:15 -0400 In-Reply-To: Message from Bastien of "Tue, 27 Mar 2012 23:09:28 +0200." <87pqbxpx87.fsf@gnu.org> 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: Bastien Cc: nicholas.dokos@hp.com, emacs-orgmode , Xin Shi Bastien wrote: > Hi Nick, > > Nick Dokos writes: > > > Unfortunately, there is a bug in org-latex.el, in org-export-latex-subcontent > > > > ,---- > > | ((listp org-export-latex-low-levels) > > | (if (string-match "% ends low level$" > > | (buffer-substring (point-at-bol 0) (point))) > > | (delete-region (point-at-bol 0) (point)) > > | (insert (car org-export-latex-low-levels) "\n")) ;;;; <<<< org-export-latex-low-levels cannot be nil here: car will blow up > > | (insert (format (nth 2 org-export-latex-low-levels) ;;;; <<<< or here: format will blow up > > | heading > > | (if label (format "\\label{%s}" label) ""))) > > | (insert (org-export-latex-content content)) > > | (cond ((stringp subcontent) (insert subcontent)) > > | ((listp subcontent) (org-export-latex-sub subcontent))) > > | (insert (nth 1 org-export-latex-low-levels) > > | " %% ends low level\n")) > > | > > `---- > > This is fixed -- you can now set `org-export-latex-low-levels' to nil, > low levels won't be exported. > Verified - thanks! Nick