Skip to content

Instantly share code, notes, and snippets.

@johndrinkwater
Last active October 13, 2018 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndrinkwater/ee8cd15a324754e4fca225c7cadb9c78 to your computer and use it in GitHub Desktop.
Save johndrinkwater/ee8cd15a324754e4fca225c7cadb9c78 to your computer and use it in GitHub Desktop.
Attempting to remove the superfluous .IX lines output from pod2man, with some merged macros. Bad idea?
.de SHX \" combine subheaders and indexing
.IX \\$1 "\\$2"
.SH "\\$2"
..
.de IPX \" combine items and indexing
.IP "\\$2" \\$3
.rn \fB \fB2
.rn \fR \fR2
.rn \fI \fI2
.IX \\$1 "\\$2"
.rn \fB2 \fB
.rn \fI2 \fI
.rn \fR2 \fR
..
.SHX Header "OPTIONS"
.IPX Item "\fB\-t\fR \fIfiletype\fR, \fB\-\-type\fR \fIfiletype\fR" 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment