diff options
author | Christoph Helma <helma@in-silico.ch> | 2019-06-05 17:28:10 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2019-06-05 17:28:10 +0200 |
commit | 9a217185e791d6abbe46549cd4e87c1d1a643c05 (patch) | |
tree | 1968aebd8a38acd7784e58d478e0f6c3fb08ab76 /paper/lua-filters/table-short-captions/sample.md | |
parent | feb1f82356da50a1ebf63b1eda434c388ab009e1 (diff) |
first manuscript version
Diffstat (limited to 'paper/lua-filters/table-short-captions/sample.md')
-rw-r--r-- | paper/lua-filters/table-short-captions/sample.md | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/paper/lua-filters/table-short-captions/sample.md b/paper/lua-filters/table-short-captions/sample.md new file mode 100644 index 0000000..74c27fb --- /dev/null +++ b/paper/lua-filters/table-short-captions/sample.md @@ -0,0 +1,84 @@ +--- +title: "Tests for table-short-captions.lua" +lot: true +--- + +These tests are written so that if **bold font** appears in the LOT, something is wrong. + +The tests are split into two: expected uses, and non-standard uses/errors. +The non-standard uses are presented in this document for troubleshooting purposes, and to ensure the filter doesn't crash in corner cases. + +# Standard usage + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl1, which does not have a label. + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl2, in standard `pandoc-crossref` form. {#tbl:tbl-label2} + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl3, which is **unlisted**. []{#tbl:tbl-label3 .unlisted} + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl4, which has an **overriding** short-caption. This is the expected usage. []{#tbl:tbl-label4 short-caption="Table 4 *short* capt."} + + +# Non-standard usage/errors + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl5, which does not have a label, but does have empty braces at the end. {} + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl6, which does not have a label, but does have an empty span at the end. []{} + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl7, which is improperly formatted, and will appear in the list of tables. This filter requires that `.unlisted` is placed in a span. {#tbl:tbl-label7 .unlisted} + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl8, which has an empty short-caption. An empty short-caption does nothing. The long caption will still be used. []{#tbl:tbl-label8 short-caption=""} + + +| cola | colb | +| ---- | ---- | +| a1 | b1 | +| a2 | b2 | + +Table: This is the *italicised long caption* of tbl9, which is **unlisted**, yet has a short-caption. []{#tbl:tbl-label9 .unlisted short-caption="Table 9 **unlisted** *short* capt."} |