平方根乳胶方程的一部分在 RStudio rmarkdown 的 pdf 渲染中消失了
part of square root latex equation dissappears in pdf rendering from RStudio's rmarkdown
当我使用此代码在我的 pdf 文档(由 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{)}} $$
这是结果:
注意奇怪的平方根。有谁知道我的代码哪里出了问题?
我在这里找到了这个问题的解决方案:
https://tex.stackexchange.com/questions/210153/pdftex-font-expansion-error-during-compilation
目录C:\Program Files\MiKTeX 2.9\miktex\bin\x64
我运行updmap.exe。之后问题就解决了。
当我使用此代码在我的 pdf 文档(由 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{)}} $$
这是结果:
注意奇怪的平方根。有谁知道我的代码哪里出了问题?
我在这里找到了这个问题的解决方案:
https://tex.stackexchange.com/questions/210153/pdftex-font-expansion-error-during-compilation
目录C:\Program Files\MiKTeX 2.9\miktex\bin\x64
我运行updmap.exe。之后问题就解决了。