2020-11-04 21:47:09 +00:00
|
|
|
# Pandoc Champs-Libres
|
|
|
|
|
|
|
|
Filtres et recommandations pour CL
|
|
|
|
|
|
|
|
## Metadatas
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# Inclut babel-french
|
|
|
|
# le paquet ajoute des espaces insécables, les filtres lua "format semi-column",
|
|
|
|
# "format-column" et "
|
|
|
|
# voir: http://lesfichesabebert.fr/latex/Fran%C3%A7ais.html
|
|
|
|
babel-main: french
|
|
|
|
```
|
2020-11-24 13:44:16 +00:00
|
|
|
|
|
|
|
## Filtres
|
|
|
|
|
|
|
|
### `boxes.lua`
|
|
|
|
|
|
|
|
Ajoute des boxes aux documents latex, en utilisant [awesomebox](https://ctan.org/pkg/awesomebox).
|
|
|
|
|
|
|
|
Boxes disponibles:
|
|
|
|
|
|
|
|
* note;
|
|
|
|
* tip;
|
|
|
|
* warning;
|
|
|
|
* caution;
|
|
|
|
* important;
|
|
|
|
* info (alias pour "note");
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
```
|
|
|
|
::: { .tip }
|
|
|
|
Ceci est un truc (des trucs et astuces)
|
|
|
|
:::
|
|
|
|
```
|
|
|
|
|
2020-12-07 16:33:52 +00:00
|
|
|
### `timesheet.lua`
|
|
|
|
|
|
|
|
Extrait des timesheets d'un fichier markdown.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
Markdown associé:
|
|
|
|
|
|
|
|
---
|
|
|
|
timesheet: /path/to/file.csv
|
|
|
|
---
|
|
|
|
|
|
|
|
```{.timesheet}
|
|
|
|
2020-12-15, CL, 1, test
|
|
|
|
```
|
|
|
|
|
|
|
|
Execution:
|
|
|
|
|
|
|
|
```
|
|
|
|
pandoc --to markdown --lua-filter timesheet.lua
|
|
|
|
```
|
|
|
|
|
|
|
|
Le fichier CSV sera enregistré à la place du fichier `/path/to/file.csv`
|
|
|
|
|
2020-11-24 13:44:16 +00:00
|
|
|
|