Cite-while-you-write (CWYW) with Zotero

Cite-while-you-write (CWYW) is the important step in academic writing. A good setup can make writing with Markdown and formatting with Marked 2 app much more rewarding.

Steps:

Export with Marked 2 app

To share my writing with others, I use Marked 2 app (macOS) to convert the Markdown files into other formats, such as PDF or DOCX.

TL;DR:

  1. Configure Marked 2 to process citation in markdown files (.csl)

    Marked 2 App -> Preferences -> Advanced Set Path to:

    /usr/local/bin/pandoc
    

    Set Args to:

    -f markdown+smart -t html5 --filter=/usr/local/bin/pandoc-citeproc --bibliography ~/Zotero/Library.bib --csl ~/Documents/Zotero/Pandoc/CSL/amj.csl
    
  2. Preview/drag&drop markdown files in Marked 2 app

  3. Choose the styles for the document (.css)

  4. Export to PDF, DOCX, or HTML

Configure Marked 2 App

You need:

Select Document Style

  • Marked 2 converts a Markdown file into HTML document file, which in turn gets formatted according to a chosen CSS template
  • CSS is a language that describes the style of an HTML document

Choose the Right Style:

Print and Share

  • To PDF: Marked 2 supports direct export to PDF format; alternatively, export to HTML format and print from your browser
  • To DOCX: export to HTML format and open/save to DOCX format in Microsoft Word

Issues and Limitations with Marked 2

Marked 2 app has issues with exporting files into Word documents. The formats defined by CSL files can be lost.

  • Solution 1: Export to HTML files, then open with Word
  • Solution 2: Use DocDown by Ralph Kabo

DocDown: Alternatives to Marked 2