Passing a backslash to Latex

There has been some discussion in the past on passing a backslash through to Latex. As discussed, the solution is very tedious and quickly becomes impractical.

With the new release of Scrivener, is there a ready made solution?

If not, is there not a file within the Library where we can simply turn off the line that changes “” to “\backslash”?

For myself, I created a style for this called “Raw LaTeX”. I use that to mark any text in the editor that needs to be passed through the MMD engine. The compile format has the job of turning this styled text into something, or perhaps ignoring it or even deleting the text.

The attached demo project is set up to show three scenarios. To view how they work, open Compile and double-click on each format in the left sidebar, examining its Styles pane and what it does with the “Raw LaTeX” style:

  • MMD5 - LaTeX: uses the
  • MMD6 - LaTeX: uses the newer method{=latex} (also compatible with Pandoc, as I understand it).
  • Non-LaTeX: merely demonstrates how styled text can be completely removed from the output, much like using an inline annotation would.

17340726-raw_latex_with_styles.zip (66.9 KB)

Hi Amber,

Thanks so much. I’m not seeing the demo project. Am I missing something obvious?

Oops! I was running into some connectivity problems when I posted that and it looks like the attachment dropped at one point. I’ve edited the post.