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

Here's my proof of concept: https://ttm.sh/qhr.png

.\" Macros to typeset One Page Dungeons
.\" in groff
.\"
.de opdMap        \" start with the map
.br
.mk a             \" Mark current position
.PSPIC -L \\$1 4i \" insert map image 4 inches wide
.br
.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
.br
..
.de opdLI \" opd list entries
.br
.ti -1.3
..
.de opdLE \" opd end list
.in -1.3
.br
..
.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
..

-- 
https://octodon.social/web/@lkh
xmpp: [email protected]
IRC: lkh on Libera.chat and others
Signal: +491627291956
Discord: lkh#2319

Reply via email to