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

outline-counter: style numbering #8

Open
uliska opened this issue Apr 23, 2019 · 0 comments
Open

outline-counter: style numbering #8

uliska opened this issue Apr 23, 2019 · 0 comments
Assignees

Comments

@uliska
Copy link
Contributor

uliska commented Apr 23, 2019

In the text.outline-counter module (#7) the numbering style can be configured for all levels with

\createOutline foo number.number.alpha-lower

However, while the text of an outline item can be styled in any way using regular markup commands the outline number is fixed to plain roman text. There should be a way to assign a (series of) markup command(s) to be applied to the result of \inc with, say:

\createOutline \with {
  numbering-style = #'(sans bold italic)
} foo number.number.alpha-lower

Ideally this could even be made to work on individual levels so that

\createOutline \with {
  numbering-style = 
  #'(
     (sans bold italic)
     (italic))
} foo number.number.alpha-lower

would apply \sans \bold \italic to the first-level outline number and \italic for the remaining ones.

The optional argument should be implemented using the \with-options macro from oll-core. Further configuration options could be added in the future.

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

No branches or pull requests

2 participants