1%D \module 2%D [ file=core-itm, 3%D version=2023.21.007, 4%D title=\CONTEXT\ Table Macros, 5%D subtitle=Itemize, 6%D author=Hans Hagen, 7%D date=\currentdate, 8%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] 9%C 10%C This module is part of the \CONTEXT\ macro||package and is 11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12%C details. 13 14\writestatus{loading}{ConTeXt Table Macros / Itemize} 15 16%D This is a bit weird module but also kind of fun. It permits mixing tables with 17%D numbered items. 18%D 19%D \starttyping 20%D \startitemize[n,loose] 21%D \startitem \samplefile{ward} \stopitem 22%D \starttabulate[|pl|i3pl|] 23%D \NC \startitem \samplefile{ward} \stopitem 24%D \NC \startitem \samplefile{tufte} \stopitem 25%D \NC \NR 26%D \NC \startitem \samplefile{ward} \stopitem 27%D \NC \startitem \samplefile{tufte} \stopitem 28%D \NC \NR 29%D \stoptabulate 30%D \startitem \samplefile{tufte} \stopitem 31%D \stopitemize 32%D 33%D \page 34%D 35%D \starttabulate[|l|i3pl|] 36%D \NC one \NC 37%D \startitemize[n] 38%D \startitem \samplefile{ward} \stopitem 39%D \startitem \samplefile{tufte} \stopitem 40%D \stopitemize 41%D \NC \NR 42%D \stoptabulate 43%D 44%D \page 45%D 46%D \startitemize[n,loose,packed] 47%D \startitem \samplefile{ward} \stopitem 48%D \startlinecorrection 49%D \bTABLE[distance=2em] 50%D \bTR 51%D \bTD \startitem \samplefile{ward} \stopitem \eTD 52%D \bTD \startitem \samplefile{tufte} \stopitem \eTD 53%D \eTR 54%D \eTABLE 55%D \stoplinecorrection 56%D \startitem \samplefile{tufte} \stopitem 57%D \stopitemize 58%D 59%D \page 60%D 61%D \bTABLE 62%D \bTR 63%D \bTD 64%D \startitemize[n] 65%D \startitem \samplefile{ward} \stopitem 66%D \startitem \samplefile{tufte} \stopitem 67%D \stopitemize 68%D \eTD 69%D \eTR 70%D \eTABLE 71%D \stoptyping 72%D 73%D We don't (yet) deal with spacing but at some point it might happen as it depends 74%D on usage. 75 76\unprotect 77 78\appendtoks 79 \ifcase\c_strc_itemgroups_nesting\else 80 \strc_counters_save\v_strc_itemgroups_counter 81 \fi 82\to \t_tabl_tabulate_initializers_first 83 84\appendtoks 85 \ifcase\c_strc_itemgroups_nesting\else 86 \strc_counters_restore\v_strc_itemgroups_counter 87 \fi 88\to \t_tabl_tabulate_initializers_second 89 90\appendtoks 91 \ifcase\c_strc_itemgroups_nesting\else 92 \strc_counters_save\v_strc_itemgroups_counter 93 \fi 94\to \t_tabl_ntb_initializers_first 95 96\appendtoks 97 \ifcase\c_strc_itemgroups_nesting\else 98 \strc_counters_restore\v_strc_itemgroups_counter 99 \fi 100\to \t_tabl_ntb_initializers_second 101 102\protect \endinput 103 |