Re: [NTG-context] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
Dear Wolfgang,

Now, I understand why the error messages “\texfont0 is undefined”, “ you used 
the started character from an undefined font family.” are appeared.

Thank you for your clear explanation.

Best regards,

Dalyoung


>> 3. removing \starttext, \stoptext, and functionstyle=“math”, it worked. 
>> However the caption 
>> “x=[…];  y=[….]” is overlapped.
> 
> ConTeXt doesn't preload fonts and only when no font was set untill \starttext 
> latin modern is used as fallback font at this point.
> 
> When you omit \starttext no font is loaded and when you use math mode (which 
> is the case when you use funtionstyle=math) the error message appears. 
> Another fallback in this case it to load a monospaced font in horizontal or 
> vertical boxes which is what you set in your example when you remove 
> \starttext.




___
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] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Wolfgang Schuster

Jeong Dal schrieb am 29.12.2019 um 14:33:

Dear Hans,

I run the following code which is in page 24,25 luametafun.pdf.

1. adding \starttext and \stoptext, it works fine. No overlapping.
Also, functionstyle = “math” is working nicely.

2. removing \starttext and \stoptext, then functionstyle =“math” 
invoked an error.


3. removing \starttext, \stoptext, and functionstyle=“math”, it 
worked. However the caption

“x=[…]; y=[….]” is overlapped.


ConTeXt doesn't preload fonts and only when no font was set untill 
\starttext latin modern is used as fallback font at this point.


When you omit \starttext no font is loaded and when you use math mode 
(which is the case when you use funtionstyle=math) the error message 
appears. Another fallback in this case it to load a monospaced font in 
horizontal or vertical boxes which is what you set in your example when 
you remove \starttext.


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] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Jeong Dal
Dear Hans,

I run the following code which is in page 24,25 luametafun.pdf.

1. adding \starttext and \stoptext, it works fine. No overlapping. 
Also, functionstyle = “math” is working nicely.

2. removing \starttext and \stoptext, then functionstyle =“math” invoked an 
error.

3. removing \starttext, \stoptext, and functionstyle=“math”, it worked. However 
the caption 
“x=[…]; y=[….]” is overlapped.

%\starttext
\startMPcode{doublefun} 
draw lmt_contour [
xmin = 0, xmax = 4*pi, xstep = .05,
ymin = -6, ymax = 6, ystep = .05,
levels = 7,
height = 5cm,
preamble = "local sin, cos = math.sin, math.cos",
function = "cos(x)+sin(y)",
%functionstyle = "math",
background = "bitmap",
foreground = "edge",
linewidth = 1/2,
cache = true,
]; 
\stopMPcode
%\stoptext


Thank you so much.

Best regards,

Dalyoung

___
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] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen

On 12/28/2019 9:27 PM, Jeong Dal wrote:

Dear Hans,

Thank you for the fix.
Background color is OK now.

A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y  =“ is written over 12.555.

Is there any option to suppress the caption x, y since there are numbers of x 
and y in the figure already?
btw, you can check mp-lmtx.mpxl for the code ... it's not that hard to 
follow and see what the options do (mostly user interfacing)


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] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-29 Thread Hans Hagen

On 12/28/2019 9:27 PM, Jeong Dal wrote:

Dear Hans,

Thank you for the fix.
Background color is OK now.

A new problem in the caption:
Since width of the figure is narrower than the width of the line
"x = [0,12.555]; y = [-6,6];”,
“y  =“ is written over 12.555.

Is there any option to suppress the caption x, y since there are numbers of x 
and y in the figure already?

new MWE needed

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] background color of text in contour(former: ntg-context Digest, Vol 186, Issue 61)

2019-12-28 Thread Jeong Dal
Dear Hans,

Thank you for the fix.
Background color is OK now.

A new problem in the caption:
Since width of the figure is narrower than the width of the line 
"x = [0,12.555]; y = [-6,6];”,
“y  =“ is written over 12.555. 

Is there any option to suppress the caption x, y since there are numbers of x 
and y in the figure already?

Thank you.

Best regards,

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