如何从代码块中获取IEEE rticles模板中的双栏浮动图形?
我正在使用如何从代码块中获取IEEE rticles模板中的双栏浮动图形?,r,latex,r-markdown,ieee,rticles,R,Latex,R Markdown,Ieee,Rticles,我正在使用rticles包中的“IEEE交易”模板进行R降价。我想有一个2图像的数字,跨越整个页面宽度。然而,似乎没有办法从R代码块中实现这一点。出现了各种错误,例如,当我尝试使用“行业标准”(AFAIK)方法进行R降价时: {r TestGraphic, echo=F, out.width='49%', fig.show='hold'} knitr::include_graphics(c("Test1.jpg","Test2.jpg")) 将上述块插入
rticles
包中的“IEEE交易”模板进行R降价。我想有一个2图像的数字,跨越整个页面宽度。然而,似乎没有办法从R代码块中实现这一点。出现了各种错误,例如,当我尝试使用“行业标准”(AFAIK)方法进行R降价时:
{r TestGraphic, echo=F, out.width='49%', fig.show='hold'}
knitr::include_graphics(c("Test1.jpg","Test2.jpg"))
将上述块插入到标准IEEE rticles框架中,无需额外修改,我会得到以下错误:
! Undefined control sequence.
l.524 \includegraphics
[width=0.49\linewidth]{Test1}
生成的LaTeX代码如下所示:
\includegraphics[width=0.49\linewidth]{Test1}
\includegraphics[width=0.49\linewidth]{Test2}
这与模板描述多列图形的方式完全不同:
\begin{figure*}[!t]
\centering
\subfloat[Case I]{\includegraphics[width=2.5in]{box}%
\label{fig_first_case}}
\hfil
\subfloat[Case II]{\includegraphics[width=2.5in]{box}%
\label{fig_second_case}}
\caption{Simulation results for the network.}
\label{fig_sim}
\end{figure*}
因此,问题是: