
TinyTex下载安装前面有提到要生成Latex Beamer风格的演示文档需要用到pandoc来进行转译而pandoc转为tex之后又需要通过xelatex来进行编译构建所以我们还是需要一个latex的编译器。而TinyTex是一个不错的选择它的大包中就包含了xelatex所以我们可以直接从tinytex-releases这个开源的release项目中下载最新版本的TinyTex安装包。需要注意的是这里每一个平台都提供了三个安装包选项我们选择体积最大的那个即可。下载解压缩运行之后要把这个bin/windows的路径添加到系统路径中。如果配置正确在Power Shell中应该可以运行得到xelatex --versionXeTeX 3.141592653-2.6-0.999998 (TeX Live 2026)kpathsea version 6.4.2Copyright 2026 SIL International, Jonathan Kew and Khaled Hosny.There is NO warranty. Redistribution of this software iscovered by the terms of both the XeTeX copyright andthe Lesser GNU General Public License.For more information about these matters, see the filenamed COPYING and the XeTeX source.Primary author of XeTeX: Jonathan Kew.Compiled with ICU version 78.2; using 78.2Compiled with zlib version 1.3.2; using 1.3.2Compiled with FreeType2 version 2.14.1; using 2.14.1Compiled with Graphite2 version 1.3.14; using 1.3.14Compiled with HarfBuzz version 12.3.2; using 12.3.2Compiled with libpng version 1.6.55; using 1.6.55Compiled with pplib version v2.2Compiled with fontconfig version 2.15.0; using 2.15.0Ctex中文支持像latex这样的产品对于中文的直接支持还是差一点有可能编译出来会是一个方框。如果需要中文支持的话可以按照如下方式装一个ctextlmgr update --selftlmgr.pl: package repository https://tlnet.yihui.org (not verified: gpg unavailable)tlmgr.pl: Preparing TeX Live infrastructure update…DO NOT CLOSE THIS WINDOW!TeX Live infrastructure update in progress …Detailed command logging to “S:\TinyTex\TinyTeX\temp\update-self.log”self update: texlive.infra (79365 - 79511)Infrastructure update finished successfully.You may now close this window.tlmgr install ctextlmgr.pl: package repository https://tlnet.yihui.org (not verified: gpg unavailable)[1/44, ??:??/??:??] install: adobemapping [2128k][2/44, 00:04/02:37] install: arphic [26742k][3/44, 00:23/01:06] install: chinese-jfm [3k][4/44, 00:24/01:09] install: cjk [58k][5/44, 00:25/01:12] install: cjkpunct [4k][6/44, 00:26/01:15] install: cns [2916k][7/44, 00:32/01:24] install: ctablestack [2k][8/44, 00:33/01:26] install: ctex [131k][9/44, 00:34/01:29] install: everyhook [3k][10/44, 00:34/01:29] install: fandol [21077k][11/44, 00:44/01:09] install: fonts-tlwg [4932k][12/44, 00:47/01:07] install: garuda-c90 [4k][13/44, 00:49/01:10] install: l3backend-dev [17k][14/44, 00:49/01:10] install: l3kernel-dev [187k][15/44, 00:51/01:13] install: latex-base-dev [258k][16/44, 00:52/01:14] install: latex-firstaid-dev [5k][17/44, 00:53/01:15] install: luatexbase [4k][18/44, 00:54/01:17] install: luatexja [196k][19/44, 00:55/01:18] install: mptopdf.windows [3k][20/44, 00:55/01:18] install: mptopdf [37k][21/44, 00:56/01:19] install: norasi-c90 [9k][22/44, 00:57/01:21] install: platex.windows [3k][23/44, 00:58/01:22] install: platex [42k][24/44, 00:58/01:22] install: platex-tools [9k][25/44, 00:59/01:24] install: ptex.windows [1156k][26/44, 01:01/01:25] install: ptex [1k][27/44, 01:01/01:25] install: ptex-base [10k][28/44, 01:02/01:26] install: ptex-fonts [14k][29/44, 01:03/01:28] install: ttfutils.windows [519k][30/44, 01:04/01:28] install: ttfutils [107k][31/44, 01:05/01:29] install: uhc [3516k][32/44, 01:16/01:39] install: uplatex.windows [3k][33/44, 01:17/01:40] install: uplatex [15k][34/44, 01:18/01:41] install: uptex.windows [1398k][35/44, 01:19/01:41] install: uptex [1k][36/44, 01:20/01:42] install: uptex-base [10k][37/44, 01:22/01:44] install: uptex-fonts [165k][38/44, 01:23/01:45] install: wadalab [17357k][39/44, 01:39/01:39] install: xcjk2uni [196k][40/44, 01:41/01:41] install: xecjk [231k][41/44, 01:42/01:42] install: xpinyin [197k][42/44, 01:43/01:43] install: zhmetrics [59k][43/44, 01:47/01:47] install: zhmetrics-uptex [31k][44/44, 01:47/01:47] install: zhnumber [9k]running mktexlsr …done running mktexlsr.running updmap-sys …done running updmap-sys.regenerating fmtutil.cnf in S:/TinyTex/TinyTeX/texmf-distrunning fmtutil-sys --byengine euptex --no-error-if-no-format --no-error-if-no-engineluametatex,luajithbtex,luajittex,mfluajit,xetex --status-fileC:\Users\dechi\AppData\Local\Temp\YhLR1fpn3j\ENydfFIEH2 …OK: euptex.fmt/euptex uptex.fmt/euptex uplatex.fmt/euptex platex-dev.fmt/euptex ptex.fmt/euptex eptex.fmt/euptex platex.fmt/euptex uplatex-dev.fmt/euptexrunning fmtutil-sys --byfmt mptopdf --no-error-if-no-engineluametatex,luajithbtex,luajittex,mfluajit,xetex --status-fileC:\Users\dechi\AppData\Local\Temp\YhLR1fpn3j\ENydfFIEH2 …OK: euptex.fmt/euptex uptex.fmt/euptex uplatex.fmt/euptex platex-dev.fmt/euptex ptex.fmt/euptex eptex.fmt/euptex platex.fmt/euptex uplatex-dev.fmt/euptex mptopdf.fmt/pdftextlmgr.pl: package log updated: S:/TinyTex/TinyTeX/texmf-var/web2c/tlmgr.logtlmgr.pl: command log updated: S:/TinyTex/TinyTeX/texmf-var/web2c/tlmgr-commands.logZettlr Beamer格式配置重启Zettlr配置一个Beamer输出格式内容为reader: markdownwriter: beamerpdf-engine: xelatexvariables:documentclass: beamerclassoption: aspectratio169就可以编译出Beamer格式的pdf了这个演示文档所对应的Markdown原文内容为title: “My Beamer”author: “Dechin”institute: “My Institute”date: “2025-01-20”documentclass: beamerheader-includes:\usetheme{Dresden}\usepackage{ctex}MarkdownThis is an Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.When you click theKnitbutton a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.Slide with BulletsBullet 1Bullet 2Bullet 3Slide with Python Outputpythonimport numpy as npprint (‘This is a python code block’)Slide with EquationTest Equation input− i ℏ ∂ ∂ t ∣ ψ E ∣ ψ -i\hbar\frac{\partial}{\partial t}\left|\psi\rightE\left|\psi\right−iℏ∂t∂∣ψ⟩E∣ψ⟩总结概要