- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
pandoc
不接受以下代码:
1. Code Behaviors
1. Logging
1. No "bare" `System.out.println`'s
1. Logging level can be calibrated by simple change(s) to logging.xml and/or log4j.properties
1. Errors and exceptions go to appropriate WARN and/or ERROR logging levels
1. Errors and Exceptions
1. Almost never "swallowed"
1. Can only happen for well understood situations
1. Must be documented clearly in code why they are swallowed
1. Only a specific exception or error may be swallowed this way
- In particular can not be done for general Exception.
- Throwable can never be handled this way
应该是这样的:
System.out.println
使用命令行
pandoc --toc --toc-depth=6 -V fontsize=10pt --pdf-engine xelatex
-V geometry:"left=1.5cm,right=1.5cm,top=2cm,bottom=2cm" -o review.pdf review.md
我们得到
Error producing PDF.
! LaTeX Error: Too deeply nested.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.159 \begin{enumerate}
更新 我尝试使用 enumitem
包将其他级别添加到序言中,如此处建议的 https://tex.stackexchange.com/a/464459/45938 - 但没有效果(产生相同的错误):
---
title: My Review
subtitle: My subtitle
documentclass: extarticle
author: First Last Sept 15, 2019
geometry: "left=1.5cm,right=1.5cm,top=2cm,bottom=2cm"
header-includes:
- \usepackage{unicode-math}
- \setmainfont{TeX Gyre Schola}
- \setmathfont{TeX Gyre Schola Math}
- \usepackage{enumitem}
- \setlistdepth{20}
- \renewlist{itemize}{itemize}{20}
- \setlist[itemize]{label=$\cdot$}
- \setlist[itemize,1]{label=\textbullet}
- \setlist[itemize,2]{label=--}
- \setlist[itemize,3]{label=*}
output:
rmarkdown::html_document:
theme: lumen
fig_caption: yes
---
最佳答案
使用enumitem
是正确的方法。但是,您必须扩展 enumerate
和 itemize
环境:
---
header-includes:
- \usepackage{enumitem}
- \setlistdepth{20}
- \renewlist{itemize}{itemize}{20}
- \renewlist{enumerate}{enumerate}{20}
- \setlist[itemize]{label=$\cdot$}
- \setlist[itemize,1]{label=\textbullet}
- \setlist[itemize,2]{label=--}
- \setlist[itemize,3]{label=*}
output:
rmarkdown::pdf_document:
keep_tex: yes
---
1. Code Behaviors
1. Logging
1. No "bare" `System.out.println`'s
1. Logging level can be calibrated by simple change(s) to logging.xml and/or log4j.properties
1. Errors and exceptions go to appropriate WARN and/or ERROR logging levels
1. Errors and Exceptions
1. Almost never "swallowed"
1. Can only happen for well understood situations
1. Must be documented clearly in code why they are swallowed
1. Only a specific exception or error may be swallowed this way
- In particular can not be done for general Exception.
- Throwable can never be handled this way
输出:
注意:output.rmakrdown::pdf_document.keep_tex
标志表示保留中间 tex
文件。
关于latex - 使用带有 markdown 的 pandoc 在第四个嵌套级别嵌套得太深?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57945414/
我正在使用来自 http://www.zotero.org/styles/ieee 的 IEEE 引用样式在一个项目中使用 Pandoc。 当我引用引用文献时,它显示为 1在文本中,而我希望它显示为
我希望我的文档的某些部分仅适用于给定的输出格式。例如,我有一个需要特殊 LaTeX 处理的图像,我想使用\includegraphics 来处理它。但是对于 epub 版本,我想要标准行为。 Pand
default.beamer LaTex beamer 的 pandoc 默认模板有这一行: $if(theme)$ \usetheme{$theme$} $endif$ 特定主题的测试也有效吗?就像
我正在尝试为 pandoc 添加自定义 latex 模板 我知道 pandoc 模板进入 ~/.pandoc/templates 我通过输入 pandoc --v 确认了 pandoc 目录位置- 它
是否可以为 pandoc 设置默认选项? ?例如,我一直想使用 xelatex 生成 PDF,据我所知,我这样做的选择是通过 --latex-engine=xelatex对 pandoc 的每次调用,
我有一个从默认加载的 Pandoc (v1.19.2.1) HTML5 模板 --data-dir .在模板中,我需要加载外部资源,例如样式表和 JavaScript。我想相对于模板的路径加载这些资源
我正在尝试使用 pandoc 将 Markdown 文件编译为 HTML。我已经设法转换文件并向其中添加样式表,但我似乎无法正确添加一些 Javascript。到目前为止,我得到的是以下命令: pan
我通过 Anaconda 在我的系统上安装了 Pandoc 2.2.3.2。我用它转换的 Reveal.js 幻灯片不起作用,因为插入的 Reveal.js 代码链接似乎是错误的。 documenta
是否可以在 markdown 文件中使用 knitr 的 pandoc() 函数和嵌入的 pandoc 配置来更改默认的 pandoc latex 模板选项? 例如,如果我在 foo.md 的开头使用
在从 Markdown 生成 PDF 时,您如何指定 Pandoc 应使用特定的页眉和页脚? 目前,我使用以下命令从命令行创建我的文档: pandoc -s -V geometry:margin=1i
我有一台 Windows 8 机器,我刚刚运行了 pandoc-1.13-windows.msi 安装程序。安装程序没有让我选择安装路径,但它没有错误地完成了。我无法从命令行运行 pandoc,所以我
我对 Pandoc 比较陌生,我正在尝试用我的出版物生成一个 HTML 文件以放在我的网站上。我希望首先按年份对出版物列表进行编号和组织,最新的排在最前面,最早的排在最后。 我可以使用正确的 csl
当我运行下面的命令从 Markdown 生成幻灯片时,未正确选择主题。 pandoc slides -o slides.html -s -V theme=beige -t revealjs 我的幻灯片
我正在使用 pandoc + beamer 制作一些幻灯片。如何创建标题幻灯片以介绍新部分? 例如 ____Slide 1_____ Section 1 ... * bla * bla * bla _
当输出为 HTML 时,我可以成功生成图像,但在尝试 pdf 输出时出错。 图像的输入文件文本, ![](images\icon.png "test") 错误产生, pandoc: Error p
我正在使用 Pandoc 编写站点的内容。如何在文档中包含元标记(特别是描述和关键字标记),而不更改传递给 Pandoc 的命令行参数? 我的意思是,我可以在文档文本中以某种方式包含元标记吗?我不想传
pandoc User's Guide状态(强调添加): For output formats other than LaTeX, pandoc will parse LaTeX \newcomman
我正在使用 pypandoc 将 Markdown 文件转换为 LaTex。我的 Markdown 文件有一个标题,例如: # Header Text # 当 pypandoc 将文件呈现为 .tex
我正在尝试使用 Pandoc 从 html 转换为 pdf。输出非常好,仍然使用命令 pandoc index.html -o output.pdf 我丢失了所有内部链接(从目录到章节,从文本到脚注等
我试图转换这个 html SHILPI 使用带有此命令的 pandoc 到 docx pandoc -s -o "test.docx" -t html5 -t docx html_file 但是它丢失
我是一名优秀的程序员,十分优秀!