在R中,我使用expression(theta[l])
,以便我的绘图轴的标签与LaTeX中的$\theta_l$
相同。出于美观的原因,我宁愿显示$\theta_\ell$
。你可以帮我吗?轴标签中的数学表达式
编辑
之前,我做了
plot(1:10, 1:10, xlab=expression(theta[l]))
,我在PDF导出的结果图像。然后,使用
\begin{figure}[htbp]
\centerline{\includegraphics[scale=.6]{test.pdf}}
\end{figure}
我的照片被插入LaTeX。
继评论,这里是我现在做的事:
require(tikzDevice)
tikz("test.tex", standAlone=TRUE, width=5, height=5)
plot(1:10, 1:10, xlab="$\\theta_\\ell$")
dev.off()
tools::texi2pdf('test.tex')
system(paste(getOption('pdfviewer'),'test.pdf'))
然而,当我插入乳胶resuling情节,图的质量没有以前好了。还有什么我可以做的吗?
@agstudy:Windows。 Linux对我来说也很好。 – Marco 2013-03-18 15:32:49
@Sven Hohenstein:谢谢你的照片:-) – Marco 2013-03-18 15:47:20
Is [this](http://stackoverflow.com/questions/8190087/italic-greek-letters-latex-style-math-in-plot-titles/8190537# 8190537)你在找什么? – plannapus 2013-03-18 15:51:23