From 57b1a5e293968f4d3c4b6fb52a4ccd1a8962f261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 4 Nov 2020 22:47:09 +0100 Subject: [PATCH] =?UTF-8?q?documentation=20et=20d=C3=A9couverte=20babel=20?= =?UTF-8?q?french?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 +++++++++++++ format-column.lua | 1 + format-semi-column.lua | 1 + 3 files changed, 15 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f5242f --- /dev/null +++ b/README.md @@ -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 +``` diff --git a/format-column.lua b/format-column.lua index 19d5c5b..3486158 100644 --- a/format-column.lua +++ b/format-column.lua @@ -1,4 +1,5 @@ -- Add a latex insecable space before ":" for words ending with ":" +-- **not necessary** if french babel is loaded function Str(elem) if elem.text:sub(-1) == ":" then return pandoc.RawInline("latex", elem.text:gsub(":", "~:")) diff --git a/format-semi-column.lua b/format-semi-column.lua index 578d587..535dd0c 100644 --- a/format-semi-column.lua +++ b/format-semi-column.lua @@ -1,4 +1,5 @@ -- Add a latex insecable space before ";" for words ending with ";" +-- **not necessary** if french babel is loaded function Str(elem) if elem.text:sub(-1) == ";" then return pandoc.RawInline("latex", elem.text:gsub(";", "~;"))