RStudio的rmarkdown在pdf渲染中不显示平方根乳胶方程的一部分 [英] part of square root latex equation dissappears in pdf rendering from RStudio's rmarkdown

查看:140
本文介绍了RStudio的rmarkdown在pdf渲染中不显示平方根乳胶方程的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用此代码在我的pdf文档(由rmarkdown渲染)中制作平方根时:

When I use this code to make a square root in my pdf document (rendered by rmarkdown):

---
title: "Test"
author: "test test"
geometry: margin=1in
output:
  pdf_document:
    keep_tex: yes
    latex_engine: xelatex
    number_sections: yes
    toc: yes
    toc_depth: 3
  html_document:
    css: tables.css
    number_sections: yes
    theme: cerulean
    toc: yes
    toc_depth: 3
header-includes:
- \usepackage[dutch]{babel}
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \fancyfoot[LE,RO]{this is a fancy foot}
- \usepackage{dcolumn}
- \usepackage{here}
- \usepackage{longtable}
- \usepackage{caption}
- \captionsetup{skip=2pt,labelsep=space,justification=justified,singlelinecheck=off}
subtitle: test test test
fontsize: 12pt
---

$$ S_E\text{=}S_x\sqrt{\text{(}\text{1}\text{-}r_{xx}\text{)}} $$

这是结果:

注意看起来很奇怪的平方根.有人知道我的代码出了什么问题吗?

Notice the strange looking square root. Does anyone know what's going wrong here in my code?

推荐答案

我在这里找到了解决此问题的方法:

I found the solution to this problem here:

https://tex.stackexchange.com/questions/210153/pdftex -font-expansion-error-compilation

在目录C:\Program Files\MiKTeX 2.9\miktex\bin\x64中,我运行了updmap.exe.之后问题解决了.

In the directory C:\Program Files\MiKTeX 2.9\miktex\bin\x64 I ran updmap.exe. After that the problem was solved.

这篇关于RStudio的rmarkdown在pdf渲染中不显示平方根乳胶方程的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆