Hi.

I am trying to print on A5 paper size but getting A4.

My command line is:

a2x.py -f pdf --dblatex-opts="-P latex.class.options=a5paper" myasciidoc.txt

This sounds like this bug from 2009 from a2x not putting the dblatex
options in the right order:
http://groups.google.com/group/asciidoc/browse_thread/thread/5215c99dcc865e7d

Could I get some help making A5 PDFs using a2x.py, please?

I am using a2x.py 8.6.6 and dblatex 0.3.

My verbose a2x.py output:


# a2x -v -f pdf --dblatex-opts="-P latex.class.options=a5paper" myasciidoc.txt
a2x: args: ['-v', '-f', 'pdf', '--dblatex-opts=-P
latex.class.options=a5paper', 'myasciidoc.txt']
a2x: resource files: []
a2x: resource directories:
['/home/atsaloli/bin/asciidoc-8.6.6/images',
'/home/atsaloli/bin/asciidoc-8.6.6/stylesheets']
a2x: executing: /home/atsaloli/bin/asciidoc-8.6.6/asciidoc.py
--backend docbook -a a2x-format=pdf  --verbose  --out-file
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.txt
asciidoc: reading: /home/atsaloli/bin/asciidoc-8.6.6/asciidoc.conf
asciidoc: reading: /home/atsaloli/bin/asciidoc-8.6.6/asciidoc.conf
asciidoc: reading:
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.txt
asciidoc: reading: /home/atsaloli/bin/asciidoc-8.6.6/docbook45.conf
asciidoc: reading:
/home/atsaloli/bin/asciidoc-8.6.6/filters/graphviz/graphviz-filter.conf
asciidoc: reading:
/home/atsaloli/bin/asciidoc-8.6.6/filters/code/code-filter.conf
asciidoc: reading:
/home/atsaloli/bin/asciidoc-8.6.6/filters/source/source-highlight-filter.conf
asciidoc: reading:
/home/atsaloli/bin/asciidoc-8.6.6/filters/latex/latex-filter.conf
asciidoc: reading:
/home/atsaloli/bin/asciidoc-8.6.6/filters/music/music-filter.conf
asciidoc: reading: /home/atsaloli/bin/asciidoc-8.6.6/lang-en.conf
asciidoc: writing:
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
asciidoc: WARNING: myasciidoc.txt: line 1813: list item index: expected 1 got 2
asciidoc: WARNING: myasciidoc.txt: line 1816: list item index: expected 2 got 3
asciidoc: WARNING: myasciidoc.txt: line 1819: list item index: expected 3 got 4
asciidoc: WARNING: myasciidoc.txt: line 1823: list item index: expected 4 got 5
a2x: executing: xmllint --noout --valid
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
a2x: executing: dblatex -t pdf -p
/home/atsaloli/bin/asciidoc-8.6.6/dblatex/asciidoc-dblatex.xsl -s
/home/atsaloli/bin/asciidoc-8.6.6/dblatex/asciidoc-dblatex.sty -P
latex.class.options=a5paper -V
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
Build the book set list...
xsltproc -o /tmp/tmpCWVIc5/doclist.txt --xinclude doclist.xsl
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
Build the listings...
xsltproc -o /tmp/tmpCWVIc5/listings.xml --xinclude --param current.dir
'/home/atsaloli/asciidoc-input/Personal-Organizer'
/home/atsaloli/opt/dblatex-0.3/share/dblatex/xsl/common/mklistings.xsl
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
xsltproc -o myasciidoc.rtex --xinclude --catalogs --param current.dir
'/home/atsaloli/asciidoc-input/Personal-Organizer' --param
listings.xml '/tmp/tmpCWVIc5/listings.xml' /tmp/tmpCWVIc5/custom.xsl
/home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
XSLT stylesheets DocBook - LaTeX 2e (0.3)
===================================================
Found png for 'dblatex'
Build myasciidoc.pdf
built-in module pdftex registered
no support found for ifxetex
no support found for fontspec
no support found for xltxtra
no support found for fontenc
no support found for inputenc
no support found for fancybox
built-in module makeidx registered
no support found for asciidoc-dblatex
building additional files...
checking if compiling is necessary...
the output file doesn't exist
pdflatex -interaction=batchmode myasciidoc.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
running post-compilation scripts...
[index] the index file /tmp/tmpCWVIc5/myasciidoc.idx is empty
myasciidoc.aux MD5 checksum changed
myasciidoc.toc MD5 checksum changed
the /tmp/tmpCWVIc5/myasciidoc.aux file has changed
pdflatex -interaction=batchmode myasciidoc.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
running post-compilation scripts...
[index] the index file /tmp/tmpCWVIc5/myasciidoc.idx is empty
no new compilation is needed
running last-compilation scripts...
'myasciidoc.pdf' successfully built
a2x: deleting /home/atsaloli/asciidoc-input/Personal-Organizer/myasciidoc.xml
#


#pdfinfo myasciidoc.pdf |grep 'Page size'
Page size:      595.276 x 841.89 pts (A4)
#

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

Reply via email to