Numbering problems
Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
Numbering problems
Hi. There is a small question. I try to build numbering in the document, using p-optional-numbering-deep.css file and tips from the site for some help. But at the same time I get this thing.
мягкая мебель
What is wrong here: the first Chapter does not reset the counter and the count of pages goes from the title page. When I fix this thing, it turns out this thing:
upload image
It is clear that the counter for sections is not reset. It turns out either the numbering is not from the first Chapter, or the lack of numbering for the sections.
Really need help for broke the entire brain.
Thanks

What is wrong here: the first Chapter does not reset the counter and the count of pages goes from the title page. When I fix this thing, it turns out this thing:

It is clear that the counter for sections is not reset. It turns out either the numbering is not from the first Chapter, or the lack of numbering for the sections.
Really need help for broke the entire brain.
Thanks
Re: Numbering problems
Hello Stanislav,
I think a counter-reset used to reset the page on the first chapter has overwritten other counter-reset properties that reset other counters as well. (The counter-reset property can affect multiple counters at once.)
If you cannot detect the problem, please send us your CSS using the Technical Support form:
https://www.oxygenxml.com/techSupport.html
Many regards,
Dan
I think a counter-reset used to reset the page on the first chapter has overwritten other counter-reset properties that reset other counters as well. (The counter-reset property can affect multiple counters at once.)
If you cannot detect the problem, please send us your CSS using the Technical Support form:
https://www.oxygenxml.com/techSupport.html
Many regards,
Dan
Re: Numbering problems
Hello Dan!
For testing, I use an example IT-Book map from the catalog ../data / it-book and as a test file I use css file p-optional-numbering-deep.css.
Even under such default parameters, the numbering of the first Chapter does not begin with the number 1.
If i use the p-numbering-shadow.css file, the numbering of the first Chapter is ok, but the numbering of sections is lost.
For testing, I use an example IT-Book map from the catalog ../data / it-book and as a test file I use css file p-optional-numbering-deep.css.
Even under such default parameters, the numbering of the first Chapter does not begin with the number 1.
If i use the p-numbering-shadow.css file, the numbering of the first Chapter is ok, but the numbering of sections is lost.
Re: Numbering problems
I see that the numbering of the chapter starts with 1. Do you refer to the page number of the first chapter?
From your message I understood that you have succeeded in resetting the page, but the sub-sections numbers were wrong (after the fix). Is this correct?
From your message I understood that you have succeeded in resetting the page, but the sub-sections numbers were wrong (after the fix). Is this correct?
Re: Numbering problems
To reset the page on the first chapter, please add this to the customization CSS:
So it will reset both the page and the section counters.
Let me know if it worked for you,
Many regards,
Dan
Code: Select all
*[class ~= "map/map"] > *[class ~= "placeholder/toc"] + *[class ~= "topic/topic"][is-chapter]:not([is-part]) {
counter-reset: page section1;
}
Let me know if it worked for you,
Many regards,
Dan
Re: Numbering problems
Yep, it's working.
Thanks Dan. I spended 2 days for resolve this issue.
And there is so simple solution - ''counter-reset: page section1;"
Need more knowledge for me )
Dan,could you spare a moment? I need some help (again), please.
In the screenshot marked the places where the distance after the dotes to thepage numbers is not always the same.
Are there any methods to control this space. Especially considering that links to pages can consist of three digits or more.

Thanks Dan. I spended 2 days for resolve this issue.
And there is so simple solution - ''counter-reset: page section1;"
Need more knowledge for me )
Dan,could you spare a moment? I need some help (again), please.
In the screenshot marked the places where the distance after the dotes to thepage numbers is not always the same.
Are there any methods to control this space. Especially considering that links to pages can consist of three digits or more.

Re: Numbering problems
The layout engine figures out how many dots are entering in the leader that links the text to the numbers. The text width of the titles seem to vary a bit and sometimes the dot does not fit. Unfortunately there is no setting to control that..
All the best,
Dan
All the best,
Dan
-
- Posts: 53
- Joined: Wed Mar 27, 2019 10:12 am
Re: Numbering problems
Post by Manohar_1024 »
Hello Dan,
Yes, i am facing this issue.i am able reset the page number after each chapter but after the deep numbering is getting effected
Means it coming continuously like 1.1 ,1.2 ,1.3 ,2.4 ,2.5 ,2.6.....but actually it should be 1.1, 1.2 ,1.3, 2.1, 2.2 ,2.3....
Yes, i am facing this issue.i am able reset the page number after each chapter but after the deep numbering is getting effected
Means it coming continuously like 1.1 ,1.2 ,1.3 ,2.4 ,2.5 ,2.6.....but actually it should be 1.1, 1.2 ,1.3, 2.1, 2.2 ,2.3....
Re: Numbering problems
According to the other post of yours on a different forum thread I guess my solution helped and you managed to obtain what you wanted.
Regards,
Costin
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Re: Numbering problems
Hi Costin,
I am facing footer numbering issue as using this code, I am not able to center align the copyright text and the page number and text all as right aligned on the footer of the page. pLease help correct this code. Thank you
<variable id="Body odd footer"><param ref-name="prodname"/> <param ref-name="booktitle" />© Copyright-2020 company name <param ref-name="bookrev"/><param ref-name="pagenum" /></variable>
I am facing footer numbering issue as using this code, I am not able to center align the copyright text and the page number and text all as right aligned on the footer of the page. pLease help correct this code. Thank you
<variable id="Body odd footer"><param ref-name="prodname"/> <param ref-name="booktitle" />© Copyright-2020 company name <param ref-name="bookrev"/><param ref-name="pagenum" /></variable>
Re: Numbering problems
Hi Rushina,
I'm afraid we do not have the time right now for helping with customizing the XSL-FO, maybe you can try to register on the DITA Users List and ask the DITA community.
Regards,
Radu
I'm afraid we do not have the time right now for helping with customizing the XSL-FO, maybe you can try to register on the DITA Users List and ask the DITA community.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service