docs/master
diff style @ 151:ff3a6a0e6255
Added system for references within the document. Macros: .Id and .Cf.
``.Id foo'' places a marker at that place.
``.Cf foo'' puts the section number of the marked place there.
``.Cf foo.page'' puts the page number of the marked place there.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 06 Jul 2012 14:59:08 +0200 |
parents | 83681ad27ec8 |
children | 1b9bdc178610 |
line diff
1.1 --- a/style Fri Jul 06 10:13:55 2012 +0200 1.2 +++ b/style Fri Jul 06 14:59:08 2012 +0200 1.3 @@ -410,6 +410,13 @@ 1.4 .CW "\\*(_t" "]\\$2 1.5 .. 1.6 1.7 -.de Cf \" cf. (ref within document) 1.8 -(\(-> \\$1)\\$2 1.9 +. \" Cf - reference within the document ($1=name of ref file) 1.10 +.de Cf 1.11 +\.if !\\nZ .so refs/\\$1 \c 1.12 +\\$2 1.13 .. 1.14 + 1.15 +. \" Id - put a referenceable marker here ($1=identifier) 1.16 +.de Id 1.17 +.tm REF____\\$1\t\\*(SN\t\\n(PN 1.18 +..