[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One Page Dungeon Layout in groff?

From: Laurens Kils-Hütten
Subject: Re: One Page Dungeon Layout in groff?
Date: Sun, 14 Aug 2022 00:04:50 +0200

So, I learned quite a bit today, thanks for the pointer to the archives.

Here's my proof of concept:

.\" Macros to typeset One Page Dungeons
.\" in groff
.de opdMap        \" start with the map
.mk a             \" Mark current position
.PSPIC -L \\$1 4i \" insert map image 4 inches wide
.mk b             \" Mark lower edge of map
.de opdSB         \" start the side bar
.sp |\\nau        \" move back to mark a
.in +4.2i         \" increase indent by 4.2 inches
.                 \" left margin is now just right 
.                 \" of the map
.ft R
.de opdH \" section header for opd stuff
.sp 1v
.ft B
.de opdLB \" opd begin entries
.ft R
.in +1.3
.de opdLI \" opd list entries
.ti -1.3
.de opdLE \" opd end list
.in -1.3
.de opdEN \" end of special opd stuff
.br  \" break line, just to make sure
.sp |\\nbu       \" move to mark b
.                \" that's the lower edge of the map
.                \" we marked above
.sp 1v

IRC: lkh on and others
Signal: +491627291956
Discord: lkh#2319

reply via email to

[Prev in Thread] Current Thread [Next in Thread]