2020-09-18 15:50:44 +02:00
|
|
|
-- Add a latex insecable space before ";" for words ending with ";"
|
2020-11-04 22:47:09 +01:00
|
|
|
-- **not necessary** if french babel is loaded
|
2020-09-18 15:50:44 +02:00
|
|
|
function Str(elem)
|
|
|
|
|
if elem.text:sub(-1) == ";" then
|
|
|
|
|
return pandoc.RawInline("latex", elem.text:gsub(";", "~;"))
|
|
|
|
|
else
|
|
|
|
|
return elem
|
|
|
|
|
end
|
|
|
|
|
end
|