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

Wrong heading sizes for sections included via toctrees #53

Open
teake opened this issue Jul 15, 2022 · 0 comments
Open

Wrong heading sizes for sections included via toctrees #53

teake opened this issue Jul 15, 2022 · 0 comments

Comments

@teake
Copy link

teake commented Jul 15, 2022

The heading size for sections included via toctrees is rendered incorrectly in Word. Consider this example:

  • index.rst:
    *************
    Chapter title
    *************
    
    .. toctree::
    
       section
  • section.rst:
    Section title
    =============
    
    .. toctree::
    
       subsection
  • subsection.rst:
    Subsection title
    ----------------
    
    Some text goes here.

In the resulting Word file, all headings are of the same size (namely Heading 1). This is incorrect -- they should have descending header sizes.

When compiling the above example to singlehtml, the resulting HTML file does have the correct descending header sizes (namely <h1>, <h2>, and <h3>).

In contrast, when putting all the content in a single .rst file:

*************
Chapter title
*************

Section title
=============

Subsection title
----------------

Some text goes here.

the resulting Word file does have the correct header sizes.

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

No branches or pull requests

1 participant