Hi Lionel On 20/05/11 22:05, Lionel Orry wrote:
Hello Stuart,while playing with the new toc2 css, I thought it could be interesting to get a button to hide the TOC (for both toc and toc2) that would change into a button to show the TOC again. I've implemented this in this patch. * When the TOC is displayed, a button is visible on the top side of the toc: "Hide the Table of Contents" * When clicked, the TOC is hidden, and a button appears on the top-right side of the screen (thus always visible while reading): "Show the Table of Contents" * When clicked the latter button, the TOC is displayed again, and in the case of not fixed-position tocs (like toc but not toc2), the content is scrolled to the TOC content. When using toc2, the toc is always on screen anyway when shown. Tell me if you could consider integrating it, or suggest some modifications to make it better/even less intrusive/etc.
My preference is to keep the distribution as minimalist as possible, UI additions like this would be candidates for an addon theme or maybe a even a blog post.
Cheers, Stuart
I'd be glad to receive feedback from anyone, of course. I attach sample documents rendered with this patch, for easy previewing by anyone. Thanks, Lionel -- 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.
-- 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.
