scotthartley / pandoc-wrapfig

A simple pandoc filter that facilitates using the wrapfig package.
MIT License
16 stars 10 forks source link

Error " ! Undefined control sequence. " #11

Open hzkonor opened 2 years ago

hzkonor commented 2 years ago

Hello, When I try to run the filter with the command pandoc -o test.pdf file.md --template eisvogel --listings --filter ./pandoc-wrapfig.py (I added the line \usepackage{wrapfig} in my template), I get the following error :

Error producing PDF
! Undefined control sequence.
l.452 ...figure}{r}{0in}\centering\includegraphics 

How can I make the filter work ? Thanks

scotthartley commented 2 years ago

I'm sorry, I don't actually use this all that much myself any more. Are you loading the graphicx package? That might be the problem.