[NTG-context] Strange behavior with anglestriped()

2023-11-19 Thread Fabrice Couvreur
Hi,
I don't understand why the hatching of the two rectangles is not the same
color.
Thanks for your help.
Fabrice

\starttext
\setupbodyfont[8pt]
\startMPcode
   path p, q, r, b ;

   z[0] = (2cm,0cm) ;
   z[1] = (2cm,2cm) ;
   z[2] = (0cm,2cm) ;

   p := unitsquare xyscaled (9cm, 5cm) ;
   q := llcorner p--z[0]--z[1]--z[2]--cycle ;
   r := unitsquare xyscaled (7cm,3cm) shifted(2cm,2cm) ;
   b := z[2]--z[1]--ulcorner r--urcorner p--lrcorner r--z[1]--
   z[0]--llcorner p--cycle ;


   draw b anglestriped (1,45,2) withcolor cyan;
   draw q anglestriped (1,45,2) withcolor cyan;

   draw p ;

   label.llft("A", p) ;
   label.lrt("D", p) ;
   label.ulft("B", p) ;
   label.urt("C", p) ;
   label.lft("M", z[2]) ;
   label.ulft("N", z[1]) ;
   label.bot("P", z[0]) ;
   label.top("J", ulcorner r) ;
   label.rt("I", lrcorner r) ;
   label.bot(btex $x$ etex,(llcorner p+z[0])/2);
   label.lft(btex $x$ etex,(llcorner p+z[2])/2);
\stopMPcode

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Strange behavior with \startbodymatter ... \stopbodymatter

2021-12-28 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 28.12.2021 um 15:34:

Hi,
In my file cours_premiere.tex if I indicate

 \startbodymatter
      \component[probabilites.tex]
 \stopbodymatter

I get the following error message

tex error     > tex error on line 49 in file ./cours_premiere.tex: 
Undefined control sequence \pgfmath@settrigformat



  \pgfmath@settrigformat
    \pgfmath@settrigformat \pgfmath@settrigformat

        \stopbodymatter

39                [criterium=all,
40                interaction=all,
41                 alternative=c]
42
43 \stoptitle
44
45         \stopfrontmatter
46
47         \startbodymatter
48 \component[probabilites.tex]
49 >>      \stopbodymatter
50
51
52     \stopproduct
The control sequence at the end of the top line of your error message 
was never
\def'ed. You can just continue as I'll forget about whatever was 
undefined.

mtx-context     | fatal error: return code: 1

TeX Output exited abnormally with code 1 at Tue Dec 28 15:31:31


On the other hand, if I indicate

\component[probabilites.tex]

 the file compiles without error.


The error is about tikz/pgf and the mentioned command comes from 
pgfplots. To investigate further you have to create a minimal (non) 
working example.


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
___


[NTG-context] Strange behavior with \startbodymatter ... \stopbodymatter

2021-12-28 Thread Fabrice Couvreur via ntg-context
Hi,
In my file cours_premiere.tex if I indicate

 \startbodymatter
\component[probabilites.tex]
 \stopbodymatter

I get the following error message

tex error   > tex error on line 49 in file ./cours_premiere.tex:
Undefined control sequence \pgfmath@settrigformat


\pgfmath@settrigformat
\pgfmath@settrigformat \pgfmath@settrigformat

\stopbodymatter

39[criterium=all,
40interaction=all,
41 alternative=c]
42
43   \stoptitle
44
45 \stopfrontmatter
46
47 \startbodymatter
48 \component[probabilites.tex]
49 >>  \stopbodymatter
50
51
52 \stopproduct
The control sequence at the end of the top line of your error message was
never
\def'ed. You can just continue as I'll forget about whatever was undefined.
mtx-context | fatal error: return code: 1

TeX Output exited abnormally with code 1 at Tue Dec 28 15:31:31


On the other hand, if I indicate

\component[probabilites.tex]

 the file compiles without error.
Thanks
Fabrice
___
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] Strange behavior of a macro

2021-08-16 Thread Hans Hagen via ntg-context

On 8/16/2021 4:28 PM, Fabrice Couvreur via ntg-context wrote:

Hello,
I don't understand why this macro works with this simple example but 
return the following error if I use it for chapters in my book.

Thanks
Fabrice


\setupbodyfont
    [newcomputermodern-book,11pt]

\unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace}

\defineenumeration
    [test]
    [title=yes,
     text={Test},
     style=italic]

\starttext
\N
\starttest
\m{\forall n \in \N}
\stoptest
\stoptext


tex error       > tex error on line 64 in file ./terminale_suites_2.tex: 
Use of \N doesn't match its definition

maybe it gets redefined someplace?

just before the error you can say

\show\N or \meaning\N or \tracingall and see what the machinery expects

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


[NTG-context] Strange behavior of a macro

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hello,
I don't understand why this macro works with this simple example but return
the following error if I use it for chapters in my book.
Thanks
Fabrice


\setupbodyfont
   [newcomputermodern-book,11pt]

\unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace}

\defineenumeration
   [test]
   [title=yes,
text={Test},
style=italic]

\starttext
\N
\starttest
\m{\forall n \in \N}
\stoptest
\stoptext


tex error   > tex error on line 64 in file ./terminale_suites_2.tex:
Use of \N doesn't match its definition




  Soient \u, \v deux suites définies sur \N,
 \m{l} et \m{l'} deux réels.

54 \startitem
55   \u converge vers \m{l},
56 \stopitem
57   \stopitemize
58   alors \m{l\geqslant 0}.
59 \stopproposition
60 \startremarque
61   Nous retiendrons que le passage à la limite sur une
inégalité stricte restitue une inégalité large.
62 \stopremarque
63 \startcorollaire
64 >>Soient \u, \v deux suites définies sur \N, \m{l} et \m{l'}
deux réels.
65
66   Si
67
68   \startitemize
69 \startitem
70   les suites \u et \v convergent respectivement vers
\m{l} et \m{l'},
71 \stopitem
72 \startitem
73   \m{\forall n \in\mathbb{N}, \thinspace u_n>v_n},
74 \stopitem
If you say, e.g., '\def\a1{...}', then you must always put '1' after '\a',
since control sequence names are made up of letters only. The macro here
has not
been followed by the required stuff, so I'm ignoring it.
mtx-context | fatal error: return code: 256

___
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] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-02 Thread Hans Hagen

On 9/2/2020 11:10 AM, mf wrote:

Thanks Hans,
this solves the problem I had with the new implementation of \wordright.
It's not exactly a problem of \wordright, but the combination with 
\groupedcommand.


that is always tricky as what happens is postponing till the group ends

but wordright now kind of hooks into the par construction


Is \nextbox a new entry of latest versions?


no, actually one of the oldest things


I've seen also \nextboxwd, \nextboxht, etc.
So you can measure the next box to come in advance. Is it like that?

Is it a vbox when you're in vertical mode and a hbox when you are in 
horizontal mode?


you just pass the box


Is this interpretation of \dowithnextbox in \dowhatever right?

\dowithnextbox {.1.} \.2. {.3.}
1 COMMAND = {\ifdim\wd\nextbox<\hsize...}
2 CSNAME  = \hbox or \vbox 
3 CONTENT = {#1}

yes

Hans

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


Re: [NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-02 Thread mf

Thanks Hans,
this solves the problem I had with the new implementation of \wordright.
It's not exactly a problem of \wordright, but the combination with 
\groupedcommand.


Is \nextbox a new entry of latest versions?

I've seen also \nextboxwd, \nextboxht, etc.
So you can measure the next box to come in advance. Is it like that?

Is it a vbox when you're in vertical mode and a hbox when you are in 
horizontal mode?


Is this interpretation of \dowithnextbox in \dowhatever right?

\dowithnextbox {.1.} \.2. {.3.}
1 COMMAND = {\ifdim\wd\nextbox<\hsize...}
2 CSNAME  = \hbox
3 CONTENT = {#1}

Massi

Il 01/09/20 19:22, Hans Hagen ha scritto:
>
> fortunately there is a solution that takes less code:
>
> \unexpanded\def\whatever
>{\dosingleempty\dowhatever}
>
> \def\dowhatever[#1]%
>{\dowithnextbox
>   {\ifdim\wd\nextbox<\hsize
>  \wordright{\box\nextbox}%
>  \par
>\else
>  \par
>  \penalty1
>  \startalignment[flushright]\unhbox\nextbox\stopalignment
>\fi}\hbox}
>
> \starttext
>
>\input ward \whatever{same line, right}
>
>\blank
>
>\input ward \whatever{\input tufte }
>
> \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] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread Hans Hagen

On 9/1/2020 5:47 PM, mf wrote:
\unexpanded\def\groupedwordorparagraphright{\dosingleempty\dogroupedwordorparagraphright} 

\def\dogroupedwordorparagraphright[#1]{\groupedcommand{\setbox\scratchbox\hbox\bgroup} 


{\egroup\ifdim\wd\scratchbox < \hsize
     \wordright{\unhbox\scratchbox}
   \else
     \par\penalty1
     \startalignment[flushright]\unhbox\scratchbox\stopalignment
   \fi}}

\unexpanded\def\wordorparagraphright#1{%
   \setbox\scratchbox\hbox{#1}
   \ifdim\wd\scratchbox < \hsize
     \wordright{#1}
   \else
     \par\penalty1
     \startalignment[flushright]\unhbox\scratchbox\stopalignment
   \fi}

\starttext
   \type{\wordorparagraphright} should use \type{\wordright} if its 
argument
   is narrower than \type{\hsize}, or make a right-aligned paragraph 
with it

   when it's wider.

   Below, \type{\wordorparagraphright} is tested with a short text, that
   has enough room on the same line.
   \blank

   Reference:

   \input ward\wordright{same line, right}

   \blank

   Implementation as a grouped command (it doesn't work):

   \input ward\groupedwordorparagraphright{same line, right}

   \blank

   Normal implementation, not as a grouped command (it works):

   \input ward\wordorparagraphright{same line, right}
\stoptext


Unfortunately the grouped version is the one I need, because it's used 
in a register, and it would give an error if not defined through 
\groupedcommand:


\setupregister[myregister]
   [pageleft=\wordorparagraphright\bgroup,pageright=\egroup]



fortunately there is a solution that takes less code:

\unexpanded\def\whatever
  {\dosingleempty\dowhatever}

\def\dowhatever[#1]%
  {\dowithnextbox
 {\ifdim\wd\nextbox<\hsize
\wordright{\box\nextbox}%
\par
  \else
\par
\penalty1
\startalignment[flushright]\unhbox\nextbox\stopalignment
  \fi}\hbox}

\starttext

  \input ward \whatever{same line, right}

  \blank

  \input ward \whatever{\input tufte }

\stoptext

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


[NTG-context] strange behavior with \groupedcommand in recent versions of LMTX

2020-09-01 Thread mf

Hello list,
this is a MWE that worked right in MkIV and in LMTX versions (at least) 
until April 22nd, 2020.


There's a macro, \wordorparagraphright, that takes one argument, makes a 
hbox with it and measures its width


- if its width is less than \hsize, then it calls \wordright

- if its width is more than \hsize, then it ends the current paragraph 
and starts a right-aligned paragraph with the argument


There are two implementations in the MWE: one is through 
\groupedcommand, and that's the one that worked once and doesn't now.



\unexpanded\def\groupedwordorparagraphright{\dosingleempty\dogroupedwordorparagraphright}
\def\dogroupedwordorparagraphright[#1]{\groupedcommand{\setbox\scratchbox\hbox\bgroup}
{\egroup\ifdim\wd\scratchbox < \hsize
\wordright{\unhbox\scratchbox}
  \else
\par\penalty1
\startalignment[flushright]\unhbox\scratchbox\stopalignment
  \fi}}

\unexpanded\def\wordorparagraphright#1{%
  \setbox\scratchbox\hbox{#1}
  \ifdim\wd\scratchbox < \hsize
\wordright{#1}
  \else
\par\penalty1
\startalignment[flushright]\unhbox\scratchbox\stopalignment
  \fi}

\starttext
  \type{\wordorparagraphright} should use \type{\wordright} if its argument
  is narrower than \type{\hsize}, or make a right-aligned paragraph with it
  when it's wider.

  Below, \type{\wordorparagraphright} is tested with a short text, that
  has enough room on the same line.
  \blank

  Reference:

  \input ward\wordright{same line, right}

  \blank

  Implementation as a grouped command (it doesn't work):

  \input ward\groupedwordorparagraphright{same line, right}

  \blank

  Normal implementation, not as a grouped command (it works):

  \input ward\wordorparagraphright{same line, right}
\stoptext


Unfortunately the grouped version is the one I need, because it's used 
in a register, and it would give an error if not defined through 
\groupedcommand:


\setupregister[myregister]
  [pageleft=\wordorparagraphright\bgroup,pageright=\egroup]

TIA,
Massi
___
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] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Wolfgang Schuster

Andres Conrado Montoya schrieb am 27.06.2019 um 20:53:

Wolfgang... Thank you, man. Thank you so very much. This works perfectly.

As I understand it from your correction, my mistake was that I was not 
doing the page break before everything else, as I should, because in 
any case there will always be a page break in my layout. Then, let the 
rest of the algorithm decide if there will be a left or right page, 
headers and footers, etc. Am I correct?

Yes, it's important to do the page check before the section is inserted.

When you use the before key you perform the check after \startchapter 
finished the previous page and removed the header line, when you insert 
now the colored page the header setting is used for this page and one 
the following page with the section title you get the unwanted header text.


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] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
Wolfgang... Thank you, man. Thank you so very much. This works perfectly.

As I understand it from your correction, my mistake was that I was not
doing the page break before everything else, as I should, because in any
case there will always be a page break in my layout. Then, let the rest of
the algorithm decide if there will be a left or right page, headers and
footers, etc. Am I correct?

Thank you again for your work.

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell


El jue., 27 jun. 2019 a las 13:17, Wolfgang Schuster (<
wolfgang.schuster.li...@gmail.com>) escribió:

> Andres Conrado Montoya schrieb am 27.06.2019 um 19:22:
>
> Hi List, it seems my message went unnoticed, if you can help me out,
> please do. I'm an struggling with this layout.
>
> I'm trying to make something using bits and examples found here and
> elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
> approach, but I can't figure it out. Any help is appreciated.
>
> Expected behavior of the following MWE:
> When starting a new chapter, check if the page is even (left page), if so,
> fill it with color, and start the chapter in the next odd page (right
> page), removing the header but leaving the footer in that start-chapter
> page; and if this is a start-chapter page, use a specific graphic overlay
> for the page, but if if not (if its a regular page), use another graphic.
>
> Result:
> The header still appears in the start-chapter page, if it comes after the
> color filled page. But, if the start-chapter page comes after a regular
> (even) page, everything works as expected (no color-filled page, no header
> in the start-chapter page).
>
> MWE:
>
> %% START MWE
>
> [...]
>
> \startsetups [chapter:before]
>\doifoddpageelse
>  {}
>  {\pushbackground[page]
> \setupbackgrounds[page][background=color,backgroundcolor=rojo]
> \page[yes,right]
>   \popbackground}
> \stopsetups
>
> \startsetups [chapter:before]
>   \page
>   \doifoddpageelse
> {}
> {\pushbackground[page]
>\setupbackgrounds[page][background=color,backgroundcolor=rojo]
>\page[yes,header,footer,right]
>  \popbackground}
> \stopsetups
>
> \setuphead[chapter]
>   [width=20em,
>   before=\directsetup{chapter:before},
>
> Apply the above setup with
>
> beforesection=\directsetup{chapter:before},
>
> 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] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Wolfgang Schuster

Andres Conrado Montoya schrieb am 27.06.2019 um 19:22:
Hi List, it seems my message went unnoticed, if you can help me out, 
please do. I'm an struggling with this layout.


I'm trying to make something using bits and examples found here and 
elsewhere, but I'm hitting a wall. I know there's a flawed logic in my 
approach, but I can't figure it out. Any help is appreciated.


Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if 
so, fill it with color, and start the chapter in the next odd page 
(right page), removing the header but leaving the footer in that 
start-chapter page; and if this is a start-chapter page, use a 
specific graphic overlay for the page, but if if not (if its a regular 
page), use another graphic.


Result:
The header still appears in the start-chapter page, if it comes after 
the color filled page. But, if the start-chapter page comes after a 
regular (even) page, everything works as expected (no color-filled 
page, no header in the start-chapter page).


MWE:

%% START MWE

[...]

\startsetups [chapter:before]
   \doifoddpageelse
     {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
      \popbackground}
\stopsetups

\startsetups [chapter:before]
  \page
  \doifoddpageelse
    {}
    {\pushbackground[page]
   \setupbackgrounds[page][background=color,backgroundcolor=rojo]
   \page[yes,header,footer,right]
 \popbackground}
\stopsetups


\setuphead[chapter]
          [width=20em,
before=\directsetup{chapter:before},

Apply the above setup with

beforesection=\directsetup{chapter:before},

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
___


[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
Hi List, it seems my message went unnoticed, if you can help me out, please
do. I'm an struggling with this layout.

I'm trying to make something using bits and examples found here and
elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
approach, but I can't figure it out. Any help is appreciated.

Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if so,
fill it with color, and start the chapter in the next odd page (right
page), removing the header but leaving the footer in that start-chapter
page; and if this is a start-chapter page, use a specific graphic overlay
for the page, but if if not (if its a regular page), use another graphic.

Result:
The header still appears in the start-chapter page, if it comes after the
color filled page. But, if the start-chapter page comes after a regular
(even) page, everything works as expected (no color-filled page, no header
in the start-chapter page).

MWE:

%% START MWE

\definecolor[rojo][h=ED553B]
\definehighlight[rojo][color=rojo]

\startMPinclusions
numeric u ; u := 1.125pt ;
numeric i ; i := 0.125in ;
string prevChapterTitle, currentChapterTitle;
prevChapterTitle := "";
currentChapterTitle := "";
\stopMPinclusions

\startuseMPgraphic{page:background}
StartPage;
currentChapterTitle := "\namedstructurevariable{chapter}{title}";

if currentChapterTitle <> prevChapterTitle :

fill (topboundary Page -- cycle)
enlarged(0,8i)
shifted (0,-4i)
withcolor transparent(4, 0.2, \MPcolor{rojo}) ;

fill (bottomboundary Page -- cycle)
enlarged(0,1u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

prevChapterTitle := currentChapterTitle ;

else:

fill (topboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,-7i+3u)
withcolor \MPcolor{rojo} ;

fill (bottomboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

fi;
StopPage;
\stopuseMPgraphic

\defineoverlay
  [chapter:background]
  [\useMPgraphic{page:background}]

\setupbackgrounds[page][background=chapter:background]

\definepagebreak[firstpagebreak][yes,header]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
  \popbackground}
\stopsetups

\setuphead[chapter]
  [width=20em,
  before=\directsetup{chapter:before},
  align={flushleft,nothyphenated,verytolerant},
  style={\tfd\sansbold},
  header=empty,
  page=yes,
  commandbefore={\blank[1.75in]},
  after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]


\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]

\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]

\starttext

\dorecurse{4}{%
  \startchapter[title={A chapter with a really long, long title}]
  \dorecurse{9}{\input{tufte}}
  \stopchapter
  \startchapter[title={A different chapter with a really long, long title}]
  \dorecurse{6}{\input{tufte}}
  \stopchapter}

\stoptext

%% STOP MWE

Thank you for your time.

Andrés Conrado Montoya
___
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] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
Hello list, I'm trying to make something using bits and examples found here
and elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
approach, but I can't figure it out. Any help is appreciated.

Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if so,
fill it with color, and start the chapter in the next odd page (right
page), removing the header but leaving the footer in that start-chapter
page; and if this is a start-chapter page, use a specific graphic overlay
for the page, but if if not (if its a regular page), use another graphic.

Result:
The header still appears in the start-chapter page, if it comes after the
color filled page. But, if the start-chapter page comes after a regular
(even) page, everything works as expected (no color-filled page, no header
in the start-chapter page).

MWE:

%% START MWE

\definecolor[rojo][h=ED553B]
\definehighlight[rojo][color=rojo]

\startMPinclusions
numeric u ; u := 1.125pt ;
numeric i ; i := 0.125in ;
string prevChapterTitle, currentChapterTitle;
prevChapterTitle := "";
currentChapterTitle := "";
\stopMPinclusions

\startuseMPgraphic{page:background}
StartPage;
currentChapterTitle := "\namedstructurevariable{chapter}{title}";

if currentChapterTitle <> prevChapterTitle :

fill (topboundary Page -- cycle)
enlarged(0,8i)
shifted (0,-4i)
withcolor transparent(4, 0.2, \MPcolor{rojo}) ;

fill (bottomboundary Page -- cycle)
enlarged(0,1u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

prevChapterTitle := currentChapterTitle ;

else:

fill (topboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,-7i+3u)
withcolor \MPcolor{rojo} ;

fill (bottomboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

fi;
StopPage;
\stopuseMPgraphic

\defineoverlay
  [chapter:background]
  [\useMPgraphic{page:background}]

\setupbackgrounds[page][background=chapter:background]

\definepagebreak[firstpagebreak][yes,header]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
  \popbackground}
\stopsetups

\setuphead[chapter]
  [width=20em,
  before=\directsetup{chapter:before},
  align={flushleft,nothyphenated,verytolerant},
  style={\tfd\sansbold},
  header=empty,
  page=yes,
  commandbefore={\blank[1.75in]},
  after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]


\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]

\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]

\starttext

\dorecurse{4}{%
  \startchapter[title={A chapter with a really long, long title}]
  \dorecurse{9}{\input{tufte}}
  \stopchapter
  \startchapter[title={A different chapter with a really long, long title}]
  \dorecurse{6}{\input{tufte}}
  \stopchapter}

\stoptext

%% STOP MWE

Thank you for your time.

Andrés Conrado Montoya
___
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] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-22 Thread Rudolf Bahr
On Tue, May 21, 2019 at 10:07:01AM +0200, Hans Hagen wrote:
> On 5/17/2019 10:23 AM, Rudolf Bahr wrote:
> > 
> > On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote:
> > > On 5/16/2019 12:21 PM, Rudolf Bahr wrote:
> > > > The problem with artefacts in .png images is still unsolved for me.
> > > > I can circumvent it by using .jpg or .tiff images instead of .png images
> > > > as long as no transparent areas in the images are needed. As far as I 
> > > > know
> > > > .jpg and .tiff formats cannot handle transparancy, do they?
> > > > 
> > > > Now in .log files messages like
> > > > "luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
> > > > can be seen. Please, what do they mean?
> > 
> > > Does that come from an pdf generated by image magick>? If so, the problem 
> > > is
> > > there ... the last years I've seen lots of converted files with bogus pdf
> > > objects. (Kind of harmless but still.)
> > > 
> > > Hans
> > 
> > 
> > No. I never use neither ImageMagick nor GraphicsMagick to generate images in
> > .pdf-format. Even with my scanner software I produce always .jpg-images 
> > though it
> > is capable to produce .pdf-output too. The only .pdf-files I'm doing are 
> > made by
> > ConTeXt-LMTX!
> > 
> > I shall append another, interesting MWE. There is a .png-image which is, as 
> > it
> > occasionally happens, represented as it should, by ConTeXt. And then the 
> > same .png-image
> > to which I added a red frame by GIMP2.10. This one shows artefacts in 
> > ConTeXt!
> > 
> > I'm adding the .log-file too. There again is a luatex-warning, as I could 
> > observe them
> > often in ConTeXt-LMTX:
> the second image has a mask which is split off (an all 0xFF mask btw) .. it
> shows ok in acrobat so maybe gimp is at fault here?
> 
> Hans



In the mean time I had some more tries with another OS and even with MKIV. 
Unfortunatly
I changed to OS "LinuxMint" at the same time LMTX came out. Now after going to
"Fedora 30" there are no problems left in this respect up to now. So I agree 
with you,
GIMP could have been the cause. Not GIMP in general, but possibly only 
"LinuxMint"-GIMP's
png-part.

I'm sorry because of the trouble, my fault!
Thanks to All who answered to this problem and contributed to a solution!

Best wishes, Rudolf
___
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] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-21 Thread Hans Hagen

On 5/17/2019 10:23 AM, Rudolf Bahr wrote:


On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote:

On 5/16/2019 12:21 PM, Rudolf Bahr wrote:

The problem with artefacts in .png images is still unsolved for me.
I can circumvent it by using .jpg or .tiff images instead of .png images
as long as no transparent areas in the images are needed. As far as I know
.jpg and .tiff formats cannot handle transparancy, do they?

Now in .log files messages like
"luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
can be seen. Please, what do they mean?



Does that come from an pdf generated by image magick>? If so, the problem is
there ... the last years I've seen lots of converted files with bogus pdf
objects. (Kind of harmless but still.)

Hans



No. I never use neither ImageMagick nor GraphicsMagick to generate images in
.pdf-format. Even with my scanner software I produce always .jpg-images though 
it
is capable to produce .pdf-output too. The only .pdf-files I'm doing are made by
ConTeXt-LMTX!

I shall append another, interesting MWE. There is a .png-image which is, as it
occasionally happens, represented as it should, by ConTeXt. And then the same 
.png-image
to which I added a red frame by GIMP2.10. This one shows artefacts in ConTeXt!

I'm adding the .log-file too. There again is a luatex-warning, as I could 
observe them
often in ConTeXt-LMTX:
the second image has a mask which is split off (an all 0xFF mask btw) .. 
it shows ok in acrobat so maybe gimp is at fault here?


Hans

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


[NTG-context] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-20 Thread Rudolf Bahr

On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote:
> On 5/16/2019 12:21 PM, Rudolf Bahr wrote:
> > The problem with artefacts in .png images is still unsolved for me.
> > I can circumvent it by using .jpg or .tiff images instead of .png images
> > as long as no transparent areas in the images are needed. As far as I know
> > .jpg and .tiff formats cannot handle transparancy, do they?
> > 
> > Now in .log files messages like
> > "luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
> > can be seen. Please, what do they mean?

> Does that come from an pdf generated by image magick>? If so, the problem is
> there ... the last years I've seen lots of converted files with bogus pdf
> objects. (Kind of harmless but still.)
> 
> Hans


No. I never use neither ImageMagick nor GraphicsMagick to generate images in
.pdf-format. Even with my scanner software I produce always .jpg-images though 
it
is capable to produce .pdf-output too. The only .pdf-files I'm doing are made by
ConTeXt-LMTX!

I shall append another, interesting MWE. There is a .png-image which is, as it
occasionally happens, represented as it should, by ConTeXt. And then the same 
.png-image
to which I added a red frame by GIMP2.10. This one shows artefacts in ConTeXt!

I'm adding the .log-file too. There again is a luatex-warning, as I could 
observe them
often in ConTeXt-LMTX:

-
luatex warning  > pdfe: invalid 11 0 R object at offset 41603
-
Please, what does mean it? I fear there is something wrong with the 
.png-handling
of ConTeXt/luatex.

The outputs of
feh imagered-frame.png
gm display imagered-frame.png
are looking ok. And GIMP2.10 has produced all image-files.

Rudolf


PS.:
echo $PATH
/home/sam/Android/platform-tools:/bin:/usr/bin:/home/sam/context-lmtx/tex/texmf-linux-64/bin:/home/sam/context-lmtx/bin:/home/sam/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

The .tiff-image is always too big for this forums upper limit
\starttext

\midaligned{
  \externalfigure[image-no-red-frame.png][width=15mm,height=25mm] \hskip12pt

  \externalfigure[imagered-frame.png][width=15mm,height=25mm] \hskip12pt

  \externalfigure[imagered-frame.jpg][width=15mm,height=25mm] \hskip12pt

  \externalfigure[imagered-frame.tiff][width=15mm,height=25mm]
}

\stoptext
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.05.12 19:40 MKIV beta  fmt: 2019.5.14  
int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'Artefakte', input './Artefakte', result 
'Artefakte'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './Artefakte.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
luatex warning  > pdfe: invalid 11 0 R object at offset 41603
backend > xmp > using file 
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 2, order 3, name './Artefakte.tex'
close source> level 1, order 3, name 'cont-yes.mkiv'

system  > start used files

system  > text: Artefakte

system  > stop used files


system  > start used files

system  >1: filename=char-prv.lua filetype=tex format=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
 usedmethod=database
system  >2: filename=cont-yes.mkiv filetype=tex format=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
 usedmethod=database
system  >3: filename=publ-imp-default.lua filetype=scripts 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
 usedmethod=database
system  >4: filename=cont-new.mkiv filetype=tex 
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
 usedmethod=database
system  >5: filename=lang-exc.lua filetype=scripts 
f

Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-05-16 Thread Hans Hagen

On 5/16/2019 12:21 PM, Rudolf Bahr wrote:

The problem with artefacts in .png images is still unsolved for me.
I can circumvent it by using .jpg or .tiff images instead of .png images
as long as no transparent areas in the images are needed. As far as I know
.jpg and .tiff formats cannot handle transparancy, do they?

Now in .log files messages like
"luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
can be seen. Please, what do they mean?
Does that come from an pdf generated by image magick>? If so, the 
problem is there ... the last years I've seen lots of converted files 
with bogus pdf objects. (Kind of harmless but still.)


Hans


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


Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-05-16 Thread Rudolf Bahr
The problem with artefacts in .png images is still unsolved for me.
I can circumvent it by using .jpg or .tiff images instead of .png images
as long as no transparent areas in the images are needed. As far as I know
.jpg and .tiff formats cannot handle transparancy, do they?

Now in .log files messages like
"luatex warning  > pdfe: invalid 11 0 R object at offset 223611"
can be seen. Please, what do they mean?

Rudolf

PS.:
LinuxMint 64bit

This is LuaMetaTeX, Version 2.00.0 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.05.12 19:40 MKIV beta  fmt: 2019.5.14  
int: english/english

___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-30 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 04:32:07PM -0600, Alan Braslau wrote:
> On Mon, 29 Apr 2019 13:18:04 +0200
> Hans Hagen  wrote:
> 
> > anyway, as the png test suite passes ok the question is what makes your 
> > image different ... here it looks ok when included on windows64 bit and 
> > linux 64 bit
> 
> Your very own .png image and MWE works fine here on OSX, freeBSD, and linux.
> 
> Alan
> 


Thank you, Alan! I converted this image and its comrades which showed artefacts 
to
.tiff-images and so they all work at their very best.

My conTeXt-version is:
This is LuaMetaTeX, Version 2.00.0
ConTeXt  ver: 2019.04.29 09:02 MKIV beta  fmt: 2019.4.29

But the .log-file contains following strange lines:

[...]
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
pages   > flushing realpage 2, userpage 2, subpage 2
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
luatex warning  > pdfe: ?
pages   > flushing realpage 3, userpage 3, subpage 3
[...]

There are 6 such .tiff-images on page 2 (without any other images) and 3 on 
page 3.
On page 3 there are 5 other .png-images without any problems. I don't know what 
"pdfe"
means. The 9 .tiff-images are few years older than the .png-images on page 3. 
This
means they have been generated in a slightly other way than the newer .png-files
on page 3, for instance by an older context-mkiv and GIMP 2.8 on debian 8 
(Jessie) or
later debian 9 (Stretch), wheras now I'm using context-lmtx on LinuxMint and 
GIMP2.10.

But, as I pointed out, this .tiff-workaround is ok for me, because the artefact 
effect
seems to be limited to those images on page 2 and 3 in my new book. Strange is, 
that
the artefacts (with the same images which haven't been changed in any way) 
didn't crop
up with older context-mkiv.

Rudolf
___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Alan Braslau
On Mon, 29 Apr 2019 13:18:04 +0200
Hans Hagen  wrote:

> anyway, as the png test suite passes ok the question is what makes your 
> image different ... here it looks ok when included on windows64 bit and 
> linux 64 bit

Your very own .png image and MWE works fine here on OSX, freeBSD, and linux.

Alan
___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 01:18:04PM +0200, Hans Hagen wrote:
> On 4/29/2019 10:52 AM, Rudolf Bahr wrote:
> 
> > Sorry, but even after updating to
> > ConTeXt  ver: 2019.04.29 09:02 MKIV beta  fmt: 2019.4.29
> > I'm experiencing the same artefacts as before.
> > 
> > Please, what means "different inclusion code"?
> all in lua
> 
> anyway, as the png test suite passes ok the question is what makes your
> image different ... here it looks ok when included on windows64 bit and
> linux 64 bit
> 
> >gm identify input.png
> input.png PNG 334x168+0+0 DirectClass 8-bit 29.6Ki 0.000u 0m:0.00s
> gm identify: iCCP: CRC error (input.png).
> 
> maybe a bad image?


Perhaps. Or generated by older software. Though my GraphicsMagick (1.3.28):
"gm identify input.png" doesn't tell me anything about a "CRC error":
input.png PNG 334x168+0+0 DirectClass 8-bit 29.6Ki 0.000u 0m:0.03s

Anyway, at the beginning of a new book there are 10 of such images with 
artefacts.
I can handle the problem by converting them to .tiff-pictures. As long as I 
shall
have enough storage in my host :-), for me all will be ok.

Thank you!

Rudolf
___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Hans Hagen

On 4/29/2019 10:52 AM, Rudolf Bahr wrote:


Sorry, but even after updating to
ConTeXt  ver: 2019.04.29 09:02 MKIV beta  fmt: 2019.4.29
I'm experiencing the same artefacts as before.

Please, what means "different inclusion code"?

all in lua

anyway, as the png test suite passes ok the question is what makes your 
image different ... here it looks ok when included on windows64 bit and 
linux 64 bit


>gm identify input.png
input.png PNG 334x168+0+0 DirectClass 8-bit 29.6Ki 0.000u 0m:0.00s
gm identify: iCCP: CRC error (input.png).

maybe a bad image?

Hans

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


Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 10:52:59AM +0200, Bahr Rudolf wrote:
> On Sun, Apr 28, 2019 at 11:12:43PM +0200, Hans Hagen wrote:
> > On 4/28/2019 8:10 PM, Rudolf Bahr wrote:
> > > 
> > > Dear list,
> > > 
> > > I'm getting unexplainable artefacts in the pdf-output.
> > > 
> > > My MWE is:
> > > 
> > > --
> > > \starttext
> > > 
> > > \externalfigure
> > >  [input.png]
> > >  [width=100mm]
> > > 
> > > \stoptext
> > > --
> > > 
> > > I append the output "MWE.pdf" and the input-figure "input.png" for 
> > > comparison.
> > > 
> > > I'm experiencing the artefacts with some figures which are all several 
> > > years old.
> > > Until now it never happened in conTeXt programs. Because I installed a 
> > > new OS
> > > (LinuxMint) on my workstation at the same time I tried 3 pdfviewers 
> > > (okular,
> > > evince, xpdf) all with the same result.
> > 
> > different inclusion code
> > 
> > > I'm using LuaMetaTeX, Version 2.00.0,
> > > ConTeXt  ver: 2019.04.13 17:25 MKIV beta  fmt: 2019.4.15
> > > 
> > > Please, do you have any idea what could be the reason?
> > no problems here .. can you update?
> > 
> > Hans
> 
> 
> Sorry, but even after updating to
> ConTeXt  ver: 2019.04.29 09:02 MKIV beta  fmt: 2019.4.29
> I'm experiencing the same artefacts as before.
> 
> Please, what means "different inclusion code"?
> 


Interesting news!
After having changed the png-Format of the external figure to ".tiff"-Format by
gimp2.10 the artefacts have gone!

Rudolf
___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Rudolf Bahr
On Sun, Apr 28, 2019 at 11:12:43PM +0200, Hans Hagen wrote:
> On 4/28/2019 8:10 PM, Rudolf Bahr wrote:
> > 
> > Dear list,
> > 
> > I'm getting unexplainable artefacts in the pdf-output.
> > 
> > My MWE is:
> > 
> > --
> > \starttext
> > 
> > \externalfigure
> >  [input.png]
> >  [width=100mm]
> > 
> > \stoptext
> > --
> > 
> > I append the output "MWE.pdf" and the input-figure "input.png" for 
> > comparison.
> > 
> > I'm experiencing the artefacts with some figures which are all several 
> > years old.
> > Until now it never happened in conTeXt programs. Because I installed a new 
> > OS
> > (LinuxMint) on my workstation at the same time I tried 3 pdfviewers (okular,
> > evince, xpdf) all with the same result.
> 
> different inclusion code
> 
> > I'm using LuaMetaTeX, Version 2.00.0,
> > ConTeXt  ver: 2019.04.13 17:25 MKIV beta  fmt: 2019.4.15
> > 
> > Please, do you have any idea what could be the reason?
> no problems here .. can you update?
> 
> Hans


Sorry, but even after updating to
ConTeXt  ver: 2019.04.29 09:02 MKIV beta  fmt: 2019.4.29
I'm experiencing the same artefacts as before.

Please, what means "different inclusion code"?

Rudolf
___
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] Strange behavior concerning pdf-output of externalfigures

2019-04-28 Thread Hans Hagen

On 4/28/2019 8:10 PM, Rudolf Bahr wrote:


Dear list,

I'm getting unexplainable artefacts in the pdf-output.

My MWE is:

--
\starttext

\externalfigure
 [input.png]
 [width=100mm]

\stoptext
--

I append the output "MWE.pdf" and the input-figure "input.png" for comparison.

I'm experiencing the artefacts with some figures which are all several years 
old.
Until now it never happened in conTeXt programs. Because I installed a new OS
(LinuxMint) on my workstation at the same time I tried 3 pdfviewers (okular,
evince, xpdf) all with the same result.


different inclusion code


I'm using LuaMetaTeX, Version 2.00.0,
ConTeXt  ver: 2019.04.13 17:25 MKIV beta  fmt: 2019.4.15

Please, do you have any idea what could be the reason?

no problems here .. can you update?

Hans

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


[NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-28 Thread Rudolf Bahr

Dear list,

I'm getting unexplainable artefacts in the pdf-output.

My MWE is:

--
\starttext

\externalfigure
[input.png]
[width=100mm]

\stoptext
--

I append the output "MWE.pdf" and the input-figure "input.png" for comparison.

I'm experiencing the artefacts with some figures which are all several years 
old.
Until now it never happened in conTeXt programs. Because I installed a new OS
(LinuxMint) on my workstation at the same time I tried 3 pdfviewers (okular,
evince, xpdf) all with the same result.

I'm using LuaMetaTeX, Version 2.00.0,
ConTeXt  ver: 2019.04.13 17:25 MKIV beta  fmt: 2019.4.15

Please, do you have any idea what could be the reason?

Best wishes,

Rudolf


MWE.pdf
Description: Adobe PDF document
___
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] Strange behavior with offset key in a xtable

2019-04-22 Thread Fabrice Couvreur
Hi,
Why is the height of the cells of the third line different ?
Thank you.
Fabrice

\starttext
 \startxtable[align={lohi,middle},offset=0.8ex,width=3cm]
\startxrow
  \startxcell
\m{x}
  \stopxcell
  \startxcell[nx=3]
\math{-\infty} \hfill \math{+\infty}
  \stopxcell
\stopxrow
\startxrow
  \startxcell
Signe de \m{3x-6}
  \stopxcell
  \startxcell
\unknown
  \stopxcell
  \startxcell
\unknown
  \stopxcell
  \startxcell
\unknown
  \stopxcell
\stopxrow
\startxrow
  \startxcell
Signe de \m{-2x+8}
  \stopxcell
  \startxcell
\unknown
  \stopxcell
  \startxcell
\unknown
  \stopxcell
  \startxcell
\unknown
  \stopxcell
\stopxrow
\startxrow
  \startxcell[width=6cm]
Signe de \m{(3x-6)(-2x+8)}
  \stopxcell
  \startxcell
\unknown
  \stopxcell
  \startxcell
\unknown
  \stopxcell
  \startxcell
\unknown
  \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
___


Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Fabrice Couvreur
Hi Henry,
I am confused because I forgot to replace & by \& in the definition of the
matrix.
Thank you.
Fabrice

Le jeu. 18 avr. 2019 à 12:31, Henri Menke  a écrit :

> On 4/18/19 10:22 PM, Fabrice Couvreur wrote:
> > Hi Henry,
> > This has no effect, the problem is the same.
>
> ConTeXt  ver: 2019.04.16 08:54 MKIV beta
>
> PDF is attached.
>
> > Fabrice
> >
> > Le jeu. 18 avr. 2019 à 12:17, Henri Menke  a
> écrit :
> >
> >> In ConTeXt the ampersand is not an alignment character but has catcode
> >> 12 by default.  Use the "ampersand replacement" option.
> >>
> >> \usemodule[tikz]
> >> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> >> \starttext
> >>
> >> \starttikzpicture[>=stealth,thick,baseline,
> >> every right delimiter/.append style={name=rd},
> >> ]
> >> \matrix [matrix of math nodes,
> >> left delimiter=(,
> >> right delimiter=),
> >> ampersand replacement=\&
> >> ](A){
> >> a_{1,1} \& a_{1,2} \& \dots  \& a_{1,j} \& \dots \& a_{1,n}\\
> >> a_{2,1} \& a_{2,2} \& \dots  \& a_{2,j} \& \dots \& a_{2,n}\\
> >> \vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
> >> a_{i,1} \& a_{i,2} \& \dots  \& a_{i,j} \& \dots \& a_{i,n}\\
> >> \vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
> >> a_{n,1} \& a_{n,2} \& \dots  \& a_{n,j} \& \dots \& a_{n,n}\\
> >> };
> >>
> >> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> >> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> >> colonne};
> >>
> >> \stoptikzpicture
> >> \stoptext
> >>
> >>
> >>
> >> On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
> >> > Hi,
> >> > If I compile the following code, the result is not the one expected.
> >> >
> >> > \usemodule[tikz]
> >> > \usetikzlibrary[matrix,decorations.pathreplacing, calc,
> positioning,fit]
> >> > \starttext
> >> >
> >> > \starttikzpicture[>=stealth,thick,baseline,
> >> > every right delimiter/.append style={name=rd},
> >> > ]
> >> > \matrix [matrix of math nodes,
> >> > left delimiter=(,
> >> > right delimiter=),
> >> > ](A){
> >> > a_{1,1} & a_{1,2} & \dots  & a_{1,j} & \dots & a_{1,n}\\
> >> > a_{2,1} & a_{2,2} & \dots  & a_{2,j} & \dots & a_{2,n}\\
> >> > \vdots  & \vdots  &  & \vdots  &  & \vdots\\
> >> > a_{i,1} & a_{i,2} & \dots  & a_{i,j} & \dots & a_{i,n}\\
> >> > \vdots  & \vdots  &  & \vdots  &  & \vdots\\
> >> > a_{n,1} & a_{n,2} & \dots  & a_{n,j} & \dots & a_{n,n}\\
> >> > };
> >> >
> >> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> >> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> >> > colonne};
> >> >
> >> > \stoptikzpicture
> >> > \stoptext
> >> >
> >> > Thank you
> >> > Fabrice
> >> >
> >> >
> >> >
> >>
> ___
> >> > 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
> >> >
> >>
> ___
> >> >
> >>
> >>
> >>
> ___
> >> 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
> >>
> >>
> ___
> >>
> >
> >
> >
> ___
> > 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
> >
> ___
> >
>
>
> ___
> 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
>
> ___
>
___
If your question is of interest t

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Henri Menke
On 4/18/19 10:22 PM, Fabrice Couvreur wrote:
> Hi Henry,
> This has no effect, the problem is the same.

ConTeXt  ver: 2019.04.16 08:54 MKIV beta

PDF is attached.

> Fabrice
> 
> Le jeu. 18 avr. 2019 à 12:17, Henri Menke  a écrit :
> 
>> In ConTeXt the ampersand is not an alignment character but has catcode
>> 12 by default.  Use the "ampersand replacement" option.
>>
>> \usemodule[tikz]
>> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
>> \starttext
>>
>> \starttikzpicture[>=stealth,thick,baseline,
>> every right delimiter/.append style={name=rd},
>> ]
>> \matrix [matrix of math nodes,
>> left delimiter=(,
>> right delimiter=),
>> ampersand replacement=\&
>> ](A){
>> a_{1,1} \& a_{1,2} \& \dots  \& a_{1,j} \& \dots \& a_{1,n}\\
>> a_{2,1} \& a_{2,2} \& \dots  \& a_{2,j} \& \dots \& a_{2,n}\\
>> \vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
>> a_{i,1} \& a_{i,2} \& \dots  \& a_{i,j} \& \dots \& a_{i,n}\\
>> \vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
>> a_{n,1} \& a_{n,2} \& \dots  \& a_{n,j} \& \dots \& a_{n,n}\\
>> };
>>
>> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
>> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
>> colonne};
>>
>> \stoptikzpicture
>> \stoptext
>>
>>
>>
>> On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
>> > Hi,
>> > If I compile the following code, the result is not the one expected.
>> >
>> > \usemodule[tikz]
>> > \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
>> > \starttext
>> >
>> > \starttikzpicture[>=stealth,thick,baseline,
>> > every right delimiter/.append style={name=rd},
>> > ]
>> > \matrix [matrix of math nodes,
>> > left delimiter=(,
>> > right delimiter=),
>> > ](A){
>> > a_{1,1} & a_{1,2} & \dots  & a_{1,j} & \dots & a_{1,n}\\
>> > a_{2,1} & a_{2,2} & \dots  & a_{2,j} & \dots & a_{2,n}\\
>> > \vdots  & \vdots  &  & \vdots  &  & \vdots\\
>> > a_{i,1} & a_{i,2} & \dots  & a_{i,j} & \dots & a_{i,n}\\
>> > \vdots  & \vdots  &  & \vdots  &  & \vdots\\
>> > a_{n,1} & a_{n,2} & \dots  & a_{n,j} & \dots & a_{n,n}\\
>> > };
>> >
>> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
>> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
>> > colonne};
>> >
>> > \stoptikzpicture
>> > \stoptext
>> >
>> > Thank you
>> > Fabrice
>> >
>> >
>> >
>> ___
>> > 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
>> >
>> ___
>> >
>>
>>
>> ___
>> 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
>>
>> ___
>>
> 
> 
> ___
> 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
> ___
> 



test.pdf
Description: Adobe PDF document
___
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] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Fabrice Couvreur
Hi Henry,
This has no effect, the problem is the same.
Fabrice

Le jeu. 18 avr. 2019 à 12:17, Henri Menke  a écrit :

> In ConTeXt the ampersand is not an alignment character but has catcode
> 12 by default.  Use the "ampersand replacement" option.
>
> \usemodule[tikz]
> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> \starttext
>
> \starttikzpicture[>=stealth,thick,baseline,
> every right delimiter/.append style={name=rd},
> ]
> \matrix [matrix of math nodes,
> left delimiter=(,
> right delimiter=),
> ampersand replacement=\&
> ](A){
> a_{1,1} \& a_{1,2} \& \dots  \& a_{1,j} \& \dots \& a_{1,n}\\
> a_{2,1} \& a_{2,2} \& \dots  \& a_{2,j} \& \dots \& a_{2,n}\\
> \vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
> a_{i,1} \& a_{i,2} \& \dots  \& a_{i,j} \& \dots \& a_{i,n}\\
> \vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
> a_{n,1} \& a_{n,2} \& \dots  \& a_{n,j} \& \dots \& a_{n,n}\\
> };
>
> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> colonne};
>
> \stoptikzpicture
> \stoptext
>
>
>
> On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
> > Hi,
> > If I compile the following code, the result is not the one expected.
> >
> > \usemodule[tikz]
> > \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> > \starttext
> >
> > \starttikzpicture[>=stealth,thick,baseline,
> > every right delimiter/.append style={name=rd},
> > ]
> > \matrix [matrix of math nodes,
> > left delimiter=(,
> > right delimiter=),
> > ](A){
> > a_{1,1} & a_{1,2} & \dots  & a_{1,j} & \dots & a_{1,n}\\
> > a_{2,1} & a_{2,2} & \dots  & a_{2,j} & \dots & a_{2,n}\\
> > \vdots  & \vdots  &  & \vdots  &  & \vdots\\
> > a_{i,1} & a_{i,2} & \dots  & a_{i,j} & \dots & a_{i,n}\\
> > \vdots  & \vdots  &  & \vdots  &  & \vdots\\
> > a_{n,1} & a_{n,2} & \dots  & a_{n,j} & \dots & a_{n,n}\\
> > };
> >
> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> > colonne};
> >
> > \stoptikzpicture
> > \stoptext
> >
> > Thank you
> > Fabrice
> >
> >
> >
> ___
> > 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
> >
> ___
> >
>
>
> ___
> 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
>
> ___
>
___
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] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Henri Menke
In ConTeXt the ampersand is not an alignment character but has catcode
12 by default.  Use the "ampersand replacement" option.

\usemodule[tikz]
\usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
\starttext

\starttikzpicture[>=stealth,thick,baseline,
every right delimiter/.append style={name=rd},
]
\matrix [matrix of math nodes,
left delimiter=(,
right delimiter=),
ampersand replacement=\&
](A){
a_{1,1} \& a_{1,2} \& \dots  \& a_{1,j} \& \dots \& a_{1,n}\\
a_{2,1} \& a_{2,2} \& \dots  \& a_{2,j} \& \dots \& a_{2,n}\\
\vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
a_{i,1} \& a_{i,2} \& \dots  \& a_{i,j} \& \dots \& a_{i,n}\\
\vdots  \& \vdots  \&  \& \vdots  \&  \& \vdots\\
a_{n,1} \& a_{n,2} \& \dots  \& a_{n,j} \& \dots \& a_{n,n}\\
};

\draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
\draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
colonne};

\stoptikzpicture
\stoptext



On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
> Hi,
> If I compile the following code, the result is not the one expected.
> 
> \usemodule[tikz]
> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> \starttext
> 
> \starttikzpicture[>=stealth,thick,baseline,
> every right delimiter/.append style={name=rd},
> ]
> \matrix [matrix of math nodes,
> left delimiter=(,
> right delimiter=),
> ](A){
> a_{1,1} & a_{1,2} & \dots  & a_{1,j} & \dots & a_{1,n}\\
> a_{2,1} & a_{2,2} & \dots  & a_{2,j} & \dots & a_{2,n}\\
> \vdots  & \vdots  &  & \vdots  &  & \vdots\\
> a_{i,1} & a_{i,2} & \dots  & a_{i,j} & \dots & a_{i,n}\\
> \vdots  & \vdots  &  & \vdots  &  & \vdots\\
> a_{n,1} & a_{n,2} & \dots  & a_{n,j} & \dots & a_{n,n}\\
> };
> 
> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> colonne};
> 
> \stoptikzpicture
> \stoptext
> 
> Thank you
> Fabrice
> 
> 
> ___
> 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
> ___
> 

___
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] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Fabrice Couvreur
Hi,
If I compile the following code, the result is not the one expected.

\usemodule[tikz]
\usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
\starttext

\starttikzpicture[>=stealth,thick,baseline,
every right delimiter/.append style={name=rd},
]
\matrix [matrix of math nodes,
left delimiter=(,
right delimiter=),
](A){
a_{1,1} & a_{1,2} & \dots  & a_{1,j} & \dots & a_{1,n}\\
a_{2,1} & a_{2,2} & \dots  & a_{2,j} & \dots & a_{2,n}\\
\vdots  & \vdots  &  & \vdots  &  & \vdots\\
a_{i,1} & a_{i,2} & \dots  & a_{i,j} & \dots & a_{i,n}\\
\vdots  & \vdots  &  & \vdots  &  & \vdots\\
a_{n,1} & a_{n,2} & \dots  & a_{n,j} & \dots & a_{n,n}\\
};

\draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
\draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
colonne};

\stoptikzpicture
\stoptext

Thank you
Fabrice
___
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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Hans Hagen

On 4/10/2019 2:19 PM, Aditya Mahajan wrote:

On Wed, 10 Apr 2019, Hans Hagen wrote:


On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote:

On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:


Hi Hans,

While testing old documents with lmtx, I noticed that with recent 
versions of mkiv, as well as LuaMetaTeX, there is a strange behavior 
in math mode: when the characters < and - follow each other one gets 
\leftarrow… This is embarrassing when one writes inequalities for 
negative numbers.
So one has to separate them in order to obtain with curly braces. 
Can this be fixed or is it intended ?


\starttext
$\alpha < -1$

$\alpha \leftarrow 1$

$\alpha < {-1}$

$\alpha {<} - 1$
\stoptext

Best regards: OK


Hi!

I asked about this before, and it is a feature.

It can be switched off with

\setupmathematics[
collapsing=1,
]

Hope it helps!
Indeed. Aditya is in charge of decisions about these defaults so if 
you want it differently you need to convince him. (I'm not sure how 
many users depend on it.)


We can turn it off by default. But it might be better to have a more 
versbose interface:


   \setupmathematics[collapsing=yes|no]

with the default value being collapsing=no.


we already have "none" and th enumbers represent:

1 specials
2 specials + mathlist
3 mathlist + specials

Now that Alan is entering his math in unicode symbols we can default to 
'none'.


Hans

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


Re: [NTG-context] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Alan Braslau
On Wed, 10 Apr 2019 10:09:31 +0200
Otared Kavian  wrote:

> The problem of such an usual default is also with newcomers who would not 
> know about this feature in ConTeXt: when one writes maths one would not guess 
> that typing an inequality like $n < -1$ would end up in $n \leftarrow 1$. And 
> writing such inequalities is very common… while \leftarrow is used seldom in 
> a mathematical text.
> So I think having the default collapsing=1 would be more logical, and more in 
> line with the spirit of TeX.
> 
> I hope Aditya will be convinced…

And since we have utf-8 input, such "features" are anachronistic and should not 
be on by default. ←

Alan
___
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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Aditya Mahajan

On Wed, 10 Apr 2019, Hans Hagen wrote:


On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote:

On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:


Hi Hans,

While testing old documents with lmtx, I noticed that with recent versions 
of mkiv, as well as LuaMetaTeX, there is a strange behavior in math mode: 
when the characters < and - follow each other one gets \leftarrow… This is 
embarrassing when one writes inequalities for negative numbers.
So one has to separate them in order to obtain with curly braces. Can this 
be fixed or is it intended ?


\starttext
$\alpha < -1$

$\alpha \leftarrow 1$

$\alpha < {-1}$

$\alpha {<} - 1$
\stoptext

Best regards: OK


Hi!

I asked about this before, and it is a feature.

It can be switched off with

\setupmathematics[
collapsing=1,
]

Hope it helps!
Indeed. Aditya is in charge of decisions about these defaults so if you want 
it differently you need to convince him. (I'm not sure how many users depend 
on it.)


We can turn it off by default. But it might be better to have a more 
versbose interface:


  \setupmathematics[collapsing=yes|no]

with the default value being collapsing=no.

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
___


Re: [NTG-context] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Otared Kavian
Thanks Hans for your attention!

The problem of such an usual default is also with newcomers who would not know 
about this feature in ConTeXt: when one writes maths one would not guess that 
typing an inequality like $n < -1$ would end up in $n \leftarrow 1$. And 
writing such inequalities is very common… while \leftarrow is used seldom in a 
mathematical text.
So I think having the default collapsing=1 would be more logical, and more in 
line with the spirit of TeX.

I hope Aditya will be convinced…

Best regards: OK

> On 10 Apr 2019, at 09:53, Hans Hagen  wrote:
> 
> On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote:
>> On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:
>>> […
> Indeed. Aditya is in charge of decisions about these defaults so if you want 
> it differently you need to convince him. (I'm not sure how many users depend 
> on it.)
> 
> Hans
___
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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Otared Kavian
Hi Mikael,

Thanks for your quick reply.
Indeed I did not know about this feature, and setting collapsing=1 solves my 
problem…

Best regards: OK

> On 10 Apr 2019, at 09:40, Mikael P. Sundqvist  wrote:
> 
> On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:
>> […]
> 
> Hi!
> 
> I asked about this before, and it is a feature.
> 
> It can be switched off with
> 
> \setupmathematics[
> collapsing=1,
> ]
> 
> Hope it helps!
> 
> /Mikael


___
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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Hans Hagen

On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote:

On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:


Hi Hans,

While testing old documents with lmtx, I noticed that with recent versions of 
mkiv, as well as LuaMetaTeX, there is a strange behavior in math mode: when the 
characters < and - follow each other one gets \leftarrow… This is embarrassing 
when one writes inequalities for negative numbers.
So one has to separate them in order to obtain with curly braces. Can this be 
fixed or is it intended ?

\starttext
$\alpha < -1$

$\alpha \leftarrow 1$

$\alpha < {-1}$

$\alpha {<} - 1$
\stoptext

Best regards: OK
___
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
___


Hi!

I asked about this before, and it is a feature.

It can be switched off with

\setupmathematics[
collapsing=1,
]

Hope it helps!
Indeed. Aditya is in charge of decisions about these defaults so if you 
want it differently you need to convince him. (I'm not sure how many 
users depend on it.)


Hans


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


Re: [NTG-context] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Mikael P. Sundqvist
On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian  wrote:
>
> Hi Hans,
>
> While testing old documents with lmtx, I noticed that with recent versions of 
> mkiv, as well as LuaMetaTeX, there is a strange behavior in math mode: when 
> the characters < and - follow each other one gets \leftarrow… This is 
> embarrassing when one writes inequalities for negative numbers.
> So one has to separate them in order to obtain with curly braces. Can this be 
> fixed or is it intended ?
>
> \starttext
> $\alpha < -1$
>
> $\alpha \leftarrow 1$
>
> $\alpha < {-1}$
>
> $\alpha {<} - 1$
> \stoptext
>
> Best regards: OK
> ___
> 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
> ___

Hi!

I asked about this before, and it is a feature.

It can be switched off with

\setupmathematics[
collapsing=1,
]

Hope it helps!

/Mikael
___
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] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Otared Kavian
Hi Hans,

While testing old documents with lmtx, I noticed that with recent versions of 
mkiv, as well as LuaMetaTeX, there is a strange behavior in math mode: when the 
characters < and - follow each other one gets \leftarrow… This is embarrassing 
when one writes inequalities for negative numbers.
So one has to separate them in order to obtain with curly braces. Can this be 
fixed or is it intended ?

\starttext
$\alpha < -1$ 

$\alpha \leftarrow 1$

$\alpha < {-1}$

$\alpha {<} - 1$
\stoptext

Best regards: OK
___
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] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
Hi Aditya,
Sorry but with this file, there are some problems, especially with the last
item.
Thanks.
Fabrice

Le mar. 23 oct. 2018 à 09:46, Fabrice Couvreur 
a écrit :

> Hi Aditya,
> Thanks.
> Fabrice
>
> Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan  a écrit :
>
>> On Mon, 22 Oct 2018, Fabrice Couvreur wrote:
>>
>> > Hi,
>> > When I use the \inframed{} command twice, they are not on the same
>> baseline.
>> > Thank you.
>> > Fabrice
>> >
>> > \starttext
>> Add \dontleavehmode
>> >\inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times
>> A
>> > \times X=A^{-1}\times B}}
>> > \stoptext
>>
>> See
>>
>> https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode
>>
>> 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
>>
>> ___
>
>
 \definefloat
[recipe]
[figure]

  \setupfloat
[recipe]
[default={right,none}]

\define\ItemCommand
  {\hskip\zeropoint\relax\autoinsertnextspace}

  \setupitemgroup
[itemize]
[color=black,
 style=bold,
 distance=\zeropoint]

  \setupitemgroup
[itemize:1]
[option={n,packed,fit,intext},
command=\ItemCommand]

  \setupitemgroup
[itemize:2]
[lefttext=,
righttext=,
option={a,text}]
  
\starttext
  \placerecipe{}{
\startxtable[align={lohi,middle},bodyfont=9pt,offset=0.5ex]
  \startxrow
\startxcell[nx=5,frame=off,align={right}]
  Prénom : Marion
\stopxcell
  \stopxrow
  \startxrow
\startxcell
  \rotate[rotation=30,width=1.5cm]{\darkred Admise}
\stopxcell
\startxcell
  Anglais
\stopxcell
\startxcell
  Maths
\stopxcell
\startxcell[width=1.5cm]
  Culture générale
\stopxcell
\startxcell[width=2.25cm]
  Économie
\stopxcell
  \stopxrow
  \startxrow
\startxcell
  Note/20
\stopxcell
\startxcell
  12
\stopxcell
\startxcell
  14
\stopxcell
\startxcell
  8
\stopxcell
\startxcell
  11
\stopxcell
  \stopxrow
  \startxrow[frame=off]
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxcell[frame=on]
  \bf Moyenne 11,8
\stopxcell
  \stopxrow
  \startxrow
\startxcell[nx=5,frame=off,align={right}]
  Prénom : Hichem
\stopxcell
  \stopxrow
  \startxrow
\startxcell
  \rotate[rotation=30,width=1.5cm]{\darkred Admis }
\stopxcell
\startxcell
  Anglais
\stopxcell
\startxcell
  Maths
\stopxcell
\startxcell
  Culture générale
\stopxcell
\startxcell[width=2cm]
  Économie
\stopxcell
  \stopxrow
  \startxrow
\startxcell
  Note/20
\stopxcell
\startxcell
  13
\stopxcell
\startxcell
  15
\stopxcell
\startxcell
  10
\stopxcell
\startxcell
  16
\stopxcell
  \stopxrow
  \startxrow[frame=off]
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxcell[frame=on]
  \bf Moyenne 14,5
\stopxcell
  \stopxrow
  \startxrow
\startxcell[nx=5,frame=off,align={right}]
  Prénom : Lucas
\stopxcell
  \stopxrow
  \startxrow
\startxcell
  \rotate[rotation=30,width=1.5cm]{\darkred Refusé}
\stopxcell
\startxcell
  Anglais
\stopxcell
\startxcell
  Maths
\stopxcell
\startxcell
  Culture générale
\stopxcell
\startxcell[width=2cm]
  Économie
\stopxcell
  \stopxrow
  \startxrow
\startxcell
  Note/20
\stopxcell
\startxcell
  9
\stopxcell
\startxcell
  8
\stopxcell
\startxcell
  4
\stopxcell
\startxcell
  11
\stopxcell
  \stopxrow
  \startxrow[frame=off]
\startxcell
  
\stopxcell
\startxcell
  
\stopxcell
\startxc

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
Hi Aditya,
Thanks.
Fabrice

Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan  a écrit :

> On Mon, 22 Oct 2018, Fabrice Couvreur wrote:
>
> > Hi,
> > When I use the \inframed{} command twice, they are not on the same
> baseline.
> > Thank you.
> > Fabrice
> >
> > \starttext
> Add \dontleavehmode
> >\inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times A
> > \times X=A^{-1}\times B}}
> > \stoptext
>
> See
>
> https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode
>
> 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
>
> ___
___
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] Strange behavior with the command \inframed{}

2018-10-22 Thread Aditya Mahajan

On Mon, 22 Oct 2018, Fabrice Couvreur wrote:


Hi,
When I use the \inframed{} command twice, they are not on the same baseline.
Thank you.
Fabrice

\starttext

Add \dontleavehmode

   \inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times A
\times X=A^{-1}\times B}}
\stoptext


See
https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode

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
___

[NTG-context] Strange behavior with the command \inframed{}

2018-10-22 Thread Fabrice Couvreur
Hi,
When I use the \inframed{} command twice, they are not on the same baseline.
Thank you.
Fabrice

\starttext
\inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times A
\times X=A^{-1}\times B}}
\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] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
Hi Fabrice,

I don't know whether this is related to the problem you observe, but in your 
setups you have

forgroundstyle=bold

which should be

foregroundstyle=bold


Best regards: Otared K.

> On 16 Jul 2018, at 10:13, Fabrice Couvreur  
> wrote:
> 
> Hi Otared,
> If I change the font using modern, it works but the text remains bold if I 
> use most other fonts, it's really strange !
> Fabrice
> 
> 2018-07-16 9:57 GMT+02:00 Otared Kavian  >:
> Hi Fabrice,
> 
> When typesetting your example here I get the correct behaviour: the text is 
> not in bold face.
> 
> Best regards: OK
> 
>> On 15 Jul 2018, at 23:39, Fabrice Couvreur > > wrote:
>> 
>> Good evening,
>> In the code below, why is the text in bold ?
>> Thank you
>> Fabrice
>> 
>> \setupbodyfont[pagella,11pt]
>> 
>> \defineframed
>>[ACFRAME]
>>[frame=off,
>> offset=0pt,
>> location=low,
>> width=\struttotal,
>> background=color,
>> backgroundcolor=black,
>> foregroundcolor=white,
>> forgroundstyle=bold]
>> 
>> 
>> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
>> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>> 
>> \defineenumeration
>>[ex]
>>[text=,
>> distance=0.3em,
>> width=fit,
>> numberconversionset=ACCONVERSION,
>> alternative=serried]
>> 
>> \starttext
>> 
>> \dorecurse{5}
>>{\startex
>> \input knuth
>> \stopex}
>> 
>> \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 
>> ___
> 
> 
> ___
> 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 
> ___
> 
> ___
> 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
> ___

___
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] Strange behavior with font pagella

2018-07-16 Thread Wolfgang Schuster

Hi Fabrice,

the problem is the lack of the TeX Gyre text fonts in the distribution 
as reported by Thomas a few days ago: 
https://mailman.ntg.nl/pipermail/ntg-context/2018/091900.html


Wolfgang

Fabrice Couvreur 
16. Juli 2018 um 10:13
Hi Otared,
If I change the font using modern, it works but the text remains bold 
if I use most other fonts, it's really strange !

Fabrice


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


___
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] Strange behavior with font pagella

2018-07-16 Thread Fabrice Couvreur
Hi Otared,
If I change the font using modern, it works but the text remains bold if I
use most other fonts, it's really strange !
Fabrice

2018-07-16 9:57 GMT+02:00 Otared Kavian :

> Hi Fabrice,
>
> When typesetting your example here I get the correct behaviour: the text
> is not in bold face.
>
> Best regards: OK
>
> On 15 Jul 2018, at 23:39, Fabrice Couvreur 
> wrote:
>
> Good evening,
> In the code below, why is the text in bold ?
> Thank you
> Fabrice
>
> \setupbodyfont[pagella,11pt]
>
> \defineframed
>[ACFRAME]
>[frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=bold]
>
>
> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
>[ex]
>[text=,
> distance=0.3em,
> width=fit,
> numberconversionset=ACCONVERSION,
> alternative=serried]
>
> \starttext
>
> \dorecurse{5}
>{\startex
> \input knuth
> \stopex}
>
> \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
> 
> ___
>
>
>
> 
> ___
> 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
> 
> ___
>
___
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] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
Hi Fabrice,

When typesetting your example here I get the correct behaviour: the text is not 
in bold face.

Best regards: OK

> On 15 Jul 2018, at 23:39, Fabrice Couvreur  
> wrote:
> 
> Good evening,
> In the code below, why is the text in bold ?
> Thank you
> Fabrice
> 
> \setupbodyfont[pagella,11pt]
> 
> \defineframed
>[ACFRAME]
>[frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=bold]
> 
> 
> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
> 
> \defineenumeration
>[ex]
>[text=,
> distance=0.3em,
> width=fit,
> numberconversionset=ACCONVERSION,
> alternative=serried]
> 
> \starttext
> 
> \dorecurse{5}
>{\startex
> \input knuth
> \stopex}
> 
> \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
> ___

___
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] Strange behavior !

2018-07-16 Thread Otared Kavian
Hi Fabrice,

This is because you define MyColorA, MyColorB but you don't define MyColor and 
myColor: but you use these two colors in your MPgraphic.

Best regards: OK


> On 16 Jul 2018, at 00:03, Fabrice Couvreur  
> wrote:
> 
> Good evening,
> In the code below, I get frames filled in black​ ​!
> Thank you
> Fabrice
> 
> \setupbodyfont [palatino,11pt]
> 
> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][.75(MyColorB,white)]  
> 
> \defineframedtext
>[MyText]
>[frame=off,
> background=MyFrame,
> width=\textwidth,
> location=right]
> 
> \defineoverlay
>[MyFrame]
>[\useMPgraphic{MyFrame}]
> 
> \definelabel
>[Définition]
>[headstyle=\bf\smallcaps]
> 
> 
> \startuseMPgraphic{MyFrame}
>  picture p ;
>  p := textext.rt(\MPstring{MyFrame}) ;
>  p := p shifted (0,OverlayHeight-ypart center p) ;
>  fill OverlayBox leftenlarged .1TextWidth withcolor \MPcolor{MyColor} ;
>  fill boundingbox p withcolor \MPcolor{myColor} ;
>  draw p withcolor white ;
>  setbounds currentpicture to OverlayBox ;
> \stopuseMPgraphic
> 
> 
> \starttext
> 
> \startMyText
>  \input knuth
> \stopMyText
> 
> \startMyText
>  \input knuth
> \stopMyText
> 
> \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
> ___

___
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] Strange behavior !

2018-07-15 Thread Alan Braslau
MyColor is undefined and defaults to black.

Alan


On Mon, 16 Jul 2018 00:03:33 +0200
Fabrice Couvreur  wrote:

> Good evening,
> In the code below, I get frames filled in black
> ​ ​
> !
> Thank you
> Fabrice
> 
> \setupbodyfont [palatino,11pt]
> 
> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][.75(MyColorB,white)]
> 
> \defineframedtext
>[MyText]
>[frame=off,
> background=MyFrame,
> width=\textwidth,
> location=right]
> 
> \defineoverlay
>[MyFrame]
>[\useMPgraphic{MyFrame}]
> 
> \definelabel
>[Définition]
>[headstyle=\bf\smallcaps]
> 
> 
> \startuseMPgraphic{MyFrame}
>  picture p ;
>  p := textext.rt(\MPstring{MyFrame}) ;
>  p := p shifted (0,OverlayHeight-ypart center p) ;
>  fill OverlayBox leftenlarged .1TextWidth withcolor
> \MPcolor{MyColor} ; fill boundingbox p withcolor \MPcolor{myColor} ;
>  draw p withcolor white ;
>  setbounds currentpicture to OverlayBox ;
> \stopuseMPgraphic
> 
> 
> \starttext
> 
> \startMyText
>  \input knuth
> \stopMyText
> 
> \startMyText
>  \input knuth
> \stopMyText
> 
> \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] Strange behavior with font pagella

2018-07-15 Thread Rik Kabel

On 7/15/2018 17:39, Fabrice Couvreur wrote:

\setupbodyfont[pagella,11pt]

\defineframed
   [ACFRAME]
   [frame=off,
    offset=0pt,
    location=low,
    width=\struttotal,
    background=color,
    backgroundcolor=black,
    foregroundcolor=white,
    forgroundstyle=bold]


\defineprocessor[ACPROCESSOR][command=\ACFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
   [ex]
   [text=,
    distance=0.3em,
    width=fit,
    numberconversionset=ACCONVERSION,
    alternative=serried]

\starttext

\dorecurse{5}
   {\startex
    \input knuth
    \stopex}

\stoptext


Looks like a font issue -- it does not happen with LM or ebgaramond.

--
Rik

___
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] Strange behavior !

2018-07-15 Thread Fabrice Couvreur
Good evening,
In the code below, I get frames filled in black
​ ​
!
Thank you
Fabrice

\setupbodyfont [palatino,11pt]

\definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
\definecolor[MyColorA][.75(MyColorB,white)]

\defineframedtext
   [MyText]
   [frame=off,
background=MyFrame,
width=\textwidth,
location=right]

\defineoverlay
   [MyFrame]
   [\useMPgraphic{MyFrame}]

\definelabel
   [Définition]
   [headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}
 picture p ;
 p := textext.rt(\MPstring{MyFrame}) ;
 p := p shifted (0,OverlayHeight-ypart center p) ;
 fill OverlayBox leftenlarged .1TextWidth withcolor \MPcolor{MyColor} ;
 fill boundingbox p withcolor \MPcolor{myColor} ;
 draw p withcolor white ;
 setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic


\starttext

\startMyText
 \input knuth
\stopMyText

\startMyText
 \input knuth
\stopMyText

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

[NTG-context] Strange behavior with font pagella

2018-07-15 Thread Fabrice Couvreur
Good evening,
In the code below, why is the text in bold ?
Thank you
Fabrice

\setupbodyfont[pagella,11pt]

\defineframed
   [ACFRAME]
   [frame=off,
offset=0pt,
location=low,
width=\struttotal,
background=color,
backgroundcolor=black,
foregroundcolor=white,
forgroundstyle=bold]


\defineprocessor[ACPROCESSOR][command=\ACFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
   [ex]
   [text=,
distance=0.3em,
width=fit,
numberconversionset=ACCONVERSION,
alternative=serried]

\starttext

\dorecurse{5}
   {\startex
\input knuth
\stopex}

\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] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
Hi Ulrike,
It does not work
Fabrice

2018-04-22 0:19 GMT+02:00 Fabrice Couvreur :

> Hi Wolfgang,
> The text is not in italic but the font is not the one expected :
> LMRoman10-Regular
> Fabrice
>
> 2018-04-21 15:07 GMT+02:00 Ulrike Fischer :
>
>> Am Sat, 21 Apr 2018 11:41:36 +0200 schrieb Fabrice Couvreur:
>>
>> > Hello,
>> > I got the cambria font and installed it :
>> > The text is in italic !
>>
>> Try mtxrun --script fonts --reload --force
>>
>> (there was a discussion about it last year:
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg85698.html
>> )
>>
>> --
>> Ulrike Fischer
>> http://www.troubleshooting-tex.de/
>>
>> 
>> ___
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>
>
___
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] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
Hi Wolfgang,
The text is not in italic but the font is not the one expected :
LMRoman10-Regular
Fabrice

2018-04-21 15:07 GMT+02:00 Ulrike Fischer :

> Am Sat, 21 Apr 2018 11:41:36 +0200 schrieb Fabrice Couvreur:
>
> > Hello,
> > I got the cambria font and installed it :
> > The text is in italic !
>
> Try mtxrun --script fonts --reload --force
>
> (there was a discussion about it last year:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg85698.html
> )
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
> 
> ___
> 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
> 
> ___
>
___
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] Strange behavior with cambria font

2018-04-21 Thread Ulrike Fischer
Am Sat, 21 Apr 2018 11:41:36 +0200 schrieb Fabrice Couvreur:

> Hello,
> I got the cambria font and installed it :
> The text is in italic !

Try mtxrun --script fonts --reload --force

(there was a discussion about it last year:
https://www.mail-archive.com/ntg-context@ntg.nl/msg85698.html
)

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] Strange behavior with cambria font

2018-04-21 Thread Wolfgang Schuster

Does this work?

\definefontfamily [msoffice] [rm] [Cambria]
\definefontfamily [msoffice] [mm] [Cambria Math]

\setupbodyfont [msoffice]

\starttext
\input knuth
\stoptext

Wolfgang

Fabrice Couvreur 
21. April 2018 um 11:41
Hello,
I got the cambria font and installed it :
The text is in italic !
Thanks
Fabrice
#
fab@debian:~$ mtxrun --script font --list "cambria*" --all

resolvers   | trees | analyzing 'home:texmf'
identifier   familynamefontnamefilename   
subfont   instances


cambria  cambria   cambria cambria.ttc1
cambriabold  cambria   cambriabold cambriab.ttf
cambriabolditaliccambria   cambriabolditalic   cambriaz.ttf
cambriaitaliccambria   cambriaitalic   cambriai.ttf
cambriamath  cambriamath   cambriamath cambria.ttc2
cambriamathnormalcambriamath   cambriamath cambria.ttc2
cambriamathregular   cambriamath   cambriamath cambria.ttc2
cambrianormalcambria   cambriaitalic   cambriai.ttf
cambriaregular   cambria   cambria cambria.ttc1
fab@debian:~$

##
\switchtobodyfont[cambria]
\starttext
\input knuth
\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
___


___
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] Strange behavior with cambria font

2018-04-21 Thread Henning Hraban Ramm
Am 2018-04-21 um 11:41 schrieb Fabrice Couvreur :

> Hello,
> I got the cambria font and installed it :
> The text is in italic !
> Thanks
> Fabrice
> #
> cambrianormalcambria   cambriaitalic   cambriai.ttf
> ##

Looks like there’s a problem in detection.

Hm, I had a working typescript, but can’t find it, sorry.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD


___
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] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
Hello,
I got the cambria font and installed it :
The text is in italic !
Thanks
Fabrice
#
fab@debian:~$ mtxrun --script font --list "cambria*" --all

resolvers   | trees | analyzing 'home:texmf'
identifier   familynamefontnamefilename
subfont   instances

cambria  cambria   cambria cambria.ttc1
cambriabold  cambria   cambriabold cambriab.ttf
cambriabolditaliccambria   cambriabolditalic   cambriaz.ttf
cambriaitaliccambria   cambriaitalic   cambriai.ttf
cambriamath  cambriamath   cambriamath cambria.ttc2
cambriamathnormalcambriamath   cambriamath cambria.ttc2
cambriamathregular   cambriamath   cambriamath cambria.ttc2
cambrianormalcambria   cambriaitalic   cambriai.ttf
cambriaregular   cambria   cambria cambria.ttc1
fab@debian:~$

##
\switchtobodyfont[cambria]
\starttext
\input knuth
\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] Strange behavior with itemize

2017-12-18 Thread Fabrice Couvreur
Hello Hans,
It works well with context in Texlive but not with context in Standalone.
Thank you.
Fabrice

2017-12-17 21:56 GMT+01:00 Hans Hagen :

> On 12/16/2017 11:44 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> Why are the second level items not on the same baseline ?
>> Thank you.
>> Fabrice
>>
>>
>> \starttext
>>
>> \startitemize[n]
>>\item Donner l'ensemble de définition \math{\cal D} de la fonction
>> \math{f}.
>>\item Comparer, lorsque c'est possible, les images :
>> \blank
>> \startitemize[a,columns,three,joinedup][grid=line]
>> \item \math{f(-0,5)} et \math{f(0,5)} ;\par
>> \item \math{f(-1)} et \math{f(2)} ;\par
>> \item \math{f(-2)} et \math{f(\sqrt{2})}.\par
>> \stopitemize
>>
>> \stopitemize
>>
>> \stoptext
>>
> you can experiment with
>
> \setupitemgroup
>   [\c!grid=\v!tolerant:10] % 10 pct tolerance in columns snapping
>
> \setupmixedcolumns
>   [\s!itemgroupcolumns]
>   [\c!grid=\itemgroupparameter\c!grid]
>
> (put this in cont-new.mkiv after \unprotect)
>
>
> -
>   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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
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] Strange behavior with itemize

2017-12-17 Thread Hans Hagen

On 12/16/2017 11:44 PM, Fabrice Couvreur wrote:

Hello,
Why are the second level items not on the same baseline ?
Thank you.
Fabrice


\starttext

\startitemize[n]
   \item Donner l'ensemble de définition \math{\cal D} de la fonction 
\math{f}.

   \item Comparer, lorsque c'est possible, les images :
\blank
\startitemize[a,columns,three,joinedup][grid=line]
\item \math{f(-0,5)} et \math{f(0,5)} ;\par
\item \math{f(-1)} et \math{f(2)} ;\par
\item \math{f(-2)} et \math{f(\sqrt{2})}.\par
\stopitemize

\stopitemize

\stoptext

you can experiment with

\setupitemgroup
  [\c!grid=\v!tolerant:10] % 10 pct tolerance in columns snapping

\setupmixedcolumns
  [\s!itemgroupcolumns]
  [\c!grid=\itemgroupparameter\c!grid]

(put this in cont-new.mkiv after \unprotect)


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

[NTG-context] Strange behavior with itemize

2017-12-16 Thread Fabrice Couvreur
Hello,
Why are the second level items not on the same baseline ?
Thank you.
Fabrice


\starttext

\startitemize[n]
  \item Donner l'ensemble de définition \math{\cal D} de la fonction
\math{f}.
  \item Comparer, lorsque c'est possible, les images :
\blank
\startitemize[a,columns,three,joinedup][grid=line]
\item \math{f(-0,5)} et \math{f(0,5)} ;\par
\item \math{f(-1)} et \math{f(2)} ;\par
\item \math{f(-2)} et \math{f(\sqrt{2})}.\par
\stopitemize

\stopitemize

\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] Strange behavior with TikZ

2017-10-10 Thread luigi scarso
On Sat, Oct 7, 2017 at 3:59 PM, Hans Hagen  wrote:
> (btw, it seems that there is also a \stopmodule done without \startmodule
> when tikz is loaded)
>
> Hans

I am surprised that \loggingall  before \starttext
produces 2.3GByte of log.


\usemodule[tikz]

\usemodule [graph]

\usemodule[pgfplots]

\pgfplotsset{compat=newest}

\definecolor[Mycolor][c=.6,m=0.8,y=0,k=0]

\unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right]}}

\setuphead
   [section]
   [textcommand=,
color=red, %magenta,
style=]

\loggingall
\starttext
\startsection[title={Résoudre graphiquement une équation
\math{f(x)=g(x)}},sectionsegments=section,color=magenta]


\placefigure[none,right]{}{
:
:
\stopsection

\stoptext



-- 
luigi
___
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] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
Hi,
Thank you so much for this help, I would not have found it.
Fabrice

2017-10-07 15:59 GMT+02:00 Hans Hagen :

> On 10/7/2017 2:44 PM, Aditya Mahajan wrote:
>
>> On Sat, 7 Oct 2017, Aditya Mahajan wrote:
>>
>> On Sat, 7 Oct 2017, Fabrice Couvreur wrote:
>>>
>>> Hi Hans
 Sorry to insist, but I need to correct this anomaly for my documents
 that

>>> I
>>>
 give to students. If I compile with Context Standalone, it does not
 work,
 but maybe I do not do what you are suggesting :

>>>
>>> I can confirm that color leakage. It happens due to pgfplots (and not
>>> tikz).
>>>
>>
>> I use tikz/pgfplots extensively and started wondering why I don't see
>> this error. Then I realized that I use a modified definition of
>> starttikzpicture in my code:
>>
>> \define\starttikzpicture
>>  {\hbox\bgroup\forcecolorhack\tikzpicture}
>>
>> \define\stoptikzpicture
>>  {\endtikzpicture\egroup}
>>
>>
>> With this definition, you code works correctly.
>>
> yes, i thought that was already done so someone needs to get that into the
> official code base
>
> (btw, it seems that there is also a \stopmodule done without \startmodule
> when tikz is loaded)
>
> Hans
>
> -
>   Hans Hagen | PRAGMA AD
> 
> E
>   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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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] Strange behavior with TikZ

2017-10-07 Thread Hans Hagen

On 10/7/2017 2:44 PM, Aditya Mahajan wrote:

On Sat, 7 Oct 2017, Aditya Mahajan wrote:


On Sat, 7 Oct 2017, Fabrice Couvreur wrote:


Hi Hans
Sorry to insist, but I need to correct this anomaly for my documents 
that 

I
give to students. If I compile with Context Standalone, it does not 
work,

but maybe I do not do what you are suggesting :


I can confirm that color leakage. It happens due to pgfplots (and not 
tikz).


I use tikz/pgfplots extensively and started wondering why I don't see 
this error. Then I realized that I use a modified definition of 
starttikzpicture in my code:


\define\starttikzpicture
     {\hbox\bgroup\forcecolorhack\tikzpicture}

\define\stoptikzpicture
     {\endtikzpicture\egroup}


With this definition, you code works correctly.
yes, i thought that was already done so someone needs to get that into 
the official code base


(btw, it seems that there is also a \stopmodule done without 
\startmodule when tikz is loaded)


Hans

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

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Aditya Mahajan

On Sat, 7 Oct 2017, Aditya Mahajan wrote:


On Sat, 7 Oct 2017, Fabrice Couvreur wrote:


Hi Hans
Sorry to insist, but I need to correct this anomaly for my documents that 

I

give to students. If I compile with Context Standalone, it does not work,
but maybe I do not do what you are suggesting :


I can confirm that color leakage. It happens due to pgfplots (and not 
tikz).


I use tikz/pgfplots extensively and started wondering why I don't see this 
error. Then I realized that I use a modified definition of 
starttikzpicture in my code:


\define\starttikzpicture
{\hbox\bgroup\forcecolorhack\tikzpicture}

\define\stoptikzpicture
{\endtikzpicture\egroup}


With this definition, you code works correctly.

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
___

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Aditya Mahajan

On Sat, 7 Oct 2017, Fabrice Couvreur wrote:


Hi Hans
Sorry to insist, but I need to correct this anomaly for my documents that I
give to students. If I compile with Context Standalone, it does not work,
but maybe I do not do what you are suggesting :


I can confirm that color leakage. It happens due to pgfplots (and not 
tikz). Here is the smallest example I could come up with that shows the 
color leakage (the text is also colored magenta).


\usemodule[pgfplots]

\setuphead
   [section]
   [color=magenta]

\starttext
\startsection[title={Test}]

\startplacefigure[location={none,right}]
  \hbox{\starttikzpicture
\startaxis
[
  xmax=3, xmin=-3,
  ymax=4, ymin=-5,
]
\stopaxis
  \stoptikzpicture}
\stopplacefigure

\input knuth

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

Re: [NTG-context] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
Hi Hans
Sorry to insist, but I need to correct this anomaly for my documents that I
give to students. If I compile with Context Standalone, it does not work,
but maybe I do not do what you are suggesting :


\placefigure[none,right]{}{%
\hbox{\switchtobodyfont[8pt]

Thanks
Fabrice

2017-10-05 22:51 GMT+02:00 Fabrice Couvreur :

> HI Hans,
>
> like this ?
>
> \placefigure[none,right]{}{
> \hbox{\switchtobodyfont[8pt]%
>
> Fabrice
>
> 2017-10-05 22:35 GMT+02:00 Hans Hagen :
>
>> On 10/5/2017 7:26 PM, Fabrice Couvreur wrote:
>>
>> If I put any image, there is no problem : the title of the section is in
>>> color and the text in black.
>>> With a graphic made with TikZ, the title and the text are in color.
>>>
>>
>> looks ok here
>>
>> \placefigure[none,right]{}{
>>> \hbox{\switchtobodyfont[8pt]
>>>
>>
>> add a % after the above line (otherwise you get a space)
>>
>> -
>>   Hans Hagen | PRAGMA ADE
>>   Ridderstraat 27 | 8061 GH Hasselt | The N
>> 
>> etherlands
>>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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>
>
>
___
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] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
HI Hans,

like this ?

\placefigure[none,right]{}{
\hbox{\switchtobodyfont[8pt]%

Fabrice

2017-10-05 22:35 GMT+02:00 Hans Hagen :

> On 10/5/2017 7:26 PM, Fabrice Couvreur wrote:
>
> If I put any image, there is no problem : the title of the section is in
>> color and the text in black.
>> With a graphic made with TikZ, the title and the text are in color.
>>
>
> looks ok here
>
> \placefigure[none,right]{}{
>> \hbox{\switchtobodyfont[8pt]
>>
>
> add a % after the above line (otherwise you get a space)
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The N
> 
> etherlands
>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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
___
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] Strange behavior with TikZ

2017-10-05 Thread Hans Hagen

On 10/5/2017 7:26 PM, Fabrice Couvreur wrote:

If I put any image, there is no problem : the title of the section is in 
color and the text in black.

With a graphic made with TikZ, the title and the text are in color.


looks ok here


\placefigure[none,right]{}{
\hbox{\switchtobodyfont[8pt]


add a % after the above line (otherwise you get a space)

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

[NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
Hello,
If I put any image, there is no problem : the title of the section is in
color and the text in black.
With a graphic made with TikZ, the title and the text are in color.
Thank you for your help.
Fabrice

\usemodule[tikz]

\usemodule [graph]

\usemodule[pgfplots]

\pgfplotsset{compat=newest}

\definecolor[Mycolor][c=.6,m=0.8,y=0,k=0]

\unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right]}}

\setuphead
   [section]
   [textcommand=,
color=magenta,
style=]


\starttext
\startsection[title={Résoudre graphiquement une équation
\math{f(x)=g(x)}},sectionsegments=section,color=magenta]

\placefigure[none,right]{}{
\hbox{\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare function={f(\x)=\x^2-3;},/pgf/declare
function={g(\x)=-\x^2+2*\x+1;}]
\startaxis[
 restrict x to domain=-3:3, xmax=3, xmin=-3,
 restrict y to domain=-5:4, ymax=4, ymin=-5,
 x=1cm,
 y=0.5cm,
 axis x line = middle,
 axis y line = middle,
 axis line style = thick,
 major grid style=Mycolor,
 minor grid style=Mycolor,
 grid=both,
 xtick={-2,...,2},
 ytick={-4,...,3},
 extra x ticks={-3,3},
 extra x tick label={\null},
 extra y ticks={-5,4},
 extra y tick label={\null},
 extra tick style={tick style={draw=none}},
 every tick/.style={
black,
thick,
  },
 y tick label style={
   /pgf/number format/1000 sep={}
   },
 xlabel=$x$,ylabel=$y$,
 every axis x label/.style={
at={(ticklabel* cs:1.01)},
anchor=west,
},
every axis y label/.style={
at={(ticklabel* cs:1.01)},
anchor=south,
},
 samples=2000,
 >=stealth,
  ]
\addplot[only marks,mark=x,color=black,mark options={scale=1.5},
thick] table[x=Nombre,y=Valeur]{
   Nombre   Valeur
-1   -2
 2   1
} ;
\addplot [smooth,domain=-1.5:2.5, thick,magenta] {f(x)} ;
\addplot [smooth,domain=-1.5:2.5, thick,green] {g(x)} ;

\node[above left,green] at (2,2) {\math{{\cal C}_g}} ;
\node[below right,magenta] at (1.5,-1) {\math{{\cal C}_f}} ;
\node[below left ] at (-0.1,-0.1) {\math{0}} ;

\node[fill=black,circle,scale=0.4,magenta] at (-1.5,{f(-1.5)}){} ;
\node[fill=black,circle,scale=0.4,magenta] at (2.5,{f(2.5)}){} ;

\node[fill=black,circle,scale=0.4,green] at (-1.5,{g(-1.5)}){} ;
\node[fill=black,circle,scale=0.4,green] at (2.5,{g(2.5)}){} ;

\stopaxis
\stoptikzpicture}}

\input knuth

\stopsection

\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] Strange behavior with the Garamond font

2017-08-27 Thread Fabrice Couvreur
Is this an impression but, of equal size, it seems smaller than other fonts.

2017-08-27 13:10 GMT+02:00 Fabrice Couvreur :

> Hi,
> Here's what I get, is this correct ?
> Thank you
> Fabrice
>
> fab@debian:~$ pdffonts layout25.pdf
> name type  encoding
> emb sub uni object ID
>  - 
> --- --- --- -
> JJIWHN+GaramondNo8-Regular   CID Type 0C   Identity-H
> yes yes yes 10  0
> fab@debian:~$
>
> 2017-08-25 12:03 GMT+02:00 Fabrice Couvreur :
>
>> Hi Aditya,
>> The first time I have downloaded since http://wiki.contextgarde
>> n.net/URW_Garamond  with the result you know. Then I did a search on
>> Google and I downloaded another package for the same result.
>> Where to find the fonts ?
>> Fabrice
>>
>> 2017-08-25 4:06 GMT+02:00 Aditya Mahajan :
>>
>>> On Fri, 25 Aug 2017, Fabrice Couvreur wrote:
>>>
>>> Hello,
 I reinstalled the fonts in :

 fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
 total 16
 drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
 drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
 drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
 drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
 fab@debian:~$

 I compiled the following file :

 \loadtypescriptfile[mathdesign]
 \setupbodyfont[garamond]
 \starttext
 \input knuth
 \stoptext

>>>
>>> You have EBGaramond font, but you are using mathdesign typescript which
>>> is designed for URW Garamond. So you need to either install URW Garamond
>>> (in AFM format) or create a typescript for EBGaramond.
>>>
>>> For reference, this is the relevant part of type-imp-mathdesign.mkiv:
>>>
>>>% URW Garamond
>>>
>>> \starttypescript [\s!serif] [garamond]
>>> \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
>>> \definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
>>> \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
>>> \definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
>>> \stoptypescript
>>>
>>> \starttypescript [\s!serif] [garamond] [\s!name]
>>> \setups[\s!font:\s!fallback:\s!serif]
>>> \definefontsynonym [\s!Serif][Garamond-Regular]
>>> \definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
>>> \definefontsynonym [\s!SerifBold][Garamond-Bold]
>>> \definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
>>> \stoptypescript
>>>
>>> \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
>>> \loadfontgoodies[mdugm-math]
>>> \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
>>> \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
>>> \stoptypescript
>>>
>>> \starttypescript [mathdesigngm,garamond]
>>> \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond]
>>> [\s!default]
>>> \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern]
>>> [\s!default]
>>> \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern]
>>> [\s!default]
>>> \definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond]
>>> [\s!default]
>>> \quittypescriptscanning
>>> \stoptypescript
>>>
>>>
>>> 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/list
>>> info/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> 
>>> ___
>>>
>>
>>
>
___
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] Strange behavior with the Garamond font

2017-08-27 Thread Fabrice Couvreur
Hi,
Here's what I get, is this correct ?
Thank you
Fabrice

fab@debian:~$ pdffonts layout25.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
JJIWHN+GaramondNo8-Regular   CID Type 0C   Identity-H   yes
yes yes 10  0
fab@debian:~$

2017-08-25 12:03 GMT+02:00 Fabrice Couvreur :

> Hi Aditya,
> The first time I have downloaded since http://wiki.
> contextgarden.net/URW_Garamond  with the result you know. Then I did a
> search on Google and I downloaded another package for the same result.
> Where to find the fonts ?
> Fabrice
>
> 2017-08-25 4:06 GMT+02:00 Aditya Mahajan :
>
>> On Fri, 25 Aug 2017, Fabrice Couvreur wrote:
>>
>> Hello,
>>> I reinstalled the fonts in :
>>>
>>> fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
>>> total 16
>>> drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
>>> drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
>>> drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
>>> drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
>>> fab@debian:~$
>>>
>>> I compiled the following file :
>>>
>>> \loadtypescriptfile[mathdesign]
>>> \setupbodyfont[garamond]
>>> \starttext
>>> \input knuth
>>> \stoptext
>>>
>>
>> You have EBGaramond font, but you are using mathdesign typescript which
>> is designed for URW Garamond. So you need to either install URW Garamond
>> (in AFM format) or create a typescript for EBGaramond.
>>
>> For reference, this is the relevant part of type-imp-mathdesign.mkiv:
>>
>>% URW Garamond
>>
>> \starttypescript [\s!serif] [garamond]
>> \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
>> \definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
>> \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
>> \definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
>> \stoptypescript
>>
>> \starttypescript [\s!serif] [garamond] [\s!name]
>> \setups[\s!font:\s!fallback:\s!serif]
>> \definefontsynonym [\s!Serif][Garamond-Regular]
>> \definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
>> \definefontsynonym [\s!SerifBold][Garamond-Bold]
>> \definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
>> \stoptypescript
>>
>> \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
>> \loadfontgoodies[mdugm-math]
>> \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
>> \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
>> \stoptypescript
>>
>> \starttypescript [mathdesigngm,garamond]
>> \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond]
>> [\s!default]
>> \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern]
>> [\s!default]
>> \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern]
>> [\s!default]
>> \definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond]
>> [\s!default]
>> \quittypescriptscanning
>> \stoptypescript
>>
>>
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>
>


layout25.pdf
Description: Adobe PDF document
___
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] Strange behavior with the Garamond font

2017-08-25 Thread Fabrice Couvreur
Hi Aditya,
The first time I have downloaded since
http://wiki.contextgarden.net/URW_Garamond  with the result you know. Then
I did a search on Google and I downloaded another package for the same
result.
Where to find the fonts ?
Fabrice

2017-08-25 4:06 GMT+02:00 Aditya Mahajan :

> On Fri, 25 Aug 2017, Fabrice Couvreur wrote:
>
> Hello,
>> I reinstalled the fonts in :
>>
>> fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
>> total 16
>> drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
>> drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
>> drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
>> drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
>> fab@debian:~$
>>
>> I compiled the following file :
>>
>> \loadtypescriptfile[mathdesign]
>> \setupbodyfont[garamond]
>> \starttext
>> \input knuth
>> \stoptext
>>
>
> You have EBGaramond font, but you are using mathdesign typescript which is
> designed for URW Garamond. So you need to either install URW Garamond (in
> AFM format) or create a typescript for EBGaramond.
>
> For reference, this is the relevant part of type-imp-mathdesign.mkiv:
>
>% URW Garamond
>
> \starttypescript [\s!serif] [garamond]
> \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
> \definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
> \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
> \definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
> \stoptypescript
>
> \starttypescript [\s!serif] [garamond] [\s!name]
> \setups[\s!font:\s!fallback:\s!serif]
> \definefontsynonym [\s!Serif][Garamond-Regular]
> \definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
> \definefontsynonym [\s!SerifBold][Garamond-Bold]
> \definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
> \stoptypescript
>
> \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
> \loadfontgoodies[mdugm-math]
> \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
> \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
> \stoptypescript
>
> \starttypescript [mathdesigngm,garamond]
> \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond]
> [\s!default]
> \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern]
> [\s!default]
> \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern]
> [\s!default]
> \definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond]
> [\s!default]
> \quittypescriptscanning
> \stoptypescript
>
>
> 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
> 
> ___
>
___
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] Strange behavior with the Garamond font

2017-08-24 Thread Aditya Mahajan

On Fri, 25 Aug 2017, Fabrice Couvreur wrote:


Hello,
I reinstalled the fonts in :

fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
total 16
drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
fab@debian:~$

I compiled the following file :

\loadtypescriptfile[mathdesign]
\setupbodyfont[garamond]
\starttext
\input knuth
\stoptext


You have EBGaramond font, but you are using mathdesign typescript which is 
designed for URW Garamond. So you need to either install URW Garamond (in 
AFM format) or create a typescript for EBGaramond.


For reference, this is the relevant part of type-imp-mathdesign.mkiv:

   % URW Garamond

\starttypescript [\s!serif] [garamond]
\definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
\definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
\definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
\definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
\stoptypescript

\starttypescript [\s!serif] [garamond] [\s!name]
\setups[\s!font:\s!fallback:\s!serif]
\definefontsynonym [\s!Serif][Garamond-Regular]
\definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
\definefontsynonym [\s!SerifBold][Garamond-Bold]
\definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
\stoptypescript

\starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
\loadfontgoodies[mdugm-math]
\definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
\definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
\stoptypescript

\starttypescript [mathdesigngm,garamond]
\definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond] 
[\s!default]
\definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern] 
[\s!default]
\definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern] 
[\s!default]
\definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond] 
[\s!default]

\quittypescriptscanning
\stoptypescript


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
___

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-24 Thread Fabrice Couvreur
Hello,
I reinstalled the fonts in :

fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
total 16
drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
fab@debian:~$

 I compiled the following file :

\loadtypescriptfile[mathdesign]
\setupbodyfont[garamond]
\starttext
\input knuth
\stoptext


which font it embedded :

ab@debian:~$ pdffonts layout22.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
AHYUQI+GaramondNo8-Regular   CID Type 0C   Identity-H   yes
yes yes 10  0

It still does not work !

Fabrice

2017-08-18 23:41 GMT+02:00 Fabrice Couvreur :

> Hi,
> @Aditya
>
> This does not solve my problem
>
> @Pablo
>
> fab@debian:~$ pdffonts layout15.pdf
> name type  encoding
> emb sub uni object ID
>  - 
> --- --- --- -
> AHYUQI+GaramondNo8-Regular   CID Type 0C   Identity-H
> yes yes yes 10  0
>
>
> 2017-08-18 20:17 GMT+02:00 Aditya Mahajan :
>
>> On Thu, 17 Aug 2017, Fabrice Couvreur wrote:
>>
>> When I speak of non-readable, I mean it looks like "hieroglyphics".
>>>
>>
>> Try
>>
>> mtxrun --script fonts --reload --force
>>
>> and then compiling again.
>>
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>
>


layout22.pdf
Description: Adobe PDF document
___
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] Strange behavior with the Garamond font

2017-08-18 Thread Fabrice Couvreur
Hi,
@Aditya

This does not solve my problem

@Pablo

fab@debian:~$ pdffonts layout15.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
AHYUQI+GaramondNo8-Regular   CID Type 0C   Identity-H   yes
yes yes 10  0


2017-08-18 20:17 GMT+02:00 Aditya Mahajan :

> On Thu, 17 Aug 2017, Fabrice Couvreur wrote:
>
> When I speak of non-readable, I mean it looks like "hieroglyphics".
>>
>
> Try
>
> mtxrun --script fonts --reload --force
>
> and then compiling again.
>
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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] Strange behavior with the Garamond font

2017-08-18 Thread Aditya Mahajan

On Thu, 17 Aug 2017, Fabrice Couvreur wrote:


When I speak of non-readable, I mean it looks like "hieroglyphics".


Try

mtxrun --script fonts --reload --force

and then compiling again.

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
___

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-18 Thread Pablo Rodriguez
On 08/17/2017 11:11 PM, Fabrice Couvreur wrote:
> Hi Pablo,
> When I speak of non-readable, I mean it looks like "hieroglyphics".
> 
> fab@debian:~$ mtxrun --script fonts  --list --pattern=garamond --all

Hi Fabrice,

sorry, I asked you to use pdffonts on the output PDF document to check
which font it is embedded.

From my outuput, I get:

$ pdffonts a.pdf
name   typeencoding   emb sub uni object ID
-- -- -- --- --- --- -
WKSCSW+GaramondNo8-Regular CID Type 0C Identity-H yes yes yes  10  0

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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] Strange behavior with the Garamond font

2017-08-17 Thread Fabrice Couvreur
Hi Pablo,
When I speak of non-readable, I mean it looks like "hieroglyphics".


fab@debian:~$ mtxrun --script fonts  --list --pattern=garamond --all

resolvers   | trees | analyzing 'home:texmf'
identifierfamilyname
fontname  filename
subfont   instances

cormorantgaramondbold cormorantgaramond
cormorantgaramondbold CormorantGaramond-Bold.otf
cormorantgaramondbolditalic   cormorantgaramond
cormorantgaramondbolditalic   CormorantGaramond-BoldItalic.otf
cormorantgaramonddemi cormorantgaramond
cormorantgaramondsemibold CormorantGaramond-SemiBold.otf
cormorantgaramonditalic   cormorantgaramond
cormorantgaramonditalic   CormorantGaramond-RegularItalic.otf
cormorantgaramondlightcormorantgaramond
cormorantgaramondlightCormorantGaramond-Light.otf
cormorantgaramondlightitalic  cormorantgaramond
cormorantgaramondlightitalic  CormorantGaramond-LightItalic.otf
cormorantgaramondmedium   cormorantgaramond
cormorantgaramondmedium   CormorantGaramond-Medium.otf
cormorantgaramondmediumitalic cormorantgaramond
cormorantgaramondmediumitalic CormorantGaramond-MediumItalic.otf
cormorantgaramondnormal   cormorantgaramond
cormorantgaramondregular  CormorantGaramond-Regular.otf
cormorantgaramondregular  cormorantgaramond
cormorantgaramondregular  CormorantGaramond-Regular.otf
cormorantgaramondsemibold cormorantgaramond
cormorantgaramondsemibold CormorantGaramond-SemiBold.otf
cormorantgaramondsemibolditalic   cormorantgaramond
cormorantgaramondsemibolditalic   CormorantGaramond-SemiBoldItalic.otf
ebgaramond12italicebgaramond
ebgaramond12italicEBGaramond12-Italic.otf
ebgaramond12regular   ebgaramond
ebgaramond12regular   EBGaramond12-Regular.otf
ebgaramondinitialsebgaramondinitials
ebgaramondinitialsEBGaramondInitials.otf
ebgaramondinitialsnormal  ebgaramondinitials
ebgaramondinitialsEBGaramondInitials.otf
ebgaramondinitialsregular ebgaramondinitials
ebgaramondinitialsEBGaramondInitials.otf
ebgaramonditalic  ebgaramond
ebgaramond12italicEBGaramond12-Italic.otf
ebgaramondnormal  ebgaramond
ebgaramond12italicEBGaramond12-Italic.otf
ebgaramondregular ebgaramond
ebgaramond12regular   EBGaramond12-Regular.otf
garamondno8itagaramondno8
garamondno8itaugmri8a.afm
garamondno8italic garamondno8
garamondno8itaugmri8a.afm
garamondno8medgaramondno8
garamondno8medugmm8a.afm
garamondno8medita garamondno8
garamondno8medita ugmmi8a.afm
garamondno8medium garamondno8
garamondno8medugmm8a.afm
garamondno8mediumitalic   garamondno8
garamondno8medita ugmmi8a.afm
garamondno8normal garamondno8
garamondno8regugmr8a.afm
garamondno8reggaramondno8
garamondno8regugmr8a.afm
garamondno8regulargaramondno8
garamondno8regugmr8a.afm
vngaramondno8ita  vngaramondno8
vngaramondno8ita  ugmri8v.afm
vngaramondno8italic   vngaramondno8
vngaramondno8ita  ugmri8v.afm
vngaramondno8med  vngaramondno8
vngaramondno8med  ugmm8v.afm
vngaramondno8medita   vngaramondno8
vngaramondno8medita   ugmmi8v.afm
vngaramondno8medium   vngaramondno8
vngaramondno8med  ugmm8v.afm
vngaramondno8mediumitalic vngaramondno8
vngaramondno8medita   ugmmi8v.afm
vngaramondno8normal   vngaramondno8
vngaramondno8reg  ugmr8v.afm
vngaramondno8reg  vngaramondno8
vngaramondno8reg  ugmr8v.afm
vngaramondno8regular  vngaramondno8
vngaramondno8reg  ugmr8v.afm
fab@debian:~$


Thanks
Fabrice


2017-08-17 21:03 GMT+02:00 Pablo Rodriguez :

> On 08/17/2017 08:28 PM, Fabrice Couvreur wrote:
> > Hello,
> > I compiled the following document with Context Standalone and viewed the
> > file with Evince, it is not readable !
>
> Hi Fabrice,
>
> I copied the fonts from http://wiki.contextgarden.net/URW_Garamond to
> tex/texmf-fonts/ and I got a PDF document with the font embedded (output
> attached).
>
> Before doing that, I couldn’t compile your source.
>
> What do you mean by a document not being readable? Is it properly
> displayed with xpdf or MuPDF?
>
> Does pdffonts list any font in the document? Does the log file reveal
> anything about the font?
>
> Which version do you use? (Use \contextversion in your source.)
>
>

Re: [NTG-context] Strange behavior with the Garamond font

2017-08-17 Thread Pablo Rodriguez
On 08/17/2017 08:28 PM, Fabrice Couvreur wrote:
> Hello,
> I compiled the following document with Context Standalone and viewed the
> file with Evince, it is not readable !

Hi Fabrice,

I copied the fonts from http://wiki.contextgarden.net/URW_Garamond to
tex/texmf-fonts/ and I got a PDF document with the font embedded (output
attached).

Before doing that, I couldn’t compile your source.

What do you mean by a document not being readable? Is it properly
displayed with xpdf or MuPDF?

Does pdffonts list any font in the document? Does the log file reveal
anything about the font?

Which version do you use? (Use \contextversion in your source.)

BTW, I don’t know whether this is intended, but I don’t get no fi or fl
ligatures.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk



a.pdf
Description: Adobe PDF document
___
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] Strange behavior with the Garamond font

2017-08-17 Thread Fabrice Couvreur
Hello,
I compiled the following document with Context Standalone and viewed the
file with Evince, it is not readable !
Thanks
Fabrice


\loadtypescriptfile[mathdesign]
\setupbodyfont[garamond]
\starttext
\input knuth
\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
___

[NTG-context] Strange behavior with enumeration

2017-08-17 Thread Fabrice Couvreur
Hi,
Level two items are not on the same baseline.
Thank you
Fabrice

\starttext
\startitemize[n]
\item 15\,\% d'un stock de 12\,000 jouets sont des jouets
\quotation{1\high{\tfxx er} âge}.

  Le nombre de jouets \quotation{1\high{\tfxx er} âge} est :
  \startitemize[columns,a,three]
  \item \math{\dfrac{15}{100}\times 12\,000.}
  \item \math{1\,500.}
  \item \math{1\,800.}
  \stopitemize
\stopitemize
\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] Strange behavior with Enumerations

2017-05-10 Thread Fabrice Couvreur
Hello,
I just updated Context Standalone, but the problem still exists.
With Texlive Context, it works.
Fabrice

Le 8 mai 2017 à 12:27, Fabrice Couvreur  a
écrit :

> Hello,
> The alignment of the third level is incorrect, why ?
>
> ##
> \starttext
>
> \startitemize[n][stopper={.},style=bold,color=darkred]
>
>\item  Soit \math{f} la fonction définie pour tout réel \m{x} différent
> de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
> représentative dans un repère du plan.
>   \startitemize[a][stopper={.},style=bold,color=darkred]
>\item L'image de 3 par la fonction \math{f} est :
>
> \startitemize[i,columns,joinedup,pack,1*broad,three]
>  [stopper={.},style=bold,color=darkred,grid=line]
>
> \item \math{\dfrac{14}{3}}
>
> \item \math{\dfrac{5}{4}}
>
> \item \math{2}
>
> \stopitemize
>   \stopitemize
> \stopitemize
>
>
> \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
___

[NTG-context] Strange behavior with Enumerations

2017-05-08 Thread Fabrice Couvreur
Hello,
The alignment of the third level is incorrect, why ?

##
\starttext

\startitemize[n][stopper={.},style=bold,color=darkred]

   \item  Soit \math{f} la fonction définie pour tout réel \m{x} différent
de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
représentative dans un repère du plan.
  \startitemize[a][stopper={.},style=bold,color=darkred]
   \item L'image de 3 par la fonction \math{f} est :

\startitemize[i,columns,joinedup,pack,1*broad,three]
 [stopper={.},style=bold,color=darkred,grid=line]

\item \math{\dfrac{14}{3}}

\item \math{\dfrac{5}{4}}

\item \math{2}

\stopitemize
  \stopitemize
\stopitemize


\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] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
Hi Wolgang,
I updated standalone context, it works correctly.
Fabrice

2016-08-29 12:13 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 29. August 2016 um 11:45
> Hello,
> I noticed a problem with standalone context and not with texlive 2016
>
> See my mail about \savecounter which shows the real reason for this result.
>
> 2 Question
> 3 Question
>
> instead of
>
> 1 Question
> 2 Question
>
> Thanks
> fabrice
> 
>
> Keep your examples minimal, the custom frame isn’t necessary, the table
> can be shorter (the setups can be removed as well) and the conversionset
> isn’t necessary.
>
> \defineframed
>   [FRAME]
>   [frame=off,
>offset=0pt,
>location=low,
>width=\struttotal,
>background=color,
>backgroundcolor=darkred,
>foregroundcolor=white,
>forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\FRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
>
> \startsetups[table:initialize]
> \setupTABLE[start]
>[align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex]
> \setupTABLE[column][first]
>[align={middle,right},width=0.52\textwidth]
> \setupTABLE[1][1][frame=off]
> \stopsetups
>
> \definelabel[TableRow][text=,numbercommand=\FRAME]
>
> \starttext
>
> \startmidaligned
> \bTABLE[setups=table:initialize]
> \bTR
> \bTD  \eTD
> \bTD   a  \eTD
> \bTD   b  \eTD
> \bTD   c  \eTD
> \bTD   d  \eTD
> \eTR
> \bTR
> \bTD \TableRow\ question \eTD
> \bTD \eTD
> \bTD \eTD
> \bTD \eTD
> \bTD \eTD
>   \eTR
>   \bTR
> \bTD \TableRow\ question \eTD
> \bTD \eTD
> \bTD \eTD
> \bTD \eTD
> \bTD \eTD
>   \eTR
> \eTABLE
> \stopmidaligned
> \stoptext
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> 
> ___
>
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Wolfgang Schuster

Fabrice Couvreur 
29. August 2016 um 11:45
Hello,
I noticed a problem with standalone context and not with texlive 2016

See my mail about \savecounter which shows the real reason for this result.

2 Question
3 Question

instead of

1 Question
2 Question

Thanks
fabrice


Keep your examples minimal, the custom frame isn’t necessary, the table 
can be shorter (the setups can be removed as well) and the conversionset 
isn’t necessary.

\defineframed
  [FRAME]
  [frame=off,
   offset=0pt,
   location=low,
   width=\struttotal,
   background=color,
   backgroundcolor=darkred,
   foregroundcolor=white,
   forgroundstyle=bold]

\defineprocessor[ACPROCESSOR][command=\FRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]


\startsetups[table:initialize]
\setupTABLE[start]
   [align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex]
\setupTABLE[column][first]
   [align={middle,right},width=0.52\textwidth]
\setupTABLE[1][1][frame=off]
\stopsetups

\definelabel[TableRow][text=,numbercommand=\FRAME]

\starttext

\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTD  \eTD
\bTD   a  \eTD
\bTD   b  \eTD
\bTD   c  \eTD
\bTD   d  \eTD
\eTR
\bTR
\bTD \TableRow\ question \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
  \eTR
  \bTR
\bTD \TableRow\ question \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
  \eTR
\eTABLE
\stopmidaligned
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Strange behavior with \definelabel[][] in context standalone

2016-08-29 Thread Fabrice Couvreur
Hello,
I noticed a problem with standalone context and not with texlive 2016

2 Question
3 Question

instead of

1 Question
2 Question

Thanks
fabrice


\defineframed
  [FRAME]
  [frame=off,
   offset=0pt,
   location=low,
   width=\struttotal,
   background=color,
   backgroundcolor=darkred,
   foregroundcolor=white,
   forgroundstyle=bold]

\defineprocessor[ACPROCESSOR][command=\FRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]


\startsetups[table:initialize]
\setupTABLE[start]
   [align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex]
\setupTABLE[column][first]
   [align={middle,right},width=0.52\textwidth]
\setupTABLE[1][1][frame=off]
\stopsetups

\definelabel[TableRow][text=,numbercommand=\FRAME]

\starttext

\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTD  \eTD
\bTD   a  \eTD
\bTD   b  \eTD
\bTD   c  \eTD
\bTD   d  \eTD
\eTR
\bTR
\bTD \TableRow\ question \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
  \eTR
  \bTR
\bTD \TableRow\ question \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
\bTD \eTD
  \eTR
\eTABLE
\stopmidaligned
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Fabrice Couvreur
Hi,
Thanks Herbert and Hans, your solutions work both
Fabrice

2016-08-16 20:35 GMT+02:00 Herbert Voss :

> Am 16.08.2016 um 16:52 schrieb Fabrice Couvreur:
>
> \usemodule[pgfplots]
>>
>> \pgfplotsset{compat=1.13}
>> \usetikzlibrary[intersections]
>> \usepgfplotslibrary[fillbetween]
>>
>> \starttext
>>
>> \starttikzpicture[/pgf/declare
>> function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
>> \switchtobodyfont[8pt]
>> \startaxis
>>
>
> [...]
> \starttext
>
> \starttikzpicture[
>   /pgf/declare function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},
>   font={\switchtobodyfont[8pt]}
> ]
> %
> \startaxis
> [...]
>
> Herbert
>
> 
> ___
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> 
> ___
>
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Herbert Voss

Am 16.08.2016 um 16:52 schrieb Fabrice Couvreur:


\usemodule[pgfplots]

\pgfplotsset{compat=1.13}
\usetikzlibrary[intersections]
\usepgfplotslibrary[fillbetween]

\starttext

\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\switchtobodyfont[8pt]
\startaxis


[...]
\starttext

\starttikzpicture[
  /pgf/declare function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},
  font={\switchtobodyfont[8pt]}
]
%
\startaxis
[...]

Herbert
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Mojca Miklavec
On 16 August 2016 at 16:26, Fabrice Couvreur wrote:
>
> Hello,
> With context in distribution TeXLive 2016,no problem but with standalone 
> context, I get the "0.01pt" text in the left corner of the graph.

I'm also getting
,0.100pt
at the beginning of one of the documents, even though I still didn't
figure out what exactly triggers that.

Plus an error at

close source> 5 > 65 >
/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex

tex error   > tex error on line 570 in file
/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex:
! Illegal unit of measure (pt inserted)


,
 0.000,
  0.100
\pgfutil@emu@@unpack ...pt\pgf@xb =#2pt\pgf@xc =#3
  pt
\pgfutil@emu@mix ... \string \color@ #1\endcsname
  \pgf@ya =\pgf@xa \pgf@yb =...
\pgfutil@colorlet ...ix \pgf@marshal !white!\@nil
  \xdef \pgf@marshal {\noexp...
l.570 ...l@colorlet{tikz@axis@middle}{gray!50!white}


560 \def\tikz@shade@angle{0}
561
562 
\pgfdeclareverticalshading[tikz@axis@top,tikz@axis@middle,tikz@axis@bottom]{axis}{100bp}{%
563   color(0bp)=(tikz@axis@bottom);
564   color(25bp)=(tikz@axis@bottom);
565   color(50bp)=(tikz@axis@middle);
566   color(75bp)=(tikz@axis@top);
567   color(100bp)=(tikz@axis@top)}
568
569 \pgfutil@colorlet{tikz@axis@top}{gray}
570 >>  \pgfutil@colorlet{tikz@axis@middle}{gray!50!white}
571 \pgfutil@colorlet{tikz@axis@bottom}{white}
572
573 \pgfdeclareradialshading[tikz@ball]{ball}{\pgfqpoint{-10bp}{10bp}}{%
574  color(0bp)=(tikz@ball!15!white);
575  color(9bp)=(tikz@ball!75!white);
576  color(18bp)=(tikz@ball!70!black);
577  color(25bp)=(tikz@ball!50!black);
578  color(50bp)=(black)}
579
580 \pgfutil@colorlet{tikz@ball}{blue}


?
open source > 5 > 66 >
/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex


But I didn't yet have time to fully investigate (I started noticing
this problem recently in an old document).

Mojca
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Hans Hagen

On 8/16/2016 4:52 PM, Fabrice Couvreur wrote:

HI Hans,
Sorry, I forgot




\start
\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare 
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]

\startaxis
...
\stop

seems to be ok ... tikz probably overloads something that the bodyfont 
switch needs



\usemodule[pgfplots]

\pgfplotsset{compat=1.13}
\usetikzlibrary[intersections]
\usepgfplotslibrary[fillbetween]

\starttext

\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\switchtobodyfont[8pt]
\startaxis
[restrict x to domain=-3:5, xmax=5, xmin=-3,
 restrict y to domain=-3:3, ymax=3, ymin=-3,
 x=2cm,
 y=2cm,
 axis lines=center,
 axis line style =ultra thick,
 major tick style=black,
 xtick={-2,-1,...,4},
 ytick={-2,-1,...,2},
 yticklabels={,,},
 xticklabels={,,},
 extra x ticks={-3,5},
 extra x tick label={\null},
 extra y ticks={-3,3},
 extra y tick label={\null},
 extra tick style={tick style={draw=none}},
 xlabel=$x$,ylabel=$y$,
 every axis x label/.style={
 at={(ticklabel* cs:1.01)},
 anchor=west,
},
 every axis y label/.style={
 at={(ticklabel* cs:1.01)},
 anchor=south,
},
 samples=1000,
 >=stealth]
\addplot[smooth,
 draw=none,
 tension=0.6,
 name path=plot]
coordinates{
(-2,-2.5) (-1.5,0)(-1,1.5) (-0.5,2)
(0,1.5) (1,0) (2,-0.5)
(3,0) (4,1.5)
};

\path[name path=cut line] (-2,1.5) -- (4,1.5);

\draw[thick,intersection segments={of=plot and cut line,sequence=L1}];

\draw[thick,intersection segments={of=plot and cut line,sequence=L2}];

\draw[thick, intersection segments={of=plot and cut line,sequence=L3}];

\node[fill=black,circle,scale=0.4] at (-2,-2.5){};
\node[fill=black,circle,scale=0.4] at (4,1.5){};

\node[below] at (-1.5,-1.5) {\math{{\cal C}_f}};
\node[below] at (1,0) {1};
\node[left] at (0,1) {1};
\node[below left] at (0,0) {0};

\stopaxis

\stoptikzpicture

\stoptext


2016-08-16 16:34 GMT+02:00 Hans Hagen mailto:pra...@wxs.nl>>:

On 8/16/2016 4:26 PM, Fabrice Couvreur wrote:

Hello,
With context in distribution TeXLive 2016,no problem but with
standalone
context, I get the "0.01pt" text in the left corner of the graph.


no code / mwe

Thanks
Fabrice
​



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/

wiki : http://contextgarden.net

___



--

-
  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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/

wiki : http://contextgarden.net

___




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
_

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Fabrice Couvreur
HI Hans,
Sorry, I forgot

\usemodule[pgfplots]

\pgfplotsset{compat=1.13}
\usetikzlibrary[intersections]
\usepgfplotslibrary[fillbetween]

\starttext

\starttikzpicture[/pgf/declare
function={f(\x)=(1/8)*(\x^3-2.5*\x^2-3*\x+4.5);},]
\switchtobodyfont[8pt]
\startaxis
[restrict x to domain=-3:5, xmax=5, xmin=-3,
 restrict y to domain=-3:3, ymax=3, ymin=-3,
 x=2cm,
 y=2cm,
 axis lines=center,
 axis line style =ultra thick,
 major tick style=black,
 xtick={-2,-1,...,4},
 ytick={-2,-1,...,2},
 yticklabels={,,},
 xticklabels={,,},
 extra x ticks={-3,5},
 extra x tick label={\null},
 extra y ticks={-3,3},
 extra y tick label={\null},
 extra tick style={tick style={draw=none}},
 xlabel=$x$,ylabel=$y$,
 every axis x label/.style={
 at={(ticklabel* cs:1.01)},
 anchor=west,
},
 every axis y label/.style={
 at={(ticklabel* cs:1.01)},
 anchor=south,
},
 samples=1000,
 >=stealth]
\addplot[smooth,
 draw=none,
 tension=0.6,
 name path=plot]
coordinates{
(-2,-2.5) (-1.5,0)(-1,1.5) (-0.5,2)
(0,1.5) (1,0) (2,-0.5)
(3,0) (4,1.5)
};

\path[name path=cut line] (-2,1.5) -- (4,1.5);

\draw[thick,intersection segments={of=plot and cut line,sequence=L1}];

\draw[thick,intersection segments={of=plot and cut line,sequence=L2}];

\draw[thick, intersection segments={of=plot and cut line,sequence=L3}];

\node[fill=black,circle,scale=0.4] at (-2,-2.5){};
\node[fill=black,circle,scale=0.4] at (4,1.5){};

\node[below] at (-1.5,-1.5) {\math{{\cal C}_f}};
\node[below] at (1,0) {1};
\node[left] at (0,1) {1};
\node[below left] at (0,0) {0};

\stopaxis

\stoptikzpicture

\stoptext


2016-08-16 16:34 GMT+02:00 Hans Hagen :

> On 8/16/2016 4:26 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> With context in distribution TeXLive 2016,no problem but with standalone
>> context, I get the "0.01pt" text in the left corner of the graph.
>>
>
> no code / mwe
>
> Thanks
>> Fabrice
>> ​
>>
>>
>> 
>> ___
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>
> --
>
> -
>   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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> 
> ___
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Hans Hagen

On 8/16/2016 4:26 PM, Fabrice Couvreur wrote:

Hello,
With context in distribution TeXLive 2016,no problem but with standalone
context, I get the "0.01pt" text in the left corner of the graph.


no code / mwe


Thanks
Fabrice
​


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Fabrice Couvreur
Hello,
With context in distribution TeXLive 2016,no problem but with standalone
context, I get the "0.01pt" text in the left corner of the graph.
Thanks
Fabrice
​
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with Utopia fonts in math mode

2016-04-17 Thread Wolfgang Schuster

Fabrice Couvreur 
17. April 2016 um 11:16
Hello,
I compiled this file with a strange exit for mathematical formula.

What do you mean with "strange exit"?

What's missing in my file ?
You get the necessary font when you use the "--fonts=mathdesign" for 
first-setup, e.g.


sh first-setup.sh --fonts=mathdesign

and your example can be reduced to (you can drop encoding=...)

%% begin example
\loadtypescriptfile[mathdesign]

\definetypeface[mainface][rm][serif][palatino] [default]
\definetypeface[mainface][ss][sans] [helvetica][default][rscale=auto]
\definetypeface[mainface][mm][math] [utopia]   [default][rscale=auto]

\setupbodyfont[mainface,12pt]

\starttext

\input knuth

\startformula
   f(x) = \sum_{i=1}^n a_i x^i
\stopformula

\stoptext
%% end example

There are a few mistakes in the output because the mapping from glyphs 
to unciode

values for the math font has to be improved.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with Utopia fonts in math mode

2016-04-17 Thread Hans Hagen

On 4/17/2016 11:16 AM, Fabrice Couvreur wrote:

Hello,
I compiled this file with a strange exit for mathematical formula.
What's missing in my file ?
Thank you.
Fabrice

\loadtypescriptfile[mathdesign]
\usetypescriptfile[utopia]

\definetypeface[mainface][rm]
[serif][palatino][default][encoding=texnansi]


you schould set up the previous as utopia


\definetypeface[mainface][ss][sans]
[helvetica] [default][encoding=texnansi] [rscale=auto]
\definetypeface[mainface][mm]
[math] [utopia] [default] [rscale=auto]


and this one as fourier (math needs some font parameters) using a lfg 
file that you refer to



\setupbodyfont[mainface,12pt]


\starttext

\input knuth

\startformula
f(x) = \sum_{i=1}^n a_i x^i
\stopformula

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Strange behavior with Utopia fonts in math mode

2016-04-17 Thread Fabrice Couvreur
Hello,
I compiled this file with a strange exit for mathematical formula.
What's missing in my file ?
Thank you.
Fabrice

\loadtypescriptfile[mathdesign]
\usetypescriptfile[utopia]

\definetypeface[mainface][rm]
   [serif][palatino][default][encoding=texnansi]
\definetypeface[mainface][ss][sans]
   [helvetica] [default][encoding=texnansi] [rscale=auto]
\definetypeface[mainface][mm]
   [math] [utopia] [default] [rscale=auto]

\setupbodyfont[mainface,12pt]


\starttext

\input knuth

\startformula
   f(x) = \sum_{i=1}^n a_i x^i
\stopformula

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Strange behavior (TikZ)

2015-08-11 Thread Fabrice Couvreur
Hi,
Strange behavior: why is the colored text ?
Thanks,
Fabrice

\usemodule[tikz]

\startuniqueMPgraphic{titled}
path p ;
p := unitsquare xscaled OverlayWidth yscaled OverlayHeight ;
pickup pencircle scaled 1mm ;
drawoptions(withcolor .625yellow) ;
draw llcorner p--lrcorner p ;
setbounds currentpicture to p ;
\stopuniqueMPgraphic

\defineoverlay[titled][\uniqueMPgraphic{titled}]

\define[2]\ChapterCommand
  {\setbox\scratchbox\hbox to \leftmarginwidth{#1\hss}%
   \hskip-\dimexpr\leftmarginwidth+\leftmargindistance\relax
   \framed
 [background=titled,frame=off,offset=0pt]
 {\box\scratchbox
  \hskip\leftmargindistance
  #2}}

\setuphead
  [chapter]
  [command=\ChapterCommand,
   textstyle=\ss,
   color=darkred,
   conversion=Characters]

\setuphead
  [section]
  [command=\ChapterCommand,
   textstyle=\ss,
   color=darkred,
   sectionsegments=section:section]

\starttext

\startchapter
  [title={Activités d'approche}]

\startsection
  [title={Sans carreaux}]

\placefigure[right,none]{}
{
\hbox{
\starttikzpicture[>=stealth,scale=0.8]
\draw [->,color=blue,ultra thick] (0,0)--(5,2);
\draw [->,color=green,ultra thick] (6,1.5)--(5,0);
\draw [->,color=red,ultra thick] (4,-0.8)--(2,-0.1);
\draw [color=blue](2.5,1) node[above] {$\vec{u}$};
\draw [color=green](5.5,0.75) node[right] {$\vec{v}$};
\draw [,color=red](3,-0.45)   node[above] {$\vec{w}$};
\node (A) at (0.5,-0.5) {A};
\node [above right] at (A) {$\times$};
\stoptikzpicture}}
\startitemize[n][stopper={)},style=bold]
On a tracé trois vecteurs et placé un point A sur la figure ci-contre.
\startitemize[a][stopper={)},style=bold]
\item Construire le point C tel que $\vec{\rm{AC}}=\vec{u} + \vec{v}$.
\item Construire le point B tel que  $\vec{\rm{AB}}=\vec{u} + \vec{v} +
\vec{w} $.
\stopitemize
\stopitemize

\stopsection

\stopchapter
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

  1   2   >