diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-10-03 16:44:19 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-10-03 16:44:19 +0200 |
commit | 753dd0cbafc567d4960c5fc4888ccb4e2302c64d (patch) | |
tree | 6fe5c8e25d597f535b4c7d6b6d254445f79a1e6d /doc/context/sources | |
parent | 551c89289d267c2d8901f3375e57ed1fe2508de5 (diff) | |
download | context-753dd0cbafc567d4960c5fc4888ccb4e2302c64d.tar.gz |
2018-10-03 16:11:00
Diffstat (limited to 'doc/context/sources')
-rw-r--r-- | doc/context/sources/general/manuals/xtables/xtables-mkiv.tex | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/xtables/xtables-mkiv.tex b/doc/context/sources/general/manuals/xtables/xtables-mkiv.tex index 827ad3fcc..1b878e5cb 100644 --- a/doc/context/sources/general/manuals/xtables/xtables-mkiv.tex +++ b/doc/context/sources/general/manuals/xtables/xtables-mkiv.tex @@ -1250,6 +1250,101 @@ you're lucky. \stopsection +\startsection[title={Swapping}] + +The next two examples demonstrate a feature added for Taco, who wanted to input +vertical instead of horizontal. It's a bit of a hack but it works okay for +simple cases. We assume these settings: + +\startbuffer[settings] +\setupxtable[one] [foregroundcolor=darkred] +\setupxtable[two] [foregroundcolor=darkgreen] +\setupxtable[three][foregroundcolor=darkblue] +\setupxtable[four] [foregroundcolor=darkorange] +\stopbuffer + +\startbuffer[demo-1] +\startxtable[frame=on] + \startxcolumn[one] + \startxcell A1 \stopxcell + \startxcell B1 \stopxcell + \startxcell C1 \stopxcell + \startxcell D1 \stopxcell + \startxcell E1 \stopxcell + \stopxcolumn + \startxcolumn[two] + \startxcell A2 \stopxcell + \startxcell B2 \stopxcell + \startxcell C2 \stopxcell + \startxcell D2 \stopxcell + \startxcell E2 \stopxcell + \stopxcolumn + \startxcolumn[three] + \startxcell A3 \stopxcell + \startxcell B3 \stopxcell + \startxcell C3 \stopxcell + \startxcell D3 \stopxcell + \startxcell E3 \stopxcell + \stopxcolumn + \startxcolumn[four] + \startxcell A4 \stopxcell + \startxcell B4 \stopxcell + \startxcell C4 \stopxcell + \startxcell D4 \stopxcell + \startxcell E4 \stopxcell + \stopxcolumn +\stopxtable +\stopbuffer + +\startbuffer[demo-2] +\startxtable[frame=on] + \startxcolumn[one] + \startxcell A \stopxcell + \startxcell B \stopxcell + \startxcell C \stopxcell + \startxcell D \stopxcell + \startxcell E \stopxcell + \stopxcolumn + \startxcolumn[two] + \startxcell A \stopxcell + \startxcell[ny=2] BC \stopxcell + \startxcell[ny=2] DE \stopxcell + \stopxcolumn + \startxcolumn[three] + \startxcell A \stopxcell + \startxcell[ny=4] BCDE \stopxcell + \stopxcolumn + \startxcolumn[four] + \startxcell A \stopxcell + \startxcell B \stopxcell + \startxcell[ny=2] CD \stopxcell + \startxcell E \stopxcell + \stopxcolumn +\stopxtable +\stopbuffer + +\typebuffer[settings] + +The first example has no spans: + +\typebuffer[demo-1] + +while the second one has: + +\typebuffer[demo-2] + +The results are shown in \in {figure} [fig:swapped]. + +\startplacefigure[title={Entering columns instead of rows.},reference=fig:swapped] + \getbuffer[settings] + \startcombination + {\getbuffer[demo-1]} {no spans} + {\getbuffer[demo-2]} {some spans} + \stopcombination +\stopplacefigure + +\stopsection + \startsection[title={Examples}] On the following pages we show some examples of (experimental) features. For this |