# Scrivomatic Style character text color

**URL:** <https://forum.literatureandlatte.com/t/scrivomatic-style-character-text-color/45593>\
**Category:** Scrivener for macOS\
**Tags:** support\
**Created:** [May 15, 2019, 11:03pm UTC](https://forum.literatureandlatte.com/t/scrivomatic-style-character-text-color/45593 "2019-05-15T23:03:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arevell](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@arevell](https://forum.literatureandlatte.com/u/arevell)\
**Post date:** [May 15, 2019, 11:03pm UTC](https://forum.literatureandlatte.com/t/scrivomatic-style-character-text-color/45593/1 "2019-05-15T23:03:44Z")

</div>

Is there a way to style the text color from scrivener to have it output a predefined word style (where I made it the same color)?

So let’s say I have this in scrivener:

 ![Screen Shot 2019-05-15 at 6.53.53 PM.png](https://dev.literatureandlatte.com/uploads/default/original/2X/0/055070e1cf2be01426017186ecd1f0f7b15e6415.png)

And I want this in Word (artificially made for display here):

 ![Screen Shot 2019-05-15 at 6.56.06 PM.png](https://dev.literatureandlatte.com/uploads/default/original/2X/5/59ce78d01b71f9142becf31a1cc56a81df68571c.png)

I put this in my Styles section for my format in scrivener:

 ![Screen Shot 2019-05-15 at 6.57.46 PM.jpg](https://dev.literatureandlatte.com/uploads/default/original/2X/4/4627a49fde339c861be44de00167d86b36c0eb43.jpeg)

However, the blue font does not appear. It’s just black.

The markdown .MD file output looks fine with:  
Explain the\<span style=“color:blue” importance of the problem or critical …

But I cannot figure out how to link that to the Word Style.  
Out of docx, tex/pdf, and html, only html has the color style correctly.

Thanks!

---

<div class="post-metadata">

**Author:** ![AmberV](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/amberv/32/13021_2.png) [@AmberV](https://forum.literatureandlatte.com/u/AmberV)\
**Post date:** [May 21, 2019, 12:22pm UTC](https://forum.literatureandlatte.com/t/scrivomatic-style-character-text-color/45593/2 "2019-05-21T12:22:38Z")

</div>

Yes, this is something Pandoc can do, though you’ll have to set it up a bit, at least from what I have seen in my simple testing of it. The two key ingredients are:

- A custom reference.docx file (save it into your user folder under .pandoc for it to be used automatically. Instructions for creating and editing this file are in the Pandoc documentation, page 18.

Once you have that file created, you would want to add your custom blue text style to the bottom of the file. Apply the formatting attributes you desire, and then create a new character style for it.

And you can modify the formatting of this document as well to adjust default .docx output. So that’s a nice trick to know about anyway.

- Marking the text as styled in the source. This technique is documented under the Custom Styles section, starting on page 107. This is what you would want to add to Scrivener’s settings, as your style prefix/suffix, instead of the HTML. For example:

```auto
Here is some [blue text]{custom-style="Blue Text"}.
```

I do think that this approach is fairly format-specific. It doesn’t seem to produce a good result for LaTeX or HTML. There may be ways around that (I’m not a Pandoc expert), but if not—that’s one nice thing about Scrivener’s compile Format system. You can have one format producing special HTML spans, another wrapping your text in DOCX styles, etc.

---

<div class="post-metadata">

**Author:** ![gr](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/gr/32/38680_2.png) [@gr](https://forum.literatureandlatte.com/u/gr)\
**Post date:** [May 21, 2019, 3:20pm UTC](https://forum.literatureandlatte.com/t/scrivomatic-style-character-text-color/45593/3 "2019-05-21T15:20:45Z")

</div>

It sounds like you need a markdown path, but if compiling straight to docx is an option at all, then the remedy is easy. Just name your blue style with the very same style name as you have set in Word. Also, in the style area of compile (for docx output), make sure the preserve-style-info-in-output option is enabled.
