How about using MS Word Styles when exporting to MS Word?

jo
john.m.olsen
Posts: 4
Joined: Fri Mar 18, 2016 4:42 am
Platform: Windows

Wed Mar 31, 2021 6:03 am Post

It was a huge disappointment to find that the new Windows Scrivener 3 Styles don't actually export into MS Word as MS Word Styles.

1. Am I missing something here that can compile to actual Word Styles? (the actual MS Word feature called Styles, not just using different formatting on different blocks of text.)

2. If not, is this something that could be put on the radar?

With actual styles in the document, I won't be forced to do such a time-consuming transition to Word part way through my editing process. As it sits now, I have to compile to Word, find each chapter heading, quote block, or other specially formatted section, and set their Styles manually before I can gain the benefit of Styles after exporting. Looking the same and being a section header does me no good if the actual Style feature of MS Word isn't used.

br
brookter
Posts: 2301
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Wed Mar 31, 2021 8:23 am Post

It should do it already — I've just tested with a new project and the styles come through properly (with no changes to the def default settings needed.)

I tested it with Compile -> Modern (Microsoft Word), assigned an appropriate section layout and pressed compile. That turned this:

Screenshot 2021-03-31 at 09.07.34.png
Screenshot 2021-03-31 at 09.07.34.png (76.58 KiB) Viewed 442 times


to this:

Screenshot 2021-03-31 at 09.21.03.png
Screenshot 2021-03-31 at 09.21.03.png (406.03 KiB) Viewed 442 times



So the process works, for the default settings, at least. If it's not working for you, perhaps you could list the steps you went through to see what the difference is?

Notes: As this was just a test of principle, I didn't bother playing with the section layout to give a style to the Chapter line, so that comes through as 'Normal', but of course you'd change that in compilation in production.

I'm using Windows V3 Scrivener (not Mac) for this test — Word is the Mac version, but that shouldn't make a difference to the output .docx.

I'm also using the latest version of Word — Office 365 or whatever it's called this week. If you're using an older version of Word, then have a look at the Options panel Sharing > Conversion which says something about different converters for older versions of Word. Perhaps that may make a difference? If you are, have a look in the manual to see what's entailed — I don't use it so don't really know much about it...



HTH.

jo
john.m.olsen
Posts: 4
Joined: Fri Mar 18, 2016 4:42 am
Platform: Windows

Mon Apr 05, 2021 2:18 am Post

I compiled the tutorial. It uses the "Heading 1" tag extensively. The compiled docx file didn't show "Heading 1" in its default list of styles, so I had to dig. Finally, I spotted the style in the master list of all styles, and then added it to the Style Gallery.

It wasn't as seamless as I'd assumed it would be, but it looks like it works! Time for a lot more experimentation.

jo
john.m.olsen
Posts: 4
Joined: Fri Mar 18, 2016 4:42 am
Platform: Windows

Tue Apr 20, 2021 3:48 am Post

I think I've found where the problem is, and can describe it better now. I want to compile my chapter folders to generate the chapter labels in Word, and to automatically give them a "Heading 1" style in Word. In the mac version, the compile styles have a nifty little field called "Include styles information in exported file" and this check box does not exist in Windows Scriv 3.0. :(

So, is it possible to set it up in Windows Scrivener 3 so a compiled chapter folder automatically has a "Header 1" style in the resulting Word file?

I don't want to have to add a style to every chapter title after I export to windows, and I don't want to create an extra block of text where I type in each chapter name within the chapter just so I can style it.

User avatar
kewms
Posts: 7603
Joined: Fri Feb 02, 2007 5:22 pm
Platform: Mac

Tue Apr 20, 2021 5:01 am Post

As a workaround, note that you can use Word's Find by Formatting feature to apply styles to all text formatted "like this."

Katherine
Scrivener Support Team

User avatar
AmberV
Posts: 24887
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Tue Apr 20, 2021 8:19 am Post

john.m.olsen wrote: I want to compile my chapter folders to generate the chapter labels in Word, and to automatically give them a “Heading 1” style in Word. In the mac version, the compile styles have a nifty little field called “Include styles information in exported file” and this check box does not exist in Windows Scriv 3.0.


Hmm, that setting should be showing up for you, and in precisely the same place as in the Mac version: within the gear button in the top-right corner of the Styles compile format pane. That said, as with the Mac built-in formats and default settings, it should already be on by default anyway.

The only thing that isn’t “on” by default is the assignment of any styles to text in the Formatting pane of section layouts. The ingredients you need to make this work are the same on both platforms:

  1. The style needs to be in the Styles compile format pane. If you have a “Heading 1” in the project’s stylesheet, but it’s never used by any text in the output, then it will be ignored since it is never used. Most of our built-in Formats do have a full compliment of common styles, so you may not have to take this step unless you’re building something from scratch.
  2. With the desired style added to the list, in the Section Layouts pane, go to the layout that drives your folder heading text, click into the sample text in the Formatting pane, and use the style dropdown in the format bar to assign it.

Now it should work!
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
Mad Girl Disease
Posts: 452
Joined: Sat Jan 11, 2014 11:33 pm
Platform: Windows

Wed Apr 21, 2021 4:56 am Post

"Styles compile format pane"

Where is this found? I can find the Styles panel, and some style areas in the Compile dialog, and Style options on various menus, but nothing that looks like what you're describing or what is pictured in the pdf manual. There are two gear icons on the compile dialog, but none lead to anything like that.
Lead me not into user error.

User avatar
drmajorbob
Posts: 948
Joined: Sun Jul 01, 2012 1:38 am
Platform: Mac

Wed Apr 21, 2021 5:33 am Post

Mad Girl Disease wrote:"Styles compile format pane"

Where is this found? I can find the Styles panel, and some style areas in the Compile dialog, and Style options on various menus, but nothing that looks like what you're describing or what is pictured in the pdf manual. There are two gear icons on the compile dialog, but none lead to anything like that.

Click to Compile, open a format (maybe creating a copy of a built-in so you can edit it), and click on the Styles pane. There you can add styles that already exist in Editor if you want to modify them or add new styles. New styles or modifications to existing take effect in the compile format you're editing.

In the editor you could use a "body text" style that isn't justified, but in Compile you could modify it to justify text in exported products (for example).

Styles in Compile.jpg
Styles in Compile.jpg (374.33 KiB) Viewed 200 times
Teeth, without gums, fall loosely in the mouth.

(I'm not a Literature & Latte employee. Just another user.)

User avatar
Mad Girl Disease
Posts: 452
Joined: Sat Jan 11, 2014 11:33 pm
Platform: Windows

Wed Apr 21, 2021 6:34 am Post

Thank you for that helpful pointer, DRMAJORBOB. And thanks BROOKTER for the post with the screenshots above that shows input/output from/to Scriv/Word.

I've been encouraged and even relived to find that importing and exporting styles between S3 and Word seems to retain the main functionality of styles in Word, including Document Map navigation, which is (or can be) based on the native Heading styles. ..

Word recognizes the styles that come out of S3 via both Export and Compile, and works with those styles the same as its native styles.

And Word styles (at least the first "Heading" levels and "Normal" styles) retain their names and formatting when imported into S3 (at least if styles with those names already exist in the S project,)

Smooth and easy interchangeability is a deal maker/breaker for my using S3, and is why I steered away from deeper involvement with S1, even though I love the basic Scrivener binder/document model.

I'm just doing tests so far. Importing, exporting, compiling, opening the exports in Word, editing in Word, and seeing how faithfully it can be brought back into S3....

I'm finding some inconsistencies, or that there are settings or conditions, some variables I've not yet determined, where things seem to not work the same way every time. Not sure. That's potentially discouraging.

But overall it seems to handle styles as I need and as I'd been hoping it would. Maybe even better than expected, tbh.
Lead me not into user error.