#50 added Lua filter for german quoation marks with to babel / csquotes
This commit is contained in:
parent
27741c3aef
commit
ba8dcd811a
2
build.sh
2
build.sh
|
@ -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
|
||||||
|
|
6
templates/germanquotes.lua
Normal file
6
templates/germanquotes.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user