我正在尝试使用 YAML 元数据块来指定 Pandoc 的 Markdown 文档中的一些文档属性,我将其转换为 LaTeX Beamer。我在这里阅读了描述:http://johnmacfarlane.net/pandoc/README.html#extension-yaml_metadata_block http://johnmacfarlane.net/pandoc/README.html#extension-yaml_metadata_block并尝试了以下文件:
---
title: Some title
---
# This is a test slideshow.
## This should turn into a slide...
...with some content.
我使用将文件转换为 PDFpandoc -t beamer file.md -V theme:SomeTheme -o file.pdf
。它似乎与主题等正常工作,除了文档开头的 YAML 块被转换为第一张幻灯片中的表格,其中包含顶部和底部规则以及文本“标题:某些标题”。我究竟做错了什么?
不知道为什么你的元数据不起作用,而我的元数据工作正常。
尝试做(标题后有一个空格):
---
title: Some title
---
# This is a test slideshow.
## This should turn into a slide...
...with some content.
或者(带句点):
---
title: Some title
...
# This is a test slideshow.
## This should turn into a slide...
...with some content.
或者(带引号):
---
title: "Some title"
---
# This is a test slideshow.
## This should turn into a slide...
...with some content.
这些都有效吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)