part of square root latex equation dissappears in pdf rendering from RStudio's rmarkdown

可紊 提交于 2019-12-24 12:22:24

问题


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{)}} $$

this is the result:

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


回答1:


I found the solution to this problem here:

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

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



来源:https://stackoverflow.com/questions/34024137/part-of-square-root-latex-equation-dissappears-in-pdf-rendering-from-rstudios-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!