Defined Space Between Paragraphs

Mark Cubb
Posts: 5
Joined: Wed Jul 31, 2013 4:05 pm
Platform: Mac

Thu Aug 15, 2013 4:32 pm Post

Is there syntax to create a defined space between paragraphs when Scrivener compiles the document from MMD --> PDF? For example, if I would want to add blank space between bullet points:

+ This is the text for the first bullet...

Some syntax to generate blank space of 200px or 400px or...

+ This is the text for the second bullet...

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

Thu Aug 15, 2013 9:21 pm Post

No it doesn’t have much by way of specific typesetting control. You would need to insert the raw LaTeX code for that, surrounded by HTML comment syntax. If you are doing this often, you may wish to make an abbreviation macro, using compiler Replacements.

Using a custom macro to create typesetting commands: before and after.

In this example, the Replacements pane in the compiler has an entry that converts `<spacer>` with `<!--\vspace{50mm}-->` (I recommend using fixed units of measurement rather than pixels, as pixels are a bit technical and their real-world distance can shift depending upon the output resolution).

If you wanted to make that more powerful, you could change the Replacements with `<spacer:$@>` to `<!--\vspace{$@mm}-->`. That would let you type in `<spacer:100>`, in Scrivener, to add a 100mm space.

Of course, if you are just doing this once, it would make more sense to type in the code directly into the editor. :)
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

Posts: 24
Joined: Thu Feb 07, 2013 11:34 am
Platform: Mac
Location: Italy

Wed Sep 25, 2013 12:46 pm Post

I use \bigskip, \medskip and \smallskip in the Replacement, for big, medium and small spaces.

'bskip' (written in the text) => becomes <!--\bigskip--> in the Replacement, and a big vertical space in the pdf,

idem with:
'mskip' => becomes <!--\medskip--> in the Replacement
'sskip' => becomes <!--\smallskip--> in the Replacement.