The normal alignment of figures is with the bottom of the figure on the baseline.

You can control the vertical alignment with a few box commands but what you should use depends on the context, in tables I would use 2 while in running text 3 can be better. Which alignment you’re using is your choice.


\useMPlibrary[dum]

\defineexternalfigure[dummy][width=4cm,height=3cm]

\setuplayout[grid=yes]

\showgrid

\starttext

Default: \externalfigure[dummy]

%1: \bottomrightbox{\externalfigure[dummy]}\quad
1: \aligned[bottom,right]{\externalfigure[dummy]}\quad
2: \tbox{\externalfigure[dummy]}\quad
3: \bbox{\externalfigure[dummy]}

\stoptext


Wolfgang



Fabrice Couvreur schrieb am 26.08.18 um 10:50:
Hi Wolfgang,
Thank you but is not it better that the top of the figure is on the baseline of the label ?
Fabrice

@Mikael I meant : is the macro robust ?

Le dim. 26 août 2018 à 09:58, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> a écrit :
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