Hide last authors
Vincent Massol 15.1 1 Note: This macro works only standalone (and not inline) voluntarily. This is to allow displaying the versions in the gutter for example, which wouldn't be possible if used inline.
2
Vincent Massol 32.1 3 = Example 1: Inline with "since" =
Vincent Massol 16.1 4
5 {{code}}
Vincent Massol 27.1 6 {{version since='11.10.5, 12.5, 12.7RC1'}}
Vincent Massol 6.1 7 New feature...
8 {{/version}}
Vincent Massol 16.1 9 {{/code}}
Vincent Massol 11.1 10
Vincent Massol 16.1 11 Results in:
12
Thomas Mortagne 43.1 13 {{version since="11.10.5, 12.5, 12.7RC1"}}
Vincent Massol 16.1 14 New feature...
15 {{/version}}
16
Vincent Massol 32.1 17 = Example 2: Standalone with "before" =
Vincent Massol 16.1 18
19 {{code}}
Vincent Massol 15.2 20 {{version before='11.10.5, 12.5'}}
Vincent Massol 32.1 21 Paragraph1
22
23 Paragraph2
24
Vincent Massol 11.1 25 {{/version}}
Vincent Massol 16.1 26 {{/code}}
27
28 Results in:
29
Thomas Mortagne 43.1 30 {{version before="11.10.5, 12.5"}}
Vincent Massol 32.1 31 Paragraph1
32
33 Paragraph2
Vincent Massol 16.1 34 {{/version}}
Vincent Massol 32.1 35
36 = Example 3: Inline in list items =
37
38 {{code}}
39 * {{version since='11.10.5'}}List item1{{/version}}
40 * {{version since='12.5'}}List item2{{/version}}
41 * {{version since='12.7RC1'}}List item3{{/version}}
42 {{/code}}
43
44 Results in:
45
Thomas Mortagne 44.1 46 * {{version since="11.10.5"}}List item1{{/version}}
Thomas Mortagne 43.1 47 * {{version since="12.5"}}List item2{{/version}}
48 * {{version since="12.7RC1"}}List item3{{/version}}
Vincent Massol 32.1 49
Vincent Massol 36.1 50 = Example 4: Different product =
51
52 {{code}}
Vincent Massol 41.1 53 {{version product='Latex' since='11.10.5, 12.5, 12.7RC1'}}
Vincent Massol 36.1 54 New feature...
55 {{/version}}
56 {{/code}}
57
58 Results in:
59
Thomas Mortagne 43.1 60 {{version product="Latex" since="11.10.5, 12.5, 12.7RC1"}}
Vincent Massol 36.1 61 New feature...
62 {{/version}}

Get Connected