Adjust the dimensions of a sub-table in an extreme table ?
Hello, In the main table there are three sub-tables. How to adapt the dimensions of the second and third sub-tables to that of the first sub-table ? Thank you Fabrice \unexpanded\def\euros#1{#1\,€} \setuplayout [height=middle, width=middle, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \starttext \startxtable \startxrow \startxcell[width=0.6\textwidth] \stopxcell \startxcell[width=0.4\textwidth] {\darkred Document 2 :} {\bf Ticket de caisse taché du 29/08/2015.} \startxtable[align={lohi,middle}] \startxrow \startxcell {\bf Qté} \stopxcell \startxcell {\bf Article} \stopxcell \startxcell {\bf Prix H.T (\euros{})} \stopxcell \stopxrow \startxrow \startxcell 10 \stopxcell \startxcell Bouteille eau minérale 33 cl \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell 2 \stopxcell \startxcell Sandwich (consommation sur place) \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell 1 \stopxcell \startxcell Tee-shirt \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell \stopxcell \startxcell[align=left] Total H.T. \stopxcell \startxcell {\bf 24,8} \stopxcell \stopxrow \stopxtable \startxtable[align={lohi,middle}] \startxrow \startxcell {\bf T.V.A} \stopxcell \startxcell \stopxcell \startxcell {\bf Taxe(\euros{}) } \stopxcell \stopxrow \startxrow \startxcell 5,5\,\% \stopxcell \startxcell \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell 10\,\% \stopxcell \startxcell \stopxcell \startxcell \stopxcell \stopxrow \startxrow \startxcell 20\,\% \stopxcell \startxcell[align=left] Total T.V.A. \stopxcell \startxcell {\bf 2,8} \stopxcell \stopxrow \stopxtable \startxtable[align={lohi,middle}] \startxrow \startxcell {\bf Total} \stopxcell \startxcell \stopxcell \startxcell {\bf Prix T.T.C. (\euros{})} \stopxcell \stopxrow \startxrow \startxcell \stopxcell \startxcell[align=left] 13 articles \stopxcell \startxcell {\bf 28,5} \stopxcell \stopxrow \stopxtable \stopxcell \stopxrow \stopxtable \stoptext
On 08/30/2018 10:16 PM, Fabrice Couvreur wrote:
Hello, In the main table there are three sub-tables. How to adapt the dimensions of the second and third sub-tables to that of the first sub-table ?
Hi Fabrice, I guess that \startxtable[option=stretch] is what you might need for your second and third nested tables. I hope it helps, Pablo -- http://www.ousia.tk
Hi Pablo,
Thank you for the solution.
Fabrice
Le jeu. 30 août 2018 à 22:49, Pablo Rodriguez
On 08/30/2018 10:16 PM, Fabrice Couvreur wrote:
Hello, In the main table there are three sub-tables. How to adapt the dimensions of the second and third sub-tables to that of the first sub-table ?
Hi Fabrice,
I guess that \startxtable[option=stretch] is what you might need for your second and third nested tables.
I hope it helps,
Pablo -- http://www.ousia.tk
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
participants (2)
-
Fabrice Couvreur
-
Pablo Rodriguez