david <[email protected]> writes:
> One more comment:
> I tried to add the outline option. I think that the need is a more
> general option than 'incremental', something like 'slidy':


Well, incremental is already there. 

{set:incremental} and
{set:incremental!}

turn it on and off. 

The problem is that it's hard to say which things you mean by
incremental, because it's inherited. So

* Here is some text
* Here is some +courier+ text

will generate three increments, unless I override the +courier+ syntax
to include non-incremental. 

At the moment, it works only for bulleted lists. 

[listtags-bulleted]
list=<div class="ulist{style? {style}}{compact-option? compact}{role? 
{role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul 
{incremental? class="incremental"}>|</ul></div>
item=<li>|</li>
text=|

I wanted to override listtags anyway -- by default item is
<li><p>item</p></li> which makes up too much space, which is at somewhat
of a premium. 

It's not trivial to add this to all tags because I don't want to copy
and paste all the existing templates. 

> It is working with slidy="incremental", but not with slidy="outline".
> I think it comes from the <div class="ulist"> element of the inner
> list: when I drop it from the html file, outline option is working.
> My ugly solution was to drop the <div> element:
>
> [listtags-bulleted]
> list={title?<div class="title">{title}</div>}<ul class="{slidy?
> {slidy}}">|</ul>
> item=<li>|</li>
> text=|
>
> It works, but I am sure there is a better solution that doesn't drop
> everything like that...


It should be possible, but it's a little hard. This is the relevant
HTML:

<ul class="outline" >
  <li>
    Is this outline
    <ul>
      <li>
        Is this not outline
      </li>
    </ul>
  </li>
</ul>

In my hands

<ul class="outline" >
  <li>
    Is this outline
    <ul class="outline">
      <li>
        Is this not outline
      </li>
    </ul>
  </li>
</ul>

fails. 

So the problem is that you need to add class="outline" to the outer UL
element, but not the inner. 

The only solution that leaps to mind is to switch if "outline" is set,
add class="outline", unset outline, the reset it in the closing tag. I
don't know enough about attributes in asciidoc, or it's general
semantics to know if this is possible, but it should be. 

The other problem is that the cutesy buttons you get come from the
style-sheet. If you cut-and-paste the HTML above into a slidy show,
generated with my code, it works, but you can't tell which elements have
hidden stuff. So, I'd need to add another CSS (I don't want to edit
slidy.css or slidy.js more than necessary, or it will be
unmaintainable). 

I'm upto my neck in work at the moment, so I'm in "implement the
features that I am desperate for" mode. Feel free to have a go!
Otherwise, I'll try later!

Phil

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