From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Org publish restrict to certain levels Date: Tue, 27 Mar 2012 23:09:28 +0200 Message-ID: <87pqbxpx87.fsf@gnu.org> References: <4502.1330040124@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCg5z-0004wA-Nk for emacs-orgmode@gnu.org; Tue, 27 Mar 2012 19:46:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCg5w-0007l7-NQ for emacs-orgmode@gnu.org; Tue, 27 Mar 2012 19:46:35 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:57204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCg5w-0007ib-Dm for emacs-orgmode@gnu.org; Tue, 27 Mar 2012 19:46:32 -0400 Received: by mail-wi0-f177.google.com with SMTP id hj13so340271wib.12 for ; Tue, 27 Mar 2012 16:46:31 -0700 (PDT) In-Reply-To: <4502.1330040124@alphaville> (Nick Dokos's message of "Thu, 23 Feb 2012 18:35:24 -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: nicholas.dokos@hp.com Cc: emacs-orgmode , Xin Shi 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. Thanks, -- Bastien