Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Add the posibility to pass the edition as an attribute #19

Closed

Conversation

edusantana
Copy link
Contributor

How to test this change:

./a2x.py -f pdf -a edition="2" doc/book.txt

See the result at bottom of first page.

How to test this change:

./a2x.py -f pdf -a edition="2" doc/book.txt

See the result at botton of first page.
@elextr
Copy link
Contributor

elextr commented Apr 19, 2014

Why not just put <edition>{edition}</edition> in your docinfo file? Then whatever you define edition as will be used.

@edusantana
Copy link
Contributor Author

Simple answer: I didn't know it could be used like this 👍

I would just use attributes inside the asciidoc file. I have now idea it would be possible to use inside docinfo. But it works!

Thanks. Should I add this tip in documentation?

@elextr
Copy link
Contributor

elextr commented Apr 19, 2014

Probably better to mention it in this section http://asciidoc.org/userguide.html#X87

Just note it is included with include and all the processing will happen like attributes etc (maybe refer to include section, don't repeat it)

edusantana added a commit to edusantana/asciidoc that referenced this pull request Apr 19, 2014
I have created a `book-docinfo.xml` file because when people are going to try this with the book inside doc it will work.
@edusantana edusantana closed this Apr 22, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants