MMD Syntax <!-- --> not working in Scrivener 3

al
allenwu
Posts: 7
Joined: Mon Aug 06, 2012 4:18 pm
Platform: Mac

Wed Jan 17, 2018 12:32 pm Post

Hi,

I am trying to insert some raw LaTex code within my MMD document in Scrivener 3. However when I use something like <!-- \LaTeX --> tag, everything within that tag is disappeared in the compiled LaTex document. By the way, I have unchecked the "Smart Dashes and Ellipses".

It will work when I check "Use XSLT post-processing", however I would lose my LaTeX Options and all headers and footers.

Thanks
Allen
Last edited by allenwu on Wed Jan 17, 2018 12:55 pm, edited 1 time in total.

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

Wed Jan 17, 2018 12:54 pm Post

Sounds like you’ve upgraded MMD to version 6 on your disk. The syntax for including raw LaTeX was changed.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

al
allenwu
Posts: 7
Joined: Mon Aug 06, 2012 4:18 pm
Platform: Mac

Wed Jan 17, 2018 1:36 pm Post

Thanks.

But when I do '\LaTeX'{=latex} I got the following error message:

Unknown token type: 121
* (121) 336:8 '{=latex}'
* (204) 336:2 '{='
* (216) 338:5 'latex'
* (206) 343:1 '}'

I already took off smart quotes. What am I missing?

Ah~~ I understand, It is `\LaTeX`{=latex} not '\LaTeX'{=latex}

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

Wed Jan 17, 2018 1:58 pm Post

The syntax is to use a code span followed by a syntax marker. Code spans use the “grave accent” (or backtick) character, or the left-quote character in LaTeX: ` not the prime symbol: '

Although typographic punctuation won’t impact the backtick, it’s probably a good idea to leave that off for LaTeX anyway.

Ah, you got it. :) Well consider the expanded explanation for anyone future people searching and finding this thread.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles