Ok, this does the job, 

a2x --dblatex-opts="-P latex.class.options=twoside" -f pdf book.txt

but the margins is still a working in progress...

inspired from: 
https://github.com/petterreinholdtsen/free-culture-lessig/blob/master/data/lulu.xsl

Thanks!

Em segunda-feira, 11 de fevereiro de 2013 09h57min27s UTC-3, Eduardo 
Santana escreveu:
>
> Yes, using --fop does do the job...
>
> a2x -f pdf -v \
> --xsltproc-opts="\
>   --stringparam double.sided 1 \
>   --stringparam page.margin.inner 2in \
>   --stringparam page.margin.outer 1in" \
>   --fop \
> book.txt
>
> Now I'm thinking if I should use it instead...
>
> Thanks lex!
>
> Em domingo, 10 de fevereiro de 2013 21h49min01s UTC-3, Lex Trotman 
> escreveu:
>>
>> On 11 February 2013 11:26, Eduardo Santana <[email protected]> wrote: 
>> > Here's what I know: 
>> > 
>> > http://www.sagehill.net/docbookxsl/PrintOutput.html#LeftRightMargins 
>> > 
>> > xsltproc  --output myfile.fo  \ 
>> >   --stringparam  page.height 9in \ 
>> >   --stringparam  page.width 7in \ 
>> >   --stringparam  page.margin.inner 2in \ 
>> >   --stringparam  page.margin.outer 1in \ 
>> >   fo/docbook.xsl  myfile.xml 
>> > 
>> > 
>> > http://www.sagehill.net/docbookxsl/PrintOutput.html#d0e9056 
>> > <xsl:param name="page.height.portrait">9in</xsl:param> 
>> > <xsl:param name="page.width.portrait">7in</xsl:param> 
>> > <xsl:param name="page.margin.inner">0.75in</xsl:param> 
>> > <xsl:param name="page.margin.outer">0.50in</xsl:param> 
>> > <xsl:param name= "page.margin.top">0.17in</xsl:param> 
>> > <xsl:param name="region.before.extent">0.17in</xsl:param> 
>> > <xsl:param name="body.margin.top">0.33in</xsl:param> 
>> > <xsl:param name="region.after.extent">0.35in</xsl:param> 
>> > <xsl:param name="page.margin.bottom">0.50in</xsl:param> 
>> > <xsl:param name="body.margin.bottom">0.65in</xsl:param> 
>> > <xsl:param name="double.sided">1</xsl:param> 
>> > 
>> > Here's my steps: 
>> > I download http://www.methods.co.nz/asciidoc/book.txt to test it: 
>> > 
>> > wget http://www.methods.co.nz/asciidoc/book.txt 
>> > 
>> > a2x -f pdf -v \ 
>> > --xsltproc-opts="\ 
>> >   --stringparam double.sided 1 \ 
>> >   --stringparam page.margin.inner 2in \ 
>> >   --stringparam page.margin.outer 1in" \ 
>> > book.txt 
>> > 
>> > 
>> > The book.pdf generated doesn't have a double sided pages. So, what am I 
>> > doing wrong? 
>> > 
>>
>> Hi, 
>>
>> What you did wrong was using dblatex. 
>>
>> The sagehill books apply to FOP only, see FAQ #3 for dblatex 
>> references.  You will see dblatex does not have these parameters. 
>>
>> BTW it does work for FOP. 
>>
>> If you want to do it in dblatex I guess you have to use custom latex 
>> styles, but thats beyond the scope of this list. 
>>
>> Cheers 
>> lex 
>>
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "asciidoc" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to [email protected]. 
>> > To post to this group, send email to [email protected]. 
>> > Visit this group at http://groups.google.com/group/asciidoc?hl=en. 
>> > For more options, visit https://groups.google.com/groups/opt_out. 
>> > 
>> > 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to