Removing margins on title page
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
Removing margins on title page
Hello,
we are moving to dita 3.4 and are redoing our plugin for DDF customisation.
We had a first page with no margins, and a background image
And all other pages are with margins that are not equal all around.
the code we used in the basic-settings.xsl to achieve this was:
However this no longer works. I can get either the front page margins to 0 , or the margins for the rest of the document, but not both at the same time.....
I tried using this
but with no success,
Has anyone have an idea?
Kind regards
we are moving to dita 3.4 and are redoing our plugin for DDF customisation.
We had a first page with no margins, and a background image
And all other pages are with margins that are not equal all around.
the code we used in the basic-settings.xsl to achieve this was:
Code: Select all
....
<xsl:variable name="page-width">8.5in</xsl:variable>
<xsl:variable name="page-height">11in</xsl:variable>
<!-- This is the default, but you can set the margins individually below. -->
<xsl:variable name="page-margins">.5in</xsl:variable>
<xsl:variable name="page-margins-front">0in</xsl:variable>
<!-- Change these if your page has different margins on different sides. -->
<xsl:variable name="page-margin-inside">.75in</xsl:variable>
<xsl:variable name="page-margin-outside">.75in</xsl:variable>
<xsl:variable name="page-margin-top" >1.27cm</xsl:variable>
<xsl:variable name="page-margin-bottom">1.52cm</xsl:variable>
<xsl:variable name="body-margin">1in</xsl:variable>
<!--Instructions to remove margins on title page-->
<xsl:variable name="page-margin-inside-front">0in</xsl:variable>
<xsl:variable name="page-margin-outside-front">0in</xsl:variable>
<xsl:variable name="page-margin-top-front">0in</xsl:variable>
<xsl:variable name="page-margin-bottom-front"> 0in</xsl:variable>
<!--The side column width is the amount the body text is indented relative to the margin. -->
<xsl:variable name="side-col-width">5px</xsl:variable>
<xsl:variable name="mirror-page-margins" select="false()"/>
<xsl:variable name="default-font-size">11pt</xsl:variable>
<xsl:variable name="default-line-height">120%</xsl:variable>
</xsl:stylesheet>
I tried using this
Code: Select all
......
<xsl:variable name="page-width">8.5in</xsl:variable>
<xsl:variable name="page-height">11in</xsl:variable>
<xsl:variable name="page-margin-inside" select="'0.75in'"></xsl:variable>
<xsl:variable name="page-margin-outside" select="'0.75in'"></xsl:variable>
<xsl:variable name="page-margin-top" select="'1.27cm'"></xsl:variable>
<xsl:variable name="page-margin-bottom" select="'1.52cm'"></xsl:variable>
<xsl:variable name="body-margin">3in</xsl:variable>
<xsl:variable name="mirror-page-margins" select="true()" />
<!--Instructions for over page margins-->
<xsl:variable name="page-margin-inside-front" select="'0in'"></xsl:variable>
<xsl:variable name="page-margin-outside-front" select="'0in'"></xsl:variable>
<xsl:variable name="page-margin-top-front" select="'0in'"></xsl:variable>
<xsl:variable name="page-margin-bottom-front" select="'0in'"></xsl:variable>
<xsl:variable name="default-font-size">11pt</xsl:variable>
<xsl:variable name="default-line-height">120%</xsl:variable>
<xsl:variable name="side-col-width">5px</xsl:variable>
<xsl:variable name="generate-back-cover" select="true()"/>
</xsl:stylesheet>
Has anyone have an idea?
Kind regards
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Removing margins on title page
Hi,
How exactly do you customize the PDF publishing? PDF customization folder, PDF customization plugin or just make direct changes to the XSLTs?
Maybe you can look at how the "basic-settings.xsl" stylesheet looks like in the DITA OT 3.4:
DITA-OT3.4/plugins/org.dita.pdf2/cfg/fo/attrs/basic-settings.xsl
It does not seem to have any "page-margin-inside-front" variable, meaning that if you do add one it probably is not used.
Regards,
Radu
How exactly do you customize the PDF publishing? PDF customization folder, PDF customization plugin or just make direct changes to the XSLTs?
Maybe you can look at how the "basic-settings.xsl" stylesheet looks like in the DITA OT 3.4:
DITA-OT3.4/plugins/org.dita.pdf2/cfg/fo/attrs/basic-settings.xsl
It does not seem to have any "page-margin-inside-front" variable, meaning that if you do add one it probably is not used.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 86
- Joined: Wed Feb 09, 2011 10:43 pm
Re: Removing margins on title page
The Basic-settings file in 1.8.4 did not have the variables either.
The "basic-settings.xsl" stylesheet in DITA OT 1.8.4 did not have any "page-margin-inside-front" variable either....but it was working.
regards
The "basic-settings.xsl" stylesheet in DITA OT 1.8.4 did not have any "page-margin-inside-front" variable either....but it was working.
regards
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Removing margins on title page
Hi Carole,
I don't know, PDF customization problems are hard to figure out, if at some point you send us an email containing the PDF customization and some steps to reproduce the problem, I could try to look more into this.
My advice to you is that maybe you should consider switching to CSS as a means to style the PDF output, CSS is much easier to work with and understand.
Regards,
Radu
I don't know, PDF customization problems are hard to figure out, if at some point you send us an email containing the PDF customization and some steps to reproduce the problem, I could try to look more into this.
My advice to you is that maybe you should consider switching to CSS as a means to style the PDF output, CSS is much easier to work with and understand.
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)
- ↳ 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