diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-11-16 17:39:48 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-11-16 17:39:48 +0100 |
| commit | b3da58a3352dd7d9f9b977695f8f7b3f48d1bcc2 (patch) | |
| tree | 076ce43be2344d7ac20cd4d94d4bc7f08833dda1 /pandoc/center-img.lua | |
| parent | e6e7d9d7d327df6ab6be60147375a116389b578c (diff) | |
| download | unterricht-b3da58a3352dd7d9f9b977695f8f7b3f48d1bcc2.tar.gz unterricht-b3da58a3352dd7d9f9b977695f8f7b3f48d1bcc2.zip | |
introduce a new default beamer template
Diffstat (limited to 'pandoc/center-img.lua')
| -rw-r--r-- | pandoc/center-img.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pandoc/center-img.lua b/pandoc/center-img.lua deleted file mode 100644 index 18782725..00000000 --- a/pandoc/center-img.lua +++ /dev/null @@ -1,20 +0,0 @@ --- Based on: --- https://pandoc.org/lua-filters.html#center-images-in-latex-and-html-output --- Licensed under MIT License found at: --- https://github.com/TomBener/pandoc-templates/blob/05aba224519d8a2b037108948bde0d820860b786/LICENSE - --- Filter images with this function if the target format is LaTeX. -if FORMAT:match('beamer') then - function Image(elem) - -- Surround all images with the 'center' class with image-centering raw LaTeX. - if elem.classes[1] == "center" then - return { - pandoc.RawInline('latex', '\\hfill\\break{\\centering'), - elem, - pandoc.RawInline('latex', '\\par}') - } - else - return elem - end - end -end |
