View Single Post
Old 07-03-2010, 09:34 AM   #8
JBlyth
Connoisseur
JBlyth doesn't litterJBlyth doesn't litter
 
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
Quote:
Originally Posted by JBlyth View Post
I had a bit more of a look at the file structure of an ADE file, and found that there is another STYLE type file called page-template.xpgt.

This has some margin settings in it as well, and I found by altering them to 0em, that I could get left and right margins of .6cm, which seems to be the smallest possible.
After some more experimentation..... NOTE:- I now have doubts about the method suggested below. I now think it is best to REMOVE the page-template.xpgt and full justify with CALIBRE. It may be wise to treat this all as experimental!

It seems that you can also DELETE the style file page-template.xpgt without causing any issues, but if you want to have full text justification, you can replace the file with this data. Just take care that each line is complete in your new file after copying it from here.

<?xml version='1.0' encoding='utf-8'?>
<ade:template xmlns:ade="http://ns.adobe.com/2006/ade" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns="http://www.w3.org/1999/xhtml">
<fo:layout-master-set>
<fo:simple-page-master master-name="full_page" margin-bottom="0pt" margin-top="0pt" margin-left="0pt" margin-right="0pt">
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="single_column" margin-bottom="0em" margin-top="0em" margin-left="0em" margin-right="0em" text-align: justify; text-justify: newspaper>
<fo:region-body/>
</fo:simple-page-master>
<fo:simple-page-master master-name="two_column" margin-bottom="0em" margin-top="0em" margin-left="0em" margin-right="0em" text-align: justify; text-justify: newspaper>
<fo:region-body column-count="2" column-gap="10pt"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="three_column" margin-bottom="0em" margin-top="0em" margin-left="0em" margin-right="0em" text-align: justify; text-justify: newspaper>
<fo:region-body column-count="3" column-gap="10pt"/>
</fo:simple-page-master>
<foage-sequence-master>
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="three_column" ade:min-page-width="80em"/>
<fo:conditional-page-master-reference master-reference="two_column" ade:min-page-width="50em"/>
<fo:conditional-page-master-reference master-reference="single_column"/>
</fo:repeatable-page-master-alternatives>
</foage-sequence-master>
</fo:layout-master-set>
</ade:template>

John in Sunny Carnarvon - Western Australia

Last edited by JBlyth; 07-03-2010 at 10:32 AM. Reason: I have some doubts about the best method!
JBlyth is offline   Reply With Quote