Re: TOC placement in pdf

rohith R <[email protected]> Thu, 23 Feb 2023 15:45:59 +1030
Newsgroups gmane.text.docbook.apps
Message-ID <CAJnYUCQJa5LDfSBzREH9qta=0PEfvdYsiT1mgwH78opF-Q_C=w@mail.gmail.com>
--00000000000066db1605f5571ca1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hmmm,
 I'll check.
I'd prefer to control it via xsl if that's possible as it provides max
flexibility.
Not sure if it's possible =F0=9F=A4=94

On Tue, 21 Feb 2023, 6:17 pm Dave Pawson, <[email protected]> wrote:

> Can you use the <toc/> element to place it where you want?
>
>
> HTH
>
> On Tue, 21 Feb 2023 at 06:28, Richard Hamilton <[email protected]>
> wrote:
> >
> > Hello,
> >
> > The element I=E2=80=99ve used to put things before the toc is <dedicati=
on>,
> which allows a lot more elements than you might expect, including
> paragraphs and tables.
> >
> > It is an abuse of the tag, (I=E2=80=99ve used it only for a dedication =
in our
> books), but in a pinch, it might do what you need.
> >
> > I=E2=80=99m sure others on this list may have some good (probably bette=
r:)
> ideas, but I=E2=80=99m not sure you can do what you want to do with any o=
ther
> element, unless you modify the stylesheets.
> >
> > I hope that helps.
> > Dick Hamilton
> > -------
> > XML Press
> > XML for Technical Communicators
> > http://xmlpress.net
> > [email protected]
> >
> >
> >
> > > On Feb 20, 2023, at 23:04, rohith R <[email protected]> wrote:
> > >
> > > Hi,
> > >
> > >
> > > I'm using an article style docbook and convert it into pdf.
> > >
> > > The TOC is getting generated after the title page. I want it before
> the section but after the front matter. How can I accomplish  this?
> > >
> > > My article structure (docbook5):
> > > - title page
> > > - other stuff (text and couple of tables)
> > > - multiple sections <section>
> > >
> > > I want the TOC placed after "other stuff" and before sections.
> > >
> > > How can I accomplish it?
> > > At the moment they get generated after title page when generating pdf=
.
> > >
> > > Regards,
> > > R
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

--00000000000066db1605f5571ca1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hmmm,<div dir=3D"auto">=C2=A0I&#39;ll check.</div><div di=
r=3D"auto">I&#39;d prefer to control it via xsl if that&#39;s possible as i=
t provides max flexibility.</div><div dir=3D"auto">Not sure if it&#39;s pos=
sible =F0=9F=A4=94=C2=A0</div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Tue, 21 Feb 2023, 6:17 pm Dave Pawson, &lt=
;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wro=
te:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex">Can you use the &lt;toc/&gt; el=
ement to place it where you want?<br>
<br>
<br>
HTH<br>
<br>
On Tue, 21 Feb 2023 at 06:28, Richard Hamilton &lt;<a href=3D"mailto:hamilt=
[email protected]" target=3D"_blank" rel=3D"noreferrer">[email protected]=
</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; The element I=E2=80=99ve used to put things before the toc is &lt;dedi=
cation&gt;, which allows a lot more elements than you might expect, includi=
ng paragraphs and tables.<br>
&gt;<br>
&gt; It is an abuse of the tag, (I=E2=80=99ve used it only for a dedication=
 in our books), but in a pinch, it might do what you need.<br>
&gt;<br>
&gt; I=E2=80=99m sure others on this list may have some good (probably bett=
er:) ideas, but I=E2=80=99m not sure you can do what you want to do with an=
y other element, unless you modify the stylesheets.<br>
&gt;<br>
&gt; I hope that helps.<br>
&gt; Dick Hamilton<br>
&gt; -------<br>
&gt; XML Press<br>
&gt; XML for Technical Communicators<br>
&gt; <a href=3D"http://xmlpress.net" rel=3D"noreferrer noreferrer" target=
=3D"_blank">http://xmlpress.net</a><br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"nore=
ferrer">[email protected]</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; On Feb 20, 2023, at 23:04, rohith R &lt;<a href=3D"mailto:rohith.=
[email protected]" target=3D"_blank" rel=3D"noreferrer">rohith.ubuntu@gmail.=
com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m using an article style docbook and convert it into pdf.<b=
r>
&gt; &gt;<br>
&gt; &gt; The TOC is getting generated after the title page. I want it befo=
re the section but after the front matter. How can I accomplish=C2=A0 this?=
<br>
&gt; &gt;<br>
&gt; &gt; My article structure (docbook5):<br>
&gt; &gt; - title page<br>
&gt; &gt; - other stuff (text and couple of tables)<br>
&gt; &gt; - multiple sections &lt;section&gt;<br>
&gt; &gt;<br>
&gt; &gt; I want the TOC placed after &quot;other stuff&quot; and before se=
ctions.<br>
&gt; &gt;<br>
&gt; &gt; How can I accomplish it?<br>
&gt; &gt; At the moment they get generated after title page when generating=
 pdf.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; R<br>
&gt;<br>
&gt;<br>
&gt; ---------------------------------------------------------------------<=
br>
&gt; To unsubscribe, e-mail: <a href=3D"mailto:docbook-apps-unsubscribe@lis=
ts.oasis-open.org" target=3D"_blank" rel=3D"noreferrer">docbook-apps-unsubs=
[email protected]</a><br>
&gt; For additional commands, e-mail: <a href=3D"mailto:docbook-apps-help@l=
ists.oasis-open.org" target=3D"_blank" rel=3D"noreferrer">docbook-apps-help=
@lists.oasis-open.org</a><br>
&gt;<br>
<br>
<br>
-- <br>
Dave Pawson<br>
XSLT XSL-FO FAQ.<br>
Docbook FAQ.<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a href=3D"mailto:[email protected]=
sis-open.org" target=3D"_blank" rel=3D"noreferrer">docbook-apps-unsubscribe=
@lists.oasis-open.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:docbook-apps-help@lists.=
oasis-open.org" target=3D"_blank" rel=3D"noreferrer">docbook-apps-help@list=
s.oasis-open.org</a><br>
<br>
</blockquote></div>

--00000000000066db1605f5571ca1--