Search the web
Sign In
New User? Sign Up
dita-users · DITA users group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Appendix Orientation   Message List  
Reply | Forward Message #15072 of 16172 |
Re: Appendix Orientation

Hi Amber,

You're on the right track - if you want to specify your page-masters manually you need to comment out the import of xm_layout_master_overrides.xsl.

However, as you've seen, this affects the header and footer processing. From the comments in xm_layout_master_overrides.xsl:

This override assumes:
 1. the first page is an odd-numbered page
 2. the last page is an even-numbered page
 3. region-before and region-after extents will take their @extent values from the page margin variables

It's #3. that's probably causing the problems . Check that the region-before and region-after extents for *all* the simple-page-masters match the values you have specified for $xm.page.margin.top and $xm.page.margin.bottom. The "fancy-schmancy" (LoL) header/footer processing depends on this relationship.

Your results may vary, depending  on what else your customization does.

HTH,

Chris

Chris Johnson
Solutions Consultant
JustSystems Canada

--- In dita-users@yahoogroups.com, "ambermattson86" <ambermattson86@...> wrote:
>
> Well...after I posted that I realized that I still have some issues. The appendix is definitely landscape now, but the way I fixed it created some header/footer issues.
>
> The first step is to separate your appendix from the rest of the body-sequence by creating a new page-sequence for the appendix (as Jan Nyland mentioned previously in this topic)
>
> For those using xmetal, unfortuntely the rest of Jan's advice won't work for you as the "fo/cfg/fo/layout-masters.xsl" file is not used (somebody correct me if I am wrong...)
>
> So for XMetaL users, the solution seems to be to go to Customization\fo\xsl\custom.xsl and comment out the import of xm_layout_master_overrides.xsl I am sure there are other ways to this but I am the lone customization person here (as a summer intern, so it isn't like I have had any formal training whatsoever) and this is the solution that seemed doable to me.
>
> This will allow you to go into Customization\fo\layout-masters.xml and change the page-width and page-height in any of the simple-page-masters that you want to be landscape.
>
> However, XMetal must do some fancy-schmancy processing in some of their stylesheets with respect to headers and footers, because mine no longer look as they did before. They're still there and all but they are really close to the top of the page. I'm currently trying to figure out what to do about that. If anyone has ideas/suggestions about that I would love to hear them. It is amazing sometimes how fixing one problem opens a whole new can of worms. :-P
>
> Amber
>
>
>
>
>
>
> --- In dita-users@yahoogroups.com, Mark Peters markpeters.work@ wrote:
> >
> > Hi Amber,
> >
> > What was the fix? I'm not trying to change the orientation of my PDF
> > output, but others might be interested in your findings.
> >
> > Thanks,
> > Mark
> >
> > On Tue, Jul 14, 2009 at 10:05 AM,
> > ambermattson86ambermattson86@ wrote:
> > >
> > >
> > >
> > >
> > > Disregard that last message, I figured it out :-)
> > >
> > >
> >
>


Tue Jul 14, 2009 7:12 pm

chris_xmetal
Offline Offline
Send Email Send Email

Forward
Message #15072 of 16172 |
Expand Messages Author Sort by Date

Does anyone know which stylesheet(s) are involved with the appendix tag? We use it and as of right now it is treated like a regular chapter and I am not sure...
ambermattson86
Offline Send Email
Jul 6, 2009
3:09 pm

Most bookmap appendix processing is in xsl\fo\commons.xsl, in a template called processTopicAppendix. Paul Masalsky - paulmasalsky@... ... From:...
Paul Masalsky
paulmasalsky
Offline Send Email
Jul 6, 2009
5:07 pm

Hi Amber! I suppose you are using the pdf2 transtype? ... Default behavior in pdf2 is that the appendix uses the page-sequence named "body-sequence". You will...
jannylund
Offline Send Email
Jul 7, 2009
6:06 pm

... Thanks! I will have to give that a try....
ambermattson86
Offline Send Email
Jul 8, 2009
5:18 pm

... Hello, I have successfully separated my appendix from the body and all is processing correctly as far as that goes. However, I still cannot seem to get...
ambermattson86
Offline Send Email
Jul 13, 2009
3:19 pm

Disregard that last message, I figured it out :-)...
ambermattson86
Offline Send Email
Jul 14, 2009
2:06 pm

Hi Amber, What was the fix? I'm not trying to change the orientation of my PDF output, but others might be interested in your findings. Thanks, Mark On Tue,...
Mark Peters
not_a_minifig
Offline Send Email
Jul 14, 2009
3:46 pm

Well...after I posted that I realized that I still have some issues. The appendix is definitely landscape now, but the way I fixed it created some...
ambermattson86
Offline Send Email
Jul 14, 2009
5:38 pm

Hi Amber, You're on the right track - if you want to specify your page-masters manually you need to comment out the import of xm_layout_master_overrides.xsl. ...
Chris Johnson
chris_xmetal
Offline Send Email
Jul 14, 2009
7:12 pm

Chris, That is the first thing that I tried and it didn't work. Logically it makes sense. The weird thing is even though I have all of the region-before and...
ambermattson86
Offline Send Email
Jul 14, 2009
7:57 pm

Hello! ... You should try checking the FO file generated by your conversion. There you can clearly read what extents are set to the different page-masters and...
jannylund
Offline Send Email
Jul 15, 2009
1:06 pm

Where is this FO file once it is generated? I found the build.xml file and the delete was already commented out, so that is taken care of. I'm just not sure...
ambermattson86
Offline Send Email
Jul 15, 2009
1:57 pm

... In default DITA-OT it's in the same folder as the output pdf (which by default is {folder of input file}/out/). As I don't use XMetaL I can't tell where...
jannylund
Offline Send Email
Jul 15, 2009
2:36 pm

Ok XMetaL users, the FO file will most likely generate in the same place as your output. (However, I have one bookmap that refuses to generate an FO file that...
ambermattson86
Offline Send Email
Jul 15, 2009
5:35 pm

... When you have the FO file available, I suggest you try locating the problematic places and add the correct settings to get the look you want. Again I can't...
jannylund
Offline Send Email
Jul 15, 2009
7:37 pm

Ok everyone, I got the headers and footers working correctly, too. The following example will give you a landscape page with 1 inch margins on top and .5 inch...
ambermattson86
Offline Send Email
Jul 16, 2009
1:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help