kurt.pfeifle-gM/Ye1E23mwN+
2013-12-11 14:24:30 UTC
I'm not familiar with YAML at all, and still struggling to get a grasp of
its syntax. However, since I'm wanting to include an abstract into a
LaTeX/PDF document, I thought I play a bit with YAML metadata blocks (since
they allow to put the abstract in -- and since I found [so far] no
different way to put an abstract into my Markdown).
My pandoc is the newest release, v1.12.2.1 (on a Mac), installed via cabal.
For a start, I used the identical YAML block that's documented at
http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html
Here is my minimal source Markdown document, yaml.mmd:
*---*
*title: 'This is the title: it contains a colon'*
*author:*
*- name: Author One*
* affiliation: University of Somewhere*
*- name: Author Two*
* affiliation: University of Nowhere*
*tags: [nothing, nothingness]*
*abstract: |*
* This is the abstract.*
* It consists of two paragraphs.*
*...*
*# Heading*
*paragraph 1.*
My commandline was:
*pandoc --from=markdown+yaml_metadata_block --output=yaml.pdf yaml.mmd*
Here is a screenshot from the resulting PDF:
<Loading Image...
>
As you can see there is neither author nor abstract appearing in the PDF.
However, this is the best of pandoc's outputs (at least it picks up the
title string). With HTML or LaTeX output, not even the title info gets
through to the final document:
- When I convert to HTML, I only get this as my yaml.html:
*<h1 id="heading">Heading</h1>*
*<p>paragraph 1.</p>*
- Converting to LaTeX results in this yaml.tex:
*\section{Heading}\label{heading}*
*paragraph 1.*
What am I doing wrong here?
its syntax. However, since I'm wanting to include an abstract into a
LaTeX/PDF document, I thought I play a bit with YAML metadata blocks (since
they allow to put the abstract in -- and since I found [so far] no
different way to put an abstract into my Markdown).
My pandoc is the newest release, v1.12.2.1 (on a Mac), installed via cabal.
For a start, I used the identical YAML block that's documented at
http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html
Here is my minimal source Markdown document, yaml.mmd:
*---*
*title: 'This is the title: it contains a colon'*
*author:*
*- name: Author One*
* affiliation: University of Somewhere*
*- name: Author Two*
* affiliation: University of Nowhere*
*tags: [nothing, nothingness]*
*abstract: |*
* This is the abstract.*
* It consists of two paragraphs.*
*...*
*# Heading*
*paragraph 1.*
My commandline was:
*pandoc --from=markdown+yaml_metadata_block --output=yaml.pdf yaml.mmd*
Here is a screenshot from the resulting PDF:
<Loading Image...
As you can see there is neither author nor abstract appearing in the PDF.
However, this is the best of pandoc's outputs (at least it picks up the
title string). With HTML or LaTeX output, not even the title info gets
through to the final document:
- When I convert to HTML, I only get this as my yaml.html:
*<h1 id="heading">Heading</h1>*
*<p>paragraph 1.</p>*
- Converting to LaTeX results in this yaml.tex:
*\section{Heading}\label{heading}*
*paragraph 1.*
What am I doing wrong here?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/665e2194-0441-4cac-a778-2997a2f42994%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/665e2194-0441-4cac-a778-2997a2f42994%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.