# Error rendering Latex sintax

#### speedygallons

29 Dec, 2018 10:50 AM

I'm writing some formulas in scrivener. My syntax is correct because I put these formulas in https://www.mathjax.org/#demo (see demo mathjax attached).
When I put this and other formulas:
$s=\sqrt{\frac{1}{N-1}\sum_{i=1}^N(x_i-\overline{x})^{2}}$

$${x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}$$

$$s=\sqrt{\frac{1}{N-1}\sum_{i=1}^N(x_i-\overline{x})^{2}}$$

(see image scrivener) in scrivener and drag and drop in marked2 (see image drag and drop) I obtain a different output because it seems that the "f" of term "frac" is not recognized. How is it possible?

1. Support Staff Posted by Brett on 29 Dec, 2018 02:31 PM

For some reason the conversion from Scrivener is turning the \f into an escape code. If you double the slash, it works fine:

$s=\sqrt{\\frac{1}{N-1}\sum_{i=1}^N(x_i-\overline{x})^{2}}$


This only seems to be happening with Scrivener, your original syntax in a plain text file works fine with both built-in processors. I'll have to look further to figure out if it's something that Scrivener is doing or an error in the conversion that Marked does.

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

• _Demo_mathjax.jpg 31.3 KB
• Formulas_in_scrivener.jpg 27.3 KB
• Drag_and_drop_Marked2.jpg 14.9 KB

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 19 Mar, 2019 07:13 PM Unable to use Marked with Bear 19 Mar, 2019 03:33 AM Marked keeps crashing after updating to 2.5.27 18 Mar, 2019 11:20 AM Missing paragraph 16 Mar, 2019 06:21 PM Import image to marked 2? 14 Mar, 2019 02:05 PM TOC on different frame?

## Recent Articles

 License code has already been utilized Highlight sentences longer than a certain number of words In-app purchase issues (Error Domain=Paddle Code=0 "(null)") How do I retrieve a lost license (direct version) Custom CSS: Writing custom CSS for Marked