Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use macros inside stylesheets #15

Open
dagwieers opened this issue Oct 11, 2011 · 1 comment
Open

Allow to use macros inside stylesheets #15

dagwieers opened this issue Oct 11, 2011 · 1 comment
Labels

Comments

@dagwieers
Copy link
Owner

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.

@elextr
Copy link
Collaborator

elextr commented Oct 11, 2011

On 11 October 2011 19:30, Dag Wieërs
reply@reply.github.com
wrote:

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.

Well, yes there is a combinatorial increase, but this is just s
selection process, easy to understand and easy (if tedious) to
maintain.

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

This has the issue that the stylesheets are going to have the
combinatorial increase inside them, really messy and hard to maintain

I am also not sure that either is really worth the cost, just say
setting numbered doesn't work for odf. Remember also that any
presentational info like this in the asciidoc will be overridden by
the styles applied from the ODF template (and being able to apply gui
generated templates was the point of the odf backend :)

Cheers
Lex

Reply to this email directly or view it on GitHub:
#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants