shithub: iwp9-proceedings

Download patch

ref: d765e3c2655830fcef5de3094eff059808c9f346
parent: fd833305d7e920cc52ad1f24d6e290f925b087c9
author: Edouard Klein <edk@beaver-labs.com>
date: Wed Apr 1 10:35:36 EDT 2026

More complete troff template

--- a/paper.ms
+++ b/paper.ms
@@ -1,20 +1,167 @@
-.\" Formatting from https://github.com/rminnich/vmproc
-.HTML "Paper title"
-.TL
-Paper title
-.AU
-Author name
-.sp
-author email
-.\" Remove page numbers
+\"Compile with groff -ms -p -t -Tpdf \"
+\"Or whatever the equivalent on your system is\"
+\"Code blocks\"
+.de CODE
+.P1
+.ft CW
+.in +4n
+..
+.de ENDCODE
+.in
+.ft R
+.P2
+..
+\"Remove footer and header (no page numbers)\"'
 .rm CH
-.nr % 0
 .de PF
 ..
+\"\"
+
+.HTML "Sample .ms Document"
+.TL
+A Demonstration of ms Macros and Formatting\(dg
+
+.FS
+\(dgExample footnote attached to the title.
+.FE
+
+.AU
+First Author
+.sp
+first@example.com
+.sp 2
+Second Author
+.sp
+second@example.com
+
+
+\" Page footer macro (empty here)
+
 .AB
-Abstract...
+This is an abstract block. It is typeset differently from the main text.
+
+You can use it for summaries or front-matter content. It supports
+multiple paragraphs and inline formatting such as \fIitalic\fP or \fBbold\fP.
 .AE
+
+.PP
+.NH 1
+Section Heading
+.LP
+This is a normal paragraph introduced with .LP. Text flows and is
+justified automatically.
+
+.LP
+You can emphasize text with inline escapes:
+\fIitalic\fP, \fBbold\fP, \f(CWmonospace\fP.
+
 .SH
-Introduction
+Paragraph Variants
+.PP
+This is a .PP paragraph (similar to .LP, but with indentation).
+
+.IP \(bu 3
+This is a bullet list item using .IP.
+
+.IP \(bu 3
+Another bullet item.
+
+.IP "1." 3
+Numbered-style item.
+
+.SH
+Code Blocks
 .LP
-Paper content
+Use .CODE/.ENDCODE for preformatted blocks:
+
+.CODE
+int main(void) {
+    return 0;
+}
+.ENDCODE
+
+.LP
+Spacing and indentation are preserved.
+
+.SH
+Displays and Figures
+.LP
+You can include diagrams using pic:
+
+.PS
+A: box "A"
+arrow
+B: box "B"
+.PE
+
+.LP
+The diagram above is centered and treated as a display.
+
+.SH 
+Tables
+.LP
+Tables use .TS/.TE:
+
+.TS
+allbox tab(|);
+c c c.
+Column 1|Column 2|Column 3
+A|B|C
+1|2|3
+.TE
+
+.SH 
+Footnotes
+.LP
+Footnotes can be inserted inline\(dd.
+
+.FS
+\(ddThis is a sample footnote.
+.FE
+
+.SH
+Spacing and Breaks
+.LP
+You can insert vertical space with .sp:
+
+.sp 2
+This line appears after extra vertical space.
+
+.LP
+Force a line break with .br
+.br
+This starts on a new line.
+
+.SH
+Fonts and Sizes
+.LP
+Font changes:
+\fRroman\fP,
+\fIitalic\fP,
+\fBbold\fP,
+\f(CWtypewriter\fP.
+
+.LP
+You can also adjust point size locally if needed.
+
+.SH
+Miscellaneous
+.LP
+Special characters:
+\(dg dagger,
+\(bu bullet,
+\(em em-dash.
+
+.LP
+Registers and macros can be defined for advanced usage, but are not
+required for basic documents.
+
+.SH
+Another Section
+.LP
+Sections are introduced with .SH and are not automatically numbered
+(depending on roff flavor)
+
+.LP
+This concludes the demonstration.
+
--