mirror of
https://gitlab.com/orbital-debris-research/directed-study/final-report.git
synced 2025-06-15 14:46:45 +00:00
added filter that allows svg img for pdf output
This commit is contained in:
parent
329e2b9fcc
commit
aa1866c6c2
11
filter.lua
Normal file
11
filter.lua
Normal file
@ -0,0 +1,11 @@
|
||||
function Image(el)
|
||||
if FORMAT == "latex" then
|
||||
-- convert svg to pdf
|
||||
if string.sub(el.src, -4) == '.svg' then
|
||||
local pdfName = string.gsub(el.src, "svg", "pdf")
|
||||
pandoc.pipe('inkscape.exe', { el.src, '--export-filename', pdfName}, '')
|
||||
el.src = pdfName
|
||||
return el
|
||||
end
|
||||
end
|
||||
end
|
@ -16,6 +16,9 @@ bibliography: citations.bib
|
||||
|
||||
execute:
|
||||
cache: true
|
||||
|
||||
filters:
|
||||
- filter.lua
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
Loading…
x
Reference in New Issue
Block a user