documentation et découverte babel french

This commit is contained in:
Julien Fastré 2020-11-04 22:47:09 +01:00
parent 85dba3b1d0
commit 57b1a5e293
3 changed files with 15 additions and 0 deletions

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# 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
```

View File

@ -1,4 +1,5 @@
-- Add a latex insecable space before ":" for words ending with ":" -- Add a latex insecable space before ":" for words ending with ":"
-- **not necessary** if french babel is loaded
function Str(elem) function Str(elem)
if elem.text:sub(-1) == ":" then if elem.text:sub(-1) == ":" then
return pandoc.RawInline("latex", elem.text:gsub(":", "~:")) return pandoc.RawInline("latex", elem.text:gsub(":", "~:"))

View File

@ -1,4 +1,5 @@
-- Add a latex insecable space before ";" for words ending with ";" -- Add a latex insecable space before ";" for words ending with ";"
-- **not necessary** if french babel is loaded
function Str(elem) function Str(elem)
if elem.text:sub(-1) == ";" then if elem.text:sub(-1) == ";" then
return pandoc.RawInline("latex", elem.text:gsub(";", "~;")) return pandoc.RawInline("latex", elem.text:gsub(";", "~;"))