[NTG-context] Size of the font (Metapost + xtable)

Fabrice Couvreur fabrice1.couvreur at gmail.com
Mon Sep 23 16:12:19 CEST 2019


Hello,
I can not change the font size of my figures in the table.
Thank you
Fabrice


 \usecolors[xwi]
\startbuffer[myfigure]
  \dontleavehmode
                  \startMPcode
                    defaultfont := "texgyrepagella-regular*default" ;
                    defaultscale :=0.8 ;
                    numeric alpha ; alpha = 60 ;
                    path circle ;
                    circle = fullcircle scaled 1.4cm ;
                    draw circle withcolor blue ;
                    drawarrow  0.9cm * dir 25 {dir 90}
                               .. 0.9cm * dir 45 {dir (90+alpha)}
                    withcolor \MPcolor{darkred} ;
                    drawdot origin withpen pencircle scaled 2pt ;
                    drawdot  0.7cm*dir 0 withpen pencircle scaled 2pt ;
                    label.llft(btex \m{O} etex,origin) ;
                    label.rt(btex \m{A} etex,0.7cm*dir 0) ;
                  \stopMPcode
\stopbuffer
\starttext
 \startlinecorrection[blank]
          \startmidaligned
            \startxtable[align={middle,lohi},width=2.25cm]
              \startxrow
                \startxcell
                  [background=color,backgroundcolor=paleturquoise]
                  Angle en degré
                \stopxcell
                \startxcell
                  180
                \stopxcell
                \startxcell
                  360
                \stopxcell
                \startxcell
                  90
                \stopxcell
                \startxcell
                  45
                \stopxcell
                \startxcell
                  60
                \stopxcell
                \startxcell
                  210
                \stopxcell
              \stopxrow
              \startxrow
                \startxcell
                  [background=color,backgroundcolor=paleturquoise]
                  Position de \m{M}
                \stopxcell
                \startxcell
                  \dontleavehmode
                  \startMPcode
                    defaultfont := "texgyrepagella-regular*default" ;
                    defaultscale :=0.8 ;
                    numeric alpha ; alpha = 60 ;
                    path circle ;
                    circle = fullcircle scaled 1.4cm ;
                    draw circle withcolor blue ;
                    drawarrow  0.9cm * dir 25 {dir 90}
                               .. 0.9cm * dir 45 {dir (90+alpha)}
                    withcolor \MPcolor{darkred} ;
                    drawdot origin withpen pencircle scaled 2pt ;
                    drawdot  0.7cm*dir 0 withpen pencircle scaled 2pt ;
                    drawdot  0.7cm*dir 180 withpen pencircle scaled 2pt ;
                    label.llft(btex \m{O} etex,origin) ;
                    label.rt(btex \m{A} etex,0.7cm*dir 0) ;
                    label.lft(btex \m{M} etex,0.7cm*dir 180) ;
                  \stopMPcode
                \stopxcell
                \startxcell
                  \getbuffer[myfigure]
                \stopxcell
                \startxcell
                  \getbuffer[myfigure]
                \stopxcell
                \startxcell
                  \getbuffer[myfigure]
                \stopxcell
                \startxcell
                  \getbuffer[myfigure]
                \stopxcell
                \startxcell
                  \getbuffer[myfigure]
                \stopxcell
              \stopxrow
              \startxrow
                \startxcell
                  [background=color,backgroundcolor=paleturquoise]
                  Longueur \m{L} en hm
                \stopxcell
                \startxcell
                  \m{\pi \times 1}
                \stopxcell
                \startxcell
                  \unknown
                \stopxcell
                \startxcell
                  \unknown
                \stopxcell
                \startxcell
                  \unknown
                \stopxcell
                \startxcell
                  \unknown
                \stopxcell
                \startxcell
                  \unknown
                \stopxcell
              \stopxrow
            \stopxtable
          \stopmidaligned
        \stoplinecorrection
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190923/fb8b0dbd/attachment.html>


More information about the ntg-context mailing list