Space or no space after slash (/) when exporting to LaTeX

ha
haakoo
Posts: 1
Joined: Sun Feb 25, 2018 9:57 pm
Platform: Mac, Win + iOS

Sun Feb 25, 2018 10:14 pm Post

I'm having trouble exporting '/' (slash) to LaTeX, using Scrivener 2.8.1.2 (MultiMarkdown 3?). My partner is handing in her master thesis in about two months and I'm helping her with the formatting. Since it's so close to finished, we're not keen on upgrading to 3.X just now.

I'm using 'Replacements' to insert LaTeX-symbols (turning '<>$@<>' into '<!--$@-->'), and that works fine. Throughout the text she's using '/' (slash), both with and without trailing space. When compiling into LaTeX '/' is converted into '\slash', which results in the lack of trailing spaces where needed.

I've searched and read, trying to figure out how to escape or otherwise manage to fix this with no luck.

Any tips would be welcome.

User avatar
AmberV
Posts: 21548
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Mon Feb 26, 2018 12:03 pm Post

The latest version of Scrivener 2 is using MultiMarkdown 5.4 for the conversion to LaTeX.

There are several ways one could go about ensuring a space follows a slash. Using {\slash} instead if \slash is one way. \slash~ is another way. Or if you insert the slash with an HTML comment then MMD won’t touch it in the first place. Which is most appropriate to use would depend on why one needs a space after it, I suppose.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles