aboutsummaryrefslogtreecommitdiff
path: root/example.t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-20 12:13:21 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-20 12:13:21 +0200
commit6a3a9a2e64a281d33614f5b43506097ec7935ced (patch)
treeb00983a8ff6461a37d93ff4e32e0da4f3a073f25 /example.t
parentc6398db06efb36dc9522782477b1bd8d15f5d2d3 (diff)
downloadmk-6a3a9a2e64a281d33614f5b43506097ec7935ced.tar.gz
example.t: Add example for t, d
Diffstat (limited to 'example.t')
-rw-r--r--example.t20
1 files changed, 19 insertions, 1 deletions
diff --git a/example.t b/example.t
index f9bda72..09607b6 100644
--- a/example.t
+++ b/example.t
@@ -264,7 +264,24 @@ paragraph
subheading
.n
.c t ,
-centered title of document
+centered title
+.p
+The
+.c t
+and
+.c d
+macros can be used at the beginning of a document
+to create a centered header:
+.l
+\&.t
+Document title
+\&.d "First author"
+\&.d "Second author"
+\&.d \\" current date
+.p
+Here, you can see that the
+.c d
+macro may be used for other things than dates.
.
.s
Other macros
@@ -288,6 +305,7 @@ surrounding text in quotation marks,
but if no arguments are given to it,
it starts an indented block quotation instead:
.l
+.ne 2
\&.q
This is an indented quotation.
\&.p