I have groff file to generate a pdf in the format:
.TL
Article title
.AU
Author name
.AI
Publication title
.SH
.LP
First paragraph
.PP
More paragraphs
I'm then running
Is there anyway I can insert a section into groff that will preserve the spaces so these kind of diagrams can be used?
Looking at the manual for
groff -ms a.ms -T pdf > a.pdf
to generate a pdf. I like how groff makes formatting easy but I'm wondering if it would be possible to include an ascii diagram.
For example the following:
+-------------------------+ +-----------------+
| | | |
| Hello | | |
| +-------------+ |
| | | |
+-------------------------+ +-----------------+
If input as a normal paragraph turns into:

groff_ms
I see:
> .PS and .PE Denotes a graphic, to be processed by the pic
> preprocessor. You can create a pic file by hand, using the AT&T pic
> manual available on the Web as a reference, or by using a graphics
> program such as xfig.
But this seems to only accept pic language markup .
Is there anyway I can insert assci drawings into groff?
Asked by Philip Kirkbride
(10746 rep)
Nov 12, 2018, 10:21 PM
Last activity: Nov 3, 2020, 05:25 PM
Last activity: Nov 3, 2020, 05:25 PM