Hi Frederico
fsmunoz wrote:
Hello,
I've been using asciidoc for several projects of mine and up until now
I didn't actually need to do any kind of custom configuration:
everything works as expected and I'm happy with the defaults, which is
one of the things I really like about it.
However I recently had the idea of trying to use asciidoc in order to
produce a document that closely resembles an existing template. This
changes things significantly since I need to tweak things quite a bit
more, since I'm aiming at emulating an existing document (regadless of
the merits of deficiencies of it).
Initially I was a bit lost since for a neophyte there multiple ways to
customise the process: using asciidoc configuration files, using the
specific backend configuration methods, and within the last either
using xsl or other methods (e.g. editing the sty in dblatex). At this
stage I have things running more or less smoothly, using a mix of
asciidoc customisations in order to directly change the produced
docbook xml and dblatex customisations to be able to replicate the
exact look of the document I'm emulating.
Having said all this, I have some doubts:
* Default table settings: I've read in the chapter that one can change
the default table settings by changing the [tabledef-*] and [tabletags-
*]. I've looked at it and I was left unsure if this applies to what I
want: I'm using table options like grid=row and frame=topbot, and I
would like for this to be the default (the only reason being providing
a source document less cluttered with meta options). Is this possible?
This FAQ may help:
http://www.methods.co.nz/asciidoc/faq.html#_how_can_i_set_default_list_and_tables_styles
* Custom section blocks: the document I'm trying to replicate has a
strict document history section, filled with different tables (not
only revision, but also distribution, approval list, etc). I've got
this working by using a method that I found in this group, namely the
overloading of "legalblock": I disable the "internal" revision history
and use "regular" tables to provide the information, and by using the
legalblock this appear before the TOC as expected. This method uses
"specialsections", based on the title of the section. I've read in the
documentation that this use is considered deprecated due to several
issues (even if the way I'm using them avoid several of them, since
I'm using something like "== %% <title" to mark those sections, and
using the %% has the identifier). Is it possible to add new sections,
with new delimiters? I've tried to add to [titles] but it doesn't seem
to work. BTW, I think that the legalblock approach can also be done
using something like [preface], and then altering the dblatex settings
to put that section before the TOC, I'm currently investigating this.
You can write your own custom docinfo file, see
http://www.methods.co.nz/asciidoc/userguide.html#X87 and take a look at the
distributed example docinfo file
http://code.google.com/p/asciidoc/source/browse/doc/article-docinfo.xml
Best regards,
Frederico
Cheers, Stuart
--
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.