Empty Page Layout
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 53
- Joined: Wed Mar 27, 2019 10:12 am
Empty Page Layout
Post by Manohar_1024 »
Hello,
I want to get empty page.
I am able to get it by using a backgroung image( a PNG witten as Empty Page).
But actually now i want get the same thing as a text in the middle of the page by using CSS. Below is the code that i am using to get that text in the center of my empty page.
I am using DITA transformation using CSS.
Thank you,
Manohar.
I want to get empty page.
I am able to get it by using a backgroung image( a PNG witten as Empty Page).
But actually now i want get the same thing as a text in the middle of the page by using CSS. Below is the code that i am using to get that text in the center of my empty page.
Code: Select all
*[class ~= "map/map"] *[class ~= "topic/blank"] {
content: "Intentionally left blank";
display:block;
text-align:center;
margin-top: 2em;
}
@page :blank {
@top-left {content: none};
@top-right {content: none};
@bottom-left {content: none};
@bottom-right {content: none};
@top-center {content: none};
@bottom-center {content: none};
}
I am using DITA transformation using CSS.
Thank you,
Manohar.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Empty Page Layout
Hi,
This is not an oXygen XML issue, but a CSS customization.
However, you could try to set an outputclass attribute (say "blankPageAfter") on the topicref after you need the blank-page (with "Intentionally left blank" text) , then use something like:
This is not an oXygen XML issue, but a CSS customization.
However, you could try to set an outputclass attribute (say "blankPageAfter") on the topicref after you need the blank-page (with "Intentionally left blank" text) , then use something like:
Code: Select all
*[class ~= "blankPageAfter"]:after {
page: blank;
content: "Intentionally left blank";
text-align: center;
margin-top: 2em;
}
@page blank {
@top-left {content: none};
@top-right {content: none};
@bottom-left {content: none};
@bottom-right {content: none};
@top-center {content: none};
@bottom-center {content: none};
}
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
-
- Posts: 53
- Joined: Wed Mar 27, 2019 10:12 am
Re: Empty Page Layout
Post by Manohar_1024 »
Hello,
I am getting the empty page after chapters and subchapters
But page number restting for chapter and subchapter is getting effected. i am using the below CSS rule and an output class "blankPageAfter" in chapter and subchapter topic refs.
Previously i am able to achieve page numbering reset for chapter and subchapters but now it is not happening.
I am using deep chapter- scope parameter also and using CSS for pdf output transformation in DITA.
Thankyou,
Manohar.
I am getting the empty page after chapters and subchapters
But page number restting for chapter and subchapter is getting effected. i am using the below CSS rule and an output class "blankPageAfter" in chapter and subchapter topic refs.
Code: Select all
*[class ~= "blankPageAfter"]:after {
page: blankpage;
content: "Intentionally left blank page";
text-align: center;
display:block;
padding-top: 60%;
padding-bottom: 50%;
;
}
@page blankpage:left{
margin-right:2.5cm !important;
margin-left:1.5cm !important;
@top-left {content: none};
@top-right {content: none};
@bottom-left {content: none};
@bottom-right {content: none};
@top-center {content: none};
@bottom-center {content: none};
}
Code: Select all
*[class ~= "map/map"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/topic"] {
counter-increment:section1!important;
counter-reset:section2 tablecount figcount !important;
counter-reset:page 1 !important;
}
*[class ~= "map/map"] *[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/topic"] > *[class ~= "topic/topic"] {
counter-increment:figcount!important;
counter-increment:page!important;
counter-increment:section2!important;
counter-reset:section3!important;
}
Thankyou,
Manohar.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Empty Page Layout
Then maybe adding also
in your CSS could force the page reset.
Regards,
Costin
Code: Select all
*[outputclass~="blankPageAfter"]:after{
counter-reset: page;
}
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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 JSON Editor
- ↳ 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