如何解决R: 针织错误文章 \vadjust 在垂直模式
我尝试在 Rmd 文件中使用包 rticles
,以生成期刊出版物。尝试按原样编织模板时,出现以下错误
his is pdfTeX,Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
I was unable to find any missing LaTeX packages from the error log UC4_SupplySecurity.log.
! You can't use `\vadjust' in vertical mode.
l.300 \leavevmode\vadjust
pre{\hypertarget{ref-Neurobot2013}{}}%
Error: LaTeX Failed to compile UC4_SupplySecurity.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See UC4_SupplySecurity.log for more info.
Execution halted
Package pdftex.def Info: UC4_SupplySecurity_files/figure-latex/figure-1-1.pdf
used on input line 291.
(pdftex.def) Requested size: 241.86113pt x 241.86148pt.
! You can't use `\vadjust' in vertical mode.
l.300 \leavevmode\vadjust
我使用以下配置
- 乳胶
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021)
kpathsea version 6.3.3
copyright 2021 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters,see the file
named copYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03
- R 4.0.5
我做错了什么?
很遗憾,我无法提供可重现的示例,因为它对应于原始 Frontiers Journal Article
。 Elsevier Journal Article
模板仍然存在同样的问题。
如果我删除所有参考文献和引文 [@XY]
,模板会编译,但没有参考文献的出版物是不行的。
解决方法
我相信 文章 的这个问题已经在 Github 存储库中报告了 https://github.com/rstudio/rticles/issues/383 并且它已在 文章 0.20 中得到修复,尚未在 CRAN 上发布。
所以现在应该这样做
remotes::install_github("rstudio/rticles")
使用开发版本,我可以毫无错误地呈现 Frontier 文章的默认模板。
,您不能在 \texttt{enumerate} 或 \texttt{itemize} 环境中使用代码编织。也许这是你的问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。