From 1c06aceca3bbe91b9c420e1822076f4908d46852 Mon Sep 17 00:00:00 2001 From: Bastien Dumont Date: Sun, 24 Oct 2021 11:47:24 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20des=20options=20de=20configurat?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- text-crossrefs.lua | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ad860b..4ac69b6 100644 --- a/README.md +++ b/README.md @@ -109,10 +109,10 @@ The following metadata fields can be set as strings: * `tcrf-references-enum-separator`: * the string used to separate the elements of an enumeration in a reference span; can be composed of any character not authorized in an identifier other than space or tab; * defaults to `;`. - * `tcrf-enum-separator`: + * `tcrf-multiple-delimiter`: * the string inserted between two elements (but the two last ones) in an enumeration; * defaults to a comma followed by a space. - * `tcrf-before-last-in-enum`: + * `tcrf-multiple-before-last`: * the string inserted between the two last elements in an enumeration; * defaults to `and` surrounded with spaces. * `tcrf-only-explicit-labels`: diff --git a/text-crossrefs.lua b/text-crossrefs.lua index ad959b7..cb708ca 100644 --- a/text-crossrefs.lua +++ b/text-crossrefs.lua @@ -56,6 +56,8 @@ local config = { pagenote_order = 'pagefirst', pagenote_separator = ', ', pagenote_at_end = '', + multiple_delimiter = ', ', + multiple_before_last = ' and ', references_range_separator = '>', range_separator = '-', only_explicit_labels = 'false',