为了生成日志出版物,我尝试在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我做错了什么?
不幸的是,我不能提供一个可复制的示例,因为它对应于原始的Frontiers Journal Article。同样的问题仍然存在于Elsevier Journal Article模板中。
如果我删除所有引用和引用( [@XY] ),模板就会编译,但是没有引用的出版物是不可接受的。
发布于 2021-05-25 14:12:47
我相信关于rticles的这个问题已经在Github已经报道过了,并且已经在rticles 0.20中得到了修复,这一点还没有在CRAN上实现。
所以现在,我们应该去做
remotes::install_github("rstudio/rticles")使用dev版本,我可以毫无错误地呈现Frontier文章的默认模板。
发布于 2021-04-23 08:10:14
不能在\texttt{枚举}或\texttt{itemize}环境中使用代码。也许这是你的问题。
https://stackoverflow.com/questions/67004645
复制相似问题