首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带RMarkdown的Calligra字体

带RMarkdown的Calligra字体
EN

Stack Overflow用户
提问于 2019-10-05 07:39:14
回答 1查看 65关注 0票数 2

这是我的Rmarkdown代码:

代码语言:javascript
复制
---
title: "My Title"
header-includes:
      - \usepackage{calligra}
      - \usepackage[T1]{fontenc}
output:
  pdf_document:
  latex_engine: xelatex 


---

# Section 1

  This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

我正在研究在Rmarkdown中更改字体的最好方法。在texlive中,会出现已安装的calligra包,同时还会显示calligra type1。

当我使用calligra包运行脚本时,它会生成pdf,但字体与calligra字体不匹配。

当我运行calligra type1的脚本时,甚至没有生成pdf。

有什么帮助吗,伙计们?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-10-07 00:35:40

calligra.sty不会将Calligra设置为默认字体,但您可以通过添加

代码语言:javascript
复制
\renewcommand{\rmdefault}{calligra}

header-includes

顺便说一句,不需要调用fontenc.sty,因为calligra.sty已经这样做了。此外,这里不需要使用xelatex

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58244210

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档