Module Name: src Committed By: uwe Date: Fri Nov 29 16:15:09 UTC 2019
Modified Files: src/distrib/notes/common: macros Log Message: Provide separate .Tc and .Ti definitions for HTML and non-HTML. Change HTML definition of .Tc to enclose TOC into simple .nf/.fi that also give us <pre> in the output. This frees our hands to redefine non-HTML case to use better formatting (work in progress). To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/distrib/notes/common/macros Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/notes/common/macros diff -u src/distrib/notes/common/macros:1.51 src/distrib/notes/common/macros:1.52 --- src/distrib/notes/common/macros:1.51 Thu Nov 28 19:59:48 2019 +++ src/distrib/notes/common/macros Fri Nov 29 16:15:09 2019 @@ -1,4 +1,4 @@ -.\" $NetBSD: macros,v 1.51 2019/11/28 19:59:48 uwe Exp $ +.\" $NetBSD: macros,v 1.52 2019/11/29 16:15:09 uwe Exp $ .\" .\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -342,11 +342,23 @@ .if rHTML <a name="\\$*"></a> .if dTOC .mktoc \\n[To-toc-level] \\$@ .. -.de Ti +.\" .Tc and .Ti for HTML .ie rHTML \{\ +.de Ti \h'3n*\\$1u' <a href="#\\$3">\\$3</a> +.. +.de Tc +.tm ...reading \*[toc-file] +.nf +.\" Use so-real here because toc-file is in objdir not .CURDIR +.so-real \*[toc-file] +.fi +.. .\} -.el \h'3n*\\$1u' \\$3\a\\$2 +.\" .Tc and .Ti for text and postscript +.ei \{\ +.de Ti +\h'3n*\\$1u' \\$3\a\\$2 .. .de Tc .Bd -literal @@ -357,6 +369,7 @@ .so-real \*[toc-file] .Ed .. +.\} . . .\" -------------------- MISC --------------------