#50 added Lua filter for german quoation marks with to babel / csquotes

This commit is contained in:
Dominik Becker 2021-02-14 11:26:12 +01:00
parent 27741c3aef
commit ba8dcd811a
2 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,7 @@ fi
if [ $1 == "pandoc" ] if [ $1 == "pandoc" ]
then then
cat chapter/*.md > chapter/out.md cat chapter/*.md > chapter/out.md
pandoc --citeproc --filter pandoc-crossref \ pandoc --lua-filter templates/germanquotes.lua --citeproc --filter pandoc-crossref \
-M cref=true --top-level-division=chapter \ -M cref=true --top-level-division=chapter \
--bibliography library/library.bib --biblatex \ --bibliography library/library.bib --biblatex \
-o chapter/out.tex chapter/out.md -o chapter/out.tex chapter/out.md

View File

@ -0,0 +1,6 @@
-- see https://github.com/jgm/pandoc/issues/5470#issuecomment-489158514
function Quoted(el)
if el.quotetype == 'DoubleQuote' then
return {pandoc.Str(""), pandoc.Span(el.content), pandoc.Str("")}
end
end