]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/test/callouts-1_7.quickbook
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / tools / quickbook / test / callouts-1_7.quickbook
1 [article Callout Tests
2 [quickbook 1.7]
3 ]
4
5 [import callouts.cpp]
6
7 Example 1:
8
9 [example1]
10
11 Example 2:
12
13 [example2]
14
15 Example 3:
16
17 [example3]
18
19 Example 3 (again!):
20
21 [example3]
22
23 Example 4:
24
25 [example4]
26 [example4a]
27
28 [section:test_section Try callouts in a section]
29
30 Example 1:
31
32 [example1]
33
34 Example 2:
35
36 [example2]
37
38 Example 3:
39
40 [example3]
41
42 Example 3 (again!):
43
44 [example3]
45
46 Example 4:
47
48 [example4]
49 [example4a]
50
51 [endsect]
52
53 [section:blocks Callouts in code blocks]
54
55 int roll_die() {
56 boost::uniform_int<> dist(1, 6); /*< create a uniform_int distribution >*/
57 }
58
59 ```
60 int roll_die() {
61 /*<< [important test] >>*/
62 boost::variate_generator<boost::mt19937&, boost::uniform_int<> > die(gen, dist);
63 }
64 ```
65
66 `/*< This shouldn't be a callout >*/`
67
68 [block'''
69 <para>Silly test<co linkends="silly-callout"/></para>
70 <calloutlist><callout id="silly-callout"><para>silly</para></callout></calloutlist>
71 ''']
72
73 [endsect]