Vilsa wrote:
Hi Stuart,

thank you very much.

Unfortunately it does not work. Nothing happens.

I now solved the problem by writing the legalnotice directly into the
[header] declaration in docbook.conf.. I also tried to include the
article-docinfo file here, which works but always includes an
additional '?' into the article.xml. So of course it was not possible
to generate a pdf out of this.

I am not happy with my solution, because now I can not use the same
docbook.conf for all projects. But in the moment I don't know how to
make it better.

Do you have any idea what is going wrong?

Run asciidoc with the --verbose option you should see the docinfo file being included, something like:

asciidoc: article.txt: line 4: evaluating: {include:/home/srackham/projects/asciidoc/trunk/doc/article-docinfo.xml}

If it doesn't work post your commands along with the outputs.


Cheers, Stuart



Kind regards

Alex


On 22 Feb., 04:27, Stuart Rackham <[email protected]> wrote:
Hi Alex

Vilsa wrote:
Hello everyone,
I am generating a user manual with the help of asciidoc. I generate a
pdf by creating a docbook file and then converting this to pdf with
the help of a2x and docbook. The type of my document is 'article'.
Know I want to put some licence and copyright information (More than
20 lines) between the title page and the TOC, but I do not see how to
do this. I do not really know if this is a asciidoc or more a dblatex
problem.
Any idea?
Define the 'docinfo' attribute and include a *-docinfo.xml document. See section
'5.2.1. Additional document header information' in the User Guide:

http://www.methods.co.nz/asciidoc/userguide.html#X95

AsciiDoc ships with an example docinfo file, article-docinfo.xml:

http://code.google.com/p/asciidoc/source/browse/doc/article-docinfo.xml

You would need to add a <legalnotice> element for multi-paragraph license info 
e.g.

<legalnotice>
   <simpara>
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
   </simpara>
   <simpara>
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
   </simpara>
   <simpara>
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   </simpara>
</legalnotice>

Then generate your PDF with e.g.

a2x -a docinfo mydoc.txt

Cheers, Stuart



Cheers
Alex


--
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