Commands
MergDown2TeX provides the following commands.
Command palette
Open with Ctrl/Cmd + P and type "MergDown2TeX".
Available commands
| Command |
Description |
MergDown2TeX: Convertir la note active en LaTeX (.tex) |
Generate .tex file |
MergDown2TeX: Convertir et compiler en PDF |
Generate PDF |
MergDown2TeX: Convertir et compiler en DOCX (Word) |
Generate Word document |
Keyboard shortcuts
Default shortcuts
| Action |
Windows/Linux |
macOS |
| Command palette |
Ctrl + P |
Cmd + P |
| Convert to LaTeX |
Ctrl + Shift + L |
Cmd + Shift + L |
| Compile to PDF |
Ctrl + Shift + P |
Cmd + Shift + P |
| Compile to DOCX |
Ctrl + Shift + W |
Cmd + Shift + W |
Custom shortcuts
- Open Obsidian
- Go to Settings → Hotkeys
- Search "MergDown2TeX"
- Set custom shortcuts
| Button |
Action |
Description |
|
Convert to LaTeX |
Generate .tex file |
|
Compile to PDF |
Generate PDF |
|
Compile to DOCX |
Generate Word document |
Usage examples
Convert to LaTeX
- Open any note
- Run command:
MergDown2TeX: Convertir la note active en LaTeX (.tex)
.tex file appears in same folder
Compile to PDF
- Open any note
- Run command:
MergDown2TeX: Convertir et compiler en PDF
- PDF file appears in same folder
Compile to DOCX
- Open any note
- Run command:
MergDown2TeX: Convertir et compiler en DOCX (Word)
- DOCX file appears in same folder
Batch operations
Convert multiple notes
#!/bin/bash
# batch-convert.sh
for file in *.md; do
# Convert to LaTeX
pandoc "$file" -o "${file%.md}.tex"
done
Compile all PDFs
#!/bin/bash
# batch-compile.sh
for file in *.tex; do
# Compile
pdflatex "$file"
bibtex "${file%.tex}"
pdflatex "$file"
pdflatex "$file"
done
Next steps