windows – 使用希腊语文本编译.Rnw到pdf
发布时间:2020-12-14 05:27:11 所属栏目:Windows 来源:网络整理
导读:我使用注释掉的代码尝试了它但没有成功.有人可以帮忙吗? documentclass[a4paper]{article}%usepackage[english,greek]{babel}%latintext title{Sweave Example 1}author{George Dontas}begin{document}maketitleIn this example we embed parts of t
我使用注释掉的代码尝试了它但没有成功.有人可以帮忙吗?
documentclass[a4paper]{article} %usepackage[english,greek]{babel} %latintext title{Sweave Example 1} author{George Dontas} begin{document} maketitle In this example we embed parts of the examples from the texttt{kruskal.test} help page into a LaTeX{} document: %greektext Αυτ? ε?ναι κε?μενο στα Ελληνικ? %latintext <<eval=TRUE,echo=TRUE,warning=FALSE,message=FALSE,error=FALSE>>= data(airquality) kruskal.test(Ozone ~ Month,data = airquality) @ which shows that the location parameter of the Ozone distribution varies significantly from month to month. Finally we include a boxplot of the data: begin{center} <<eval=TRUE,echo=FALSE,results='hide',error=FALSE>>= boxplot(Ozone ~ Month,data = airquality) @ end{center} end{document} 解决方法
这里的问题不是R,而是让乳胶与希腊语发挥良好关系.随着帽子提示到
this answer,也许最简单的解决方案是切换到XeLaTeX编译并将文件重写为
documentclass[a4paper]{article} usepackage{fontspec} setmainfont{Times New Roman} setsansfont{Arial} newfontfamilygreekfont[Script=Greek]{Linux Libertine O} newfontfamilygreekfontsf[Script=Greek]{Linux Libertine O} usepackage{polyglossia} setdefaultlanguage{english} setotherlanguage{greek} title{Sweave Example 1} author{George Dontas} begin{document} maketitle Ελληνικ? κε?μενο In this example we embed parts of the examples from the texttt{kruskal.test} help page into a LaTeX{} document: ... 和以前一样.然后用XeLaTeX编译(latexmk -xelatex file.Rnw会这样做). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- ui-automation – Microsoft UI Automation:调用
- windows-8 – 在Windows 8中处理VirtualKey使用C
- 加密 – WinRT流加密
- windows-7 – 在Windows 7中搜索Netapp网络共享
- powershell – Win32_OperatingSystem.FreePhysi
- 如何在Windows(非Java)应用程序中使用Java时区ID
- 如何在Windows上使用OpenSSH证书?
- 默认Microsoft Windows Update Server
- Windows – Qt4自定义窗口框架,如Office 2007?
- windows-server-2008 – 如何在不在域上时规避或
热点阅读