|
| 1 | += Anywhere Footnotes |
| 2 | + |
| 3 | +One of the AsciiDoc extension extras we run on the site is Anywhere footnotes. |
| 4 | +This extension allows you to add footnotes to the page, |
| 5 | +with the block of references appearing anywhere on the page. |
| 6 | +(Regular AsciiDoc footnotes always appear right at the bottom). |
| 7 | + |
| 8 | +This is very handy for pages where you have multiple tables appearing on the page, like this: |
| 9 | + |
| 10 | +.Sample Table Title |
| 11 | +[cols="1,2,2", options="header"] |
| 12 | +|=== |
| 13 | +|ID |Name |Description |
| 14 | + |
| 15 | +|1 |
| 16 | +|Product Aafnote:first-block[This is the first footnote] |
| 17 | +|High-quality widget with advanced features{empty}afnote:first-block[This is the second] |
| 18 | + |
| 19 | +|2 |
| 20 | +|Product B |
| 21 | +|Budget-friendly solution for everyday use |
| 22 | + |
| 23 | +|3 |
| 24 | +|Product C |
| 25 | +|Premium option with extended warranty |
| 26 | +|=== |
| 27 | + |
| 28 | +.Quarterly Sales Report 2025 |
| 29 | +[cols="1,2,1,1,1", options="header"] |
| 30 | +|=== |
| 31 | +|Quarter |Product |Units Sold |Revenue ($) |Profit Margin (%) |
| 32 | + |
| 33 | +|Q1 |
| 34 | +|Smartphone Xafnote:second-block[This is for the second block.] |
| 35 | +|5,420 |
| 36 | +|$1,084,000 |
| 37 | +|32.5 |
| 38 | + |
| 39 | +|Q1 |
| 40 | +|Laptop Pro |
| 41 | +|1,875 |
| 42 | +|$2,250,000 |
| 43 | +|28.7 |
| 44 | + |
| 45 | +|Q1 |
| 46 | +|Smart Watch |
| 47 | +|3,650 |
| 48 | +|$729,000 |
| 49 | +|41.2 |
| 50 | + |
| 51 | +|Q2 |
| 52 | +|Smartphone X |
| 53 | +|6,780 |
| 54 | +|$1,356,000afnote:second-block[Pricey!] |
| 55 | +|33.8 |
| 56 | + |
| 57 | +|Q2 |
| 58 | +|Laptop Pro |
| 59 | +|2,140 |
| 60 | +|$2,568,000 |
| 61 | +|29.4 |
| 62 | + |
| 63 | +|Q2 |
| 64 | +|Smart Watch |
| 65 | +|4,290 |
| 66 | +|$858,000 |
| 67 | +|42.1 |
| 68 | + |
| 69 | +|Q3 |
| 70 | +|Smartphone X |
| 71 | +|7,890 |
| 72 | +|$1,578,000 |
| 73 | +|34.2 |
| 74 | + |
| 75 | +|Q3 |
| 76 | +|Laptop Pro |
| 77 | +|2,560 |
| 78 | +|$3,072,000 |
| 79 | +|30.1 |
| 80 | + |
| 81 | +|Q3 |
| 82 | +|Smart Watch |
| 83 | +|5,130 |
| 84 | +|$1,026,000 |
| 85 | +|43.5 |
| 86 | +|=== |
| 87 | + |
| 88 | +== First block of footnotes |
| 89 | +afnote:first-block[] |
| 90 | + |
| 91 | +== Second block of footnotes |
| 92 | +afnote:second-block[] |
| 93 | + |
| 94 | + |
| 95 | +.Sample Product Comparison |
| 96 | +[cols="1,1,1,1"] |
| 97 | +|=== |
| 98 | +|Product |Price ($) |Rating (1-5) |Stock Status |
| 99 | + |
| 100 | +|Premium Headphonesafnote:mid-block[Special offer!] |249.99 |4.7 |In Stock |
| 101 | + |
| 102 | +|Wireless Speaker |129.95 |4.2 |Limited |
| 103 | + |
| 104 | +4+|afnote:mid-block[omit-separator="true"] |
| 105 | + |
| 106 | +|Smart Watch |199.50 |4.5 |In Stock |
| 107 | + |
| 108 | +|Bluetooth Earbuds |89.99 |4.0 |Out of Stock |
| 109 | +|=== |
| 110 | + |
0 commit comments