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 more complete styling of the table of contents #167

Closed
mojavelinux opened this issue May 30, 2015 · 2 comments
Closed

Allow more complete styling of the table of contents #167

mojavelinux opened this issue May 30, 2015 · 2 comments

Comments

@mojavelinux
Copy link
Member

Allow the theme to style all the font properties in the table of contents (toc) that can be controlled by theme font:

  • toc_font_color (already possible)
  • toc_font_family
  • toc_font_size
  • toc_font_style

With the exception of the font color, these properties should apply to the dot leader as well.

NOTE: The width of the dot leader will need to be calculated in the context of the toc font.

The theme should also be able to set the font color per section level (just like headings):

  • toc_h_font_color

Also allow the theme to control the height of the lines in the table of contents:

  • toc_line_height

Finally, it should be possible to set the margin top of the toc contents.

@mojavelinux
Copy link
Member Author

Also allow the dot leader to be configured:

  • toc_dot_leader_content: ". "

The use of double quotes around the value permits unicode sequences to be used.

@mojavelinux
Copy link
Member Author

Also allow the indentation size of nested levels to be configured.

  • toc_indent

Fallback to the outline_list_indent.

mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue May 30, 2015
…tents

Adds support for the following styles on toc:

- toc_font_family
- toc_font_size
- toc_font_style
- toc_indent
- toc_dot_leader_content
- toc_line_height
- toc_h<n>_font_color
- toc_margin_top
- slightly tweak width calculation for dot leaders
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue May 31, 2015
…tents

Adds support for the following styles on toc:

- toc_font_family
- toc_font_size
- toc_font_style
- toc_indent
- toc_dot_leader_content
- toc_line_height
- toc_h<n>_font_color
- toc_margin_top
- slightly tweak width calculation for dot leaders
mojavelinux added a commit that referenced this issue May 31, 2015
resolves #167 allow theme to control style of table of contents
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