Mercurial > docs > master
comparison 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 |
comparison
equal
deleted
inserted
replaced
150:472aa79f9b6f | 151:ff3a6a0e6255 |
---|---|
408 .substring _t 0 6 | 408 .substring _t 0 6 |
409 [\(rh | 409 [\(rh |
410 .CW "\\*(_t" "]\\$2 | 410 .CW "\\*(_t" "]\\$2 |
411 .. | 411 .. |
412 | 412 |
413 .de Cf \" cf. (ref within document) | 413 . \" Cf - reference within the document ($1=name of ref file) |
414 (\(-> \\$1)\\$2 | 414 .de Cf |
415 .. | 415 \.if !\\nZ .so refs/\\$1 \c |
416 \\$2 | |
417 .. | |
418 | |
419 . \" Id - put a referenceable marker here ($1=identifier) | |
420 .de Id | |
421 .tm REF____\\$1\t\\*(SN\t\\n(PN | |
422 .. |