Hi there,
I’m new for Scrivener, i have been configuring a Scrivener template to write my papers using MMD for a whole day, but now i still can not understand the workflow of Scrivener to compile MMD to latex file, and i have some questions about it.
my computer is OS X EL Capitan 10.11.1, i have Scrivener 2.7, multimarkdown 5.0.0 installed from brew
There are NO MultiMarkdown folder in both /Library/Application Support/ and ~/Library/Application Support/(i search for some info about MMD, many of them notice these path, but i can not found MultiMarkdown folder in these path after i install it from brew or from the official .pkg file)
my meta-datas are:
latex input: configs/config-header
latex input: configs/config-newCommands
latex input: configs/cover
Base Header Level: 2
latex footer: configs/footer
these include all the needed latex config code
some of my content are like:(i’m testing the citation syntax, all the cite key are defined on the .bib file and are correct set in the latex input file)
…
Blabla, [#Ferrarese&Merritt2000ApJ, Gebhardt2000ApJ]
Blabla, [#Ferrarese&Merritt2000ApJ, Gebhardt2000ApJ;]
…
i can successfully compile it without “use XSLT post-processing”
but after i select the “use XSLT post-processing”, i got error
-:32: parser error : EntityRef: expecting ‘;’
Blabla, [#Ferrarese&Merritt2000ApJ, Gebhardt20 ^ -:34: parser error : EntityRef: expecting ';'
Blabla, [#Ferrarese&Merritt2000ApJ, Gebhardt20
I also do some test:
test1:
add new meta-data
latex XSLT: latex-snippet.xslt
Without “use XSLT post-processing”
Result: successfully compiled
Test2:
With “use XSLT post-processing”
Result: error:
warning: failed to load external entity “/Applications/Scrivener.app/Contents/Resources/MultiMarkdown/xslt-bin/…/XSLT/configs/XSLT/latex-snippet.xslt”
Then I Download github.com/fletcher/MultiMarkdown.git
Test3:
Rename /Applications/Scrivener.app/Contents/Resources/MultiMarkdown to MultiMarkdown-old
Without “use XSLT post-processing”
Result: successfully compiled
(it seems that Scrivener do not use this MultiMarkdown without “use XSLT post-processing”)
Test4:
With “use XSLT post-processing”
Result: nothing happened after I click compile
Test5:
Use files from github.com/fletcher/MultiMarkdown.git to update /Applications/Scrivener.app/Contents/Resources/MultiMarkdown
With “use XSLT post-processing”
Result:
-:33: parser error : EntityRef: expecting ‘;’
Blabla, [#Ferrarese&Merritt2000ApJ, Gebhardt20
^
-:35: parser error : EntityRef: expecting ‘;’
Blabla, [#Ferrarese&Merritt2000ApJ, Gebhardt20
(same as the first error)
(it seems that Scrivener find the new latex-snippet.xslt file and begin to run the MultiMarkdown, but have the same runtime error )
Here are my questions:
1. How did Scrivener compile MMD to latex without “use XSLT post-processing”(what binary program did it use? From my test I knew that It did not use /Applications/Scrivener.app/Contents/Resources/MultiMarkdown)?
2. Where did the error parser error : EntityRef: expecting ‘;’ come from when select “use XSLT post-processing”? How can I solve it?
3. How can I config Scrivener to use outer MultiMarkdown(like use /usr/local/bin/MultiMarkdown)(I have tried to copy github.com/fletcher/MultiMarkdown.git files to both /Library/Application Support/ and ~/Library/Application Support/, after some test, I find that Scrivener still use the /Applications/Scrivener.app/Contents/Resources/MultiMarkdown)
4. How can I config the MultiMarkdown files (the XSLT files? The .pl files?) to custom the compile(some thing like use [#citekey;;] to have \citealt{citekey})?
thank your for your reading