Essential Tools
Zettlr Setup Guide
Zettlr gives long-form academic drafts a plain-text home while keeping citations and export paths intact.
Intermediate · 45–60 min · Zotero with Better BibTeX configured
Drafting is where scattered ideas become a coherent argument.
Overview
Zettlr is the drafting tool in this workflow, built for linear academic manuscripts with citations and export paths.
Benefits for Research Memex users:
@citekeyautocomplete using your Better BibTeX citation keys from Zotero- LaTeX math formulas rendered in real time
- Visual table editor for results and comparisons
- Export to Word, PDF, and LaTeX for journal submission
- Projects for organizing multi-chapter documents
- Open source with no vendor lock-in
When to use Zettlr vs Obsidian
Both tools open the same plain markdown files, so you can move between them at any point. This is about where a task is comfortable, not about what either one can do.
| Task | Reach for |
|---|---|
| Daily research notes, literature notes from Zotero | Obsidian |
| Connecting ideas across papers, synthesis and theory development | Obsidian |
| AI conversation exports | Obsidian |
| Drafting a journal article or dissertation chapter | Zettlr |
| Papers with heavy citations (20+ refs) | Zettlr |
| Documents with math formulas | Zettlr |
| Complex tables | Zettlr |
| Exporting to Word, PDF, or LaTeX for submission | Zettlr |
Typical workflow:
Zotero Research Rabbit Obsidian Zettlr Journal
(References) → (Discovery) → (Synthesis) → (Drafting) → (Submission)
[Web of notes] [Linear paper]Step 1: install Zettlr
1.1 download and install
- Visit zettlr.com/download
- Download for your operating system (macOS, Windows, Linux)
- Install the application
- Launch Zettlr
1.2 first launch configuration
- Choose a workspace folder (can be the same as your Obsidian vault or separate)
- Select your preferred theme (Light or Dark)
- Configure editor settings (line numbers, spellcheck language)
Step 2: connect to Zotero
This step connects Zettlr to your Zotero library through Better BibTeX.
2.1 export Better BibTeX library from Zotero
- In Zotero: File → Export Library
- Format: Better CSL JSON (recommended) or Better BibTeX
- Check: "Keep updated" (auto-sync when library changes)
- Save location: Choose a stable location like:
/Users/[username]/Zotero/exports/My-Library.json - Click OK
2.2 configure citation database in Zettlr
- In Zettlr: Preferences → Export
- Under "Citation Database":
- Click "Add Database"
- Navigate to your exported library file (e.g.,
My-Library.json) - Click "Open"
- Verify: You should see the database path listed
2.3 test citation autocomplete
- Create a new file in Zettlr
- Type
@followed by a few letters from any author's last name - You should see autocomplete suggestions!
- Select a citation → it inserts as
[@smith2024a]
2.4 configure citation style
- Preferences → Export → Citation Style
- Default is Chicago style
- To change: Download .csl file from Citation Style Language
- Common academic styles:
- APA 7th edition
- MLA 9th edition
- Harvard
- IEEE
- Nature
- Your journal's specific style
Step 3: core writing features
3.1 citations with @citekey
Basic citation syntax:
- Parenthetical:
[@smith2024a]→ (Smith, 2024) - In-text:
@smith2024a→ Smith (2024) - With page:
[@smith2024a, p. 45]→ (Smith, 2024, p. 45) - Multiple:
[@smith2024a; @jones2024b]→ (Smith, 2024; Jones, 2024)
Autocomplete features:
- Type
@and start typing author name - Use fuzzy search (type
@smito find Smith, Smithers, etc.) - Press arrow keys to select and Enter to insert
- Bibliography auto-generates in preview
Example workflow:
As @coviello2024 argues, organizational scaling requires...
However, this view has been contested [@mithani2023; @sanasi2025],
particularly regarding digital business models.
The framework proposed in [@palmie2023, pp. 234-236] suggests...3.2 math formulas with LaTeX
Inline math:
The regression model is $y = \beta_0 + \beta_1 x + \epsilon$Display math:
$$
\begin{aligned}
E[Y|X] &= \beta_0 + \beta_1 X \\
R^2 &= 1 - \frac{SS_{res}}{SS_{tot}}
\end{aligned}
$$Common use cases:
- Statistical models
- Economic equations
- Mathematical proofs
- Chemical formulas
- Algorithmic notation
Zettlr renders LaTeX math in real time, which makes equations easier to check while drafting in Markdown.
3.3 visual table editor
- Click the "Insert Table" button (or Cmd/Ctrl+T)
- Select grid size (rows × columns)
- Edit cells directly - Tab to navigate
- Right-click for options:
- Add/remove rows
- Add/remove columns
- Align columns (left/center/right)
Example use case:
| Model | AIC | BIC | R² |
|-------|-----|-----|-----|
| Model 1 | 245.3 | 267.8 | 0.42 |
| Model 2 | 238.1 | 264.9 | 0.51 |3.4 comments for drafting
Add Hidden Notes:
This section discusses the methodology. <!-- Example: TODO reminder for later revision -->
Our findings suggest that... <!-- Example: Check citation against source -->Keyboard shortcut: Cmd/Ctrl+Shift+C
Use cases:
- Leave notes to yourself
- Mark sections for revision
- Hide text temporarily without deleting
- Add reviewer responses (invisible in export)
Step 4: projects for long documents
Projects help you organize dissertations, book chapters, or multi-section papers.
4.1 create a project
-
Create a folder structure:
/My-Dissertation/ ├── 01-Introduction.md ├── 02-Literature-Review.md ├── 03-Methodology.md ├── 04-Results.md ├── 05-Discussion.md └── 06-Conclusion.md -
Right-click the folder → Properties
-
Check "Treat as project"
-
Folder turns red with special icon
4.2 configure project export
- Click the folder
- Configure:
- Title page information
- Export formats (PDF, DOCX, etc.)
- Table of contents settings
- Bibliography options
4.3 compile your paper
- Right-click project folder → Export Project
- Zettlr concatenates all files in order
- Generates single output with:
- Proper citations
- Formatted bibliography
- Table of contents
- Page numbers
Work on dissertation chapters separately, using Obsidian for research and Zettlr for drafting, then compile them into one document.
Step 5: export workflow
5.1 export to PDF (via LaTeX)
Prerequisites:
- LaTeX distribution installed (MacTeX, MiKTeX, or TeX Live)
Steps:
- Cmd/Ctrl+E or click "Share" icon
- Choose "PDF (LaTeX)"
- First export may take time (downloading packages)
- Result: Professional PDF with formatted bibliography
5.2 export to Word (.docx)
No LaTeX required:
- Cmd/Ctrl+E → "Word (docx)"
- Opens in Microsoft Word or compatible app
- Citations formatted according to CSL style
- Bibliography auto-generated at end
Use cases:
- Journal submissions requiring Word
- Collaboration with non-markdown users
- Track changes and comments in Word
5.3 export to LaTeX source
For advanced users:
- Export → "LaTeX"
- Generates .tex file
- Compile with your own LaTeX editor
- Full control over LaTeX formatting
5.4 configure export settings
Preferences → Export:
- Paper size: A4 or Letter
- Font: Choose academic font (Times, Palatino)
- Line spacing: 1.5 or 2.0 for drafts
- Bibliography style: Select your .csl file
- Remove ZKN IDs: Check this for clean output
Step 6: integration with Research Memex workflow
6.1 from Obsidian to Zettlr
Scenario: You've synthesized findings in Obsidian. Now write the paper.
Workflow:
- In Obsidian: Create synthesis notes with main arguments
- Copy to Zettlr: Create new .md file for paper section
- Transform: Convert bullet points → paragraphs
- Add citations: Use @citekey for every claim
- Export: Generate PDF/Word when ready
Example:
<!-- In Obsidian (synthesis note) -->
## Key Theme: Scaling requires both strategy and structure
- Coviello 2024: Distinguishes scalability from scaling
- Mithani 2023: Digital vs non-digital models differ
- Sanasi 2025: Experimentation structures growth
<!-- In Zettlr (paper draft) -->
The literature reveals that successful scaling requires both
strategic vision and organizational structure [@coviello2024].
This is particularly evident in the distinction between digital
and non-digital business models [@mithani2023], where the role
of experimentation differs significantly [@sanasi2025].6.2 from AI conversations to structured sections
- Export Cherry Studio conversations to markdown
- Review AI-generated synthesis
- Copy useful passages to Zettlr
- Add proper citations. AI can hallucinate these.
- Verify every claim against your Zotero library
Warning
AI-generated text often includes plausible-sounding citations that do not exist. Always verify using @citekey autocomplete. If the citation does not autocomplete, it is not in your library.
6.3 Zotero → Zettlr direct citations
No copy-paste needed:
- Know your citation key from Zotero (e.g.,
smith2024a) - In Zettlr: Type
@smith→ autocomplete suggests it - Select → inserts
[@smith2024a] - Export → bibliography auto-generated
Step 7: best practices
7.1 when to switch from Obsidian to Zettlr
The trigger is a clear paper outline: once the argument has a shape and you are ready to draft linear sections, move the draft over. The task-by-task split is at When to use Zettlr vs Obsidian.
7.2 file organization strategy
Recommended Structure:
/Research-Papers/
├── Drafts/
│ ├── Paper-2025-Scaling/
│ │ ├── 01-Introduction.md
│ │ ├── 02-Literature.md
│ │ ├── 03-Methods.md
│ │ └── ...
│ └── Dissertation/
│ ├── Chapter-1-Introduction/
│ └── Chapter-2-Theory/
├── Submitted/
└── Published/7.3 version control with git
Zettlr files are plain markdown, which makes them suitable for Git.
Workflow:
cd /Research-Papers/Paper-2025-Scaling/
git init
git add *.md
git commit -m "Initial draft of introduction"Benefits:
- Track every revision
- Revert to earlier versions
- Collaborate via GitHub
- Never lose work
7.4 collaborative writing
Option 1: Git-Based (Technical)
- Push to GitHub private repo
- Collaborators pull, edit, push
- Merge changes
- Requires Git knowledge
Option 2: Export to Word (Simple)
- Export to .docx
- Share via email/cloud
- Collaborators use Track Changes
- Import revisions back to markdown
Step 8: keyboard shortcuts for speed
Essential shortcuts:
Cmd/Ctrl+E: Export documentCmd/Ctrl+B: BoldCmd/Ctrl+I: ItalicCmd/Ctrl+K: Insert linkCmd/Ctrl+Shift+C: Insert commentCmd/Ctrl+T: Insert tableCmd/Ctrl+F: SearchCmd/Ctrl+R: Replace
Citation Shortcuts:
- Type
@→ Citation autocomplete - Type
#→ Headings - Type
$→ Inline math - Type
$$→ Display math
Step 9: advanced features
9.1 zettelkasten IDs (optional)
Zettlr supports Zettelkasten-style linking:
- Format:
[[202501151420]](timestamp-based IDs) - Auto-generated with Cmd/Ctrl+L to create a unique identifier for each note
9.2 custom CSS for styling
- Preferences → Display → Custom CSS
- Add custom styles for preview
- Example: Change heading colors, font sizes, etc.
9.3 snippet manager
Create reusable text snippets:
- Preferences → Snippets
- Add snippets with shortcuts
- Examples:
@@email→ your email address@@affiliation→ your institution@@template→ paper template structure
Step 10: troubleshooting
Citation library not loading
Symptoms: @citekey autocomplete doesn't work
Solutions:
- Verify library path in Preferences → Export
- Check file format (must be CSL JSON or BibTeX)
- Re-export from Zotero with "Keep updated"
- Restart Zettlr
Export to PDF fails
Symptoms: "LaTeX not found" error
Solutions:
- Install LaTeX distribution:
- macOS: MacTeX (4GB) or BasicTeX (100MB)
- Windows: MiKTeX
- Linux: TeX Live
- Or export to Word instead (no LaTeX needed)
Bibliography not appearing
Symptoms: Citations work but no bibliography at end
Solutions:
- Ensure citation style (.csl) is selected
- Check that you have at least one citation in the document
- Try exporting to different format
- Verify Better BibTeX export is up-to-date
Math formulas not rendering
Symptoms: LaTeX math shows as plain text
Solutions:
- Check syntax: no spaces after
$in inline math - Verify you're in preview mode (Cmd/Ctrl+Alt+E)
- Test with simple formula:
$x^2$ - Check KaTeX documentation for supported commands
Integration with Research Memex workflow
Complete workflow example
Phase 1: Research (Weeks 1-4)
- Zotero: Collect 50+ papers, configure Better BibTeX
- Research Rabbit: Expand citation network
- Obsidian: Take literature notes, synthesize themes
Phase 2: Analysis (Weeks 5-8)
- Cherry Studio: Pattern analysis with AI support
- Obsidian: Build conceptual framework
- Zotero: Refine collection, verify citations
Phase 3: Writing (Weeks 9-12)
- Zettlr: Draft paper sections
- Use @citekey for every claim
- Add math formulas where needed
- Build results tables
- Export: Generate PDF for advisor review
Phase 4: Revision (Weeks 13-16)
- Zettlr: Incorporate feedback
- Use comments for tracking changes
- Update citations
- Refine arguments
- Export: Final submission to journal
Tool handoff points
From Obsidian to Zettlr:
- Identify completed synthesis notes in Obsidian
- Create new Zettlr file for paper section
- Copy main arguments and evidence
- Transform from notes → prose
- Add proper citations with @citekey
From Zettlr back to Obsidian:
- Export Zettlr paper to markdown
- Save in Obsidian vault for archiving
- Link to related research notes
- Track published work
Checklist
By the end of this guide, you should have:
- Installed Zettlr
- Connected to Zotero Better BibTeX library
- Tested @citekey autocomplete
- Configured citation style (e.g., APA, MLA)
- Created a test document with citations
- Inserted a math formula (if needed)
- Created a table
- Exported to PDF or Word successfully
- (Optional) Created a project for multi-file paper
- (Optional) Installed LaTeX for PDF export
Tip
Quick Test: Create a file with this content and export to PDF:
# Test Paper
As @[yourcitekey] demonstrates, the methodology...
The model is: $y = \beta x + \epsilon$
## References
(Auto-generated)If the bibliography appears at the end, the setup works.
Quick reference
Task split: When to use Zettlr vs Obsidian.
Essential keyboard shortcuts
| Action | Shortcut |
|---|---|
| Export | Cmd/Ctrl+E |
| Insert citation | Type @ |
| Insert comment | Cmd/Ctrl+Shift+C |
| Insert table | Cmd/Ctrl+T |
| Bold | Cmd/Ctrl+B |
| Italic | Cmd/Ctrl+I |
| Search | Cmd/Ctrl+F |
| Toggle preview | Cmd/Ctrl+Alt+E |
Resources
Zettlr documentation
- Citation Guide
- Tables
- Math Formulas
- Projects
- Exporting
- Writing Markdown in Zettlr
- File Renaming (Zotero)
Integration with other tools
- Zotero Setup Guide - Configure Better BibTeX citation keys
- Obsidian Setup Guide - Research note-taking
- Cherry Studio Setup Guide - Pattern analysis with AI support
External resources
- Citation Style Language - Download .csl files for any journal
- Pandoc Documentation - Zettlr's export engine
- KaTeX Documentation - Math formula reference
- Zettlr Forum - Community support
Common questions
Q: Should I use Zettlr OR Obsidian? A: Both - they complement each other. The task split is at When to use Zettlr vs Obsidian.
Q: Can I use the same folder for both? A: Yes, but not recommended. Keep research notes (Obsidian) separate from paper drafts (Zettlr) for clarity.
Q: Do citation keys work the same way? A: Yes. Both use Better BibTeX citation keys from Zotero. Configure once in the Zotero guide, then use the same keys everywhere.
Q: Is Zettlr required for Research Memex? A: No, it's optional. But if you're writing papers (not just taking notes), Zettlr makes citations and export much easier than Obsidian.
Q: Can I write my entire dissertation in Zettlr? A: Yes. Use Projects to organize chapters, then compile into a single PDF or Word document.
Next steps
- Install Zettlr and connect to your Zotero library
- Create a test document with 3-5 citations
- Export to PDF or Word to verify setup
- Start drafting your next paper section in Zettlr
- Keep using Obsidian for research notes and synthesis
Research in Obsidian, draft in Zettlr, and export to journals; Better BibTeX keeps the citation keys consistent across both tools.
cite this page
Lin, X. (2026). Zettlr Setup Guide. Research Memex. https://research-memex.org/docs/implementation/foundational-setup/zettlr-setup-guide
@misc{docs-implementation-foundational-setup-zettlr-setup-guide-2026,
author = {Xule Lin},
title = {Zettlr Setup Guide},
year = {2026},
howpublished = {\url{https://research-memex.org/docs/implementation/foundational-setup/zettlr-setup-guide}},
note = {ORCID: 0000-0001-7885-4194}
}one renderingthe source remains