diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/meta/outline-indent.png | bin | 0 -> 309889 bytes | |||
| -rw-r--r-- | tests/typ/meta/outline-indent.typ | 60 |
2 files changed, 60 insertions, 0 deletions
diff --git a/tests/ref/meta/outline-indent.png b/tests/ref/meta/outline-indent.png Binary files differnew file mode 100644 index 00000000..816d86a5 --- /dev/null +++ b/tests/ref/meta/outline-indent.png diff --git a/tests/typ/meta/outline-indent.typ b/tests/typ/meta/outline-indent.typ new file mode 100644 index 00000000..a4ef6c81 --- /dev/null +++ b/tests/typ/meta/outline-indent.typ @@ -0,0 +1,60 @@ +// Tests outline 'indent' option. + +--- +// With heading numbering +#set page(width: 200pt) +#set heading(numbering: "1.a.") +#outline() +#outline(indent: false) +#outline(indent: true) +#outline(indent: none) +#outline(indent: auto) +#outline(indent: 2em) +#outline(indent: n => ([-], [], [==], [====]).at(n)) +#outline(indent: n => "!" * calc.pow(2, n)) + += About ACME Corp. + +== History +#lorem(10) + +== Products +#lorem(10) + +=== Categories +#lorem(10) + +==== General +#lorem(10) + +--- +// Without heading numbering +#set page(width: 200pt) +#outline() +#outline(indent: false) +#outline(indent: true) +#outline(indent: none) +#outline(indent: auto) +#outline(indent: 2em) +#outline(indent: n => ([-], [], [==], [====]).at(n)) +#outline(indent: n => "!" * calc.pow(2, n)) + += About ACME Corp. + +== History +#lorem(10) + +== Products +#lorem(10) + +=== Categories +#lorem(10) + +==== General +#lorem(10) + +--- +// Error: 2-35 indent function must return content +#outline(indent: n => (a: "dict")) + += Heading |
