summaryrefslogtreecommitdiff
path: root/Doc/intro.ms
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
committerJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
commit26e09889646be3ea65b4a3dfeda26213e4bb6a27 (patch)
tree4f3c73a9416bf47ad7e125383d23cf42879e38d7 /Doc/intro.ms
parent841bce705a58b04220b1f257abcc00ae71cbdbdc (diff)
parent001cba48ce3b964cf01fb3e2af54b20eacbc9bf5 (diff)
downloadzsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.tar.gz
zsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Doc/intro.ms')
-rw-r--r--Doc/intro.ms40
1 files changed, 35 insertions, 5 deletions
diff --git a/Doc/intro.ms b/Doc/intro.ms
index 4dd08f601..49f6cc07f 100644
--- a/Doc/intro.ms
+++ b/Doc/intro.ms
@@ -3,8 +3,32 @@
.if \n(.g \{\
.if "\*(.T"ascii" .ftr C R
.if "\*(.T"latin1" .ftr C R
+.if "\*(.T"html" .nr HTML 1
.nr De \n[.ss]
.\}
+.\" ----- macro defintions -----
+.\" Ds/De: start/end of example
+.\" Sh: section header
+.\" XXX: It seems we can't use the same definition for both pdf and html
+.\" (at least with groff-12.3.0).
+.\"
+.\" for HTML output
+.ie \n[HTML] \{\
+.de Ds
+.DS I .5i
+.ft C
+..
+.de De
+.DE
+.ft R
+..
+.de Sh
+.NH
+\\$1
+..
+.\}
+.\" for other output (such as PDF)
+.el \{\
.de Ds
.DS I .5i
.ft C
@@ -21,12 +45,13 @@
.el .ss
..
.de Sh
-.SH
-\\$1
-.XS
-\\$1
-.XE
+.NH
+.XN \\$1
..
+.\}
+.\"
+.\" ----- Cover page -----
+.if !\n[HTML] \{\
.nr HM 4i
.ce 99
.ps 18
@@ -50,6 +75,9 @@ bas@phys.uva.nl\fP
.sv |1i
.pn 1
.bp
+.\}
+.\"
+.\" ----- main text -----
.TL
An Introduction to the Z Shell
.AU
@@ -2712,6 +2740,7 @@ I (Bas de Bakker) would be happy to receive mail if anyone has any
tricks or ideas to add to this document, or if there are some points
that could be made clearer or covered more thoroughly. Please notify
me of any errors in this document.
+.if !\n[HTML] \{\
.if o \{\
.bp
.sv 1i
@@ -2719,3 +2748,4 @@ me of any errors in this document.
.pn 1
.bp
.PX
+.\}