summaryrefslogtreecommitdiff
path: root/paper/lua-filters/abstract-to-meta/README.md
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-06-05 17:28:10 +0200
committerChristoph Helma <helma@in-silico.ch>2019-06-05 17:28:10 +0200
commit9a217185e791d6abbe46549cd4e87c1d1a643c05 (patch)
tree1968aebd8a38acd7784e58d478e0f6c3fb08ab76 /paper/lua-filters/abstract-to-meta/README.md
parentfeb1f82356da50a1ebf63b1eda434c388ab009e1 (diff)
first manuscript version
Diffstat (limited to 'paper/lua-filters/abstract-to-meta/README.md')
-rw-r--r--paper/lua-filters/abstract-to-meta/README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/paper/lua-filters/abstract-to-meta/README.md b/paper/lua-filters/abstract-to-meta/README.md
new file mode 100644
index 0000000..42c0d29
--- /dev/null
+++ b/paper/lua-filters/abstract-to-meta/README.md
@@ -0,0 +1,37 @@
+# abstract-to-meta
+
+This moves a document's abstract from the main text into the
+metadata. Metadata elements usually allow for finer placement
+control in the final output, but writing body text is easier and
+more natural.
+
+## Defining an Abstract
+
+A document abstract can either be put directly in the document
+metadata, for example by inserting an *abstract* attribute into a
+YAML block.
+
+ ---
+ abstract: |
+ Place abstract here.
+
+ Multiple paragraphs are possible.
+ ---
+
+The additional indentation and formatting requirements in YAML
+headers can be confusing or annoying for authors. It is hence
+preferable to allow abstracts be written as normal sections.
+
+ # Abstract
+
+ Place abstract here.
+
+ Multiple paragraphs are possible.
+
+This filter turns the latter into the former by looking for a
+top-level header whose ID is `abstract`. Pandoc auto-creates IDs
+based on header contents, so a header titled *Abstract* will
+satisfy this condition.^[1]
+
+[1]: This requires the `auto_identifier` extension. It is
+ enabled by default.