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

2019-09-23 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 23.09.2019 um 23:31:

Hi Wolfgang,
As I understand it, the following instructions have no effect on the 
figures


defaultfont := "texgyrepagella-regular*default" ;
defaultscale :=0.8 ;


You change the font because you typeset your labels in math mode.

label.llft(btex \m{O} etex,origin) ;

Wolfgang

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


Re: [NTG-context] OpenBSD install broken

2019-09-23 Thread Robert Krug




On September 21, 2019 at 4:22 AM, Mojca Miklavec 
 wrote:



On Sat, 21 Sep 2019 at 01:09, Robert Krug wrote:



6) Finally, the setuptex script gives me an error message:


megaera$ . /home//Context/tex/setuptex
/bin/ksh: /home//Context/tex/setuptex[163]: ${.sh.file}": bad substitution


but it is not hard to set the path correctly:


PATH=$PATH\:/home//Context/tex/texmf-openbsd6.5-amd64/bin ; export PATH

This is something that I need to fix independently in the installation
script. Do you have any clue what could be done to make it work
properly on OpenBSD?

Mojca

Shell scripting has always been a mystery to me. For what it is worth,
however, here is what I was able to come up with:

megaera$ cat test
echo "$SHELL"
echo "$KSH_VERSION"
SCRIPTPATH="$_"
OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P)
echo $OWNPATH

megaera$ ./test
/bin/ksh
@(#)PD KSH v5.2.14 99/07/13.2
/home//Temp

It seems that OpenBSD uses public domain ksh also known as ksh88, as
opposed to the more common ksh93. I also found on the internet the
following code snippet for testing ksh versions:

case "$KSH_VERSION" in
(*MIRBSD*|*PD*|*LEGACY*) printf '%s\n' "$KSH_VERSION" ;;
(*) [ -z "$ERRNO" ] && printf '%s\n' "${.sh.version}" || echo ksh88/86 ;;
esac

All that said however, while it would be nice to have setuptex work on
OpenBSD also, I think anyone using it can set their own paths if they
have to.

Robert
 ___
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
___


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

2019-09-23 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 23.09.2019 um 16:12:

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


\startxcell[foregroundstyle={\switchtobodyfont[...]}]

or

\setupxtable[smallbodyfont][foregroundstyle={\switchtobodyfont[...]}]

\startxcell[smallbodyfont]

Wolfgang

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


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

2019-09-23 Thread Thomas A. Schmitz



On 9/23/19 4:12 PM, Fabrice Couvreur wrote:

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



Does changing

\usecolors [xwi]

to

\usecolors [ema]

help?

All best

Thomas
___
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
___


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

2019-09-23 Thread Fabrice Couvreur
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
___
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
___


Re: [NTG-context] Problem of installation of ConTeXt LMTX

2019-09-23 Thread Atsuhito Kohda
Dear Hans and all,

I tried to check Linux 32 bits and accessed
http://www.pragma-ade.nl/install.htm
and click "Linux 32 bits" yesterday and today but it failed as follows:
---
Not Found

The requested URL /install-lmtx/context-linux-32.zip was not found on this
server.
--
Is there any problem?

Thanks for your maintenance.
Best regards,
Atsuhito Kohda

2019年9月2日(月) 16:38 Hans Hagen :

> ...
> i see, so i need to fix that (no -32 for linux) ... i'll adapt it so
> next time you need to check
>


>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
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
___