File: basic.troff

package info (click to toggle)
doclifter 2.21-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,888 kB
  • sloc: python: 10,117; xml: 2,384; sh: 274; makefile: 79; lisp: 37
file content (71 lines) | stat: -rw-r--r-- 1,225 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.\" Test for various troff features
.\" Test translation
.tr $\(bu
We should see a bullet literal $ here. 
.ds XX frozzle
This is a \*(XX string expansion example.
.\" Simple macro definition, no macro calls inside it
.de YY
Macro expansion text with argument \$1
..
.\" Here's the test invocation
.YY foo
.\" Let's be sure we keep getting lines after macroexpansion
.de AA
Before subcall
.YY bar
After subcall: \$1
..
.\" next line tests .so
.so testinclude
.\" OK, here's the two-level macroexpansion
.AA baz
.\" Test conditionals
.de CO1
.if n
1: You should see this
.\}
..
.CO1
.de CO2
.ie n \{
2: You should see this
.\}
.el\{
2: You should not see this
.\}
..
.CO2
.pm
.ie n 3: You should see this
.el 3: You should not see this
.\" Something is funky with the else handling
.if n TRUE
.el FALSE
\" Test HTMLization
.br <foo>
Hi there
.de Sh
dummy
..
.\" Do we blow our stack?
.if n .Sh """Considerations"""
.el .Sh "``Considerations''"
.\" Example test
.ft CW
.in +4
.nf
This is an example
.ft
.in -4
.fi
foo\ bar
.br
This line tests recognition of \v'-.4m'\fIsuperscripting\*(ic\fR\v'.4m')
This line tests recognition of the \uother\d superscript idiom.
Before ignore
.ig 
This line is ignored
..
After ignore
# End.