From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Shi Subject: Re: Org publish restrict to certain levels Date: Wed, 28 Mar 2012 09:53:38 +0200 Message-ID: References: <4502.1330040124@alphaville> <87pqbxpx87.fsf@gnu.org> <4627.1332897656@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174c34d6914d6e04bc48e919 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCnhz-0004dQ-52 for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 03:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCnhs-0004TD-UG for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 03:54:18 -0400 In-Reply-To: <4627.1332897656@alphaville> 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 --0015174c34d6914d6e04bc48e919 Content-Type: text/plain; charset=ISO-8859-1 Thank you! Xin On Wed, Mar 28, 2012 at 3:20 AM, Nick Dokos wrote: > 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 > --0015174c34d6914d6e04bc48e919 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you!

Xin


<= br>
On Wed, Mar 28, 2012 at 3:20 AM, Nick Dokos <= span dir=3D"ltr"><nicholas.doko= s@hp.com> wrote:
Bast= ien <bzg@gnu.org> wrote:

> Hi Nick,
>
> Nick Dokos <nicholas.dokos= @hp.com> writes:
>
> > Unfortunately, there is a bug in org-latex.el, in org-export-late= x-subcontent
> >
> > ,----
> > | =A0 =A0 =A0 ((listp org-export-latex-low-levels)
> > | =A0 =A0 =A0 =A0(if (string-match "% ends low level$"<= br> > > | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(buffer-subs= tring (point-at-bol 0) (point)))
> > | =A0 =A0 =A0 =A0 =A0 =A0(delete-region (point-at-bol 0) (point))=
> > | =A0 =A0 =A0 =A0 =A0(insert (car org-export-latex-low-levels) &q= uot;\n")) =A0 =A0 ;;;; <<<< org-export-latex-low-levels ca= nnot be nil here: car will blow up
> > | =A0 =A0 =A0 =A0(insert (format (nth 2 org-export-latex-low-leve= ls) =A0 =A0;;;; <<<< or here: format will blow up
> > | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0heading
> > | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(if label (forma= t "\\label{%s}" label) "")))
> > | =A0 =A0 =A0 =A0(insert (org-export-latex-content content))
> > | =A0 =A0 =A0 =A0(cond ((stringp subcontent) (insert subcontent))=
> > | =A0 =A0 =A0 =A0 =A0 =A0 =A0((listp subcontent) (org-export-late= x-sub subcontent)))
> > | =A0 =A0 =A0 =A0(insert (nth 1 org-export-latex-low-levels)
> > | =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0" %% 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

--0015174c34d6914d6e04bc48e919--