Tutoriel Complet¶
Prérequis¶
- vLaTeX installé (Installation)
- Podman ou Docker configuré avec l'image
vlatex-env - Un vault Obsidian (ou un dossier avec des fichiers
.md)
Étape 1 : Structurer son vault¶
Structure recommandée¶
mon-vault/
├── Writing/ # Documents principaux
│ ├── thesis.md
│ ├── chapter1.md
│ ├── chapter2.md
│ └── BIBTEX.bib # Bibliographie
├── assets/ # Images et fichiers
│ ├── figure1.png
│ ├── diagram.svg
│ └── photo.jpg
├── Equations/ # Équations stockées
│ ├── maxwell.md
│ └── schrodinger.md
├── Tables/ # Tableaux stockés
│ └── comparison.md
└── config.json # Configuration vLaTeX (optionnel)
Fichier bib¶
Créez un fichier BIBTEX.bib :
@article{smith2020,
title={An Important Paper},
author={Smith, John and Doe, Jane},
journal={Journal of Science},
volume={42},
pages={1--10},
year={2020}
}
@book{wilson2019,
title={The Complete Guide},
author={Wilson, Robert},
publisher={Academic Press},
year={2019}
}
Étape 2 : Écrire un document markdown¶
Frontmatter YAML¶
Chaque document peut commencer par un frontmatter :
Syntaxe markdown supportée¶
En-têtes¶
Mathématiques¶
Citations¶
Comme montré par @smith2020...
Plusieurs citations : [@smith2020; @wilson2019]
Citation avec pages : [p. 42 @smith2020]
Tableaux¶
| Colonne 1 | Colonne 2 | Colonne 3 |
|-----------|-----------|-----------|
| Donnée A | 1.0 | Rouge |
| Donnée B | 2.5 | Bleu |
Images¶
Listes¶
- Liste à puces
- Deuxième élément
- Sous-élément
1. Liste numérotée
2. Deuxième
- [ ] Tâche non complétée
- [x] Tâche complétée
Code¶
#### Callouts/Admonitions
```markdown
> [!note]
> Ceci est une note.
> [!warning]
> Ceci est un avertissement.
> [!tip]
> Ceci est un conseil.
Mermaid¶
---
## Étape 3 : Embeds Obsidian
### Embed de note
```markdown
![[Chapter1]] <!-- Intègre le contenu de Chapter1.md -->
![[Chapter1#Section]] <!-- Intègre une section spécifique -->
![[Chapter1#^block]] <!-- Intègre un bloc spécifique -->
Embed d'image¶
![[image.png]] <!-- Image locale -->
![[assets/figure1.png]] <!-- Image avec chemin -->
 <!-- Image URL -->
Embed de tableau¶
Embed d'équation¶
Étape 4 : Convertir¶
CLI¶
# Voir le LaTeX généré
vlatex Writing/thesis.md
# Sauvegarder en .tex
vlatex Writing/thesis.md > output/thesis.tex
# Compiler en PDF
vlatex Writing/thesis.md --pdf
# Compiler en DOCX
vlatex Writing/thesis.md --docx
GUI¶
- Cliquez Set Vault Root → sélectionnez
mon-vault/ - Naviguez vers
Writing/thesis.md - Le fichier s'ouvre dans l'éditeur
- Cliquez Convert pour voir le LaTeX
- Cliquez PDF pour compiler
TUI¶
- Naviguez avec
↑/↓ - Appuyez
Entersur un dossier pour l'ouvrir - Appuyez
Entersur un fichier.mdpour le prévisualiser - Appuyez
cpour convertir - Appuyez
ppour compiler PDF
Étape 5 : Résultats¶
Sortie PDF¶
Le PDF est généré dans output/ avec :
- Page de titre (si frontmatter défini)
- Table des matières
- Liste des tableaux
- Liste des figures
- Numérotation des sections
- Citations avec navigation bidirectionnelle (flèches ↑↓)
- Bibliographie complète
Sortie DOCX¶
Le DOCX est généré dans output/ avec :
- Mise en forme pandoc
- Numérotation des sections (optionnel)
- Citations avec flèches de retour
- Table des matières
Étape 6 : Configuration avancée¶
Preamble personnalisé¶
Créez un fichier custom-preamble.tex :
\usepackage{my-custom-package}
\usepackage{custom-fonts}
% Configuration personnalisée
\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
Dans la config :
Style de citation CSL¶
Pour utiliser un style CSL personnalisé :
- Téléchargez le fichier CSL depuis citationstyles.org
- Placez-le dans votre vault
- Configurez :
Headers/Footers PDF¶
{
"enable_header": true,
"header_content": "Mon Document — \\thepage",
"enable_footer": true,
"footer_content": "Confidentiel — \\today"
}
Astuces¶
Watcher les changements
Utilisez entr ou inotifywait pour reconvertir automatiquement :
Makefile
Créez un Makefile pour automatiser :