最近我开始使用Pandoc markdown,它似乎是LaTeX的一个很好的替代品,因为我的文档没有太多的数学公式,而且我没有任何使用LaTeX的经验,再加上不到2周的提交截止日期,这使它成为一个很好的解决方案。
有一件事我还不能理解,那就是如何让页面的其余部分留空,有人能帮上忙吗?
发布于 2013-06-07 05:05:22
看起来pandoc markdown使用了标准的LaTeX标签来实现这个目的:
\newpage
和\pagebreak
发布于 2018-10-01 21:42:54
我观察到这不适用于.doc和.odt格式。我发现的一个解决办法是插入一条水平线-----------------
,并使用文本编辑器(我的例子是ibre office )格式化“水平线”样式,使其分页且不可见。
发布于 2020-06-11 04:34:30
无法编辑LucasSeveryn应答,通知队列已满,请在此处添加一些信息。
方式1:+raw_tex
\newpage
和\pagebreak
需要打开raw_tex
扩展。
//使用pandoc 2.9.2.1时,不能处理docx或html输出,--verbose说
[INFO] Not rendering RawBlock (Format "tex") "\\pagebreak"
[INFO] Not rendering RawBlock (Format "tex") "\\newpage"
方式2:+raw_attribute
https://pandoc.org/MANUAL.html#extension-raw_attribute
```{=openxml}
<w:br w:type="page"/>
// gfm输入格式也不支持。
//这适用于docx输出,而不适用于html输出。
延期通知
这需要+raw_tex
格式的扩展。它并不支持pandoc中的所有markdown变体。
https://pandoc.org/MANUAL.html#markdown-variants
Note, however, that commonmark and gfm have limited support for extensions.
Only those listed below (and smart, raw_tex, and hard_line_breaks) will work.
The extensions can, however, all be individually disabled.
Also, raw_tex only affects gfm output, not input.
所以-f markdown
可以工作,但是-f gfm
不能工作。
格式扩展
https://pandoc.org/MANUAL.html#option--from
Extensions can be individually enabled or disabled by appending
+EXTENSION or -EXTENSION to the format name.
例如
-t html+raw_tex
:输出启用raw_tex
-f markdown-raw_tex-raw_attribute
:输入禁用raw_tex和raw_attribute
https://stackoverflow.com/questions/16965490
复制相似问题