Reputation: 240
I'm hoping to be able to use Pandoc to convert my stories from Markdown to PDF files, formatted using sffms. I've tried a few things, but so far, no joy. I'm fairly comfortable with the command line, but LaTeX is new to me.
Here's what I've done so far.
templates
mytemplate.tex
from the example as well as the other default templateslatex sffms.ins
My Markdown file, sample.md
looks like this:
---
title: Document Title
author: Firstname Lastname
date: 2015-01-24
---
# Section 1
## Subsection 1.1
Lorem *ipsum* dolor sit amet, **consectetur** adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
## Subsection 1.2
# Section 2
# Section 3
A sentence that needs a note.[ˆ1]
[ˆ1]: my first footnote! And a [link](https://www.eff.org/)
When I use the following, Pandoc is able to create a PDF using the default document class:
pandoc --standalone --smart sample.md -o manuscript.pdf
Next, I attempted to add the variable to indicate the document class...
pandoc --standalone --smart --variable documentclass=sffms sample.md -o manuscript.pdf
...but that resulted in the following error:
! Paragraph ended before \UL@on was complete.
<to be read again>
\par
l.56
The trouble seems to be that sffms doesn't support section headings. If I use a different document class, that does support section headings, then everything works as expected.
Is it possible to use sffms, even though the markdown file has subheadings, without getting an error?
Upvotes: 1
Views: 1452
Reputation: 240
It turns out that the sffms document doesn't have support for sections, subsections and their associated subheadings. The author may add support for this in a future version.
Until then, one answer to this would be to use a different document class. I've sketched up a Pandoc template that give more-or-less analogous formatting via the scrartcl document class. It's probably sloppy, being a first attempt, but it works, mostly.
Upvotes: 3