aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/sciteco.tmac
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sciteco.tmac')
-rw-r--r--doc/sciteco.tmac23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/sciteco.tmac b/doc/sciteco.tmac
index 026e489..8e53407 100644
--- a/doc/sciteco.tmac
+++ b/doc/sciteco.tmac
@@ -66,6 +66,29 @@
. device sciteco_setstyling:\\$1
..
.
+.\" Set the fold level of the current line __and__ all following lines.
+.\" This could be called at the beginning of chapters and sections.
+.de SCITECO_FOLDLEVEL
+. device sciteco_foldlevel:\\$1
+..
+.
+.\" man-page specific extensions.
+.\" FIXME: Is there a reliable way to detect the man-page macros?
+.if dan \{\
+. rn SH SH-orig
+. de SH
+. SH-orig
+. SCITECO_FOLDLEVEL 1
+. nop \\$*
+. .
+. rn SS SS-orig
+. de SS
+. SS-orig
+. SCITECO_FOLDLEVEL 2
+. nop \\$*
+. .
+.\}
+.
.\"
.\" Effectively disable paragraph filling in man pages.
.\" Word wrapping will be performed by Scintilla.