ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some questions about an extreme table
@ 2018-08-25 23:49 Fabrice Couvreur
  2018-08-26  4:02 ` Mikael P. Sundqvist
  2018-08-26  7:58 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Couvreur @ 2018-08-25 23:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Type: text/html, Size: 4486 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] 6+ messages in thread

* Re: Some questions about an extreme table
  2018-08-25 23:49 Some questions about an extreme table Fabrice Couvreur
@ 2018-08-26  4:02 ` Mikael P. Sundqvist
  2018-08-26  7:58 ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Mikael P. Sundqvist @ 2018-08-26  4:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Sun, Aug 26, 2018 at 1:49 AM Fabrice Couvreur <
fabrice1.couvreur@gmail.com> wrote:

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


For the first one, I think you look for \startitemize[packed,a,continue].

For the second question, I don't understand if the output now looks as you
want it or not?

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 6204 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] 6+ messages in thread

* Re: Some questions about an extreme table
  2018-08-25 23:49 Some questions about an extreme table Fabrice Couvreur
  2018-08-26  4:02 ` Mikael P. Sundqvist
@ 2018-08-26  7:58 ` Wolfgang Schuster
       [not found]   ` <CACyK-eqMs8HgqZ_mdh=XPEJ9XgFDMUyzdDYo38RceUuXrbqXkg@mail.gmail.com>
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2018-08-26  7:58 UTC (permalink / raw)
  To: Fabrice Couvreur; +Cc: mailing list for ConTeXt users


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

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


[-- Attachment #1.2: Type: text/html, Size: 7197 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] 6+ messages in thread

* Re: Some questions about an extreme table
       [not found]   ` <CACyK-eqMs8HgqZ_mdh=XPEJ9XgFDMUyzdDYo38RceUuXrbqXkg@mail.gmail.com>
@ 2018-08-26 10:37     ` Wolfgang Schuster
  2018-08-26 13:19       ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2018-08-26 10:37 UTC (permalink / raw)
  To: Fabrice Couvreur; +Cc: mailing users


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

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 
> <mailto: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
>


[-- Attachment #1.2: Type: text/html, Size: 9277 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] 6+ messages in thread

* Re: Some questions about an extreme table
  2018-08-26 10:37     ` Wolfgang Schuster
@ 2018-08-26 13:19       ` Aditya Mahajan
  2018-08-26 22:02         ` Fabrice Couvreur
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2018-08-26 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

On Sun, 26 Aug 2018, Wolfgang Schuster wrote:

> 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

Another option is to use the `location` key for `\externalfigure`:


\useMPlibrary[dum]
\defineexternalfigure[dummy][width=4cm,height=3cm]
\setuplayout[grid=yes]

\showgrid

\starttext

Default: \externalfigure[dummy]

1: \externalfigure[dummy][location=top]\quad
2: \tbox{\externalfigure[dummy]}

\stoptext

Aditya

[-- 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] 6+ messages in thread

* Re: Some questions about an extreme table
  2018-08-26 13:19       ` Aditya Mahajan
@ 2018-08-26 22:02         ` Fabrice Couvreur
  0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Couvreur @ 2018-08-26 22:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,
Thank you for your suggestions.
Fabrice

Le dim. 26 août 2018 à 15:19, Aditya Mahajan <adityam@umich.edu> a écrit :

> On Sun, 26 Aug 2018, Wolfgang Schuster wrote:
>
> > 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
>
> Another option is to use the `location` key for `\externalfigure`:
>
>
> \useMPlibrary[dum]
> \defineexternalfigure[dummy][width=4cm,height=3cm]
> \setuplayout[grid=yes]
>
> \showgrid
>
> \starttext
>
> Default: \externalfigure[dummy]
>
> 1: \externalfigure[dummy][location=top]\quad
> 2: \tbox{\externalfigure[dummy]}
>
> \stoptext
>
>
> Aditya___________________________________________________________________________________
> 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: 2947 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] 6+ messages in thread

end of thread, other threads:[~2018-08-26 22:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-25 23:49 Some questions about an extreme table Fabrice Couvreur
2018-08-26  4:02 ` Mikael P. Sundqvist
2018-08-26  7:58 ` Wolfgang Schuster
     [not found]   ` <CACyK-eqMs8HgqZ_mdh=XPEJ9XgFDMUyzdDYo38RceUuXrbqXkg@mail.gmail.com>
2018-08-26 10:37     ` Wolfgang Schuster
2018-08-26 13:19       ` Aditya Mahajan
2018-08-26 22:02         ` 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).