1[article Callout Tests 2 [quickbook 1.7] 3] 4 5[import callouts.cpp] 6 7Example 1: 8 9[example1] 10 11Example 2: 12 13[example2] 14 15Example 3: 16 17[example3] 18 19Example 3 (again!): 20 21[example3] 22 23Example 4: 24 25[example4] 26[example4a] 27 28[section:test_section Try callouts in a section] 29 30Example 1: 31 32[example1] 33 34Example 2: 35 36[example2] 37 38Example 3: 39 40[example3] 41 42Example 3 (again!): 43 44[example3] 45 46Example 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``` 60int 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] 74