On Wed, Feb 04, 2015 at 11:04:44AM +1100, Lex Trotman wrote:
> >> These options
> >> are to workaround literal layout issues with dblatex and to make the
> >> dblatex PDF style more Asciidoc-ish.  This is where the {alltt}
> >> package is required that causes the error you see.  It seems to not be
> >> defined when you use xetex instead of tex.  Perhaps you can install it
> >> in some way.
> >
> > If these options are included by default by a2x for generating the pdf
> > output then the problem is not in not including those two files but
> > viceversa is the automatic inclusion of those files that create the
> > problem (so it could be a bug...).
> >
> > Since the problem arises when using a2x in one command not when
> > converting the generated docbook into pdf via dblatex...
> 
> >From your previous post this is the dblatex command that a2x is
> running (note the mailer may wrap it badly, sorry :)
> 
> dblatex -t pdf -p "/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s
> "/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -b xetex -P
> latex.output.revhistory=0 -P doc.publisher.show=0 -P doc.collab.show=0
> -s pdf-cover-dblatex.sty -V
> "/home/marco/Scrivania/Robotica/corso/programma/programma.xml"
> 
> Are you saying that running this command on the command line works,
> but it fails when a2x runs it?

No. I am saying that that workaround is just that: a workaround that
works so badly that seems that asciidoc works better without. So when I
was converting into docbook and then converting docbook into pdf I was
inadvertently avoiding that workaround. Avoiding that workaround made my
compilaton work. 

Try this: open a text file and fill it with:

= Title

*C+\+* or *C+\+* or *C+\+* or *C+\+*

then compile to pdf (that was related to another post I made here in this
list that seems correlated to this problem)...

I found the behaviour of asciidoc in this context really weird, but it is
consistent with the html output...

Try to do the same with asciidoctor and the result is worst...

To obtain a correct test you have to write:

asciidoc:    *C+\+* or *C+\+* or *C+\+* or *C++*
asciidoctor: i was unable to find a working combination...

> >
> > Or I did not understand you point
> 
> Those files are included to:
> 
> 1) Produce a style more like the default Asciidoc one, and thats why
> the PDF looks different if you use a2x.
> 
> 2) work around dblatex bugs with the literallayout
> 
> These files use the alltt Latex package that is normally available
> with Latex distributions so it works if you don't use xetex.
> 
> But seems xetex cannot find it (see the "Environment alltt undefined."
> message).  I know almost nothing about Latex, so I don't know how you
> make it available to xetex.

That seems unrelated to xetex since if I do not use it it outputs the
very same error message (plus "Missing character Ω" due to missing
UTF-8 support)

See:

./compila.sh
a2x: args: ['-v', '--dblatex-opts', '-P latex.output.revhistory=0 -P 
doc.publisher.show=0 -P doc.collab.show=0 -s pdf-cover-dblatex.sty', 
'programma.adoc']
a2x: resource files: []
a2x: resource directories: ['/etc/asciidoc/images', '/etc/asciidoc/stylesheets']
a2x: executing: "/usr/bin/asciidoc" --backend docbook -a "a2x-format=pdf"  
--verbose  --out-file 
"/home/marco/Scrivania/Robotica/corso/programma/programma.xml" 
"/home/marco/Scrivania/Robotica/corso/programma/programma.adoc"

asciidoc: reading: /etc/asciidoc/asciidoc.conf
asciidoc: reading: /home/marco/Scrivania/Robotica/corso/programma/programma.adoc
asciidoc: reading: /etc/asciidoc/docbook45.conf
asciidoc: reading: /etc/asciidoc/filters/source/source-highlight-filter.conf
asciidoc: reading: /etc/asciidoc/filters/latex/latex-filter.conf
asciidoc: reading: /etc/asciidoc/filters/graphviz/graphviz-filter.conf
asciidoc: reading: /etc/asciidoc/filters/code/code-filter.conf
asciidoc: reading: /etc/asciidoc/filters/music/music-filter.conf
asciidoc: reading: /etc/asciidoc/lang-it.conf
asciidoc: writing: /home/marco/Scrivania/Robotica/corso/programma/programma.xml

a2x: executing: "xmllint" --nonet --noout --valid
"/home/marco/Scrivania/Robotica/corso/programma/programma.xml"


a2x: executing: "dblatex" -t pdf -p
"/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s
"/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P latex.output.revhistory=0
-P doc.publisher.show=0 -P doc.collab.show=0 -s pdf-cover-dblatex.sty -V 
"/home/marco/Scrivania/Robotica/corso/programma/programma.xml" Missing
character Ω

Build the book set list... xsltproc -o /tmp/tmpyoYMwM/doclist.txt
--xinclude --xincludestyle doclist.xsl
/home/marco/Scrivania/Robotica/corso/programma/programma.xml

Build the listings...
xsltproc -o /tmp/tmpyoYMwM/listings.xml --xinclude --xincludestyle
--param current.dir '/home/marco/Scrivania/Robotica/corso/programma'
/usr/share/dblatex/xsl/common/mklistings.xsl
/home/marco/Scrivania/Robotica/corso/programma/programma.xml
xsltproc -o programma.rtex --xinclude --xincludestyle --param current.dir
'/home/marco/Scrivania/Robotica/corso/programma' --param listings.xml
'/tmp/tmpyoYMwM/listings.xml' /tmp/tmpyoYMwM/custom.xsl
/home/marco/Scrivania/Robotica/corso/programma/programma.xml

XSLT stylesheets DocBook - LaTeX 2e (0.3.4-3)
===================================================
Build programma.pdf
built-in module pdftex registered
no support found for ifthen
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 babel
no support found for cmap
no support found for pdf-cover-dblatex
building additional files...
checking if compiling is necessary...
the output file doesn't exist
pdflatex -interaction=batchmode programma.tex
pdflatex failed
programma.tex:93: Environment alltt undefined.
programma.tex:93: leading text: \begin{alltt}
programma.tex:96: \begin{quote} on input line 92 ended by \end{alltt}.
programma.tex:96: leading text: \end{alltt}
programma.aux:402: Missing \endcsname inserted.
programma.aux:402: leading text: ...7.3.2}{36}{Velocit�}{subsection.7.3.2}{}}
Unexpected error occured
Error: pdflatex compilation failed

a2x: ERROR: "dblatex" -t pdf -p
"/etc/asciidoc/dblatex/asciidoc-dblatex.xsl" -s
"/etc/asciidoc/dblatex/asciidoc-dblatex.sty" -P latex.output.revhistory=0
-P doc.publisher.show=0 -P doc.collab.show=0 -s pdf-cover-dblatex.sty -V 
"/home/marco/Scrivania/Robotica/corso/programma/programma.xml" returned
non-zero exit status 1

> 
> If you don't need 1) and 2) then just run dblatex as you are doing,
> using a2x is only a convenience if you want the Asciidoc defaults (as
> shown in the huge command above).

ok

> Cheers
> Lex

Many many thanks for your patience...

--


Marco Ciampa

I know a joke about UDP, but you might not get it.

+------------------------+
| GNU/Linux User  #78271 |
| FSFE fellow       #364 |
+------------------------+

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to