Compile with Word Styles.

Hi there,

I am writing my PhD Discertation. So it has lots of headings and subheadings.

When I compile my Word document, I world like my word styles, (e.g Heading 1, Heading 2, Heading 3 etc) to look the same as I have in scrivener. furthermore, I want my various sections listed in my Navigation Pane in Word.

I am using Scrivener 3.1.2 - the Latest version - on MacOS 10.14

I have tried to follow https://forum.literatureandlatte.com/t/compiling-to-word-with-styles/39428/1, with now luck.

Can someone tell me how to do it, or point me to tutorial

Thanks,

Manny

If your compiled output uses a style which matches a style in your Word normal template, then that paragraph will take on the look of the Word style. That’s a feature not a bug, of course.

So, what you need to do is make it so that your compiled output does not use just the same style names for those headings.

You could rename your Scriv styles and get the job done that way.

If you didn’t want to do that you coudl instead adjust your compile setting to use override names for those styles. This is precisely to avoid conflicts (which is precisely your issue). In the compile format settings dialog, look under Styles. You can set there an override name for any style listed there. If your heading styles are not listed there, you can add them just for that purpose.

HOWEVER, you up the ante by asking that your heading paragraphs still be recognized as structural in Word,* the only way the latter will work is by using those Word style names (and not doing either of the above). Thus, the only solution for you (as far as I can see) is to simply redefine the styling of your Heading styles in Word. This is easily done.**

gr

  • Internally, Word recognizes the distinction between the Heading paragraphs as being of a certain style and the idea that such paragraphs are structural (have an outline level), but in the user interface these go hand in hand. To get the outline level, you must assign one of the Heading styles to a paragraph. Fortunately, the styling of such paragraphs is for you to define.

** In fact, Word’s styling for these has always been terrible anyway, so this is something you should do in any case.

Thank-you.

I was going round in circles, but this makes sense to me now. another way is to up a word template, and then apply the template to the compiled document. That way, I can insure consistency.

This is one of the advantages of using Pandoc during the compile to generate DOCX documents, it produces semantically correctly styled documents (heading outlines, proper figures+captions, maths, bibliographies and most things in their place) without too much fussing in the compiler (just lots of fussing to get everything installed :smiling_imp: )…

Anyway, remember that with Section Layouts you can apply named styles to the title name, so you can have your Heading 1, Heading 2 etc. get converted to Word styles directly. That should generate a fully outlined document with minimal fuss at least?

EDIT, oh I see I was the main respondent in the other thread, why can’t you get that method to work?

Regarding the styling, we are hoping Keith considers allowing a template DOCX during compile (Pandoc does it to allow your own Styles and customisations in any output).