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

Build Manuscript: docx applies extra line height to headings #2099

Closed
HeyMyian opened this issue Nov 13, 2024 · 2 comments · Fixed by #2102
Closed

Build Manuscript: docx applies extra line height to headings #2099

HeyMyian opened this issue Nov 13, 2024 · 2 comments · Fixed by #2102
Labels
bug Issue: Something isn't working build tool Component: Exports or the build tool

Comments

@HeyMyian
Copy link
Contributor

2.6 Beta 1

The docx has additional line height in Chapter headings (and perhaps other headings too). There is a base line height of 1.75 that gets multiplied with the line height as set in the Manuscript Build Settings. I've verified this with a line height of 1.5 in the MBS results in a chapter title line height of 2.63 (rounded).

The odt is fine in LibreOffice and MS Word, it sets the line height of headings according to the Manuscript Build Settings.

Is this even fixable or is it just how MS Word really thinks chapter titles should be formatted? I'm on ancient version Office 2007 if that matters.

Line height of 1 results in a line height of 1.75:
2024-11-13___08_20_25

Compared to line height of 1 in LibreOffice, odt and docx. Also odt in MS Word. This is the correct formatting.
2024-11-13___08_21_12

@vkbo
Copy link
Owner

vkbo commented Nov 13, 2024

I only have access to the online version of Word, and it did look fine there when I checked, but I'll look into it.

The DocX formater should define complete styles for headings, but maybe line height needs to be set explicitly.

@vkbo vkbo added this to the Release 2.6 RC 1 milestone Nov 13, 2024
@vkbo vkbo added bug Issue: Something isn't working build tool Component: Exports or the build tool labels Nov 13, 2024
@vkbo
Copy link
Owner

vkbo commented Nov 13, 2024

I created the DocX format based on the DocX file that Libre Office generated from the ODT manuscript. Interestingly, Libre Office scaled the line height to the font size of the headings, something Office 365 does not. Hence the larger margins in Office. There is a flag called w:lineRule = auto that when added, makes it possible to set line height based on normal font size. This produces the same result in both apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue: Something isn't working build tool Component: Exports or the build tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants