我目前正在尝试通过 rstudio 平台从 rmarkdown 迁移到 quarto。第一步,我想基于 elsevier 模板创建一篇科学文章,可以在Text中找到。然而我却未能复制它。当我尝试渲染时,template.qmd突然出现一个警告信号ERROR: No valid input files passed to render。
我查看了格式,奇怪的是,如果我向其中添加附加行,它会以某种方式起作用。
原始代码(不工作):
---
title: Short Paper
author:
- name: Alice Anonymous
email: alice@example.com
affiliations:
- id: some-tech
name: Some Institute of Technology
department: Department Name
address: Street Address
city: City
state: State
postal-code: Postal Code
attributes:
corresponding: true
note: This is the first author footnote.
- name: Bob Security
email: bob@example.com
affiliations:
- id: another-u
name: Another University
department: …Run Code Online (Sandbox Code Playgroud) 这个想法是复制rmarkdownin上的 PDF 输出quarto,在本例中,是在单个文档上创建多页方向。我可以通过使用这个技巧rmarkdown轻松做到这一点。但是,我无法在四开本中执行此操作,它会不断发送错误消息
compilation failed- error
Undefined control sequence.
l.201 \blandscape
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
---
title: "Portrait and Landscape"
format:
pdf:
include-in-header:
- packages.tex
---
# Quarto
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.
\newpage
\blandscape
# Running Code
When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You …Run Code Online (Sandbox Code Playgroud)