[NTG-context] Some questions about an extreme table

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sun Aug 26 09:58:26 CEST 2018


Number them by hand (or replace the descriptions I used with enumerations).

The alignment of the graphics can be improved with the \tbox command, 
which raises the argument by the height of a strut.


\useMPlibrary[dum]

\switchtobodyfont[pagella,12pt]

\setuplayout
   [topspace=10mm,
    header=10mm,
    footer=10mm,
    height=middle,
    backspace=20mm,
    width=middle]

\definedescription
   [Item]
   [width=1.5em,
    distance=none]

\starttext

\startxtable[bodyfont=10pt]
     \startxrow
         \startxcell[width=2cm]
             Expression\\\m{B'(x)}
         \stopxcell
         \startxcell
             \startItem{a.}\m{B'(x)=-x²+24x-117}\stopItem
         \stopxcell
         \startxcell
             \startItem{b.}\m{B'(x)=-3x²+48x-117}\stopItem
         \stopxcell
         \startxcell
             \startItem{c.}\m{B'(x)=-3x²+48x-317}\stopItem
         \stopxcell
     \stopxrow
     \startxrow
         \startxcell
             Tableau de \\ signes de  \\ \m{B'(x)}
         \stopxcell
         \startxcell
             \startItem{d.}\tbox{\externalfigure[dummy]}\stopItem
         \stopxcell
         \startxcell
             \startItem{e.}\tbox{\externalfigure[dummy]}\stopItem
         \stopxcell
         \startxcell
             \startItem{f.}\tbox{\externalfigure[dummy]}\stopItem
         \stopxcell
     \stopxrow
     \startxrow
         \startxcell
             Tableau de\\variations\\de \m{B}
         \stopxcell
         \startxcell
             \startItem{g.}\tbox{\externalfigure[dummy]}\stopItem
         \stopxcell
         \startxcell
             \startItem{h.}\tbox{\externalfigure[dummy]}\stopItem
         \stopxcell
         \startxcell
             \startItem{i.}\tbox{\externalfigure[dummy]}\stopItem
         \stopxcell
     \stopxrow
\stopxtable

\stoptext

Wolfgang


Fabrice Couvreur schrieb am 26.08.18 um 01:49:
> Hello,
> In the table, how to have a. b. c. in each line instead of a. a. a ?
> Is the macro to place the figures on the baseline of the labels to be 
> improved ?
> Thanks.
> Fabrice
>
> \useMPlibrary[dum]
>
> \switchtobodyfont[pagella,12pt]
>
> \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}}
>
> \setuplayout
> [topspace=10mm,
>     header=10mm,
>     footer=10mm,
> height=middle,
>     backspace=20mm,
>     width=middle]
>
> \starttext
>  \startxtable[frame=on,bodyfont=10pt]
> \startxrow
>           \startxcell[width=2cm]
> Expression \\ \m{B'(x)}
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \m{B'(x)=-x²+24x-117}
>               \stopitem
> \stopitemize
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \m{B'(x)=-3x²+48x-117}
>               \stopitem
> \stopitemize
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \m{B'(x)=-3x²+48x-317}
>               \stopitem
> \stopitemize
>           \stopxcell
>         \stopxrow
> \startxrow
>           \startxcell
>             Tableau de \\ signes de  \\ \m{B'(x)}
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \Item{{\externalfigure[dummy]}}
>               \stopitem
> \stopitemize
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \Item{\externalfigure[dummy]}
>               \stopitem
> \stopitemize
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \Item{\externalfigure[dummy]}
>               \stopitem
> \stopitemize
>           \stopxcell
>         \stopxrow
> \startxrow
>           \startxcell
>             Tableau de \\ variations\\de \m{B}
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \Item{\externalfigure[dummy]}
>               \stopitem
> \stopitemize
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \Item{\externalfigure[dummy]}
>               \stopitem
> \stopitemize
>           \stopxcell
>           \startxcell
> \startitemize[packed,a]
>               \startitem
> \Item{\externalfigure[dummy]}
>               \stopitem
> \stopitemize
>           \stopxcell
>         \stopxrow
> \stopxtable
>
> \stoptext

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180826/9670a0a5/attachment-0001.html>


More information about the ntg-context mailing list