for other unsupported latex features,
you can use latex code inside <!-- --> comment pair to archieve it.
the MultiMarkdown syntax make the source code more readable than raw latex code,
but when you have to insert latex command, you need to put them in the
comment pair (i use << >> pair in the project), this may make the code less
readable. Don't mind, because
the most important: you can use Scrivener to manage your source code,
so you no longer deal with long latex source code, you can efficiently
organize them into hierarchical structure and get focused on the content
itself when you are writing.
Scrivener is a powerful content-generation tool for writers that
allows you to concentrate on composing and structuring long and
difficult documents.
features:
suppport MultiMarkdown syntax and can compile it into latex
Tree structure to organize article content:
As you can see in the left Binder, the title in sections and subsections
will be automatically compiled as \section{title} or \subsection{title},
the sections 1 will have a label "sec:intro"
History nagivation: see the "<" and ">" button in the top left of the editor?
when you move around in the Binder, your view history will be record and you can
go around it.
The scrivening feature: now i use cmd+click to select 4 text in the binder,
they are collected together in the text editor!! This is the most remarkable feature
and also where the name of this software come from.
Rich text: the format of all the texts are RTF (Rich Text Format), you can color
all the text, inserting images every where.
Reference list: the reference list are shown at the bottom right, you can goto this
references by a simple click, also notice the three blue word "Zheng.etal2011",
"Zheng.etal2011" and "JeesonDaniel2012", they are references links, and are clickable
using python script, i can import paper info from Zotero into Scrivener:
here is an example,
papers are listed in inverse time order in the Binder.
basic information are collected as the main text.
the cross reference relation are show in their Reference list
you can access the pdf directly in the Reference list
other useful features: keyworkds, metadata, snapshorts, collections...
you need some time to learn all the Scrivener features, but after
that, you will find it very helpful when you collect, extract and refine
informations from numerous resources.
Preferences ==> Customize ==> Annotation header ==> ONLY check Color category
Usage
clone this repository
import collections in Zotero into Scrivener
export Zotero collections:
make new collections (LAE in the following example) and collect papers
the papers should come from ADS or arxiv
export collections using these two format,
Better Bibtex (.bib file) and BetterBibTex JSON(.json file),
into the references folder.
The .bib file is used by latex and the .json file is used by scripts
use scripts to generate paper database and import them into Scrivener (make sure you have .json files in the reference folder)
make query will generate the database and query all the papers in ADS and generate Cross reference relation between them, this will take some time
make offline will only generate the database
after make query or make offline, your can make gen to import the papers into Scirvener
Using MultiMarkdown to write paper, compile them into latex file and pdfs
we have two AASTeX based template and convert them into MultiMarkdown format in the Main.scriv project,
all the useful syntax are included in the SimpleOneColumn and AASTeX6.1 demo.
You should read the "README" Text in the Draft folder and inside each demo, then follow them to compiled these two demos.
After that, you can duplicate one of these demos or convert your own Latex template into MultiMarkdown version.
A makefile to help compile latex file
when you follow the tutorial in the Main.scriv and get the compiled latex file
<$compileGroup>.tex/<$compileGroup>.tex
you can use make tex to copy one makefile and one script into all the *.tex folder
then cd into the *.tex folder and type make, you will get the final pdf
Also, you can choose to use your own IDE to compile the tex file.
Extract colorful text from Highlights
make highlights and comments for a pdf in the Highlights
Show the notes panel, choose Edit mode
copy all text in the notes panel
make 2rtf, the paste the content in the popped TextEditor
save the content in the TextEditor
hit Enter in the termainal
now will will get the extracted colorful text in RTF in the new popped TextEditor
Known Issues
Multimarkdown 6 and multimarkdown 4
After some version of Scrivener, they change multimarkdown 4 to multimarkdown 6
I use these Replacements in the compile config
<<([^<]*?)>> => <!--$1--> and \|\|([^\|]*?)\|\| ==> <!--$1-->
that's because multimarkdown version 4 will compile raw code in html comments <!-- * --> into raw code in latex,
but multimarkdown 6 change this action and break all << code >> pair in my demo
请发表评论