Tried to post approximately the same content three times, last time omitting any links from the message without success. The message gets deleted. Contents of the last message:
Hi all,
I am trying to center figures on pdf. The main.md has:
![some text](some-figure.png){width=166% #fig:figlabel}
The created .tex file has
\begin{figure}
\hypertarget{fig:figlabel}{%
\centering
\includegraphics[width=1.66\textwidth,height=\textheight]{some-figure.png}
\caption{some text}\label{fig:figlabel}
}
\end{figure}
I read from here (link removed) that a possible solution is to use
\usepackage[export]{adjustbox}[2011/08/13]
in latex preamble and add "center" argument to includegraphics, like so:
\includegraphics[width=1.66\textwidth,height=\textheight, center]{some-figure.png}
I tested it and it works. Now, how would one add arguments to includegraphics from within markdown? Another solution I came up with would include redefining includegraphics in latex preamble to always have the "center" added, but I feel that is a bit hacky. Is there a better way?
Regards,
Niko
On Tuesday, 18 October 2022 at 13:12:25 UTC+3 Niko wrote:
I tried to send to pandoc-discuss, but got automatic message
Message has been deleted
Does this mean that my message was moved to trash, or just simply deleted? I also am sending this message to see if this second message gets delivered.
Apologies, and thanks,
- Niko