ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Adjust the dimensions of a sub-table in an extreme table ?
@ 2018-08-30 20:16 Fabrice Couvreur
  2018-08-30 20:49 ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2018-08-30 20:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3655 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 6137 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Adjust the dimensions of a sub-table in an extreme table ?
  2018-08-30 20:16 Adjust the dimensions of a sub-table in an extreme table ? Fabrice Couvreur
@ 2018-08-30 20:49 ` Pablo Rodriguez
  2018-08-31 15:53   ` Fabrice Couvreur
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2018-08-30 20:49 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Adjust the dimensions of a sub-table in an extreme table ?
  2018-08-30 20:49 ` Pablo Rodriguez
@ 2018-08-31 15:53   ` Fabrice Couvreur
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Couvreur @ 2018-08-31 15:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1073 bytes --]

Hi Pablo,
Thank you for the solution.
Fabrice

Le jeu. 30 août 2018 à 22:49, Pablo Rodriguez <oinos@gmx.es> a écrit :

> 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
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 2262 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-31 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30 20:16 Adjust the dimensions of a sub-table in an extreme table ? Fabrice Couvreur
2018-08-30 20:49 ` Pablo Rodriguez
2018-08-31 15:53   ` Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).