问题描述
我试图在Rmarkdown中编写一些投影仪幻灯片。由于投影机幻灯片需要包含一些汉字,因此我必须指定xelatex作为乳胶引擎。
但是,最近我发现xelatex引擎有问题(一个月前没有出现问题):当使用xelatex作为乳胶引擎时,投影仪幻灯片中的逐项项目符号消失了。
有人知道如何解决此问题吗?
下面是一个最小的工作示例:
---
title: trial doc
institute: |
| Department trial
| trial Education
Date: "17 October 2020"
output:
beamer_presentation:
theme: "CambridgeUS"
colortheme: "dolphin"
slide_level: 3
latex_engine: xelatex
df_print: kable
classoption: "aspectratio=169"
fontsize: 10pt
mainfont: Times New Roman
header-includes:
- \setbeamercolor{frametitle}{bg=white}
- \usepackage{ctex}
- \AtBeginSubsection{}
- \AtBeginSection{}
- \setbeamerfont{frametitle}{series=\bfseries}
- \AtBeginDocument{\title[xxx]{xxxxx}}
- \AtBeginDocument{\institute[xxxxx]{\\Department of xxx\\xxx}}
- \AtBeginDocument{\author[xxxxxx]{XXX}}
---
\frametitle{Outline}
\tableofcontents
# 欢迎
\frametitle{\textbf{Welcome}}
some text
some Chinese text 你好
trying to itemize:
- Hello
- subitem
trying some numbered list:
1. hello
2. hello
我得到的输出如下:
当我尝试将pdflatex用作乳胶引擎(在这种情况下,我无法使用ctex程序包,并且无法在我的投影仪幻灯片中包含汉字)时,逐项列出和编号列表的效果很好。
真的很感谢有人可以帮助我!
解决方法
正如上面@ samcarter_is_at_topanswers.xyz提供的那样,我通过遵循github.com/pgf-tikz/pgf/issues/928#issuecomment-700690532中的步骤解决了这个问题。