如何在Pandoc Beamer幻灯片的降价中指定YAML元数据?
我正在尝试使用YAML元数据块在Pandoc的标记文档中指定一些文档属性,我将转换为LaTeX Beamer。我在此处阅读了说明:并尝试了以下文档:如何在Pandoc Beamer幻灯片的降价中指定YAML元数据?,yaml,pandoc,beamer,Yaml,Pandoc,Beamer,我正在尝试使用YAML元数据块在Pandoc的标记文档中指定一些文档属性,我将转换为LaTeX Beamer。我在此处阅读了说明:并尝试了以下文档: --- title: Some title --- # This is a test slideshow. ## This should turn into a slide... ...with some content. 我使用pandoc-t beamer file.md-V theme:SomeTheme-o file.PDF将文件转
---
title: Some title
---
# This is a test slideshow.
## This should turn into a slide...
...with some content.
我使用
pandoc-t beamer file.md-V theme:SomeTheme-o file.PDF
将文件转换为PDF。除了文档开头的YAML块在第一张幻灯片中被转换成一个包含上下规则和文本“title:Some title”的表之外,它似乎可以正确地处理主题等。我做错了什么?不确定为什么您的元数据不能像我的元数据那样正常工作
尝试(在标题后加空格):
---
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.
或(带句点):
---
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.
或(带引号):
---
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.
这些都有效吗?的确,它们都有效。奇怪的是,我原来的例子现在也能用了。我之前曾尝试过使用早期版本的Pandoc(我不记得是哪个)。它现在适用于1.12.2.1版。