dagwieers/asciidoc-odf — Issue #15: Allow to use macros inside stylesheets
Author: dagwieers
Created: 2011-10-11 08:30:04+00:00
State: open
Labels: AsciiDoc, ODF stylesheet

The {numbered} macro specifies whether Chapters and Sections need to be numbered. In ODF the numbering is part of the style for each section-level, and thus if we want to influence the numbering we need to influence the stylesheet (contrary to how it works for XHTML).

Now, it is possible to eg. create 2 stylesheets, one for numbered and one for unnumbered, but that would lead to a lot of stylesheet duplication. And if another macro is required to influence the stylesheet (eg. for icons support), we need to duplicate it once again (having 4 different stylesheets for each combination). So that is not really an option.

Processing the stylesheet and allowing macros in stylesheets, might be required to make this manageable.