discuss: Re: In HTML, "render" all headings as anchors


Previous by date: 21 Mar 2002 13:13:21 -0000 Re: In HTML, "render" all headings as anchors, Sean Buckley
Next by date: 21 Mar 2002 13:13:21 -0000 Distributions HOWTO in the LWN, David Merrill
Previous in thread: 21 Mar 2002 13:13:21 -0000 Re: In HTML, "render" all headings as anchors, Sean Buckley
Next in thread: 21 Mar 2002 13:13:21 -0000 Re: In HTML, "render" all headings as anchors, Sean Buckley

Subject: Re: RFE: In HTML, "render" all headings as anchors
From: "Greg Ferguson" ####@####.####
Date: 21 Mar 2002 13:13:21 -0000
Message-Id: <10203210811.ZM14787@hoop.timonium.sgi.com>

On Mar 21, 12:27pm, Sean Buckley wrote:
> Subject: Re: RFE: In HTML, "render" all headings as anchors
> David Lawyer wrote:
>
>
> >
> > So if there's an easy way (via free software) to put tertiary headings
> > into the TOC via the sgml-to-html conversion, I'm for it.  But if it
> > isn't real easy, I think we have higher priority tasks to do.
> >
>
>
> I had a question about this. When I generate html from my docbook sgml
> (using ldp.dsl), I get three heading levels in the TOC. The same sgml is
> rendered with two levels on the linuxdoc site.
>
> see:
>
> http://www.linuxdoc.org/HOWTO/PalmOS-HOWTO/index.html
>
> compared with my local version:
>
> http://www.redbug.uklinux.net/palm/index.html
>
>
> Personally, I prefer the linuxdoc version - the tertiary headings
> clutter the TOC, and I only use them to break up the long pages.
>
> So my question is, given that the sgml is docbook, what is causing the
> rendering difference when the ldp web pages are built? (Note, I'm a
> docbook novice, so apologies if the answer is obvious).


In ldp.dsl, around line 306 (not sure which rev you have):

  (define (toc-depth nd)
   ;; more depth (2 levels) to toc; instead of flat hierarchy
   2)

You can modify that to suite your needs. Higher number, more
levels shown.

regards,

-- 
Greg Ferguson    * SGI principal engr / LDP contributor
SGI Tech Pubs    * http://techpubs.sgi.com/ | gferg(at)sgi.com
Linux Doc Project* http://www.linuxdoc.org/ | gferg(at)metalab.unc.edu

Previous by date: 21 Mar 2002 13:13:21 -0000 Re: In HTML, "render" all headings as anchors, Sean Buckley
Next by date: 21 Mar 2002 13:13:21 -0000 Distributions HOWTO in the LWN, David Merrill
Previous in thread: 21 Mar 2002 13:13:21 -0000 Re: In HTML, "render" all headings as anchors, Sean Buckley
Next in thread: 21 Mar 2002 13:13:21 -0000 Re: In HTML, "render" all headings as anchors, Sean Buckley


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.