summaryrefslogtreecommitdiffstats
path: root/src/boost/tools/quickbook/test/callouts-1_7.quickbook
blob: 5361ba9004162bd8009567b909ebb1e4c1f05a55 (plain)
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
72
73
[article Callout Tests
    [quickbook 1.7]
]

[import callouts.cpp]

Example 1:

[example1]

Example 2:

[example2]

Example 3:

[example3]

Example 3 (again!):

[example3]

Example 4:

[example4]
[example4a]

[section:test_section Try callouts in a section]

Example 1:

[example1]

Example 2:

[example2]

Example 3:

[example3]

Example 3 (again!):

[example3]

Example 4:

[example4]
[example4a]

[endsect]

[section:blocks Callouts in code blocks]

    int roll_die() {
      boost::uniform_int<> dist(1, 6); /*< create a uniform_int distribution >*/
    }

```
int roll_die() {
  /*<< [important test] >>*/
  boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
}
```

`/*< This shouldn't be a callout >*/`

[block'''
<para>Silly test<co linkends="silly-callout"/></para>
<calloutlist><callout id="silly-callout"><para>silly</para></callout></calloutlist>
''']

[endsect]