I'm enjoying the power of vim + asciidoc using the method described below, specifically I can "check out" portion of my docs in a huge doc into HTML including TOC, just like saving the portion of texts into a seperate asciidoc text file...

but today I just found that this magic "leveloffset" attribute , doesn't work if the title level increase to like 5.

here is an example of how I test it

//so this works fine:
<---vim mark a

=== topic1
Ping Sandy <[email protected]>
:toc-title: agenda


==== sub-topic1
==== sub-topic2

<---vim mark b

:'a,'bw !asciidoc -o chapter1.html -a leveloffset=-2 -


//this doesn't work

<---vim mark a

===== topic1
Ping Sandy <[email protected]>
:toc-title: agenda


====== sub-topic1
======= sub-topic11
====== sub-topic2
======= sub-topic21

<---vim mark b

:'a,'bw !asciidoc -a toclevels=7 -o chapter1.html -a leveloffset=-4 -


currently I workaround it by de-indent the title level and make it smaller, then it work...
please advice...thanks!


On 10/1/2012 3:13 PM, ping wrote:
please ignore...this was an old email in my draft \, after more test, I got this solved this morning via:

:'a,'bw !asciidoc -o chapter1.html -a leveloffset=-2 -


On 10/01/2012 03:12 PM, ping wrote:
while studying the manual I'm trying to understand attribute:
leveloffset, which looks quite useful.
I'm thinking of one of the scenarios: in a large document, I can
"checkout" a smaller part of it , say a chapter. especially in VIM,
where I can just call external asciidoc command to convert the selected
portion into HTML, on the fly:

:'a,'bw !asciidoc -o chapter1.html -

having said that, I would like to have this as my chapter in the "big"
book file:

<---vim mark a

=== topic1
Ping Sandy <[email protected]>
:toc-title: agenda
:leveloffset: -2

==== sub-topic1
==== sub-topic2

<---vim mark b


but looks this doesn't work as expected, I guess "leveloffset" only
support positive value?


thanks

regards
ping

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