Zh-beamer
Zh-beamer copied to clipboard
Missing input file: 'xecjk.sty' from line
根据博主的方法安装了相关的包:miktex、pandoc。只是我安装在ubuntu 16.04上。但是最后运行的结果出现一下错误:
Latexmk: Errors, so I did not complete making targets
===========Latexmk: Missing input file: 'xecjk.sty' from line
'! LaTeX Error: File xecjk.sty' not found.' Latexmk: Missing input file: 'xecjk.sty' from line '! LaTeX Error: File
xecjk.sty' not found.'
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 1
Refer to 'test.log' for details
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs of latex/pdflatex.
! LaTeX Error: File `xecjk.sty' not found.
@huangteng1220 这个都是两年前的东西了,准备弃坑。你的主要原因是没有让miktex自动下载,你可以手动用 miktex 的package manager下载 xecjk.也可以参照这里: https://yihui.name/en/2018/03/miktex-auto-install/
Miktex 是推荐在Windows上面使用的。你可以看看谢益辉的新包,tinytex,能完美解决这个问题。https://yihui.name/tinytex/cn/
我在readme 里面也提过的: https://github.com/BruceZhaoR/Zh-beamer#for-chinese-pdf
@huangteng1220 我看到你也fork了这个,https://github.com/yufree/Chinese-Beamer-Using-Rmarkdown/blob/a542b20e604b13210cb3deaae3df3947710b234b/default.tex#L21
参考链接:https://yufree.cn/notes/tex.html#xetex
我安装了tinytex,还是报错。不过,我是保留了MacTex,会不会两个产生了冲突?谢谢!
我觉得应该是,yihui在tinytex安装文档里面好像说过会冲突。你看你终端能不能敲 tlmgr list --only-installed 相关命令 ,例如tlmgr search --file --global '/xecjk.sty'。 可以参考镜像网站相关设置,下载更快 https://mirrors.tuna.tsinghua.edu.cn/help/CTAN/
我在终端能敲 tlmgr list --only-installed ,报告的内容有:
... i xcolor: Driver-independent color extensions for LaTeX and pdfLaTeX i xecjk: Support for CJK documents in XeLaTeX i xetex: An extended variant of TeX for use with Unicode sources i xetex.x86_64-darwin: x86_64-darwin files of xetex i xetexconfig: crop.cfg for XeLaTeX i xkeyval: Extension of the keyval package
...
然后, ~ steve$ tlmgr search --file --global '/xecjk.sty' TeX Live 2018 is frozen forever and will no longer be updated. This happens in preparation for a new release.
If you're interested in helping to pretest the new release (when pretests are available), please read https://tug.org/texlive/pretest.html. Otherwise, just wait, and the new release will be ready in due time. tlmgr: package repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable)
也不知道是不是就是冲突带来的。
终端:
where tlmgr
tlmgr search --file --global "/xecjk"
tlmgr info --list --only-installed --data name,size
R:
library(tinytex)
tinytex:::tinytex_root()
tlmgr_search("/xecjk")
tl_sizes()
@Ganzeb 解决了吗?
tlmgr_search("/xecjk") tlmgr search --file --global '/xecjk' TeX Live 2018 is frozen forever and will no longer be updated. This happens in preparation for a new release.
If you're interested in helping to pretest the new release (when pretests are available), please read https://tug.org/texlive/pretest.html. Otherwise, just wait, and the new release will be ready in due time. tlmgr: package repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) 00texlive.image: tlpkg/tlpsrc/xecjk.tlpsrc xecjk: texmf-dist/doc/xelatex/xecjk/README.md texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKecglue.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CJKfntef.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-CM.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-autofake.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-checksingle.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-fallback.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-listings.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-mathblock.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-punctstyle.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-subCJKblock.tex texmf-dist/doc/xelatex/xecjk/example/xeCJK-example-verbatim.tex texmf-dist/doc/xelatex/xecjk/xeCJK.pdf texmf-dist/doc/xelatex/xecjk/xunicode-combine-marks.tex texmf-dist/doc/xelatex/xecjk/xunicode-commands.tex texmf-dist/doc/xelatex/xecjk/xunicode-symbols.pdf texmf-dist/doc/xelatex/xecjk/xunicode-symbols.tex texmf-dist/fonts/misc/xetex/fontmapping/xecjk/full-stop.map texmf-dist/fonts/misc/xetex/fontmapping/xecjk/full-stop.tec texmf-dist/fonts/misc/xetex/fontmapping/xecjk/fullwidth-stop.map texmf-dist/fonts/misc/xetex/fontmapping/xecjk/fullwidth-stop.tec texmf-dist/fonts/misc/xetex/fontmapping/xecjk/han-simp.map texmf-dist/fonts/misc/xetex/fontmapping/xecjk/han-simp.tec texmf-dist/fonts/misc/xetex/fontmapping/xecjk/han-trad.map texmf-dist/fonts/misc/xetex/fontmapping/xecjk/han-trad.tec texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty texmf-dist/tex/xelatex/xecjk/xeCJK.cfg texmf-dist/tex/xelatex/xecjk/xeCJK.sty texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty texmf-dist/tex/xelatex/xecjk/xunicode-extra.def texmf-dist/source/xelatex/xecjk/xeCJK.dtx texmf-dist/source/xelatex/xecjk/xeCJK.ins
tl_sizes() tlmgr info --list --only-installed --data name,size The total size is 253.1 Mb package size size_h 1 lm 43601920 41.6 Mb 2 arphic 35659776 34 Mb 3 wadalab 25649152 24.5 Mb 4 xetex.x86_64-darwin 25096192 23.9 Mb 5 luatex.x86_64-darwin 24866816 23.7 Mb 6 uhc 17108992 16.3 Mb 7 cns 10854400 10.4 Mb 8 fonts-tlwg 9281536 8.9 Mb 9 amsfonts 7696384 7.3 Mb 10 luaotfload 7290880 7 Mb 11 pgf 5996544 5.7 Mb 12 ec 5918720 5.6 Mb 13 tipa 4489216 4.3 Mb 14 babel 3350528 3.2 Mb 15 oberdiek 2863104 2.7 Mb 16 pdftex.x86_64-darwin 2441216 2.3 Mb 17 helvetic 2433024 2.3 Mb 18 unicode-data 2322432 2.2 Mb 19 latex 1691648 1.6 Mb 20 palatino 1589248 1.5 Mb 21 cm 1392640 1.3 Mb 22 plain 1376256 1.3 Mb 23 times 1372160 1.3 Mb 24 inconsolata 1302528 1.2 Mb 25 cjk 1204224 1.1 Mb 26 l3kernel 1171456 1.1 Mb 27 texlive.infra.x86_64-darwin 1105920 1.1 Mb 28 beamer 1032192 1008 Kb 29 texlive.infra 1011712 988 Kb 30 dvipdfmx.x86_64-darwin 991232 968 Kb 31 metafont.x86_64-darwin 983040 960 Kb 32 hyperref 962560 940 Kb 33 lualibs 737280 720 Kb 34 mfware.x86_64-darwin 626688 612 Kb 35 tex.x86_64-darwin 548864 536 Kb 36 xecjk 532480 520 Kb 37 tetex 520192 508 Kb 38 translator 454656 444 Kb 39 psnfss 450560 440 Kb 40 dvips.x86_64-darwin 393216 384 Kb 41 dvips 380928 372 Kb 42 latexmk 380928 372 Kb 43 tools 364544 356 Kb 44 fontspec 327680 320 Kb 45 amscls 323584 316 Kb 46 pdftex 266240 260 Kb 47 latex-fonts 249856 244 Kb 48 dehyph 233472 228 Kb 49 caption 217088 212 Kb 50 bibtex 208896 204 Kb 51 kpathsea 208896 204 Kb 52 xunicode 208896 204 Kb 53 bibtex.x86_64-darwin 204800 200 Kb 54 amsmath 196608 192 Kb 55 knuth-lib 192512 188 Kb 56 kpathsea.x86_64-darwin 180224 176 Kb 57 mathpazo 167936 164 Kb 58 dvipdfmx 163840 160 Kb 59 l3packages 159744 156 Kb 60 luatex 151552 148 Kb 61 makeindex.x86_64-darwin 147456 144 Kb 62 metafont 147456 144 Kb 63 natbib 135168 132 Kb 64 graphics 126976 124 Kb 65 titlesec 122880 120 Kb 66 xkeyval 114688 112 Kb 67 glyphlist 98304 96 Kb 68 gsftopk.x86_64-darwin 98304 96 Kb 69 hyphen-base 98304 96 Kb 70 zapfding 98304 96 Kb 71 graphics-def 86016 84 Kb 72 xcolor 81920 80 Kb 73 tetex.x86_64-darwin 77824 76 Kb 74 fancyvrb 69632 68 Kb 75 euenc 57344 56 Kb 76 etoolbox 49152 48 Kb 77 ms 49152 48 Kb 78 etex 45056 44 Kb 79 geometry 45056 44 Kb 80 mathspec 45056 44 Kb 81 latexconfig 40960 40 Kb 82 norasi-c90 40960 40 Kb 83 makeindex 36864 36 Kb 84 tex-ini-files 32768 32 Kb 85 framed 24576 24 Kb 86 garuda-c90 24576 24 Kb 87 setspace 24576 24 Kb 88 xetex 24576 24 Kb 89 fancyhdr 20480 20 Kb 90 lastpage 16384 16 Kb 91 latex-bin.x86_64-darwin 16384 16 Kb 92 mfware 16384 16 Kb 93 url 16384 16 Kb 94 parskip 12288 12 Kb 95 abstract 8192 8 Kb 96 booktabs 8192 8 Kb 97 graphics-cfg 8192 8 Kb 98 gsftopk 8192 8 Kb 99 ifluatex 8192 8 Kb 100 titling 8192 8 Kb 101 iftex 4096 4 Kb 102 ifxetex 4096 4 Kb 103 latexmk.x86_64-darwin 4096 4 Kb 104 luaotfload.x86_64-darwin 4096 4 Kb 105 upquote 4096 4 Kb 106 xetexconfig 4096 4 Kb 107 latex-bin 0 0 bytes 108 scheme-infraonly 0 0 bytes 109 tex 0 0 bytes
@Ganzeb 看起来没有问题啊,可以看看 https://github.com/rstudio/rticles 的 CTex模板, 跑通中文的基本上就可以了。
哎,还是不行,算了。
另外,再求教个问题,在Rmarkdown中调用beaver做slides,当我插入图片的时候,用什么命令?我记得Yihui的xaringan用的是
background-image: url(boring.jpg) background-position: 85% 95% background-size: 300px
之类的设定。如果要自己写,是不是得在.tex或.letex模板中设定?谢谢!
Xiaoguang
范曉光 博士 浙江大學社會學系 副教授 Xiaoguang FAN (Ph.D.) Associate Professor Department of Sociology, Zhejiang University Zijingang Campus, No.866, Yuhangtang Road, Hangzhou, P.R.China E-mail: [email protected] Website: http://person.zju.edu.cn/en/steve https://orcid.org/0000-0002-1324-3138
本邮件及其附件含有发送给特定个人和用于特定目的的保密信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。 This email and its attachments may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this email and notify the sender immediately. Any use, dissemination, distribution, or copying of this email or its attachments by persons other than the intended recipient(s), is strictly prohibited.
On Apr 13, 2019, at 21:22, BruceZhao [email protected] wrote:
@Ganzeb https://github.com/Ganzeb 看起来没有问题啊,可以看看 https://github.com/rstudio/rticles https://github.com/rstudio/rticles 的 CTex模板, 跑通中文的基本上就可以了。
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BruceZhaoR/Zh-beamer/issues/1#issuecomment-482808746, or mute the thread https://github.com/notifications/unsubscribe-auth/AhQ2tyrj1qpuUEN7pFDLuJ9fF5vYOEA2ks5vgdoPgaJpZM4Tzksg.
建议你把其他版本的tex完全卸载了,只用tinytex。
@Ganzeb rmarkdown 插入图片 就是markdown语法 
, 你可以用 knitr的函数 knitr::include_graphics()
The major advantage of using this function is that it is portable in the sense that it works for all document formats that knitr supports, so you do not need to think if you have to use, for example, LaTeX or Markdown syntax, to embed an external image. Chunk options related to graphics output that work for normal R plots also work for these images, such as out.width and out.height.
参考: https://bookdown.org/yihui/rmarkdown/r-code.html#figures
收到,感谢!我试一试,另外,我也找到个网页,可以按图索骥。http://zevross.com/blog/2017/06/19/tips-and-tricks-for-working-with-images-and-figures-in-r-markdown-documents/ http://zevross.com/blog/2017/06/19/tips-and-tricks-for-working-with-images-and-figures-in-r-markdown-documents/。
再次感谢!
Xiaoguang
范曉光 博士 浙江大學社會學系 副教授 Xiaoguang FAN (Ph.D.) Associate Professor Department of Sociology, Zhejiang University Zijingang Campus, No.866, Yuhangtang Road, Hangzhou, P.R.China E-mail: [email protected] Website: http://person.zju.edu.cn/en/steve https://orcid.org/0000-0002-1324-3138
本邮件及其附件含有发送给特定个人和用于特定目的的保密信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。 This email and its attachments may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this email and notify the sender immediately. Any use, dissemination, distribution, or copying of this email or its attachments by persons other than the intended recipient(s), is strictly prohibited.
On Apr 14, 2019, at 14:40, BruceZhao [email protected] wrote:
@Ganzeb https://github.com/Ganzeb rmarkdown 插入图片 就是markdown语法
, 你可以用 knitr的函数 knitr::include_graphics()
The major advantage of using this function is that it is portable in the sense that it works for all document formats that knitr supports, so you do not need to think if you have to use, for example, LaTeX or Markdown syntax, to embed an external image. Chunk options related to graphics output that work for normal R plots also work for these images, such as out.width and out.height.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BruceZhaoR/Zh-beamer/issues/1#issuecomment-482924321, or mute the thread https://github.com/notifications/unsubscribe-auth/AhQ2t7kKfJjSu7jVRK7ZfWNu7y37PXOrks5vgs1HgaJpZM4Tzksg.
我遇到相同的问题。解决方法很简单,将beamer_default.tex文件中的
\usepackage{xecjk} 改为: \usepackage{xeCJK} 即可。
我用的是Mac, TeX Live。
Cheers
我还是不行
From iPhone 100s
在 2019年7月20日,05:31,evolgeniusteam [email protected] 写道:
我遇到相同的问题。解决方法很简单,将beamer_default.tex文件中的
\usepackage{xecjk} 改为: \usepackage{xeCJK} 即可。
我用的是Mac, TeX Live。
Cheers
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.