I am struggling to scale an SVG file with R Exams using RStudio on Windows. I would appreciate any help. Here is the SVG file I am using:
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/atom.svg
Here is a complete code:
<<echo=FALSE, results=hide>>=
include_supplement("atom.svg", recursive = TRUE)
@
\begin{question}
What is 2 + 1?
\includegraphics[scale = 0.1]{atom.svg}
\begin{answerlist}
\item 1
\item 2
\item 3
\end{answerlist}
\end{question}
\extype{schoice}
\exsolution{001}
\exshuffle{3}
As far as I can tell the
scale=0.1attribute is not supported byconverter = "ttm"(the default for .Rnw exercises) nor byconverter = "pandoc"or"pandoc-mathjax". However, the latter supports thewidth=attribute. So both of the following work correctly with pandoc:or
For example, with the latter we get: