2014-01-06 1 views
3

knitr에서 만든 그림 캡션에 일부 텍스트를 기울임 꼴로 표시하려고합니다. 나는 .Rnw 파일에 아래의 코드를하고 난 knitr 사용하여 .tex 파일로 변환 해요 :knitr에 의해 생성 된 라텍스 그림 캡션에 Italicise 텍스트

<<plot_setosa, fig.cap="A plot of $\\textit{setosa}$">>= 

plot(iris[iris$Species == "setosa",]) 

@ 

이 어떻게 그림 캡션에 setosa을 italicise 수 있습니까?

답변

6

시도해보십시오 $$

에 대한

<<plot_setosa, fig.cap="A plot of \\textit{setosa}">>= 

plot(iris[iris$Species == "setosa",]) 

@ 

필요 없음

관련 문제