blob: 2f3a140e8b6382ccf114e9f8957662f15a41e988 (
plain)
- -- Disable indentation when a paragraph exclusively contains an image
- local noindent = pandoc.RawInline('latex', [[
- \noindent
- ]])
- function Para(elem)
- if FORMAT:match 'latex' then
- if elem.content[1].t == 'Image' then
- new_elem = elem
- new_elem.content:insert(1, noindent)
- return new_elem
- end
- end
- end
|