Merge branch '50-fix-handling-for-german-quotation-marks' into 'master'
Resolve "Fix Handling for German Quotation Marks" Closes #50 See merge request fastexitlane/latex-boilerplate!30
This commit is contained in:
commit
ed08a5f211
2
build.sh
2
build.sh
|
@ -12,7 +12,7 @@ fi
|
|||
if [ $1 == "pandoc" ]
|
||||
then
|
||||
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 \
|
||||
--bibliography library/library.bib --biblatex \
|
||||
-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