Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.01k stars 957 forks source link

How to add a frame to the report images #295

Open Marmeus opened 2 years ago

Marmeus commented 2 years ago

Hello everyone,

I would like to only add a frame to the images inserted in the body of the report. However, using these lines of code I get every image with a frame, and that includes header and background images.

    \let\includegraphicsbak\includegraphics
    \renewcommand*{\includegraphics}[2][]{\includegraphicsbak[frame,#1]{#2}}

Is there any workaround to make this possible?

Thanks beforehand.