召集壮士帮忙测试 TinyTeX
- 已编辑
要不是测这个,我都没发现"/usr/local/texlive"里存着14-16年十几G的 texlive 尸体
macOS下尝试了下 rticles 里面 acs 的模版,搜索安装了四个包之后可正常编译。就是这个搜索不知道能否精确匹配,搜 tlmgr_search('float.sty') 返回来一堆,其实精确匹配只有一个。
非常棒,简单实用!
- 已编辑
Compare the way to uninstall TinyTeX with the ways to uninstall other LaTeX distributions, and you may appreciate how much simpler it is to get rid of TinyTeX than other LaTeX distributions. That is because TinyTeX is just a self-contained folder.
卸载 TeX Live 和 MacTeX 都很麻烦(东一个文件夹西一个文件夹,装起来容易,卸起来跟躲猫猫似的)。相比之下,只有 MiKTeX 是良心软件。
yufree 哈哈,突然多出来十几 G 的硬盘空间,应该很开森。这也印证了我的猜测:多数 TeXLive 用户压根儿就不会专门保留一年又一年的安装,而且他们都不知道原来每年都有一个文件夹。
如果你按照我这篇刚写完的博客安装 rmarkdown 的话,你搜都不用搜,全自动化安装缺失的包(是精确搜索):https://yihui.name/en/2017/12/test-tinytex/ 关于精确搜索,我在文档 ?tinytex::tlmgr_search
中给了例子了,你可能没看见。
- 已编辑
It is fxxking awesome! :sign_of_the_horns:
目前用下来很棒
- 已编辑
初步测试报告来了!
先说总结
我电脑里之所以还保留着 LaTeX 没删,全是因为 bookdown 的存在。所以,我就测试了 bookdown 下编译 pdf 文档的效果。bookdownplus 里目前有三十个模板(这里顺便给 bookdownplus 做个广告),足够折腾 tinytex 了。
保险起见,我先在 Ubuntu 下面试用了一下 tinytex。(Windows 的测试随后就来——因为我的 CTeX 从两小时前开始卸载,到现在卸载进度条还没走完。)安装非常快!两三分钟。
我测试了 bookdownplus 里的四个 LaTeX 模板,其中三个英/德文模板,一个中文模板。两个模板直接通过,爽爽的;中文模板在补充安装了一系列包后成功通过;德语模板尚未搞定。
建议:
1. latexmk()
函数的自动安装 latex 包功能很棒!希望能融合到bookdown::render_book()
函数里。
2. 除了根据缺包信息自动安装,latexmk()
函数最好还能根据缺字体的信息来自动安装。
下面是详情。
测试环境
咦?我的R版本怎么这么低?不知道 Ubuntu 下怎么升级……
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=de_AT.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_AT.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=de_AT.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=de_AT.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tinytex_0.0.10 bookdownplus_1.4.1
loaded via a namespace (and not attached):
[1] bookdown_0.5 Rcpp_0.12.13 digest_0.6.12 withr_2.0.0 rprojroot_1.2 R6_2.2.2 jsonlite_1.5 backports_1.1.1
[9] git2r_0.19.0 magrittr_1.5 evaluate_0.10.1 httr_1.3.1 stringi_1.1.5 curl_3.0 rstudioapi_0.7 rmarkdown_1.6
[17] devtools_1.13.3 tools_3.2.3 stringr_1.2.0 yaml_2.1.15 memoise_1.1.0 htmltools_0.3.6 knitr_1.17
测试过程
安装
很快,两三分钟完成。
两个直接通过的模板
R 里运行:
bookdownplus::bookdownplus(template = 'yihui_mini')
bookdownplus::bookdownplus(template = 'yihui_demo')
直接编译通过。
bookdownplus::bookdownplus()
函数其实就是先对模板进行个性化设置,然后调用bookdown::render_book()
函数。
中文模板
开始是缺包,于是手动安装。
bookdownplus(template = 'yihui_zh')
# ! LaTeX Error: File `ctexbook.cls' not found.
# 于是找并安装:
tlmgr_search('ctexbook.cls')
## tlmgr search --file --global 'ctexbook.cls'
## tlmgr: package repository http://mirror.easyname.at/ctan/systems/texlive/tlnet (verified)
## ctex:
## texmf-dist/tex/latex/ctex/ctexbook.cls
tlmgr_install('ctex')
# 再来:
bookdownplus(template = 'yihui_zh')
## ! LaTeX Error: File `everysel.sty' not found.
# 再找和安装
tlmgr_search('everysel.sty')
## tlmgr search --file --global 'everysel.sty'
## tlmgr: package repository http://mirror.easyname.at/ctan/systems/texlive/tlnet (verified)
## ms:
## texmf-dist/tex/latex/ms/everysel.sty
## platex-tools:
## texmf-dist/tex/latex/platex-tools/pxeverysel.sty
tlmgr_install('ms')
# 再来:
bookdownplus(template = 'yihui_zh')
## ! LaTeX Error: File `xeCJK.sty' not found.
tlmgr_search('xeCJK.sty')
## tlmgr search --file --global 'xeCJK.sty'
## tlmgr: package repository http://mirror.easyname.at/ctan/systems/texlive/tlnet (verified)
## xecjk:
## texmf-dist/tex/xelatex/xecjk/xeCJK.sty
tlmgr_install('xecjk')
# 再来:
bookdownplus(template = 'yihui_zh')
## ! LaTeX Error: File `ulem.sty' not found.
tlmgr_search('ulem.sty')
# tlmgr search --file --global 'ulem.sty'
# tlmgr: package repository http://mirror.easyname.at/ctan/systems/texlive/tlnet (verified)
# cjk:
# texmf-dist/tex/latex/cjk/texinput/CJKulem.sty
# lwarp:
# texmf-dist/tex/latex/lwarp/lwarp-ulem.sty
# ulem:
# texmf-dist/tex/generic/ulem/ulem.sty
# zhspacing:
# texmf-dist/tex/xelatex/zhspacing/zhulem.sty
tlmgr_install('ulem')
# 再来:
bookdownplus(template = 'yihui_zh')
# ! LaTeX Error: File `environ.sty' not found.
tlmgr_search('environ.sty')
# tlmgr search --file --global 'environ.sty'
# tlmgr: package repository http://mirror.easyname.at/ctan/systems/texlive/tlnet (verified)
# environ:
# texmf-dist/tex/latex/environ/environ.sty
# interfaces:
# texmf-dist/tex/latex/interfaces/interfaces-environ.sty
# ltxtools:
# texmf-dist/tex/latex/ltxtools/ltxtools-environ.sty
# newenviron:
# texmf-dist/tex/latex/newenviron/newenviron.sty
tlmgr_install('environ')
走到这里,觉得不对劲,不是说可以自动安装么……哦,我用的是 bookdown,不是 latexmk()
!
于是改用 latexmk()
去编译 bookdown 生成的 tex 文件:
latexmk('yihui_zh.tex', engine = 'xelatex')
# The font "FandolSong-Regular" cannot be found.
字体缺失。需要安装 fandol 包:
tlmgr_install('fandol')
latexmk('yihui_zh.tex', engine = 'xelatex')
至此,中文模板成功通过。
建议:
1. latexmk()
函数的自动安装 latex 包功能很棒!希望能融合到bookdown::render_book()
函数里。
2. 除了根据缺包信息自动安装,latexmk()
函数最好还能根据缺字体的信息来自动安装。
德语模板
bookdownplus('thesis_classic')
## ! Package babel Error: You haven't specified a language option.
thesis_classic 模板使用了 babel 包:
\usepackage[ngerman,american]{babel}
明明是指定了语言选项的,不知为何编译说没指定。
用 latexmk()
去编译 bookdown 生成的 tex 文件仍然是同样错误。但该 tex 文件在最新版的 CTeX 里是可以正常编译通过的。
搜网上的介绍仍然没解决。目前搁置中。
yihui 确实开心,确实是 unknown unknown
昨晚比较匆忙没来得及看文档,今天装了指定版 rmarkdown 后在win跟mac下都测了下,主要是针对 rticles 包里的模版,直接点击 rstudio 上的按钮还是会出现找不到包的情况,但命令行下先render成tex,然后用xelatex()
会自动安装缺失的包,直接render也可以,我猜测可能是 rstudio 传参部分没有同步。中文模版可通过,英文期刊模版不涉及数学字体的可通过。
但是如果模版里调用了 ptmr7t.mf
等数学专用字体,会出现 Metric (TFM) file not found 错误,tlmgr
找不到相关的包,这个问题win下跟mac下都存在,网上给出解决方法是去装 texlive-fonts-recommended
这个包,Linux跟mac下还好办,对于win用户估计要懵圈,出问题的 rticles 模版是 ams、acm、rss、jss … 几乎所有用到这个字体的模版。
这个包在这里:https://packages.debian.org/sid/texlive-fonts-recommended
不行就把这类字体打包进 tinytex 吧,安装包5M,解压后18M,或者就是希望用这些模版的人早就安过这些字体
- 已编辑
我的 windows 下安装不了。'install-tl-windows.bat' is not recognized as an internal or external command,
operable program or batch file.
手动下载 install-windows.bat 运行,是同样的错误信息。
> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.2 backports_1.1.1 magrittr_1.5
[4] rprojroot_1.2 htmltools_0.3.6 tools_3.4.2
[7] yaml_2.1.14 tinytex_0.0.10 Rcpp_0.12.13
[10] stringi_1.1.5 rmarkdown_1.6 knitr_1.17
[13] stringr_1.2.0 digest_0.6.12 evaluate_0.10.1
安装失败信息:
> tinytex::install_tinytex()
trying URL 'https://github.com/yihui/tinytex/raw/master/tools/install-windows.bat'
Content type 'text/plain; charset=utf-8' length 1831 bytes
downloaded 1831 bytes
C:\Users\dapeng\AppData\Local\Temp\Rtmp2l7oRf>rem switch to a temp directory, whichever works
C:\Users\dapeng\AppData\Local\Temp\Rtmp2l7oRf>cd /d "C:\Users\dapeng\AppData\Local\Temp"
C:\Users\dapeng\AppData\Local\Temp>cd /d "C:\Users\dapeng\AppData\Local\Temp"
C:\Users\dapeng\AppData\Local\Temp>cd /d ""
The filename, directory name, or volume label syntax is incorrect.
C:\Users\dapeng\AppData\Local\Temp>rem in case there is a leftover install-tl-* dir, delete it
C:\Users\dapeng\AppData\Local\Temp>for / %G in ("install-tl-*") do rd /s /q "%~G"
C:\Users\dapeng\AppData\Local\Temp>rem download install-tl.zip and unzip it
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "Invoke-WebRequest http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip -OutFile install-tl.zip"
'powershell' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('install-tl.zip', '.'); }"
'powershell' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\dapeng\AppData\Local\Temp>del install-tl.zip
Could Not Find C:\Users\dapeng\AppData\Local\Temp\install-tl.zip
C:\Users\dapeng\AppData\Local\Temp>rem download texlive.profile and modify it (set texdir to ./TinyTeX)
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "Invoke-WebRequest https://github.com/yihui/tinytex/raw/master/tools/texlive.profile -OutFile texlive.profile"
'powershell' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "(gc texlive.profile) -replace './', './TinyTex/' | Out-File -encoding ASCII texlive.profile"
'powershell' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\dapeng\AppData\Local\Temp>rem download the custom package list
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "Invoke-WebRequest https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt -OutFile pkgs-custom.txt"
'powershell' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\dapeng\AppData\Local\Temp>rem an automated installation of TeXLive (infrastructure only)
C:\Users\dapeng\AppData\Local\Temp>cd install-tl-*
The filename, directory name, or volume label syntax is incorrect.
'install-tl-windows.bat' is not recognized as an internal or external command,
operable program or batch file.
Restart your R session and check if tinytex:::is_tinytex() is TRUE.
Warning message:
running command '"install-windows.bat"' had status 255
dapengde 谢谢,报告非常详细!我随后一条条处理你提到的问题。Windows 下需要 PowerShell 的支持,看样子你的系统版本可能老得令人发指(Windows Vista 还是 XP?),Windows 7 之后应该都有 PowerShell。没有的话,可以安装:https://docs.microsoft.com/en-us/powershell/scripting/setup/starting-windows-powershell-on-earlier-versions-of-windows
yufree 字体也会自动化搜索安装,你要是想踩到一个我从没踩过的坑应该是比较难:
https://github.com/yihui/tinytex/blob/670033bc/R/latex.R#L225-L227
全自动安装 LaTeX 包需要你安装一个开发版本中的 rmarkdown 分支:https://yihui.name/en/2017/12/test-tinytex/
- 已编辑
yihui 我确实是安装的那个分支,另外字体也确实没有自动安装
这是错误信息
tinytex::pdflatex('Untitled.tex')
tlmgr search --file --global '/psyr'
! Font U/psy/m/n/10=psyr at 10.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.64 {\Pifont{psy}
}
Here is how much of TeX's memory you used:
678 strings out of 494926
8692 string characters out of 6178028
56826 words of memory out of 5000000
4046 multiletter control sequences out of 15000+600000
4000 words of font info for 15 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
32i,0n,21p,228b,78s stack positions out of 5000i,500n,10000p,200000b,80000s
Error: Failed to compile Untitled.tex. See Untitled.log for more info.
In addition: Warning message:
In parse_packages(logfile) : Failed to find a package that contains psyr
这是sessionInfo
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils
[5] datasets methods base
other attached packages:
[1] tinytex_0.0.10
loaded via a namespace (and not attached):
[1] Rcpp_0.12.14
[2] compiler_3.4.2
[3] BiocInstaller_1.26.1
[4] RColorBrewer_1.1-2
[5] plyr_1.8.4
[6] rticles_0.4.1
[7] iterators_1.0.8
[8] ProtGenerics_1.8.0
[9] tools_3.4.2
[10] zlibbioc_1.22.0
[11] digest_0.6.12
[12] MALDIquant_1.17
[13] evaluate_0.10.1
[14] tibble_1.3.4
[15] preprocessCore_1.38.1
[16] gtable_0.2.0
[17] lattice_0.20-35
[18] rlang_0.1.4
[19] foreach_1.4.3
[20] Matrix_1.2-12
[21] yaml_2.1.15
[22] parallel_3.4.2
[23] knitr_1.17
[24] stringr_1.2.0
[25] IRanges_2.10.5
[26] S4Vectors_0.14.7
[27] rprojroot_1.2
[28] stats4_3.4.2
[29] multtest_2.32.0
[30] grid_3.4.2
[31] Biobase_2.36.2
[32] impute_1.50.1
[33] XML_3.98-1.9
[34] survival_2.41-3
[35] BiocParallel_1.10.1
[36] rmarkdown_1.8.3
[37] RANN_2.5.1
[38] limma_3.32.10
[39] magrittr_1.5
[40] ggplot2_2.2.1
[41] mzR_2.10.0
[42] backports_1.1.1
[43] htmltools_0.3.6
[44] scales_0.5.0
[45] pcaMethods_1.68.0
[46] codetools_0.2-15
[47] MASS_7.3-47
[48] splines_3.4.2
[49] xcms_2.99.9
[50] BiocGenerics_0.22.1
[51] mzID_1.14.0
[52] MassSpecWavelet_1.42.0
[53] MSnbase_2.3.13
[54] colorspace_1.3-2
[55] stringi_1.1.6
[56] affy_1.54.0
[57] doParallel_1.0.11
[58] lazyeval_0.2.1
[59] munsell_0.4.3
[60] vsn_3.44.0
[61] affyio_1.46.0
我查了下,是 tlmgr 搜不到这个字体,但是这个字体在CTAN上确实有(https://ctan.org/tex-archive/macros/latex/contrib/mdwfonts?lang=en),不知道 tlmgr 是不是对 CTAN 的包进行了选择过滤
yihui 我当时装了 times
跟 rsfs
这两个包后 ptmr7t 的问题就解决了,然后卡在 psyr
上了,错误信息如下
! Font OT1/ptm/m/n/12=ptmr7t at 12.0pt not loadable: Metric (TFM) file not foun
d.
<to be read again>
relax
l.46 \begin{document}
pandoc.exe: Error producing PDF
Error: pandoc document conversion failed with error 43
In addition: Warning message:
running command '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Untitled.utf8.md --to latex --from markdown+ascii_identifiers+tex_math_single_backslash-autolink_bare_uris --output Untitled.pdf --template "C:\PROGRA~1\R\R-34~1.3\library\rticles\RMARKD~1\TEMPLA~1\AMS_AR~1\RESOUR~1\template.tex" --highlight-style tango --latex-engine pdflatex --csl "C:\PROGRA~1\R\R-34~1.3\library\rticles\RMARKD~1\TEMPLA~1\AMS_AR~1\RESOUR~1\AMERIC~1.CSL" --filter pandoc-citeproc' had status 43
更新包后尝试 rticles
包里 American Meteorological Society 的那个模版,出现如下错误
render("Untitled.Rmd")
!pdfTeX error: pdflatex (file 8r.enc): cannot open encoding file for reading
==> Fatal error occurred, no output PDF file produced!
pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
额,这是log文件里的内容
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex 2017.12.4) 4 DEC 2017 16:08
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**Untitled.tex
(./Untitled.tex
LaTeX2e <2017-04-15>
Babel <3.15> and hyphenation patterns for 3 language(s) loaded.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/ametsoc/ametsoc.cls
\c@section=\count79
\c@subsection=\count80
\c@subsubsection=\count81
\c@paragraph=\count82
\c@subparagraph=\count83
\c@figure=\count84
\c@table=\count85
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/06/24 v1.0g Graphics/color driver for pdftex
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2017/09/02 v2.17a AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?' option.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks15
\ex@=\dimen105
)) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen106
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count86
LaTeX Info: Redefining \frac on input line 213.
\uproot@=\count87
\leftroot@=\count88
LaTeX Info: Redefining \overline on input line 375.
\classnum@=\count89
\DOTSCASE@=\count90
LaTeX Info: Redefining \ldots on input line 472.
LaTeX Info: Redefining \dots on input line 475.
LaTeX Info: Redefining \cdots on input line 596.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen107
LaTeX Font Info: Redeclaring font encoding OML on input line 712.
LaTeX Font Info: Redeclaring font encoding OMS on input line 713.
\macc@depth=\count91
\c@MaxMatrixCols=\count92
\dotsspace@=\muskip10
\c@parentequation=\count93
\dspbrk@lvl=\count94
\tag@help=\toks16
\row@=\count95
\column@=\count96
\maxfields@=\count97
\andhelp@=\toks17
\eqnshift@=\dimen108
\alignsep@=\dimen109
\tagshift@=\dimen110
\tagwidth@=\dimen111
\totwidth@=\dimen112
\lineht@=\dimen113
\@envbody=\toks18
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks19
LaTeX Info: Redefining \[ on input line 2817.
LaTeX Info: Redefining \] on input line 2818.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/tools/bm.sty
Package: bm 2017/01/16 v1.2c Bold Symbol Support (DPC/FMi)
\symboldoperators=\mathgroup6
\symboldletters=\mathgroup7
\symboldsymbols=\mathgroup8
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 141.
LaTeX Info: Redefining \bm on input line 207.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/helvet.sty
Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS)
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/mathptmx.sty
Package: mathptmx 2005/04/12 PSNFSS-v9.2a Times w/ Math, improved (SPQR, WaS)
LaTeX Font Info: Redeclaring symbol font `operators' on input line 28.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> OT1/ztmcm/m/n on input line 28.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> OT1/ztmcm/m/n on input line 28.
LaTeX Font Info: Redeclaring symbol font `letters' on input line 29.
LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
(Font) OML/cmm/m/it --> OML/ztmcm/m/it on input line 29.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> OML/ztmcm/m/it on input line 29.
LaTeX Font Info: Redeclaring symbol font `symbols' on input line 30.
LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
(Font) OMS/cmsy/m/n --> OMS/ztmcm/m/n on input line 30.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n --> OMS/ztmcm/m/n on input line 30.
LaTeX Font Info: Redeclaring symbol font `largesymbols' on input line 31.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
(Font) OMX/cmex/m/n --> OMX/ztmcm/m/n on input line 31.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/cmex/m/n --> OMX/ztmcm/m/n on input line 31.
\symbold=\mathgroup9
\symitalic=\mathgroup10
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 34.
LaTeX Font Info: Redeclaring math alphabet \mathit on input line 35.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it --> OT1/ptm/m/it on input line 35.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it --> OT1/ptm/m/it on input line 35.
LaTeX Info: Redefining \hbar on input line 50.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/natbib/natbib.sty
Package: natbib 2010/09/13 8.31b (PWD, AO)
\bibhang=\skip46
\bibsep=\skip47
LaTeX Info: Redefining \cite on input line 694.
\c@NAT@ctr=\count98
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip11
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/tools/indentfirst.sty
Package: indentfirst 1995/11/23 v1.03 Indent first paragraph (DPC)
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/tools/multicol.sty
Package: multicol 2017/04/11 v1.8q multicolumn formatting (FMi)
\c@tracingmulticols=\count99
\mult@box=\box28
\multicol@leftmargin=\dimen114
\c@unbalance=\count100
\c@collectmore=\count101
\doublecol@number=\count102
\multicoltolerance=\count103
\multicolpretolerance=\count104
\full@width=\dimen115
\page@free=\dimen116
\premulticols=\dimen117
\postmulticols=\dimen118
\multicolsep=\skip48
\multicolbaselineskip=\skip49
\partial@page=\box29
\last@line=\box30
\maxbalancingoverflow=\dimen119
\mult@rightbox=\box31
\mult@grightbox=\box32
\mult@gfirstbox=\box33
\mult@firstbox=\box34
\@tempa=\box35
\@tempa=\box36
\@tempa=\box37
\@tempa=\box38
\@tempa=\box39
\@tempa=\box40
\@tempa=\box41
\@tempa=\box42
\@tempa=\box43
\@tempa=\box44
\@tempa=\box45
\@tempa=\box46
\@tempa=\box47
\@tempa=\box48
\@tempa=\box49
\@tempa=\box50
\@tempa=\box51
\c@columnbadness=\count105
\c@finalcolumnbadness=\count106
\last@try=\dimen120
\multicolovershoot=\dimen121
\multicolundershoot=\dimen122
\mult@nat@firstbox=\box52
\colbreak@box=\box53
\mc@col@check@num=\count107
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/graphics/rotating.sty
Package: rotating 2016/08/11 v2.16d rotated objects in LaTeX
\c@r@tfl@t=\count108
\rotFPtop=\skip50
\rotFPbot=\skip51
\rot@float@box=\box54
\rot@mess@toks=\toks20
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/endfloat/endfloat.sty
Package: endfloat 2011/12/25 v2.5d LaTeX2e package puts figures and tables at e
nd (jdm)
\c@posttable=\count109
\efloat@postttt=\write3
\@ef@tttopen=\count110
\c@postfigure=\count111
\efloat@postfff=\write4
\@ef@fffopen=\count112
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/lineno/lineno.sty
Package: lineno 2005/11/02 line numbers on paragraphs v4.41
\linenopenalty=\count113
\output=\toks21
\linenoprevgraf=\count114
\linenumbersep=\dimen123
\linenumberwidth=\dimen124
\c@linenumber=\count115
\c@pagewiselinenumber=\count116
\c@LN@truepage=\count117
\c@internallinenumber=\count118
\c@internallinenumbers=\count119
\quotelinenumbersep=\dimen125
\bframerule=\dimen126
\bframesep=\dimen127
\bframebox=\box55
LaTeX Info: Redefining \\ on input line 3056.
)
\c@extraauth=\count120
\c@loopnum=\count121
\thanksnum=\count122
\savethanksnum=\count123
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2017/03/14 v6.85a Hypertext links for LaTeX
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.
sty
Package: hobsub-hyperref 2016/05/16 v1.14 Bundle oberdiek, subset hyperref (HO)
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/generic/oberdiek/hobsub-generic.s
ty
Package: hobsub-generic 2016/05/16 v1.14 Bundle oberdiek, subset generic (HO)
Package: hobsub 2016/05/16 v1.14 Construct package bundles (HO)
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
Package: intcalc 2016/05/16 v1.2 Expandable calculations with integers (HO)
Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
Package: pdftexcmds 2017/03/19 v0.25 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
Package: pdfescape 2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
Package: bigintcalc 2016/05/16 v1.4 Expandable calculations on big integers (HO
)
Package: bitset 2016/05/16 v1.2 Handle bit-vector datatype (HO)
Package: uniquecounter 2016/05/16 v1.3 Provide unlimited unique counter (HO)
)
Package hobsub Info: Skipping package `hobsub' (already loaded).
Package: letltxmacro 2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
Package: hopatch 2016/05/16 v1.3 Wrapper for package hooks (HO)
Package: xcolor-patch 2016/05/16 xcolor patch
Package: atveryend 2016/05/16 v1.9 Hooks at the very end of document (HO)
Package atveryend Info: \enddocument detected (standard20110627).
Package: atbegshi 2016/06/09 v1.18 At begin shipout hook (HO)
Package: refcount 2016/05/16 v3.5 Data extraction from label references (HO)
Package: hycolor 2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/oberdiek/auxhook.sty
Package: auxhook 2016/05/16 v1.4 Hooks for auxiliary files (HO)
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
)
\@linkdim=\dimen128
\Hy@linkcounter=\count124
\Hy@pagecounter=\count125
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2017/03/14 v6.85a Hyperref: PDFDocEncoding definition (HO)
)
\Hy@SavedSpaceFactor=\count126
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/latexconfig/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
Package hyperref Info: Option `draft' set `true' on input line 4374.
Package hyperref Info: Hyper figures OFF on input line 4498.
Package hyperref Info: Link nesting OFF on input line 4503.
Package hyperref Info: Hyper index ON on input line 4506.
Package hyperref Info: Plain pages OFF on input line 4513.
Package hyperref Info: Backreferencing OFF on input line 4518.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4751.
\c@Hy@tempcnt=\count127
LaTeX Info: Redefining \url on input line 5104.
\XeTeXLinkMargin=\dimen129
\Fld@menulength=\count128
\Field@Width=\dimen130
\Fld@charsize=\dimen131
Package hyperref Info: Hyper figures OFF on input line 6358.
Package hyperref Info: Link nesting OFF on input line 6363.
Package hyperref Info: Hyper index ON on input line 6366.
Package hyperref Info: backreferencing OFF on input line 6373.
Package hyperref Info: Link coloring OFF on input line 6378.
Package hyperref Info: Link coloring with OCG OFF on input line 6383.
Package hyperref Info: PDF/A mode OFF on input line 6388.
LaTeX Info: Redefining \ref on input line 6428.
LaTeX Info: Redefining \pageref on input line 6432.
\Hy@abspage=\count129
\c@Item=\count130
\c@Hfootnote=\count131
)
Package hyperref Message: Driver (autodetected): hpdftex.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2017/03/14 v6.85a Hyperref driver for pdfTeX
\Fld@listcount=\count132
\c@bookmark@seq@number=\count133
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
Package: rerunfilecheck 2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
82.
)
\Hy@SectionHShift=\skip52
) (./Untitled.aux)
\openout1 = `Untitled.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 46.
LaTeX Font Info: ... okay on input line 46.
LaTeX Font Info: Try loading font information for OT1+ptm on input line 46.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/ot1ptm.fd
File: ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.
) (/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/oberdiek/epstopdf-base.st
y
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
)
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
38.
Package grfext Info: Graphics extension search list:
(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cf
g
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
\AtBeginShipoutBox=\box56
Package hyperref Warning: Height of page (\paperheight) is invalid (0.0pt),
(hyperref) using 11in.
Package hyperref Warning: Draft mode on.
Package hyperref Info: Link coloring OFF on input line 46.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/generic/oberdiek/gettitlestring.s
ty
Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO)
)
\c@section@level=\count134
)
LaTeX Info: Redefining \ref on input line 46.
LaTeX Info: Redefining \pageref on input line 46.
LaTeX Info: Redefining \nameref on input line 46.
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <14.4> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 48.
LaTeX Font Info: Try loading font information for OT1+phv on input line 48.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/ot1phv.fd
File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv.
)
LaTeX Font Info: Font shape `OT1/phv/m/n' will be
(Font) scaled to size 4.85pt on input line 48.
LaTeX Font Info: Try loading font information for OT1+ztmcm on input line 48
.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/ot1ztmcm.fd
File: ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm.
)
LaTeX Font Info: Try loading font information for OML+ztmcm on input line 48
.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/omlztmcm.fd
File: omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm.
)
LaTeX Font Info: Try loading font information for OMS+ztmcm on input line 48
.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/omsztmcm.fd
File: omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm.
)
LaTeX Font Info: Try loading font information for OMX+ztmcm on input line 48
.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/omxztmcm.fd
File: omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm.
)
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <12> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 48.
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <9> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 48.
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 48.
Underfull \hbox (badness 10000) has occurred while \output is active
[]
[]
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <5> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 48.
[1{/Users/yufree/Library/TinyTeX/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
[2]
LaTeX Font Info: Try loading font information for OMS+ptm on input line 64.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/omsptm.fd
File: omsptm.fd
)
LaTeX Font Info: Font shape `OMS/ptm/m/n' in size <12> not available
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 64.
LaTeX Font Info: Try loading font information for OMS+cmtt on input line 80.
LaTeX Font Info: No file OMScmtt.fd. on input line 80.
LaTeX Font Warning: Font shape `OMS/cmtt/m/n' undefined
(Font) using `OMS/cmsy/m/n' instead
(Font) for symbol `textbraceleft' on input line 80.
Underfull \vbox (badness 2961) has occurred while \output is active []
[3]
Underfull \hbox (badness 2435) in paragraph at lines 94--99
\OT1/cmtt/m/n/12 headings\OMS/cmtt/m/n/12 g \OT1/ptm/m/n/12 for a sin-gle para-
graph within a sub-sub-sec-tion or \OMS/cmtt/m/n/12 n\OT1/cmtt/m/n/12 paragraph
\OMS/cmtt/m/n/12 f\OT1/cmtt/m/n/12 Quaternary
[]
Missing character: There is no ? in font ptmr7t!
Missing character: There is no ? in font ptmr7t!
Missing character: There is no ? in font ptmr7t!
Missing character: There is no ? in font ptmr7t!
Underfull \vbox (badness 3780) has occurred while \output is active []
[4] [5]
Underfull \vbox (badness 2359) has occurred while \output is active []
[6]
\openout4 = `Untitled.fff'.
(Untitled.fff)
\openout3 = `Untitled.ttt'.
(Untitled.ttt)
LaTeX Font Info: Font shape `OT1/phv/m/n' will be
(Font) scaled to size 11.64001pt on input line 265.
[7] [8]
Underfull \hbox (badness 10000) in paragraph at lines 335--340
\OT1/cmtt/m/n/12 index . cfm / publications / authors / journal-[]and-[]bams-[]
authors / author-[]resources /
[]
[9]
No file Untitled.bbl.
Missing character: There is no ? in font ptmr7t!
Missing character: There is no ? in font ptmr7t!
LaTeX Font Info: Try loading font information for OML+ptm on input line 410.
(/Users/yufree/Library/TinyTeX/texmf-dist/tex/latex/psnfss/omlptm.fd
File: omlptm.fd
)
LaTeX Font Info: Font shape `OML/ptm/m/n' in size <12> not available
(Font) Font shape `OML/cmm/m/it' tried instead on input line 410.
Missing character: There is no ? in font ptmr7t!
Missing character: There is no ? in font ptmr7t!
AED endfloat: Processing end Figures and Tables [10] (./Untitled.lot
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <10.5> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 1.
)
\tf@lot=\write5
\openout5 = `Untitled.lot'.
[11
] (./Untitled.ttt
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <8> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 4.
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 4.
[12
] [13]) (./Untitled.lof)
\tf@lof=\write6
\openout6 = `Untitled.lof'.
[14
] (./Untitled.fff
pdfTeX warning: pdflatex (file ./figure01.pdf): PDF inclusion: found PDF versio
n <1.6>, but at most version <1.5> allowed
<figure01.pdf, id=58, pagebox=cropbox, 663.47874pt x 853.1875pt>
[15
]
<Untitled_files/figure-latex/unnamed-chunk-1-1.pdf, id=62, pagebox=cropbox, 228
.855pt x 325.215pt>
[16] [17] [18])
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 421.
Package atveryend Info: Empty hook `AfterLastShipout' on input line 421.
(./Untitled.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 421.
Package atveryend Info: Empty hook `AtEndAfterFileList' on input line 421.
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 421.
)
Here is how much of TeX's memory you used:
7438 strings out of 494926
106095 string characters out of 6178028
196800 words of memory out of 5000000
10591 multiletter control sequences out of 15000+600000
61266 words of font info for 136 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
34i,10n,37p,279b,397s stack positions out of 5000i,500n,10000p,200000b,80000s
!pdfTeX error: pdflatex (file 8r.enc): cannot open encoding file for reading
==> Fatal error occurred, no output PDF file produced!
- 已编辑
yihui 最新进展:powershell 在我的 win7 里是安装了的,不知怎的,在环境变量里没有它的路径。手动添加路径,就可以在 cmd 里运行 powershell 了。但是,安装仍然出错,说 The term 'Invoke-WebRequest' is not recognized,貌似仍然是 powershell 版本太低的问题:
C:\Users\dapeng\AppData\Local\Temp\RtmpczicSz>where /q powershell || echo powershell not found && exit /b
C:\Users\dapeng\AppData\Local\Temp\RtmpczicSz>rem switch to a temp directory, whichever works
C:\Users\dapeng\AppData\Local\Temp\RtmpczicSz>cd /d "C:\Users\dapeng\AppData\Local\Temp"
C:\Users\dapeng\AppData\Local\Temp>cd /d "C:\Users\dapeng\AppData\Local\Temp"
C:\Users\dapeng\AppData\Local\Temp>cd /d ""
The filename, directory name, or volume label syntax is incorrect.
C:\Users\dapeng\AppData\Local\Temp>rem in case there is a leftover install-tl-* dir, delete it
C:\Users\dapeng\AppData\Local\Temp>for / %G in ("install-tl-*") do rd /s /q "%~G"
C:\Users\dapeng\AppData\Local\Temp>rem download install-tl.zip and unzip it
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "Invoke-WebRequest http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip -OutFile install-tl.zip"
The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<< http://mirror.ctan.org/systems/texlive/tlnet/install-
tl.zip -OutFile install-tl.zip
+ CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('install-tl.zip', '.'); }"
Add-Type : Cannot add type. The assembly 'System.IO.Compression.FileSystem' cou
ld not be found.
At line:1 char:13
+ & { Add-Type <<<< -A 'System.IO.Compression.FileSystem'; [IO.Compression.Zip
File]::ExtractToDirectory('install-tl.zip', '.'); }
+ CategoryInfo : ObjectNotFound: (System.IO.Compression.FileSyste
m:String) [Add-Type], Exception
+ FullyQualifiedErrorId : ASSEMBLY_NOT_FOUND,Microsoft.PowerShell.Commands
.AddTypeCommand
Add-Type : Cannot add type. One or more required assemblies are missing.
At line:1 char:13
+ & { Add-Type <<<< -A 'System.IO.Compression.FileSystem'; [IO.Compression.Zip
File]::ExtractToDirectory('install-tl.zip', '.'); }
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationExc
eption
+ FullyQualifiedErrorId : ASSEMBLY_LOAD_ERRORS,Microsoft.PowerShell.Comman
ds.AddTypeCommand
Unable to find type [IO.Compression.ZipFile]: make sure that the assembly conta
ining this type is loaded.
At line:1 char:77
+ & { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]
<<<< ::ExtractToDirectory('install-tl.zip', '.'); }
+ CategoryInfo : InvalidOperation: (IO.Compression.ZipFile:String
) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
C:\Users\dapeng\AppData\Local\Temp>del install-tl.zip
Could Not Find C:\Users\dapeng\AppData\Local\Temp\install-tl.zip
C:\Users\dapeng\AppData\Local\Temp>rem download texlive.profile and modify it (set texdir to ./TinyTeX)
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "Invoke-WebRequest https://github.com/yihui/tinytex/raw/master/tools/texlive.profile -OutFile texlive.profile"
The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<< https://github.com/yihui/tinytex/raw/master/tools/tex
live.profile -OutFile texlive.profile
+ CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "(gc texlive.profile) -replace './', './TinyTex/' | Out-File -encoding ASCII texlive.profile"
Get-Content : Cannot find path 'C:\Users\dapeng\AppData\Local\Temp\texlive.pr
ofile' because it does not exist.
At line:1 char:4
+ (gc <<<< texlive.profile) -replace './', './TinyTex/' | Out-File -encoding A
SCII texlive.profile
+ CategoryInfo : ObjectNotFound: (C:\Users\c77011...texlive.profi
le:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
ntentCommand
C:\Users\dapeng\AppData\Local\Temp>rem download the custom package list
C:\Users\dapeng\AppData\Local\Temp>powershell -Command "Invoke-WebRequest https://github.com/yihui/tinytex/raw/master/tools/pkgs-custom.txt -OutFile pkgs-custom.txt"
The term 'Invoke-WebRequest' is not recognized as the name of a cmdlet, functio
n, script file, or operable program. Check the spelling of the name, or if a pa
th was included, verify that the path is correct and try again.
At line:1 char:18
+ Invoke-WebRequest <<<< https://github.com/yihui/tinytex/raw/master/tools/pkg
s-custom.txt -OutFile pkgs-custom.txt
+ CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
C:\Users\dapeng\AppData\Local\Temp>rem an automated installation of TeXLive (infrastructure only)
C:\Users\dapeng\AppData\Local\Temp>cd install-tl-*
The filename, directory name, or volume label syntax is incorrect.
'install-tl-windows.bat' is not recognized as an internal or external command,
operable program or batch file.
我这次直接偷懒用 testthat 去测 rticles 包的模版了,目前只有4个模版有问题,目测前三个原因应该一致,可能跟路径设置有关,最后一个比较吊诡,信息如下:
1. Error: asa_article format (@test_formats.R#30) ------------------------------
file 'testdoc.pdf' does not exist
1: rmarkdown::render(testdoc) at C:\Users\SPMESUPERCPU\Downloads\rticles/tests/testthat/test_formats.R:30
2: tools::file_path_as_absolute(output_file)
3: stop(gettextf("file '%s' does not exist", x), domain = NA)
2. Error: jss_article format (@test_formats.R#30) ------------------------------
file 'testdoc.pdf' does not exist
1: rmarkdown::render(testdoc) at C:\Users\SPMESUPERCPU\Downloads\rticles/tests/testthat/test_formats.R:30
2: tools::file_path_as_absolute(output_file)
3: stop(gettextf("file '%s' does not exist", x), domain = NA)
3. Error: pnas_article format (@test_formats.R#30) -----------------------------
file 'testdoc.pdf' does not exist
1: rmarkdown::render(testdoc) at C:\Users\SPMESUPERCPU\Downloads\rticles/tests/testthat/test_formats.R:30
2: tools::file_path_as_absolute(output_file)
3: stop(gettextf("file '%s' does not exist", x), domain = NA)
4. Error: rjournal_article format (@test_formats.R#30) -------------------------
unable to run 'pdflatex' on 'RJwrapper.tex'
1: rmarkdown::render(testdoc) at C:\Users\SPMESUPERCPU\Downloads\rticles/tests/testthat/test_formats.R:30
2: output_format$post_processor(yaml_front_matter, utf8_input, output_file, clean, !quiet)
3: tools::texi2pdf("RJwrapper.tex", clean = clean) at C:\Users\SPMESUPERCPU\Downloads\rticles/R/rjournal_article.R:39
4: texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet, texi2dvi = texi2dvi,
texinputs = texinputs, index = index)
5: stop(gettextf("unable to run '%s' on '%s'", latex, file), domain = NA)
DONE ===========================================================================
- 已编辑
yihui 你这是神的效率啊。
Windows 下初步测试报告
总结一下上面的测试。我的操作系统是 windows 7,安装有点麻烦。
首先出现的安装错误是:
'install-tl-windows.bat' is not recognized as an internal or external command,
operable program or batch file.
原因:安装要使用 powershell。如果环境变量里没有 powershell 的路径,则出错。
解决办法:环境变量添加 path:%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
,重启。
然后,出现的错误是:
The term 'Invoke-WebRequest' is not recognized as ....
原因:powershell 版本过低。查看 powershell 版本的方法:在命令行运行
powershell
$PSVersionTable.PSVersion
如果主版本是2,那就是版本太低。下载安装新版,重启。
解决这些问题之后,R 里尝试 bookdownplus 里的三个模板:
bookdownplus::bookdownplus(template = 'yihui_mini')
bookdownplus::bookdownplus(template = 'yihui_demo')
bookdownplus::bookdownplus(template = 'yihui_zh`)
前两个编译顺利。第三个失败,因为缺少 latex 宏包。只需运行:
latexmk('yihui_zh.tex', engine = 'xelatex')
就自动安装了所有缺少包(和字体)。顺利通过。
调用 babel 包的模板bookdownplus::bookdownplus(template = 'thesis_classic')
仍然编译失败,同 Ubuntu 下的错误。装 rmarkdown 的分支失败,错误信息:
ERROR: dependency 'yaml' is not available for package 'rmarkdown'
暂时折腾到这里,洗脚睡觉去了。
又及:欢迎大家用 bookdownplus 里的 30 个模板来调戏 tinytex,同时也算是调戏 bookdownplu 了。安装方法:
devtools::install_github("pzhaonet/bookdownplus")
使用方法见 bookdownplus 主页。
dapengde 你的 template_thesis_classic.tex
模板有问题,里面没有设置 babel 选项。
第一次用狗语言写程序,写了半天才写完解压缩。实在是没兴趣写下去了,谁有兴趣谁继续吧,对照我的 Windows 批处理脚本翻译就好了。我还是老老实实用 R 语言翻译它吧,估计十五分钟能写完,狗语言里啥都得从头写起,好麻烦。
package main
import (
"io"
"io/ioutil"
"log"
"os"
"net/http"
"archive/zip"
)
func main() {
dir, err := ioutil.TempDir("", "tinytex")
if err != nil {
log.Fatal(err)
}
defer os.RemoveAll(dir)
println(dir)
os.Chdir(dir)
zipname := "install-tl.zip"
out, err := os.Create(zipname)
if err != nil {
log.Fatal(err)
}
defer out.Close()
resp, err := http.Get("http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip")
if err != nil {
println("Faled to download the TeX Live installer")
log.Fatal(err)
}
defer resp.Body.Close()
println("Downloading the TeX Live installer (this may take a few seconds)...")
if err := io.Copy(out, resp.Body); err != nil {
log.Fatal(err)
}
unzip(zipname)
}
func unzip(archive) error {
reader, err := zip.OpenReader(archive)
if err != nil {
return err
}
for _, file := range reader.File {
path := file.Name
println(path)
if file.FileInfo().IsDir() {
os.MkdirAll(path, file.Mode())
continue
}
fileReader, err := file.Open()
if err != nil {
return err
}
defer fileReader.Close()
targetFile, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, file.Mode())
if err != nil {
return err
}
defer targetFile.Close()
if _, err := io.Copy(targetFile, fileReader); err != nil {
return err
}
}
return nil
}