\ xdef \ @ fontenc @ load @ list {\ @ fontenc @ load @ list在Rmarkdown中未定义的控制顺序 [英] \xdef\@fontenc@load@list{\@fontenc@load@list undefined control sequence in Rmarkdown
问题描述
我试图编写一个非常简单的Rmarkdown文件以pdf格式呈现,但是未定义的控制序列出现错误.
I've tried to write a very simple Rmarkdown file to render as pdf, but got an error for an undefined control sequence.
文件:
---
title: "Untitled"
author: "author"
date: "3/2/2020"
output: pdf_document
---
# whatever
fskjflsjflkj
保存为 test.Rmd 并编织(使用按钮)在 R 降价控制台中产生以下输出:
saved as test.Rmd and knit (with the button) produces the following output in the R markdown console:
processing file: test.Rmd
output file: test.knit.md
! Undefined control sequence.
l.115 \xdef\@fontenc@load@list{\@fontenc@load@list
Error: LaTeX failed to compile test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test.log for more info.
Execution halted
以下是相关的 test.log
部分:
Already applied: [0000/00/00] Old fixltx2e package on input line 53.
) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/02/11 v2.0o Standard LaTeX package
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2020/02/11 v2.0o Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
)
LaTeX Font Info: Trying to load font information for T1+lmr on input line 11
2.
(/usr/local/texlive/2019/texmf-dist/tex/latex/lm/t1lmr.fd
File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
! Undefined control sequence.
l.115 \xdef\@fontenc@load@list{\@fontenc@load@list
如果我尝试使用 pdflatex
, lualatex
或 xelatex
进行编译都无所谓,则错误是相同的.
It doesn't matter if I try to compile it with pdflatex
, lualatex
or xelatex
the error is the same.
我正在Ubuntu 18.04机器上进行所有更新和升级(以root身份 tlmgr update之后-自我-全部
.
I'm working on an Ubuntu 18.04 machine with everything updated and upgraded (apt-get update && apt-get upgrade
as root) and after running tlmgr update --self --all
.
如何让Rmarkdown重新编织为pdf?
How can I get Rmarkdown to knit to pdf again?
推荐答案
尝试使用
fmtutil-sys --all
使用那些新的源(用tlmgr更新)重建格式文件.
to rebuilt the format files using those new sources (updated with tlmgr).
这篇关于\ xdef \ @ fontenc @ load @ list {\ @ fontenc @ load @ list在Rmarkdown中未定义的控制顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!