Replies: 4 comments 9 replies
-
I see, there is almost no documentation on this topic. What a shame. I will write something. |
Beta Was this translation helpful? Give feedback.
-
Here is a small example: <Layout xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Pageformat height="4cm" width="7cm" />
<Pagetype name="t" test="true()">
<AtPageCreation>
<PlaceObject row="1cm" column="5cm">
<Textblock>
<Paragraph>
<Value select="sd:current-page()" />
<Value>, </Value>
<Value select="sd:visible-pagenumber(sd:current-page())"></Value>
</Paragraph>
</Textblock>
</PlaceObject>
</AtPageCreation>
</Pagetype>
<!-- the defaults: -->
<DefineMatter name="mainmatter" label="decimal" resetbefore="yes" />
<DefineMatter name="frontmatter" label="lowercase-romannumeral" />
<!-- my own definition -->
<DefineMatter name="patrick" label="uppercase-romannumeral" resetbefore="yes" prefix="P-" />
<Record element="data">
<ClearPage matter="frontmatter" />
<PlaceObject>
<Textblock>
<Paragraph>
<Value>frontmatter</Value>
</Paragraph>
</Textblock>
</PlaceObject>
<ClearPage matter="mainmatter" />
<PlaceObject>
<Textblock>
<Paragraph>
<Value>mainmatter</Value>
</Paragraph>
</Textblock>
</PlaceObject>
<ClearPage matter="patrick" />
<PlaceObject>
<Textblock>
<Paragraph>
<Value>patrick</Value>
</Paragraph>
</Textblock>
</PlaceObject>
</Record>
</Layout> which prints (on each page) frontmatter 1, i 1,2,3 are the "real" page numbers, i, 1, P-I are the numbers defined by the matter definition. As a bonus, the page numbers shown in Adobe Acrobat are also the ones you see here (i, 1, P-I). resetbefore makes the page number start again by one. Think of a classic book where sometimes the page numbers in the table of contents are printed in roman numerals and the rest of the book (starting with 1) with "normal" figures. |
Beta Was this translation helpful? Give feedback.
-
OK, I am not sure what the sections should actually do... The structures of the pages are recognized: However it doesn't affect the numeration on the pages: As you can notice the page is A-2 but the number is 3, because it is actually the third page. Bug? Pebcak? Half & Half? 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
Documented in 4.19.38 |
Beta Was this translation helpful? Give feedback.
-
Hi Patrick,
I am trying to understand how to use the defaults
frontmatter
andmainmatter
to differentiate the numeration fromToC
andbody
, but I didn't really understand how this works.Digging into the documentation I read that you can use
<ClearPage>
to add the attributematter
so I put aClearPage
tag in therecord
where it is saved the ToC (it is a one pass ToC) and another one in the record where I believe it is starting the body (body uses two records: section opening and section). Unfortunately it didn't work out , thus I moved theClearPage
tag intoatPageCreation/Shipout
masters but it started breaking things.Maybe I had better to plan this at the beginning, on the DTP GUI software is usually a trivial stuff so I didn't care enough; or most likely I got this wrong and it doesn't require to change anything in the layout.
Before to write this I searched also in the examples but using
matter
anddefinematter
I couldn't find anything as example forDefineMatters
and generally sections.Thanks in advance... 🙏
Beta Was this translation helpful? Give feedback.
All reactions