首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R:垂直模式下的编织误差rticles \v调整

R:垂直模式下的编织误差rticles \v调整
EN

Stack Overflow用户
提问于 2021-04-08 13:06:46
回答 2查看 584关注 0票数 4

为了生成日志出版物,我尝试在Rmd文件中使用包rticles。当试图按原样编织模板时,我会得到以下错误

代码语言:javascript
复制
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

在日志文件中,报告了相同的错误:

代码语言:javascript
复制
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

我使用以下配置

  • Latex

代码语言:javascript
复制
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] ),模板就会编译,但是没有引用的出版物是不可接受的。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-05-25 14:12:47

我相信关于rticles的这个问题已经在Github已经报道过了,并且已经在rticles 0.20中得到了修复,这一点还没有在CRAN上实现。

所以现在,我们应该去做

代码语言:javascript
复制
remotes::install_github("rstudio/rticles")

使用dev版本,我可以毫无错误地呈现Frontier文章的默认模板。

票数 3
EN

Stack Overflow用户

发布于 2021-04-23 08:10:14

不能在\texttt{枚举}或\texttt{itemize}环境中使用代码。也许这是你的问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67004645

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档