Navigation Menu

Skip to content

Commit

Permalink
tweak info on Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
iandol committed Sep 19, 2020
1 parent f99458c commit 22cf706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -111,7 +111,7 @@ With Scrivener 3's new [styles system (§15.5 user manual)](http://www.literatur
![](https://raw.githubusercontent.com/iandol/scrivomatic/master/images/Styles.png)
_Figure 1 — The cursor shows that both inline **Strong** and paragraph Caption styles are both active. Note whitespace is visualised and styles are used to give visual structure to the Scrivener writing environment. These will all be transformed into the correct markdown on compile…_

You can download my customised Scrivener 3 [compile preset here](https://raw.githubusercontent.com/iandol/scrivomatic/master/Scrivomatic.scrformat). Install it to get a flavour of how one can convert styles to markdown, and it now has the `scrivomatic` script built-in (needs Scrivener V3.03+).
There are two parts of this Styles setup: first you must create the editor's named paragraph & inline Styles, which you do using the Styles Panel (<kbd>CTRL</kbd>+<kbd>s</kbd>) or **Format ⇨ Style** menu . If you want to import some Styles from my sample project to get you started, open the **Styles Panel ⇨ ⚙ Gear Icon menu ⇨ Import Styles…** and select my [Workflow.scriv](https://raw.githubusercontent.com/iandol/scrivomatic/master/Workflow.scriv.zip) project file. For the Compile Style rules, you can make these yourself in the Compile format editor, or more easily you can download my customised [compile preset here](https://raw.githubusercontent.com/iandol/scrivomatic/master/Scrivomatic.scrformat). Install it (**Compiler ⇨ Gear Icon ⚙ ⇨ Import Formats…**) to get a flavour of how one can convert styles to markdown, and it now has the `scrivomatic` script built-in (needs Scrivener V3.03+).

![](https://raw.githubusercontent.com/iandol/scrivomatic/master/images/style-transform.png)
_Figure 2 — The Scrivener 3 Compile Format `Scrivomatic.scrformat` in the editor, showing how the inline style "Strong Emphasis" is converted into the correct markdown using prefix & suffix text. **IMPORTANT TIP: for block/paragraph styles you will need to enter newlines directly into the prefix/suffix edit fields; you do this using** <kbd>option</kbd> <kbd>return</kbd>._
Expand Down
2 changes: 1 addition & 1 deletion Scrivomatic.scrformat
Expand Up @@ -1365,6 +1365,6 @@ scriv.parseInputs(ARGV)
scriv.run
]]></Script>
<Path>/Users/ian/Desktop/workflow_mmd/scrivomatic.rb</Path>
<Args>"&lt;$inputfile&gt;" -l -v -y "pandocomatic.yaml" 2&gt;&amp;1 &gt;&gt;scrivomatic.log</Args>
<Args>"&lt;$inputfile&gt;" -l -v 2&gt;&amp;1 &gt;&gt;scrivomatic.log</Args>
</PostProcessing>
</CompileFormat>

0 comments on commit 22cf706

Please sign in to comment.