Re: [NTG-context] question about vardef variables

2021-01-17 Thread Jeong Dal
Dear Damien Thiriet,

If you change ‘vardef’ to ‘def’, you will get the figure.
There is a difference between ‘vardef’ and ‘def’.
AFAIK, vardef returns the value of the last statement in the macro.
Please see  the examples in Metafun manual from page 32 ~ .
I hope that you find your answer there.

I am sorry that I am not good enough to explain the variables.

Best regards,

Dalyoung

> 2021. 1. 17. 오후 8:00, ntg-context-requ...@ntg.nl 작성:
> 
> \starttext
> \startMPpage
> 
> vardef Test (expr ab,cd)=
>   %numeric ab;
>   %numeric cd;
>   draw unitsquare scaled 10 xshifted ab;
>   draw unitsquare scaled 10 yshifted cd;
> enddef;
> 
> Test (50,100);
> \stopMPpage
> \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] adding url as a footnote in the caption of figure

2020-12-30 Thread Jeong Dal
Dear Pablo,

Thank you for your reply.
I just search wiki not the mailing list. I never used \setupnote before.

> I would say that LMTX is causing an issue here (but for sure Hans knows
> better).
> 
> The issue with your MWE is solved by adding:
> 
>  \setupnote[footnote][width=\textwidth]

It works fine.

Thanks again.

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
___


[NTG-context] adding url as a footnote in the caption of figure

2020-12-29 Thread Jeong Dal

Hi,

I am trying to add a url as a footnote in the caption.
There is no error, but it is written in two lines in the footnote.
I also try \hyphenatedurl, \letterslash in the wiki, but it is no use.
I am using "ConTeXt  ver: 2020.12.22 22:14 LMTX”.

Thank you for reading.

Best regards,

Dalyoung

Here is a MWE.

\useMPlibrary[dum]
\unexpanded\def\myurl#1{%
\bgroup{\hyphenatedurl{#1}}\egroup}

\starttext
\startplacefigure[]
{\startcombination[2*1]
{\externalfigure[dummyz][width=.35\makeupwidth]}{Pegasus\footnote{\myurl{https://www.mcescher.com/gallery\letterslash
 recognition-success/no-105-pegasus/}}}
{\externalfigure[dummy][width=.35\makeupwidth]}{Birds\footnote{\myurl{https://www.mcescher.com/gallery/recognition-success/no-128-bird/}}}
\stopcombination}
\stopplacefigure

\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] removing many lines about font in log.

2020-11-10 Thread Jeong Dal
Dear Hans,

Thank you for the explanation.
Since those messages takes too many lines in the log file, I ask about it.
I prefer to suppress them. But, someone want to see them.

Since there is no problem to compile, it is OK to let them shown for some one 
want to know what happened.
 
Best regards,

Dalyoung




> 2020. 11. 10. 오전 1:12, Hans Hagen  작성:
> 
> On 11/8/2020 8:05 PM, Jeong Dal wrote:
>> Hi,
>> The following example creates so many lines of messages about fonts in the 
>> log.
>> \definefontfeature [default] [default] [script=hang,language=kor]
>> \starttext
>> \definedfont[file:notoserifcjkkrregular*default]
>> Korean sentences.
>> 한글이 아름답습니다.
>> \stoptext
>> fonts   > 'fallback modern-designsize rm 12pt' is loaded
>> fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
>> script 'grek', no language 'kor'
>> fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
>> script 'latn', no language 'kor'
>> fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
>> script 'kana', no language 'kor'
>> fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
>> script 'cyrl', no language 'kor'
>> fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
>> script 'dflt', no language 'kor'
>> fonts   > defining > f
>> ...
>> Is there a way to suppress messages?
>> Of course, there is no problem to get the output.
> it depends if you're interested in it ... i kept it for cases where users 
> expect some feature to work while the font doesn't have it but I have no 
> problem making it optional
> 
> Hans
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
> www.pragma-pod.nl <http://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] removing many lines about font in log.

2020-11-08 Thread Jeong Dal

Hi,

The following example creates so many lines of messages about fonts in the log.

\definefontfeature [default] [default] [script=hang,language=kor]

\starttext
\definedfont[file:notoserifcjkkrregular*default]
Korean sentences.

한글이 아름답습니다.
\stoptext

fonts   > 'fallback modern-designsize rm 12pt' is loaded
fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
script 'grek', no language 'kor'
fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
script 'latn', no language 'kor'
fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
script 'kana', no language 'kor'
fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
script 'cyrl', no language 'kor'
fonts   > defining > font 'notoserifcjkkrregular', feature 'vert', 
script 'dflt', no language 'kor'
fonts   > defining > f
...

Is there a way to suppress messages?
Of course, there is no problem to get the output.

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] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal

Dear Aditya, Jairo, Wolfgang, and Otared,

Thank you for the replies and explanations.
I also read the blog.

In this case, using '##1’ is an easy way.
For more complex table, I may use luacode.

Thanks again.

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
___


[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
Hi,

I tried to make a table using \dorecurse or \doloop as in the example.
There is no error but \recurselevel is not increased, all are 0 in the first 
example and only two rows are created with the \recurselevel 0 and 2 only in 
the second example.

Does the tabulate cause the error?
What is wrong in this MWE?

Thank you for reading.

Best regards,

Dalyoung

*
\startbuffer[AdjacencyList1]
\starttabulate[|c|cw(2cm)|]
\HL
\dorecurse{8}
   {\NC \recurselevel \NC \NC\NR \HL}
\stoptabulate
\stopbuffer

\startbuffer[AdjacencyList2]
\starttabulate[|c|cw(2cm)|]
\HL
\doloop{
   \ifnum \recurselevel=7
  \exitloop
   \fi
   \NC \recurselevel \NC \NC\NR \HL
}
\stoptabulate
\stopbuffer

\starttext
\getbuffer[AdjacencyList1]

\getbuffer[AdjacencyList2]
\stoptext

> 2020. 9. 21. 오후 10:50, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Parallel text support (Denis Maier)
>   2. Re: Parallel text support (Taco Hoekwater)
>   3. Re: ZapfDingbats Unicode differences MKIV vs LMTX
>  (Christoph Reller)
>   4. Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen)
>   5. Math fonts for Nimbus fonts (Otared Kavian)
>   6. Re: 2020 Meeting recordings? (Taco Hoekwater)
> 
> 
> --
> 
> Message: 1
> Date: Mon, 21 Sep 2020 12:21:37 +0200
> From: Denis Maier 
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Parallel text support
> Message-ID: <780fe43c-f2c3-6ea1-04f5-d4d5c22e7...@mailbox.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Hi,
> 
> I'm trying to typeset a parallel text that should appear in columns. The 
> sources are XML, and there I have to use tables for this. So, I thought 
> the easiest way is to use extreme tables for this:
> 
> =
> \starttext
> 
> \dorecurse{3}{\input knuth}
> 
> \startxtable[split=yes,frame=off]
> \startxrow
> \startxcell Text \stopxcell
> \startxcell Übersetzung \stopxcell
> \stopxrow
> \startxrow
> \startxcell \input ward \stopxcell
> \startxcell \input tufte \stopxcell
> \stopxrow
> \stopxtable
> 
> \stoptext
> =
> 
> However, as it turns out, split only seems to mean that the table is 
> split between rows, individual rows stay on the same page.
> 
> Is there a better approach? I've found the page-streams, but that seems 
> to be too much...
> 
> Best,
> Denis
> 
> 
> --
> 
> Message: 2
> Date: Mon, 21 Sep 2020 13:58:11 +0200
> From: Taco Hoekwater 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Parallel text support
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
> 
> 
> 
>> On 21 Sep 2020, at 12:21, Denis Maier  wrote:
>> 
>> 
>> However, as it turns out, split only seems to mean that the table is split 
>> between rows, individual rows stay on the same page.
>> 
>> Is there a better approach? I've found the page-streams, but that seems to 
>> be too much…
> 
> \starttabulate
> 
> 
> 
> --
> 
> Message: 3
> Date: Mon, 21 Sep 2020 14:55:02 +0200
> From: Christoph Reller 
> To: Hans Hagen 
> Cc: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] ZapfDingbats Unicode differences MKIV vs
>   LMTX
> Message-ID:
>   
> Content-Type: text/plain; charset="utf-8"
> 
> On Sat, Sep 19, 2020 at 12:04 PM Hans Hagen  wrote:
> 
>> On 9/19/2020 6:18 AM, Christoph Reller wrote:
>>> On Fri, Sep 18, 2020 at 4:17 PM Hans Hagen >> > wrote:
>>> 
>>>On 9/18/2020 11:23 AM, Christoph Reller wrote:
>>> 
>> \definefontsynonym[ZapfDingbats][file:ZapfDingbats][features=dingbats]
 \usemodule [fnt-10]
 \starttext
 (1) \getglyphdirect{ZapfDingbats}{61491}\crlf % MKIV log: char 
 (U+0F033) in font 'ZapfDingbats-4' with id 8: missing
 (2) \getglyphdirect{ZapfDingbats}{983059} % LMTX log: char 
 (U+F0013) in font 'ZapfDingbats-4' with id 8: missing
 \ShowCompleteFont{name:ZapfDingbats}{14pt}{1}
 \stoptext
 
>>>Dingbats are old school t1 without proper names so we can't use
>>>unicodes. However, there is a goodie that should do that so that in
>>>principle it should work with unicodes but there is some interference
>>>going on (i'll look at that)
>>> 
>>>For nwo access by 'name' or 'index' (these are kind of stable for
>> such
>>>an old font):
>>> 
>>>   n:a34  : \getglyph{ZapfDingbats}{\tochar{n:a34}}  \par
>>>   n:a35  : 

Re: [NTG-context] Installing VSCode extension?

2020-08-05 Thread Jeong Dal
Dear Mikael,


> 2) Is there a nice way to compile the tex file from
> within vs code? As of
> now, I opened a terminal and compiled from that, but that feels like the
> wrong way of doing it.

For the first question, I don’t know either.
For the second question, I’d like to explain what I did for compiling TeX file 
in vscode.
Since I use vscode in MacOsX, you may find your way in Linux.

There is a tasks.json file in .vscode folder.
I added the following script in the “tasks":[ ]  and save it.
(You have to modify the  "texmf-osx-64/bin” path in the following script from 
your machine.

{
"label": "ConTeXt LuaMetaTeX",
"type": "shell",
"command": "export 
PATH=/Users/graph/ConTeXtLM/tex/texmf-osx-64/bin:$PATH;mtxrun --autogenerate 
--script context --autopdf --purge '${file}'",
"args": [],
"options": {
"cwd": "${fileDirname}"
},
"group": {
"kind": "build",
"isDefault": true
}
 },

When you want to compile a ConTeXt file, find “terminal > Run Build task” in 
the menu,
then “ConTeXt LuaMetaTex” will pop up.
Or just use the key “command-shift-B” instead using menu item.

I hope that it may help.

Best wishes,

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] Installing VSCode extension?

2020-07-30 Thread Jeong Dal
Dear Alasdair McAndrew,

I am using vscode in iMac, so my setting may not work for you.



1. First, find files for vscode in your TeX folder.

In my case, 

/ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*

2. In a homefolder, there is a hidden folder “.vacode”.

Copy context/*.* to  ./vscode/extensions/context/*.*

3. Open vscode and enable context-extension.

Since it was long time ago, my memory may not be correct.
However, I hope that it may give you an idea.

Best wishes,

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] Code lua in a table

2020-07-20 Thread Jeong Dal
Dear Hans,

Thank you for new methods!
It would take some time for me to understand them fully.

Learning Lua, metafun, lmtx, wiki is always a challenge for me.
I also wonder where is the boundary of ConTeXt.

I hope that you and all members in this list are well from COVID-19.

Thank you again.

Best regards,

Dalyoung

> 2020. 7. 20. 오후 5:36, Hans Hagen  작성:
> 
> On 7/20/2020 7:56 AM, Jeong Dal wrote:
>> Dear Fabrice,
>> You may split Binom(n,k) function into two functions as following:
> > see original mail
> >
>> Dalyoung
> Best stay in a protected namespace ...
> 
> \startluacode
> 
>local function fact (n)
>if n <= 0 then
>return 1
>else
>return n * fact(n-1)
>end
>end
> 
>local function ncr(n,r)
>return fact(n)/(fact(r)*fact(n-r))
>end
> 
>userdata.P = {
>fact = fact,
>ncr  = ncr,
>}
> 
>function MP.pascal_ncr(n, r)
>mp.print(ncr(n,r))
>end
> 
> \stopluacode
> 
> Watch the last definition. This permits
> 
>  % tt := lua("mp.print(userdata.P.ncr(" & decimal n & "," & decimal r & " 
> ))");
> 
> replaced by
> 
>tt := lua.MP.pascal_ncr(n,r);
> 
> which looks nicer.
> 
> \startbuffer[pt1]
>numeric n, r, s, u, dx, dy, tt;
>path p, q;
>pair A, B, start, now;
>u := 1.8cm;
>A := dir(210)*u;
>B := dir(-30)*u;
>dy := sind(30)*u;
>dx := 2*cosd(30)*u;
>for n=0 upto 4:
>start := n*dir(210)*u;
>for r=0 upto n:
>s := n-r;
>  % tt := lua("mp.print(userdata.P.ncr(" & decimal n & "," & decimal r 
> & " ))");
>  tt := lua.MP.pascal_ncr(n,r);
>now := start+r*right*dx;
>dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & 
> decimal r & "} = "& decimal tt & "$"),now);
>draw (now+A) -- now -- (now+B);
>endfor;
>endfor;
> \stopbuffer
> 
> Now, in context lmtx we can have a different kind of abstraction. We can do 
> this:
> 
>function MP.pascal_ncr_x()
>mp.print(ncr(mp.scan.pair()))
>end
> 
> and then use:
> 
>tt := runscript("MP.pascal_ncr_x()") (n,r) ;
> 
> Of course one can decide to pick to two numerics instead, like
> 
>tt := runscript("MP.pascal_ncr_x()") n r ;
> 
> but i leave that as exercise.
> 
>  % tt := runscript mp_pascal_ncr (n,r) ;
>tt := pascal_ncr (n,r) ;
> 
> However, we still have the rather verbose runscript here, so we go further, 
> we register pascal as script:
> 
> \startluacode
>metapost.registerscript("pascal_ncr",MP.pascal_ncr_x)
> \stopluacode
> 
> And then define an alias at the metafun end:
> 
> \startMPextensions
>newinternal mp_pascal_ncr ; mp_pascal_ncr := scriptindex "pascal_ncr" ;
> 
>def pascal_ncr =
>runscript mp_pascal_ncr
>enddef ;
> \stopMPextensions
> 
> The internal permits this:
> 
>   tt := runscript mp_pascal_ncr (n,r) ;
> 
> while the additional def permits
> 
>tt := pascal_ncr (n,r) ;
> 
> Now watch out, because we define pascal_ncr here, something
> lua.MP.pascal_ncr(n,r) won't work because the last part gets expanded because 
> that is what mp does (i'll probably cook something for that some day).
> 
> Now, to come back to
> 
>   "I couldn’t wikify it at that time because I don’t know
>how to.  I’ll do it soon."
> 
> looks like you suddenly have an additional challenge,
> 
> 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] Code lua in a table

2020-07-20 Thread Jeong Dal
Dear Fabrice,

You may split Binom(n,k) function into two functions as following:

*
\startluacode
P={}
combi = P

function P.fact (n)
  if n <= 0 then
return 1
  else
return n * P.fact(n-1)
  end
end

function P.ncr(n,r)
return P.fact(n)/(P.fact(r)*P.fact(n-r))
end
combi = {
fact = fact,
ncr = ncr,
}
\stopluacode
**

Your table is actually Pascal’d triangle. 
Using the above function, I was able to draw Pascal’s triangles.
Hans helped me to complete it.
I couldn’t wikify it at that time because I don’t know how to.  I’ll do it soon.

Here is the whole code for Pascal’s triangle in two different ways using Lua, 
Metafun and ConTeXt.
You may enhance the code.

\startbuffer[pt1]
numeric n,r,s,u,dx,dy,tt; u := 1.8cm;
path p, q;
pair A,B,start,now;
A := dir(210)*u;
B := dir(-30)*u;
dy := sind(30)*u;
dx := 2*cosd(30)*u;
for n=0 upto 4:
start := n*dir(210)*u;
for r=0 upto n:
s := n-r;
tt := lua("mp.print(P.ncr(" & decimal n & "," &  decimal r & " ))");
now := start+r*right*dx;
dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & 
decimal r & "} = "& decimal tt & "$"),now);
draw (now+A) -- now -- (now+B);
endfor;
endfor;
\stopbuffer
\startbuffer[pt2]
numeric n,r,s,u,dx,dy,tt; u := 1cm;
path p, q;
pair A,B,start,now;
A := dir(210)*u;
B := dir(-30)*u;
dy := sind(30)*u;
dx := 2*cosd(30)*u;
for n=0 upto 8:
start := n*dir(210)*u;
for r=0 upto n:
s := n-r;
tt := lua("mp.print(P.ncr(" & decimal n & "," &  decimal r & " ))");

now := start+r*right*dx;
label(textext("$" & decimal tt & "$"),now);
endfor;
endfor;
\stopbuffer
\startluacode
P={}
combi = P

function P.fact (n)
  if n <= 0 then
return 1
  else
return n * P.fact(n-1)
  end
end

function P.ncr(n,r)
  return P.fact(n)/(P.fact(r)*P.fact(n-r))
end
combi = {
  fact = fact,
  ncr = ncr,
}
\stopluacode
\starttext

\processMPbuffer[pt1]
\blank[big]
\processMPbuffer[pt2]

\stoptext

I hope that it helps.

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
___


[NTG-context] error during the installation of luametatex

2020-05-09 Thread Jeong Dal
Hi,

I tried to update luametatex which was running well(it was installed following 
the process in the wiki>installation> MacOsX catalina), but I got the following 
error after all the files are downloaded.

resolvers   > lua > loading file 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/math-spa.lua' 
succeeded

tex error   > tex error on line 2960 in file math-ini.mkxl: ! Undefined 
control sequence

l.2960 \normalsupmarkmode
   \plusone % 2 also disable ^[^+] in text mode




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.


resolvers   | formats |
resolvers   | formats | binary path  : 
/Users/graph/ConTeXtL/tex/texmf-osx-64/bin
resolvers   | formats | format path  : 
/Users/graph/ConTeXtL/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
resolvers   | formats | luatex engine: luametatex


However, the installation continues to end. 
But the same error appears when I compile a tex file.

***
resolvers   > lua > loading file 
'/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/math-spa.lua' 
succeeded

tex error   > tex error on line 2960 in file math-ini.mkxl: ! Undefined 
control sequence

l.2960 \normalsupmarkmode
   \plusone % 2 also disable ^[^+] in text mode




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.


resolvers   | formats |
resolvers   | formats | binary path  : 
/Users/graph/ConTeXtLM/tex/texmf-osx-64/bin
resolvers   | formats | format path  : 
/Users/graph/ConTeXtLM/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
resolvers   | formats | luatex engine: luametatex
resolvers   | formats | lua startup file : 
/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file : 
/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
*

I’d like to know what is wrong in this process.

Thank you for reading.

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] Vertical lines in matrices

2020-05-04 Thread Jeong Dal
Dear Weber Mattias,

Please see page 10 of “mathalign.pdf” made by Aditya.
He showed the way of writing  aligned math including  matrices.
For example,

\startformula

 \startmatrix[left={\left(\,},right={\,\right)}]

  \NC 1 \NC 0 \NC 0 \NR
  \NC 0 \NC 1 \NC 0 \NR
  \NC 0 \NC 0 \NC 1 \NR
\stopmatrix 
  \stopformula 
There are many other examples that you can use.

Best regards,
Dalyoung

> Message: 2
> Date: Sun, 3 May 2020 17:47:24 +
> From: "Weber, Matthias" 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Vertical lines in matrices
> Message-ID: 
> Content-Type: text/plain; charset="utf-8"
> 
> Dear List,
> 
> I am trying to get vertical (separating) lines into matrices, as is possible 
> in tables:
> 
> \starttext
> \startformula
> \left(
> \starttable[|c|c|c|]
> \NC 0 \NC  0\VL  0 \FR
> \NC 1 \NC  0\VL  1 \FR
> \stoptable
> \right)
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] animation using \startuseMPgraphic

2020-04-21 Thread Jeong Dal
Dear Hans,

I have not experienced a bottleneck when running ConTeXt.
It is stable and fast. 

I am satisfied with ConTeXt except there are many features and commands which 
are not explained.
Frankly speaking, I don’t need that much commands for my job. 
Also it is not the problem because there are many experts who willingly give 
the solutions in the list mail

I appreciate you and your team.

Best regards,

Dalyoung

> 2020. 4. 21. 오전 2:19, Hans Hagen  작성:
> 
> On 4/20/2020 4:40 PM, Jeong Dal wrote:
> 
>> Of course, it runs so fast that it is meaningless to shorten the runtime.
>> It is my old habit to check the algorithmic efficiency.
> 
> We share the same habit ... unfortunately there is not much performance to 
> gain after all these years. Of course users are invited to tell me where they 
> see a (real) bottleneck that doesn't make sense to them.
> 
> 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] animation using \startuseMPgraphic

2020-04-20 Thread Jeong Dal
Dear Hans,

Of course, it runs so fast that it is meaningless to shorten the runtime.
It is my old habit to check the algorithmic efficiency.

It is just my interest.

Thank you for your concern.

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] animation using \startuseMPgraphic

2020-04-19 Thread Jeong Dal
Dear Aditya,

Thank you for your link.
It is good to see your nice code.

I’ll see how to apply \startMPanimation … \stopMPanimation to my sample.

Thank you again.

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] animation using \startuseMPgraphic

2020-04-19 Thread Jeong Dal
Dear Wolfgang,

I’d like to ask you one more.

To make an animation, almost same graphics are drawn repeatedly.
In my code, for example,
The base figure(two circles, line, boundingbox) is fixed and only points are 
moved.
But it draws the base figure every time and it is not inefficient.

Is there a way to draw the base figure once, and draw the points only at each 
frame?

Thank you.
Best regards,

Dalyoung

\startuseMPgraphic{inversionPoint}{n}
vardef findPointD(expr C, Q, r) = 
numeric dist, ang;
pair X, Y;
dist := r**2/sqrt((xpart Q - xpart C)**2 + (ypart Q - ypart C)**2);
ang := angle(Q - C);
Y := C + dir(ang)*dist;
Y
enddef;

numeric radius, now, move;
pair A,B,C,P,Q;
path p,q;
   radius := 2cm;
   C := origin;
   p := fullcircle scaled (2*radius);
   z[1] = point 6 of p;
   z[2] = point .8 of p;

   q := (1.5*z1 - .5*z2) -- (-.5z1 + 1.5*z2);
   %q := fullcircle scaled radius shifted (2cm, 1cm);
   draw p;
   draw q; 

% end of base figure
% draw points

move := 0.1;
now := move*\MPvar{n};
P := point now along q;
Q := findPointD(C, P, radius);
drawdot P;
drawdot Q withcolor .625red;
dotlabel.lft(textext("P"),P);
dotlabel.rt(textext("Q"),Q) withcolor .625red;
\stopuseMPgraphic

___
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] animation using \startuseMPgraphic

2020-04-19 Thread Jeong Dal
Dear Wolfgang,

Thank you for your help.
It works fine.

As you said, I need to use boundingbox for stable animation.

Thank you again.

Best regards,

Dalyoung


> 2020. 4. 19. 오후 4:19, Wolfgang Schuster  
> 작성:
> 
> Jeong Dal schrieb am 19.04.2020 um 07:08:
>> Dear all,
>> I am trying to make an animation using the animation module.
>> But it draws 10 figures instead of creating animation.
>> Is there anything I have to do more?
> 
> You have to put each animation step in a frame environment. I recommend also 
> to set the boundingbox to the same size for each frame, otherwise your 
> graphic jumps around.
> 
> When you use \recurselevel you have to use this:
> 
> \startanimation[menu=yes]
>  \dorecurse{10}
>{\startexpanded
>   \startframe
> \useMPgraphic{inversionPoint}{n=\recurselevel}%
>   \stopframe
> \stopexpanded}
> \stopanimation
> 
> or use #1 to access the counter level and get rid of \startexpanded:
> 
> \startanimation[menu=yes]
>  \dorecurse{10}
>{\startframe
>   \useMPgraphic{inversionPoint}{n=#1}%
> \stopframe}
> \stopanimation
> 
> 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] animation using \startuseMPgraphic

2020-04-18 Thread Jeong Dal
Dear all,

I am trying to make an animation using the animation module.
But it draws 10 figures instead of creating animation.
Is there anything I have to do more?
Or, is there a better way to do this?

Thank you for reading.

Best regards,

Dalyoung


\startuseMPgraphic{inversionPoint}{n}
vardef findPointD(expr C, Q, r) = 
numeric dist, ang;
pair X, Y;
dist := r**2/sqrt((xpart Q - xpart C)**2 + (ypart Q - ypart C)**2);
ang := angle(Q - C);
Y := C + dir(ang)*dist;
Y
enddef;
numeric radius, now, move;
pair A,B,C,P,Q;
path p,q;

radius := 2cm;
C := origin;
p := fullcircle scaled (2*radius);
z[1] = point 6 of p;
z[2] = point .8 of p;

q := (1.5*z1 - .5*z2) -- (-.5z1 + 1.5*z2);
%q := fullcircle scaled radius shifted (2cm, 1cm);
draw p;
draw q; 
%for i := 0 step 0.1 until 1:
move := 0.1;
now := move*\MPvar{n};
P := point now along q;
Q := findPointD(C, P, radius);
drawdot P;
drawdot Q withcolor .625red;
dotlabel.lft(textext("P"),P);
dotlabel.rt(textext("Q"),Q) withcolor .625red;
%endfor;
\stopuseMPgraphic

\usemodule[animation]
\setupinteraction[state=start]

\starttext
%\startplacefigure[]
\startanimation[menu=yes]
\dorecurse{10}{
\useMPgraphic{inversionPoint}{n=\recurselevel}
}
\stopanimation
%\stopplacefigure
\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] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Dear Hans,

Thank you for the reply.
Since  \startMPcode … \stopMPcode form is used in the manual, I think that it 
is OK to use it for all cases.

Thank you again.

Best regards,

Dalyoung


> 2020. 4. 17. 오전 5:01, Hans Hagen  작성:
> 
> On 4/16/2020 8:36 PM, Jeong Dal wrote:
>> Hi,
>> The following sample code is working well in the \startMPpage ~ \stopMPpage, 
>> but is not working in the \startMPcode ~ \stopMPcode.
>> The error message is
>> \textfont0 is undefined (character 63)
>> l.6 \setstrut\strut $A$
>> If I remove “$” from the code, it is also working in \startMPcode ~ 
>> \stopMPcode.
>> Is there anything which I have to set for \startMPcode?
> 
> \starttext ... \stoptext
> 
> or
> 
> \startMPpage[instance=doublefun]
> 
> \stopMPpage
> 
>> Best regards,
>> Dalyoung
>> 
>> \startMPcode{doublefun}
>> %\startMPpage
>> numeric count, temp[], tt, minus, u; u := 1cm;
>> path p,q,r;
>> pair A,B,C,D;
>> string varName, ss, pos[];
>> p := unitsquare xyscaled (8u,3.5u);
>> *draw p;*
>> *
>> *
>> pos[0] := "bot";
>> pos[1] := "rt";
>> pos[2] := "top";
>> pos[3] := "lft";
>> varName := "yxwz";
>> count := 0;
>> pickup pencircle scaled 5pt;
>> for i = 0 upto 3:
>> drawdot (point i of p);
>> draw lmt_text[
>> text = "$" & char(65+i) & "$",
>> anchor = pos[i],
>> offset = 2pt,
>> position = point i of p,
>> ];
>> endfor;
>> %\stopMPpage
>> \stopMPcode
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <http://contextgarden.net/>
>> ___
> 
> 
> -- 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
> www.pragma-pod.nl <http://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] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Hi,

The following sample code is working well in the \startMPpage ~ \stopMPpage, 
but is not working in the \startMPcode ~ \stopMPcode.

The error message is 

\textfont0 is undefined (character 63)

l.6 \setstrut\strut $A$

If I remove “$” from the code, it is also working in \startMPcode ~ \stopMPcode.

Is there anything which I have to set for \startMPcode?

Best regards,

Dalyoung


\startMPcode{doublefun}
%\startMPpage
numeric count, temp[], tt, minus, u; u := 1cm;
path p,q,r;
pair A,B,C,D;
string varName, ss, pos[];
p := unitsquare xyscaled (8u,3.5u);
draw p;

pos[0] := "bot";
pos[1] := "rt";
pos[2] := "top";
pos[3] := "lft";
varName := "yxwz";
count := 0;
pickup pencircle scaled 5pt;

for i = 0 upto 3: 
drawdot (point i of p);
draw lmt_text[
text = "$" & char(65+i) & "$",
anchor = pos[i],
offset = 2pt,
position = point i of p,  
];
endfor;
%\stopMPpage
\stopMPcode


___
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] running lua in metafun and in ConTeXt

2020-04-12 Thread Jeong Dal
Dear Hans,

Thank you for your new code.

Frankly speaking, it is hard to follow your code right now because of my little 
knowledge about these matter.
I need some time  to understand your code fully, especially lmtx.
I’ll do  more exercises using your code.

Thank you for your concern.

Best regards,

Dalyoung


> 2020. 4. 12. 오후 6:44, Hans Hagen  작성:
> 
> Hi Dal,
> 
>> Thank you for your nice code.
>> lua.MP.Whatever is something!
> 
> just keep in mind that lua.MP is the user namespace and lua.mp (lowercase) 
> the system one
> 
> btw, as you're doing math in mp, in lmtx (which has some extra metafun 
> features) we have some more math functions available:
> 
> m_acos m_acosh m_asin m_asinh m_atan m_atantwo m_atanh m_cbrt m_ceil 
> m_copysign
> m_cos m_cosh m_deg m_erf m_erfc m_exp m_exptwo m_expm m_fabs m_fdim m_floor 
> m_fma
> m_fmax m_fmin m_fmod m_frexp m_gamma m_hypot m_isfinite m_isinf m_isnan
> m_isnormal m_jz m_j m_jn m_ldexp m_lgamma m_log m_logten m_logp m_logtwo 
> m_logb
> m_modf m_nearbyint m_nextafter m_pow m_rad m_remainder m_remquo m_round 
> m_scalbn
> m_sin m_sinh m_sqrt m_tan m_tanh m_tgamma m_trunc m_yz m_y m_yn
> 
> c_sin c_cos c_tan c_sinh c_cosh c_tanh c_asin c_acos c_atan c_asinh c_acosh
> c_atanh c_sqrt c_abs c_arg c_conj c_exp c_log c_proj c_erf c_erfc c_erfcx 
> c_erfi
> c_imag c_real c_neg c_pow c_add c_sub c_mul c_div c_voigt c_voigt_hwhm c_imag
> c_real c_neg
> 
> these are using the functions in the xmath and xcomplex namespaces that are 
> provided in the lmtx lua interfaces
> 
> there's also an xdecimal namespace for using decimal calculations with high 
> precisions but not yet interfaced to the mp end which actually already has 
> decimal anyway
> 
> (if some matrix features are needed at the mp end, as extension to the matrix 
> module, then we can explore that as we have ways to pick up data from mp, 
> process it by lua, and pipe it back, which is also pretty efficient by now - 
> not that mp graphics are much of a bottleneck)
> 
> Here is an example of a crude interfacve if you need indeed hundreds such 
> exercises
> 
> \unexpanded\def\WhateverShape#1#2#3%
>  {$\displaystyle{#1\choose #2} = #3$}
> 
> \startluacode
> local function fact(n)
>if n <= 0 then
>return 1
>else
>return n * fact(n - 1)
>end
> end
> 
> local function whatever(n,r)
>return fact(n) / (fact(r) * fact(n-r))
> end
> 
> function MP.lmt_WhateverShape(n,r)
>mp.quoted([[\WhateverShape{%.0f}{%.0f}{%.0f}]],n,r,whatever(n,r))
> end
> 
> -- or in latest lmtx:
> --
> -- function MP.lmt_WhateverShape(n,r)
> -- mp.inject(
> -- string.format(
> -- [[\WhateverShape{%.0f}{%.0f}{%.0f}]],
> -- n,
> -- r,
> -- whatever(n,r)
> -- )
> -- )
> -- end
> \stopluacode
> 
> \startMPextensions
> 
> presetparameters "WhateverShape" [
>options = "labels",
>angle   = 30,
>unit= 2cm,
>color   = "black",
> ] ;
> 
> def WhateverShape = applyparameters "WhateverShape" "lmt_WhateverShape" 
> enddef ;
> 
> vardef lmt_WhateverShape =
>image (
> 
>pushparameters "WhateverShape" ;
> 
>save u, a, b, dx, n, r ;
>save A, B, start, now ; pair A, B, start, now ;
> 
>u  := getparameter "unit" ;
>a  := getparameter "angle" ;
>b  := a + 180 ;
> 
>A  := u * dir(a) ;
>B  := u * dir(-b) ;
>dx := u * 2 * cosd(b) ;
> 
>draw image (
>for n = 0 upto 4 :
>start := n * A ;
>for r = 0 upto n :
>now := start + r * right * dx ;
>draw (now + A) -- now -- (now + B) ;
>endfor ;
>endfor ;
>) withcolor getparameter "color" ;
> 
>for n = 0 upto 4 :
>start := n * A ;
>for r = 0 upto n :
>now := start + r * right * dx ;
>if hasoption "options" "labels" :
> dotlabel.top(textext(lua.MP.lmt_WhateverShape(n,r)),now) ;
>fi ;
>endfor;
>endfor;
> 
>popparameters ;
>)
> enddef ;
> 
> \stopMPextensions
> 
> \starttext
> 
> \startMPcode
>draw WhateverShape [
>angle = 30,
>unit  = 1.8cm,
>color = "darkgreen",
>] ;
> \stopMPcode
> 
> \startMPcode
>draw WhateverShape [
>options = "",
>angle   = 40,
>color   = "darkred",
>unit= 4*BodyFontSize,
>] ;
> \stopMPcode
> 
> \stopMPcode
> 
> (parameters can be strings, numerics, booleans, pairs, paths, tables, etc)
> 
> 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
> 

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-11 Thread Jeong Dal
Dear Hans,

Thank you for your nice code.
lua.MP.Whatever is something!

Have a nice weekend.

Best regards,

Dalyoung

> 2020. 4. 12. 오전 2:08, Hans Hagen  작성:
> 
> On 4/11/2020 4:15 PM, Jeong Dal wrote:
>> Dear all,
>> The problem is solved by using the namespace of lua as below:
>> I am not sure what I did is the right way.
>> If it is not the right way, please let me know.
>> Thanks for reading.
>> Best regards,
>> Dalyoung
>> \startluacode
>> P={}
>> combi = P
>> function P.fact (n)
>> if n <= 0 then
>> return 1
>> else
>> return n * P.fact(n-1)
>> end
>> end
>> function P.ncr(n,r)
>> return P.fact(n)/(P.fact(r)*P.fact(n-r))
>> end
>> combi = {
>> fact = fact,
>> ncr = ncr,
>> }
>> \stopluacode
>> \startbuffer[fig121]
>> numeric n,r,s,u,dx,dy,tt; u := 1.8cm;
>> path p, q;
>> pair A,B,start,now;
>> A := dir(210)*u;
>> B := dir(-30)*u;
>> dy := sind(30)*u;
>> dx := 2*cosd(30)*u;
>> for n=0 upto 4:
>> start := n*dir(210)*u;
>> for r=0 upto n:
>> s := n-r;
>> % tt := lua("mp.print(P.fact(" & decimal n & ")/(P.fact(" & decimal r & 
>> ")*P.fact(" & decimal s &" )))");
>> tt := lua("mp.print(P.ncr(" & decimal n & "," & decimal r & " ))");
>> now := start+r*right*dx;
>> dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & decimal r 
>> & "} = "& decimal tt & "$"),now);
>> draw now -- (now+A);
>> draw now -- (now+B);
>> endfor;
>> endfor;
>> \stopbuffer
> Sunday afternoon educational moment (that you can wikify), four variants:
> 
> 1 : A more metafunish alternative of your example.
> 2 : The same but avoiding a temporary variable.
> 3 : Less code and clutter, the real deal.
> 4 : Idem, but permits more tuning at the TeX end.
> 
> \unexpanded\def\MyWhatever#1#2#3%
>  {$\displaystyle{#1\choose #2} = #3$}
> 
> \startluacode
> local function fact(n)
>if n <= 0 then
>return 1
>else
>return n * fact(n - 1)
>end
> end
> 
> local function whatever(n,r)
>   return fact(n) / (fact(r) * fact(n-r))
> end
> 
> MP.WhateverA = whatever
> 
> function MP.WhateverB(n,r)
>   mp.quoted("%.0f",whatever(n,r))
> end
> 
> function MP.WhateverC(n,r)
>   mp.quoted([[$\displaystyle{%.0f\choose %.0f} = %.0f$]],n,r,whatever(n,r))
> end
> 
> function MP.WhateverD(n,r)
>   mp.quoted([[\MyWhatever{%.0f}{%.0f}{%.0f}]],n,r,whatever(n,r))
> end
> \stopluacode
> 
> \startbuffer[fig121]
>numeric n, r, s, u, dx, dy, tt;
>path p, q ; pair A, B, start, now;
>u := 1.8cm;
>A := dir(210)*u;
>B := dir(-30)*u;
>dy := sind(30)*u;
>dx := 2*cosd(30)*u;
>for n = 0 upto 4:
>start := n*dir(210)*u;
>for r = 0 upto n:
>s := n - r;
>now := start + r*right*dx;
>draw (now + A) -- now -- (now + B);
> 
>tt := lua.MP.WhateverA(n,r) ;
> 
>dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & 
> decimal r & "} = "& decimal tt & "$"),now);
> 
>dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & 
> decimal r & "} = "& lua.MP.WhateverB(n,r) & "$"),now);
> 
>dotlabel.top(textext(lua.MP.WhateverC(n,r)),now);
> 
>dotlabel.top(textext(lua.MP.WhateverD(n,r)),now);
> 
>endfor;
>endfor;
> \stopbuffer
> 
> \starttext
> 
>{\switchtobodyfont[11pt]\processMPbuffer[fig121]}
> 
> \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] running lua in metafun and in ConTeXt

2020-04-11 Thread Jeong Dal
Dear all,

The problem is solved by using the namespace of lua as below:
I am not sure what I did is the right way.
If it is not the right way, please let me know.

Thanks for reading.

Best regards,

Dalyoung



\startluacode
P={}
combi = P

function P.fact (n)
  if n <= 0 then
return 1
  else
return n * P.fact(n-1)
  end
end

function P.ncr(n,r)
   return P.fact(n)/(P.fact(r)*P.fact(n-r))
end
combi = {
   fact = fact,
   ncr = ncr,
}
\stopluacode

\startbuffer[fig121]
numeric n,r,s,u,dx,dy,tt; u := 1.8cm;
path p, q;
pair A,B,start,now;
A := dir(210)*u;
B := dir(-30)*u;
dy := sind(30)*u;
dx := 2*cosd(30)*u;
for n=0 upto 4:
   start := n*dir(210)*u;
   for r=0 upto n:
  s := n-r;
% tt := lua("mp.print(P.fact(" & decimal n & ")/(P.fact(" & decimal r & 
")*P.fact(" & decimal s &" )))");
  tt := lua("mp.print(P.ncr(" & decimal n & "," &  decimal r & " ))");
  now := start+r*right*dx;
  dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & decimal 
r & "} = "& decimal tt & "$"),now);
  draw now -- (now+A);
  draw now -- (now+B);
   endfor;
endfor;
\stopbuffer

___
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] running lua in metafun and in ConTeXt

2020-04-11 Thread Jeong Dal
Dear all,

I draw Pascal’s triangle with the label of each point created by using lua 
functions.
As you see in the code below, I defined fact(n) and combi(n,r) using lua.
For the calculation tt, I used two different methods.
Both are working well when I run the given code.

But I got an error, when I added this code to a ConTeXt file composed product 
and components,
and using the second method, i.e. combi(n,r). The first method is still working 
well.
The error message is as following:

metapost log> loading metafun, including plain.mp version 1.004 for metafun 
iv and xl
metapost log> 
luatex warning  > mplib: run script: [string "return mp.print(combi(0,0 ))"]:1: 
attempt to call a nil value (global 'combi')

metapost log> >> tt
metapost log> >> vacuous
metapost log> ! Equation cannot be performed (numeric=vacuous).
metapost log>  
metapost log>;
metapost log>  ...(0)&","(EXPR0)&" ))");
metapost log>   
now:=start+(EXPR0)*right*d...
metapost log>  now--(now+A);draw.now--(now+B);endfor
metapost log>   ; ENDFOR
metapost log> <*> ...now+A); draw now -- (now+B); endfor; endfor
metapost log>   ;;

I don’t know why the same code treated differently.
I think that I have to do something more in luacode which I don’t know.
Comments are wellcome!

Best regards,

Dalyoung

%%%

\startluacode
function fact (n)
  if n <= 0 then
return 1
  else
return n * fact(n-1)
  end
end
function combi(n,r)
   return fact(n)/(fact(r)*fact(n-r))
end
\stopluacode
\startbuffer[fig121]
numeric n,r,s,u,dx,dy,tt; u := 1.8cm;
path p, q;
pair A,B,start,now;
A := dir(210)*u;
B := dir(-30)*u;
dy := sind(30)*u;
dx := 2*cosd(30)*u;
for n=0 upto 4:
   start := n*dir(210)*u;
   for r=0 upto n:
  s := n-r;
% tt := lua("mp.print(fact(" & decimal n & ")/(fact(" & decimal r & 
")*fact(" & decimal s &" )))");
  tt := lua("mp.print(combi(" & decimal n & "," &  decimal r & " ))");
  
  now := start+r*right*dx;
  dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & decimal 
r & "} = "& decimal tt & "$"),now);
  draw now -- (now+A);
  draw now -- (now+B);
   endfor;
endfor;
\stopbuffer
\starttext
\switchtobodyfont[11pt]
\processMPbuffer[fig121]
\switchtobodyfont[12pt]
\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] write a subtitle under the title of a chapter using outlined font

2020-03-21 Thread Jeong Dal
Dear Hans,

Your method perfectly works!
The number of chapter use the same font as the main title font and there is no 
big space between main title and the subtitle.

Thank you.

Best regards,

Dalyoung


> 
> On 3/20/2020 11:07 AM, Jeong Dal wrote:
>> Dear Hans,
>> Here is another problem.
>> To use a big font for the title and a small font for the subtitle, I set the 
>> font size in the \setuphead.
>> Then it writes them fine in two lines, but a big linespace between them.
>> If I remove the “style=\BigFontTwo” from the \setuphead, and use it in the 
>> title input like
>> \startchapter[title={{\BigFontTwo A Long Long Title}\crlf{\tfa Sub Title}}]
>> then a big space is gone, but the chapter number follows the size of 
>> subtitle.
>> How to remove the big space while the chapter number follows the size of the 
>> title?
> \tfd \setupinterlinespace Foo \par
> \tfa \setupinterlinespace Bar \par
___
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] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Jeong Dal
Dear Hans,

I found how to.
By removing ‘& ditto’, then it works!

>   draw outlinetext.b ("\framed[align=normal]{" & \MPvar{tt}  & "}”)

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] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Jeong Dal
Dear Hans,

Thanks for the reply.
Your method works partly.

> 
>draw outlinetext.b ("\framed[align=normal]{" & ditto & \MPvar{tt} & ditto 
> & "}”)
> 

It allows to write it in two lines. However, the title is surrounded by ‘ “ ‘.
How to remove it?

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
___


[NTG-context] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Jeong Dal
Hi,

long time ago, I can use outlined fonts for the title of a chapter by the help 
of the experts in this list.
Now, I’d like to write a subtitle under the title, but \crlf is not working.
I tried in several ways, but I couldn’t make it.

How to write them in two lines?

Thanks.

Best regards,

Dalyoung

**
\startuseMPgraphic{outlineT}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .75white)
  (withcolor .725blue withpen pencircle scaled .75pt);
\stopuseMPgraphic

\define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}%

\setuphead[chapter,title]
 [textcommand=\outlineFill,
  color=.625Blue,
  numbercommand=\outlineFill,
  number=yes]

\setupbodyfont[rm, 12pt]

\starttext

\startchapter[title={First Title\crlf{\tfa Sub Title}}]
\input knuth
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt support for Atom

2020-01-15 Thread Jeong Dal
Hi,

Thanks for "language-context”.

> 
>> what are the key shortcuts to compile the context file at hand?
>> i try the atom editor on Linux platform.
>> Can't find the way to feed the tex file into context luatex...
> 
> There are no key shortcuts. I use a terminal.
> As I wrote:
> 
>> So there’s no run command or something like Atom-LaTeX
> 

When I use Atom for ConTeXt, I use the package,”process palette” in which 
commands and a key shortcut are defined. By pressing the defined key-shortcut, 
terminal will do the job as Hraban said.

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


Re: [NTG-context] ntg-context Digest, Vol 186, Issue 61

2019-12-26 Thread Jeong Dal
Dear Hans,

I read the “luametafun.pdf” and run the codes one by one.
It is a really nice to have those figures easily.

During the reading, I found that there is a difference between the figure in 
the manual and the output of my run.
I run the following code at page 24-25 in “luametafun.pdf”.

\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) + cos(y)"
background = "bitmap",
foreground = "edge", 
linewidth = 1/2, 
cache = true,
]; 
\stopMPcode


In the output, the background of text is gray while the background of text in 
the manual is white.
Here are versions of LuaMetaTeX and ConTeXt which I use.

%%%
This is LuaMetaTeX, Version 2.03.4 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.12.16 18:54 MKIV beta  fmt: 2019.12.17  
int: english/english
system  > 
%

Is there anything that I miss?
Would you please to check it?

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
___


Re: [NTG-context] math align broken

2019-12-16 Thread Jeong Dal
Dear Hans,

I reinstall a new beta and test the previous file.
(LuaMetaTeX: version 2.03.4, ConTeXt version: 2019.12.16 18:54, format: 
2019.12.17)

The problem is gone!
The space in the aligned display math mode is normal.

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] math align broken

2019-12-16 Thread Jeong Dal
Dear Hans, 

Here is a small example which shows a strange spacing in the aligned display 
math mode.
The same code is OK in both inline mode and just display mode, but it is not 
good in aligned mode.

I hope that it helps your fix .

Thank you.

Best regards,

Dalyoung

%
running luametatex version 2.03.3,   ConTeXt ver: 2019.12.12, format: 2019.12.14
%
\starttext

\startitemize
\head inline formula:

$1001 \times 23 \equiv 1  \quad \pmod {3837}$

\head display mode

\startformula
1001 \times 23 \equiv 1  \quad \pmod {3837}
\stopformula

\head aligned display mode

\startformula\startalign[m=2]
\NC 2^7 \equiv \qquad \NC \pmod {341},  \NC 14^7 \equiv \qquad \NC 
\pmod {341}, \NR
\NC 11^7 \equiv \qquad \NC \pmod {341}, \NC 3^7 \equiv \qquad \NC \pmod 
{341}, \NR
\stopalign\stopformula

\startformula\startalign[n=3]
\NC 1001 \times 23 \NC \equiv 1  \quad \NC\pmod {3837}  \NR
\NC \qquad \times 23 \NC \equiv \qquad \NC\pmod {3837}  \NR
\stopalign\stopformula

\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] math align broken

2019-12-15 Thread Jeong Dal
Dear Mikael,

I also confirm your problem. 
I am using
"ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int: english/english”

However, if you change “\Bigl(“ to “\left(“, then the space between left 
parenthesis and text become narrower. 

I hope that it will be fixed soon.

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] lmtx

2019-12-13 Thread Jeong Dal
Dear Otared,


> I updated the wiki page for installing LuaMetaTeX on MacOS:
> 
>   https://wiki.contextgarden.net/installing_luametatex

Thank you for the wiki.
It explains the complicate processes well.

As I wrote in the last mail, I don’t have a problem of installation as before.
At this time, I don’t need to change SIP and the options of Gatekeeper in Mac 
OSX Catalina.
Since I downloaded “install.sh”, it is inexecutable at the first time.
But it worked well after allowing its running in the preference>security tab 
once.

I don’t know why there is no problem at all as before. There may be some 
changes in the new beta.
For test, I installed the new beta once more and confirmed that it is installed 
well and running well.

However, your description is very useful when “install.sh” needs a permission 
of execution again and again.

Thank you for your helpful advice again.

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] lmtx

2019-12-12 Thread Jeong Dal
Dear Hans,

I downloaded the new beta today.
It installs files and makes format file well.
I compiled a test file without any problem.  
Of course, there is a security issue of OSX, but allowing the execution in the 
preference>security once, it doesn't ask about again.
I also run a test file containing a new graphic feature of LMTX and I got a 
nice output.

Thanks!!!

Best regards,

Dalyoung

P.S. Here is a beginning part of log file. I installed new beta in the folder 
/Users/graph/ConTeXtC/

%%%
resolvers   | formats | executing runner 'run luametatex format': 
/Users/graph/ConTeXtC/tex/texmf-osx-64/bin/luametatex --jobname="test" 
--fmt=/Users/graph/ConTeXtC/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/Users/graph/ConTeXtC/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 cont-yes.mkiv --c:autopdf --c:currentrun=1 
--c:fulljobname="/Users/graph/ConTeXtC/test.tex" 
--c:input="/Users/graph/ConTeXtC/test.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:purgeall --c:texmfbinpath="/Users/graph/ConTeXtC/tex/texmf-osx-64/bin"
This is LuaMetaTeX, Version 2.03.3 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.12  
int: english/english
system  > 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with a new installation of LMTX

2019-12-08 Thread Jeong Dal
Dear Otared,

Thank you for the zip file.
I downloaded it and copied it in a folder.
(There is no context-cache folder in the zip file)
In the terminal, I run “mtxrun —generate” and “context —make”.
But system doesn’t allow the execution of “luametatex”.
So I open the system preference:security part, and clear and allow the running 
“luametatex”.
But the system hinders “luametatex” continuously.

I have to ask about it to MAC service first to resolve this problem.
If it is not working after the resolve security problem, I may go back to 
previous version of OSX.
I’ll let you know the progress.

Thank you again.

Best regards,

Dalyoung
 

> 2019. 12. 9. 오전 6:34, Otared Kavian  작성:
> 
> Dear Dalyoung,
> 
> I made a zip file of the context-osx-64 tree on my machine, and put it on 
> Dropbox
>   https://www.dropbox.com/s/6isogxi78fwp1se/context-osx-64.zip?dl=0
> for you: you can try to install it on your Mac running MacOS 10.15 Catalina. 
> Could you please tell me if you succeed to implement the procedure I 
> described in the other email?
> 
> Best regards: OK
> 
>> On 8 Dec 2019, at 13:31, Jeong Dal  wrote:
>> 
>> For test, I  installed again after removing ConTeXtLMTX folder.
>> But it is same as before.
>> 
>> I looked files in “/tex/texmf-osx-64/bin”.
>> There are 5 files: context, context.lua, luametatex, mtxrun, mtxrun.lua.
>> context and mtxrun are symbolic linked to luametatex.
>> But luametatex is not executable, so I changed it using “chmod 755 
>> luametatex”.
>> I run “mtxrun —generate”, then it set variables as follows:
>> 
>> % mtxrun --generate
>> resolvers   | resolving | variable 'SELFAUTOLOC' set to 
>> '/usr/local/texlive/2019/bin/x86_64-darwin'
>> resolvers   | resolving | variable 'SELFAUTODIR' set to 
>> '/usr/local/texlive/2019/bin'
>> resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
>> '/usr/local/texlive/2019'
>> resolvers   | resolving | variable 'TEXMFCNF' set to ''
>> resolvers   | resolving | variable 'TEXMF' set to ''
>> resolvers   | resolving | variable 'TEXOS' set to 'bin'
>> resolvers   | resolving |
>> …….
>> 
>> and do many things in the texlive/2019 folders.
>> 
>> My question is that luametatex is distributed as  an inexecutable form 
>> deliberately?
>> 
>> Thank you for reading.
>> 
>> 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
>> ___
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with a new installation of LMTX

2019-12-08 Thread Jeong Dal
Dear Hans, Alan, and Mojca,

Thank you for your concern.

For me, it is a difficult problem, so I may return to the previous version of 
OSX.

> I have no problem on Catalina, however wiping-out the cache and rebuilding 
> the format often gives me errors finding the lua scripts (so I have taken the 
> habit of creating and maintaining symbolic links in the texmf-osx-64/bin 
> directory).
> 
> Alan

Since you don’t have any problem on Catalina, there is  a hope of way out from 
this problem.
Would you please tell me how to maintain them in detail?

Thank you again.
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] problem with a new installation of LMTX

2019-12-08 Thread Jeong Dal
For test, I  installed again after removing ConTeXtLMTX folder.
But it is same as before.

I looked files in “/tex/texmf-osx-64/bin”.
There are 5 files: context, context.lua, luametatex, mtxrun, mtxrun.lua.
context and mtxrun are symbolic linked to luametatex.
But luametatex is not executable, so I changed it using “chmod 755 luametatex”.
 I run “mtxrun —generate”, then it set variables as follows:

% mtxrun --generate
resolvers   | resolving | variable 'SELFAUTOLOC' set to 
'/usr/local/texlive/2019/bin/x86_64-darwin'
resolvers   | resolving | variable 'SELFAUTODIR' set to 
'/usr/local/texlive/2019/bin'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
'/usr/local/texlive/2019'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'bin'
resolvers   | resolving |
…….

and do many things in the texlive/2019 folders.

My question is that luametatex is distributed as  an inexecutable form 
deliberately?

Thank you for reading.

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] problem with a new installation of LMTX

2019-12-08 Thread Jeong Dal
Dear Hans and Otared,

Thank you again for your attempt to find a solution.

Catalina(MacOS 10.15.1) prohibits an unauthorized program run.
So I have to allow the execution of “mtxrun” manually in the preference.

Since "mtxrun —generate” ends with the message “unknown script 
mtxrun-context.lua or mtx-mtxrun-context.lua”, I tried to locate it in the 
finder. 
There is one in a folder installed by MacTeX(TeXLive), but not in “ConTeXtLMTX”.

As you said, many files are not copied during the installation.
I’ll try to understand what is going on, but it would be very hard to find a 
solution by myself.

I have to use old ConTeXt for a while.

Thank you again.

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] problem with a new installation of LMTX

2019-12-07 Thread Jeong Dal
Dear Hans, Otared,

Thank you for your concern.

The version of luametatex is 20191206.
I followed what Otared said, but texmf-cache is not created after mtxrun.

"context —make"  is running, but no format.

I checked folders after the installation.
Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project 
are empty.
texmf folder contains {fonts,metapost, tex,web2c}
texmf-context folder contains {colors,context,doc}
However, I couldn’t find base files, script files, etc.
Is it normal? Is it related with Catalina?

Have a nice weekend.

Best regards,

Dalyoung

For reference, here are log of "mtxrun —generate”
%%
MacBook ConTeXtLMTX % mtxrun --generate
resolvers   | resolving | variable 'SELFAUTOLOC' set to 
'/Users/graph/ConTeXtLMTX/tex/texmf-osx-64/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to 
'/Users/graph/ConTeXtLMTX/tex/texmf-osx-64'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
'/Users/graph/ConTeXtLMTX/tex'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'texmf-osx-64'
resolvers   | resolving |
resolvers   | resolving | using configuration specification 
'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/ConTeXtLMTX/tex/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/ConTeXtLMTX/tex/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/ConTeXtLMTX/tex/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/ConTeXtLMTX/tex/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving | found regular configuration file 
'/Users/graph/ConTeXtLMTX/tex/texmf/web2c/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | skipping configuration file 
'selfautoparent:/texmf/web2c/texmfcnf.lua' (no valid format)
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  |
mtxrun  | elapsed lua time: 0.032 seconds

%%
-MacBook ConTeXtLMTX % context --make
mtxrun  | forcing cache reload
resolvers   | resolving | configuration files already identified
resolvers   | resolving | skipping configuration file 
'selfautoparent:/texmf/web2c/texmfcnf.lua' (no valid format)
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-context.lua' using hash 
'lua::mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-contexts.lua' using hash 
'lua::mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-context.lua' using 
hash 'lua::mtx-t-mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-contexts.lua' using 
hash 'lua::mtx-t-mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
mtxrun  | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
___
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] problem with a new installation of LMTX

2019-12-07 Thread Jeong Dal
I read some reports about the problems of a new installation of LMTX.
Today, I did fresh install and also have a problem in compilation.

I did the following:

0. Open the terminal
1. Remove all files in the folder “ConTeXtLMTX”
2. Download install files from PRAGMA ADE.
3. run “install.sh”(at first, it won’t run because of the MacOS Catalina. I 
have to allow the running in the preference.)
4. it installs the folder “tex” and some files  but context-cache is empty. 
And, it couldn’t compile test.tex

I copied the log during the installation for checking.

Thank you.
Best regards,
Dalyoung


ConTeXtLMTX % sh ./install.sh
mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/Users/graph/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/Users/graph/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/Users/graph/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/Users/graph/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/Users/graph/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/Users/graph/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
mtx-install | server   : lmtx.pragma-ade.com
mtx-install | instance : install-lmtx
mtx-install | platform : osx-64
mtx-install | system   : unix
mtx-install | fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf.zip'
mtx-install | unzipping 'texmf.zip'
159 files of 1598 done,3290479 bytes, 0.043 seconds
318 files of 1598 done,   21710364 bytes, 0.158 seconds
477 files of 1598 done,   38859916 bytes, 0.251 seconds
636 files of 1598 done,   39457728 bytes, 0.275 seconds
795 files of 1598 done,   39931784 bytes, 0.298 seconds
954 files of 1598 done,   40812872 bytes, 0.323 seconds
1113 files of 1598 done,   48279500 bytes, 0.371 seconds
1272 files of 1598 done,   72162122 bytes, 0.515 seconds
1431 files of 1598 done,   82495084 bytes, 0.605 seconds
1590 files of 1598 done,   83618619 bytes, 0.629 seconds
1598 files of 1598 done,   83681430 bytes, 0.631 seconds
mtx-install | fetching 
'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.zip'
mtx-install | unzipping 'texmf-context.zip'
 26 files of  265 done,4130838 bytes, 0.020 seconds
 52 files of  265 done,4639798 bytes, 0.026 seconds
 78 files of  265 done,5091021 bytes, 0.032 seconds
104 files of  265 done,5652061 bytes, 0.039 seconds
130 files of  265 done,5930475 bytes, 0.045 seconds
156 files of  265 done,5948715 bytes, 0.049 seconds
182 files of  265 done,6166185 bytes, 0.054 seconds
208 files of  265 done,6380942 bytes, 0.059 seconds
234 files of  265 done,9347747 bytes, 0.074 seconds
260 files of  265 done,   32131852 bytes, 0.164 seconds
265 files of  265 done,   55758323 bytes, 0.281 seconds
mtx-install | installing tex/texmf-osx-64, 5 files
mtx-install | skipping tex/texmf-osx-64/bin/context
mtx-install | new  :  31 % : 1315 : tex/texmf-osx-64/bin/context.lua
mtx-install | new  :  62 % :  2805872 : tex/texmf-osx-64/bin/luametatex
mtx-install | skipping tex/texmf-osx-64/bin/mtxrun
mtx-install | new  : 100 % :   696620 : tex/texmf-osx-64/bin/mtxrun.lua
mtx-install | current  : %S
mtx-install | target   : true
mtx-install | removing : mtxrun
mtx-install | removing : context
mtx-install | linked   : mtxrun
mtx-install | linked   : context
mtx-install | xbit set : 
/Users/graph/ConTeXtLMTX/tex/texmf-osx-64/bin/luametatex
mtx-install | xbit set : 

Re: [NTG-context] Transparency (Metapost)

2019-12-01 Thread Jeong Dal
Dear Fabrice,

I run your code using ConTeXt LMTX and got the figure.
(LuaMetaTeX 2.00, ConTeXt version: 2019.11.14.)
I don’t know why you have errors.

Here is the beginning of log file:

resolvers   | formats | executing runner 'run luametatex format': 
/Users/graph/ConTeXtLMTX/tex/texmf-osx-64/bin/luametatex --jobname="test" 
--fmt=/Users/graph/ConTeXtLMTX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/Users/graph/ConTeXtLMTX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 cont-yes.mkiv --c:autopdf --c:currentrun=1 
--c:fulljobname="/Users/graph/Documents/TeXfiles/test.tex" 
--c:input="/Users/graph/Documents/TeXfiles/test.tex" --c:kindofrun=1 
--c:maxnofruns=9 --c:purge 
--c:texmfbinpath="/Users/graph/ConTeXtLMTX/tex/texmf-osx-64/bin"
This is LuaMetaTeX, Version 2.00.0 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.11.14 17:47 MKIV beta  fmt: 2019.11.19  
int: english/english
system  > 
system  > 'cont-new.mkiv’ loaded


Best regards,

Dalyoung


> 
> \starttext
> \startMPcode
>   defaultfont := "texgyrepagella-regular*default" ;
>   defaultscale :=0.8;
> 
>   color brown;
>   brown = (0.128,0.00,0.00);
> 
>   path twos, threes, sixes;
>   twos = fullcircle xscaled 4cm yscaled 2cm rotated 180
>  shifted 42 left;
>   threes = fullcircle xscaled 4cm yscaled 2cm shifted 42 right;
>   sixes = buildcycle(twos, threes);
> 
>   fill twos   withcolor brown withtransparency(1,0.75);
>   fill threes withcolor yellow withtransparency(1,0.75);
>   fill sixes withcolor yellow + brown withtransparency(1,0.75);
> 
>   draw twos;
>   draw threes;
> 
>   label("...",(1.5cm,0));
>   label("...",(0,0));
>   label("...",(-1.5cm,0));
>   label.top("yeux marron",(-1.5cm,1.25cm));
>   label.top("cheveux blonds",(1.5cm,1.25cm));
> \stopMPcode
> \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] Transparency (Metapost)

2019-11-30 Thread Jeong Dal
> \

Dear Fabrice,

I got color and transparency using the following command in LMTX(metafun).

fill p withcolor yellow withtransparency(1, .75);

I hope that it helps.

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] new (lmtx) beta

2019-10-11 Thread Jeong Dal
Dear Hans,


>> Though it calculates function using “x^2 + y^2”,  it is better to write the 
>> name of it as the output of $x^2 + y^2$.
>> Is it possible to write  it as in mathematical form?
> 
>functionstyle = "math”,
> 
It works nicely.

>> Is there any reason to use two different names “function” and “code” to 
>> define functions?
> we can still decide as it's beta ...
> 
>  function | functions
> 
> or
> 
>  code | codelist
> 
> (it's basically lua code ...)
> 
> i have no preference and as you're the first to bring it up you may decide 
> ... (unless others can convince you otherwise)
> 

I think that it is better to use the same name if there is no special reason to 
distinguish, and I prefer to use “function | functions”.  
However, I am OK whether you keep both or choose one. 

Thank you and your team again.

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] new (lmtx) beta

2019-10-11 Thread Jeong Dal

Dear Hans,

I read the manual of luametafun and do some examples.
Thanks for many new features.
It is  really great.

I’d like to ask two things. 

1. On  page 26,27, in the manual, 
> 
> http://www.pragma-ade.com/general/manuals/luametafun.pdf 
> 

a function name of the graphics are appeared as same as in the argument 
‘function = “x^2 + y^2”’. 
Though it calculates function using “x^2 + y^2”,  it is better to write the 
name of it as the output of $x^2 + y^2$.
Is it possible to write  it as in mathematical form?

2. To define a mathematical function, it uses “function = “ in Contour, while 
it uses “code = “ in Surfaces and in Functions.
Is there any reason to use two different names “function” and “code” to define 
functions?  

Thank you again.

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] MetaPost with Multiple Variable Sections

2019-09-18 Thread Jeong Dal
Dear Jeroen,

If you change “pair a;” to “numeric a;” in the second MPcode, it draws a circle 
without error.

Best regards,

Dalyoung

> 
> \placefloatright{}{
> \startMPcode
> pair a;

numeric a;

> a := 2cm;
> draw fullcircle scaled (2*a);
> \stopMPcode}
> 
> \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] :Re: How to use ConTeXt extensions with VS Code

2019-09-03 Thread Jeong Dal
Dear Hans,

I tried to install context extension using the command ‘code’, but I couldn’t 
make it.
Using ‘context development team.context’ instead context didn’t work either.

However,  by copying all the files in …/vscode/extensions to 
./vscode/extensions and enable it as before, it works.

Thank you again.
Best regards,

Dalyoung

> 2019. 9. 3. 오후 9:43, Jeong Dal  작성:
> 
> Dear Hans,
> 
> I tried to install  your vscode extension for context using the command :
> 
> code --extensions-dir 
> /Users/graph/ConTeXtLMTX/tex/texmf-context/context/data/vscode/extensions 
> --install-extension context
> 
> 
> Then I got a following error message:
> 
> Installing extensions...
> Extension 'context' not found.
> Make sure you use the full extension ID, including the publisher, e.g.: 
> ms-vscode.csharp
> Failed Installing Extensions: context
> 
> What am I missing in this process?
> 
> 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
___


[NTG-context] :Re: How to use ConTeXt extensions with VS Code

2019-09-03 Thread Jeong Dal
Dear Hans,

I tried to install  your vscode extension for context using the command :

code --extensions-dir 
/Users/graph/ConTeXtLMTX/tex/texmf-context/context/data/vscode/extensions 
--install-extension context


Then I got a following error message:

Installing extensions...
Extension 'context' not found.
Make sure you use the full extension ID, including the publisher, e.g.: 
ms-vscode.csharp
Failed Installing Extensions: context

What am I missing in this process?

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
___


Re: [NTG-context] ntg-context Digest, Vol 183, Issue 4

2019-09-02 Thread Jeong Dal
Dear Hans,

By adding “setuptex” in the task file, it runs well and makes a pdf output.

{
"label": "ConTeXt Compile",
"type": "shell",
"command": "source ~/ConTeXtLMTX/tex/setuptex;context '${file}'",
"args": [],
"group": {
"kind": "build",
"isDefault": true
}
},

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
___


Re: [NTG-context] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Jeong Dal
Dear Hans,

>> But I cannot see any syntax coloring and don’t know how to compile a TeX 
>> file.
>> Would you please help me more?
> I think you also need to choose the context color scheme
> 

Yes, syntax coloring works after choosing the context color scheme.

I find a following task file to compile a file from vscode, but it doesn’t work.

Here is the error message:

/bin/bash: context: command not found
The terminal process terminated with exit code: 127

%
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ConTeXt build",
"type": "shell",
// Keep in mind that the file path here has to be 
changed
"command": "context myfile.tex", 
"group": {
"kind": "build",
"isDefault": true
// Since we set this task to the default build 
task, you can 
// run it with a keyboard shortcut 
(Ctrl+Shift+B by default)
}
}
]
}
%%%
i am using ConTeXtLMTX installed ~/ConTeXtLMTX/.

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
___


Re: [NTG-context] How to use ConTeXt extensions with VS Code

2019-09-02 Thread Jeong Dal
Dear Hans,

Thank you for a quick reply.

> 
> tex/texmf-context/context/data/vscode
> 

I copied all the file …/vscode/extensions/context to ~/.vscode/extexsions/

When I open vacode, there is “ConTeXt 1.0.0, ConTeXt Syntax Highlignting…” in 
the extensions tab.
It is installed and enabled.
But I cannot see any syntax coloring and don’t know how to compile a TeX file.

Would you please help me more?

Thank you again.

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] How to use ConTeXt extensions with VS Code

2019-09-01 Thread Jeong Dal
Dear Hans,

> 2019. 8. 19. 오후 4:21, ntg-context-requ...@ntg.nl 작성:
> 
> there is an vscode-context.cmd file
> 

Where can I find a vscode-context.cmd file?
I couldn’t locate it using google search.

> this could also work:
> 
>> mtxrun --script vscode --start
> 

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
___


Re: [NTG-context] balanced vertical spaces under \startcolumnset

2019-08-26 Thread Jeong Dal
Dear Sytse,

Thank you for your suggestion.

> 
> Maybe paragraphs work for you?
> (https://wiki.contextgarden.net/Columns)

I will check it. 

BTW, Use “\column” and don’t print a blank page is the simplest way.

Thank you again.

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] balanced vertical spaces under \startcolumnset

2019-08-22 Thread Jeong Dal
Dear Sytse Knypstra,

Thank you for your reply.

I read the manual “Columns” as you suggested.
The command \setupcolumnsetstart made a balanced output.
But my problem is little different from it.

I want exam paper of two columns in a page and  in each column 
 two problems located with the same space for solution.
In general, it worked well, except the solution space of the last problem.
Without \column, the heights of the two problems in the last column are 
different.
With \column, the heights are same, but it create another extra blank page.

It is not a big problem, but I wonder there is a solution.

Thank you for your concern.

Best regards,

Dalyoung

> 
> \setuplayout[grid=yes]
> \emptylines[...] % see the command \emptylines in ConTeXtgarden
> \setupcolumnsetstart[...][...][...][...] % see the manual COLUMNS, page 9
> \setupcolumnsetlines[...][...][...][...] % see the manual COLUMNS, page 9
> %\showgrid % uncomment if you want to see the grid lines and line numbers
> 
> You find the manual COLUMNS under the heading 'Layout' on
> https://wiki.contextgarden.net/Manuals.
> 
> With kind regards,
> 
> Sytse

___
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] balanced vertical spaces under \startcolumnset

2019-08-20 Thread Jeong Dal
Dear all,

I use the following code to make test.
To make the same height blank spaces after the problems, I use \vfill before 
\column.
The problem is that the second \column creates extra blank page.
But, without the second \column, the height of blank spaces of the second 
column are different.

Is there a way to make the blank spaces height same while not to create a blank 
page?

Thank you for reading.

Best regards,

Dalyoung


\usetypescriptfile[type-siz]
\usemodule[units]
\setupbodyfont[10pt,rm]
\definecolumnset
 [exam]
 [n=2]

\starttext

\startcolumnset[exam]

\startitemize[n]
\item Answer to the questions:
\vfill

   \item Answer to the questions:
\vfill

\column

\item Answer to the questions:
\vfill

   \item Answer to the questions:
\vfill

%\column

\stopitemize
\stopcolumnset

\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] align figures verticaly centered in \startcombination mode

2019-08-08 Thread Jeong Dal

Dear all,

In the following example, “align=middle” works for horizontal center.
Is there any way to align two figures with different height in vertically 
centered?

Thank you.

Best regards,

Dalyoung

\useMPlibrary[dum]
\setupinteraction[state=start]
\usemodule[pre-60]
\setupcombination[align=middle]
\starttext
\StartSteps
\startplacefigure[]
{\startcombination[2*2]
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][height=.1\makeupheight]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
\stopcombination}
\stopplacefigure
\StopSteps

\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] about \startMPanimation

2019-05-13 Thread Jeong Dal
Dear Hans,

Thank you for the clear explanation.
I thought “” is appeared because of the font problem in my system.

I did something wrong when I run the sample code, which didn’t work.

Yes, it is working well in my code now.
It makes the procedure of creating animation simpler.

Thank you and thanks Wolfgang!

Best regards,

Dalyoung 


> 2019. 5. 13. 오후 10:04, Hans Hagen  작성:
> 
> On 5/13/2019 2:14 PM, Jeong Dal wrote:
>> Dear Wolfgang,
>> I found the following code with a comment “code by Wolfgang” at
>> https://adityam.github.io/context-blog/post/metapost-animation/
>> |\unprotect|
>> |\installnamespace{MPanimationvariables}\unexpanded\def\startMPanimation{\dodoublegroupempty\meta_start_animation}
>>  
>> \def\meta_start_animation#1%{\normalexpanded{\meta_start_animation_indeed{#1}}}
>>  
>> \unexpanded\def\meta_start_animation_indeed#1#2#3\stopMPanimation{\doifsomething{#2}{\getparameters[\MPanimationvariables#1:][#2]}%\setgvalue{\??mpgraphic
>>  
>> animation:#1}{\meta_handle_use_graphic{#1}{n,t}{#3}}}\let\stopMPanimation\relax\unexpanded\def\useMPanimation%{\dosingleargument\use_meta_animation}\def\use_meta_animation[#1]#2%{\edef\c_MP_animation_frames{\getvalue{\MPanimationvariables#2:n}}%\startanimation[#1]\dorecurse{\c_MP_animation_frames}{\expanded{\frame{\useMPgraphic{animation:#2}{n=\c_MP_animation_frames,t=\recurselevel\stopanimation}\protect|
>> In the code, there are many “”.(\MPanimationvariables#1, 
>> {\??mpgraphic animation:#1})
>> I wonder it is correct or not.
>> Would you please check it?
> these ??  etc indicate (protected) namespaces so it's correct
> 
> Hans
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
> www.pragma-pod.nl <http://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] about \startMPanimation

2019-05-13 Thread Jeong Dal
Dear Wolfgang,

I found the following code with a comment “code by Wolfgang” at 
https://adityam.github.io/context-blog/post/metapost-animation/ 


\unprotect
\installnamespace{MPanimationvariables}

\unexpanded\def\startMPanimation
{\dodoublegroupempty\meta_start_animation}

\def\meta_start_animation#1%
{\normalexpanded{\meta_start_animation_indeed{#1}}}

\unexpanded\def\meta_start_animation_indeed#1#2#3\stopMPanimation
{\doifsomething{#2}{\getparameters[\MPanimationvariables#1:][#2]}%
 \setgvalue{\??mpgraphic 
animation:#1}{\meta_handle_use_graphic{#1}{n,t}{#3}}}

\let\stopMPanimation\relax

\unexpanded\def\useMPanimation%
{\dosingleargument\use_meta_animation}

\def\use_meta_animation[#1]#2%
{\edef\c_MP_animation_frames{\getvalue{\MPanimationvariables#2:n}}%
 \startanimation[#1]
\dorecurse{\c_MP_animation_frames}

{\expanded{\frame{\useMPgraphic{animation:#2}{n=\c_MP_animation_frames,t=\recurselevel
 \stopanimation}

\protect

In the code, there are many “”.(\MPanimationvariables#1, {\??mpgraphic 
animation:#1})
I wonder it is correct or not.

Would you please check it?

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] follow up

2019-04-08 Thread Jeong Dal
Dear Otared,

I checked the both cases in the terminal and found that there is no problem in 
the installation.
It call “mtxrun" in right place depending on MKIV or LMTX.

Actually, files which doesn’t need  files in texmf-local folder are compiled 
well in both installations.
The problem is occurred when the file tried to read files in texmf-local 
folder. 
In that case, if it is compiled well in MKIV, then it had a problem in LMTX and 
vice versa.
I didn’t try to use a symbolic link.

Since I don’t have any problem to compile files under LMTX so far, I will use 
LMTX mainly.
So I’ll left my previous problem for a while.

Thank you for your help.

Best regards,
Dalyoung



> Subject: Re: [NTG-context] follow up
> Message-ID:  >
> Content-Type: text/plain; charset="utf-8"
> 
> Dear Dalyoung,
> 
> Actually when you have added 
> 
>   export 
> PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin
> 
> either in your engine file (using TeXShop), or when typesetting from the 
> Terminal, then you don't need to use mtxrun --autogenerate in order to 
> typeset a file with LuaMetaTeX: you can just have
> 
>   /context-osx-64/tex/texmf-osx-64/bin/context myfile.tex
> 
> in this way you can use any mode you wish.
> 
> Or have I misunderstood the issue you are asking about?
> 
> 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] follow up

2019-04-05 Thread Jeong Dal

Dear Hans and Otared,

Thank you for your help.
It is OK to use ConTeXt-LMTX in TeXShop and in Atom.

I’d like to compile it in LMTX mode or in MKIV mode without running "mtxrun 
—geneate” when I change mode.
Set path to absolute path of mtxrun in the setting doesn’t help.

Actually, it is not a problem of ConTeXt.

I’ll try it once more.

Thank you.

Best regards,

Dalyoung


> 2019. 4. 5. 오후 7:00, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: How to update LMTX? (Hans Hagen)
>   2. Re: follow up (Hans Hagen)
>   3. Re: (no subject) (Hans Hagen)
>   4. Re: follow up (Otared Kavian)
> 
> 
> --
> 
> Message: 1
> Date: Fri, 5 Apr 2019 00:20:32 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] How to update LMTX?
> Message-ID: <4ab6b1ec-62cd-90c8-0f54-b303f025c...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/5/2019 12:09 AM, Alan Braslau wrote:
>> On Thu, 4 Apr 2019 23:11:42 +0200
>> Hans Hagen  wrote:
>> 
>>> (we just don't use rsync)
>> 
>> As rsync can be problematic for some locations
>> (TCP port 873 blocked) without the ability to
>> tunnel.
> 
> indeed, especially in schools
> 
>> http is most often open.
> right and rsync is also very unix centric so on windows one has to use 
> cygwin (bah) or a mingw version (hard to get); also the rsync protocol 
> is sometimes updated so then you need matching versions
> 
> 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
> -
> 
> 
> --
> 
> Message: 2
> Date: Fri, 5 Apr 2019 00:28:19 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] follow up
> Message-ID: <8f908232-5516-b2a7-df76-51eba0c51...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/5/2019 12:17 AM, Jeong Dal wrote:
>> Dear Hans,
>> 
>> I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
>> But I have a problem to run it.
>> 
>> If it is OK to run a file in LMTX environment, then I got a following 
>> error when I run it in MKIV environment.
>> “I can’t fine a file …../defFonts.tex” even though it is there.
>> To resolve it, I run “mtxrun —generate” in MKIV.
>> But it invoke the same type error in LMTX.
>> Here are the command in Atom editor which I use to run it.
>> 
>> LMTX:
>> source /Users/graph/ConTeXtLMTX/tex/setuptex;
>> context {filePath}
>> MKIV:
>> source /Users/graph/ConTeXt/tex/setuptex;
>> context {filePath}
>> 
>> I may avoid it by adding “mtxrun —generate” before compiling it.
>> But it isn’t a good solution.
>> I think that there is a better way to do this.
>> Would you please tell me how to fix it or what is a better way?
> Does
> 
> /mtxrun --autogenerate --script context --autopdf {filePath}
> 
> work in your editor?
> 
> 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
> -
> 
> 
> --
> 
> Message: 3
> Date: Fri, 5 Apr 2019 00:37:27 +0200
> From: Hans Hagen 
> To: mailing list for ConTeXt users , Dmitry
>   Starostin 
> Subject: Re: [NTG-context] (no subject)
> Message-ID: <2a626d5a-4378-e1f9-2278-d1496f62f...@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/4/2019 9:30 PM, Dmitry Starostin wrote:
>> In terminal:
>> 
>> mtxrun --autogenerate --script context --autopdf 

Re: [NTG-context] follow up

2019-04-04 Thread Jeong Dal
Dear Hans,

I have installed both ConTeXt LMTX and ConTeXt MKIV side by side.
But I have a problem to run it.

If it is OK to run a file in LMTX environment, then I got a following error 
when I run it in MKIV environment.
“I can’t fine a file …../defFonts.tex” even though it is there.
To resolve it, I run “mtxrun —generate” in MKIV.
But it invoke the same type error in LMTX.
Here are the command in Atom editor which I use to run it.

LMTX:
source /Users/graph/ConTeXtLMTX/tex/setuptex; 
context {filePath} 
MKIV:
source /Users/graph/ConTeXt/tex/setuptex; 
context {filePath} 

I may avoid it by adding “mtxrun —generate” before compiling it.
But it isn’t a good solution.
I think that there is a better way to do this.
Would you please tell me how to fix it or what is a better way?

Thank you for reading.

Best regards,

Dalyoung


> 
> Hi,
> 
> We have worked furiously all day kicking-out extra code, and are pleased 
> to present a lean-and-mean version of luatex with your favorite ConTeXt. 
> Same good taste but only half the calories and a new name: luametatex 
> and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can 
> now stand on our own. Of course, good-old luatex and MkIV (as well as 
> MkII) will continue to coexist and be maintained. However, now you will 
> be able to run ConTeXt lmtx on your smart thermostat or on your 
> refrigerator for the Internet of Things - the dawn of a new era!
> 
> Stay tuned,
> 
> Alan and 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] follow up

2019-04-02 Thread Jeong Dal
Dear Hans and Alan,

First, thanks for your wonderful work!
I followed your instruction to install ConTeXt LMTX.
For the record, I wrote what I did.  Any comment is welcome to improve my 
installation.

- create directory: ConTeXtLMTX
- download install files.
- run “sudo sh ./install.sh”
- after a long lists, installation is done without errors.
The following settings were used:
  server   : 
lmtx.contextgarden.net,lmtx.pragma-ade.com,lmtx.pragma-ade.nl
  instance : install-lmtx
  extras   : 
  ownpath  : /Users/graph/ConTeXtLTMX
  platform : osx-64

- I copied my local files from “texmf-local” in ConTeXt MKIV and run mtxrun
- Recently, I am using Atom as an editor. I installed “process-pallete” packge 
and create a command as following:
source /Users/graph/ConTeXtLMTX/tex/setuptex; 
context {filePath} 
- At the first run, I got "permission denied” message.
/Users/graph/ConTeXtLTMX/tex/texmf-osx-64/bin/luametatex: Permission denied
- So I change the permission of luametatex as 755.
- After that I tested the sample file which is given in the installation.pdf
- Also there is no error when I compile my file which is good in ConTeXt MKIV.
- However, there is no simpleslide module. Of course, there is no 
"module/third” folder. Thus I couldn’t compile a file in screen mode.

I hope that I have done it right. I have a question.
Is it better to use"/Users/graph/ConTeXtLTMX/tex/texmf-osx-64/bin/mtxrun 
--autogenerate --script context --autopdf …" instead of “context {filePath}"?

Thank you for reading.

Best regards,

Dalyoung


> 
> Hi,
> 
> We have worked furiously all day kicking-out extra code, and are pleased 
> to present a lean-and-mean version of luatex with your favorite ConTeXt. 
> Same good taste but only half the calories and a new name: luametatex 
> and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can 
> now stand on our own. Of course, good-old luatex and MkIV (as well as 
> MkII) will continue to coexist and be maintained. However, now you will 
> be able to run ConTeXt lmtx on your smart thermostat or on your 
> refrigerator for the Internet of Things - the dawn of a new era!
> 
> Stay tuned,
> 
> Alan and 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] about the color of sidebar

2019-02-25 Thread Jeong Dal
Dear Mohammad Hossein Bateni,

> 2019. 2. 25. 오후 1:27, ntg-context-requ...@ntg.nl 작성:
> 
> I have never used the sidebar mechanism, but there is a "rulecolor" option
> in setupsidebar.  Maybe that's what you're looking for.
> 
> You can look up the commands and their options in "i-context.pdf" file.

Thank you for the reply.
I found the command “\setupsidebar”.

The following example is working well.
%%%
\definecolor[dGreen][r=0,g=.4,b=0]
%\setupsidebar[rulecolor=(.4green)]
\setupsidebar[rulecolor=dGreen]

\starttext

\startsidebar
\samplefile{knuth}
\stopsidebar

\stoptext
%

The reason of putting “\definecolor…” is that “[rulecolor=(.4green)]” is not 
working as in MetaFun, while [rulecolor=green] is working well.

Because of this, I can remove my definition of sidebar from my environment.

Thank you again.

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
___


[NTG-context] about the color of sidebar

2019-02-24 Thread Jeong Dal
Dear Hans,

> 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
> 
> On 2/24/2019 12:25 AM, mf wrote:
>> BTW \startsidebar ... \stopsidebar stopped working too.
> i'll upload a fix later today
> 
> Hans

It is good to know the commnad "\startsidebar … \stopsidebar” because I used 
the same style bar by defining a frame and overlay.
Here is  a question: Is it possible to change the color of the bar or any other 
options?
There is no commnad like “\setupsidebar” in the wiki.

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
___


Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-24 Thread Jeong Dal
Dear Rudolf,


> 2019. 2. 24. 오후 7:17, ntg-context-requ...@ntg.nl 작성:
> 
> If you convert your sp-sizes into pt-sizes (1pt = 65536sp) you will get:
> (45126287sp,31048991sp) = (688.5725pt,473.7700pt)
> 
> What do you think, are these pt-values ok to you? In my opinion they seem to 
> be too
> small. How are they calculated?

I know 72pt per 1 incn, but don’t know well about sp and sp to pt conversion.
I think that someone in this list will answer to you soon.

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] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Jeong Dal
Dear Rudolf,

It is working for me.
Using my figure, I got 
(45126287sp,31048991sp) 

(1372,944) 


As Hans said, either change ~ to some path or set the directory of 
externalfigure.

Best regards,

Dalyoung

> 2019. 2. 24. 오전 5:58, ntg-context-requ...@ntg.nl 작성:
> 
> I fear it doesn't work. I used the above code with a test-picture of mine
> (in .png and .jpg version) and got:
> 
> (0sp,0sp)
> (0,0)
> 
> Now I'm baffled what the explanation could be. Are "mill" or "cow" somehow
> specially prepared? I used:
> 
> ConTeXt  ver: 2018.03.16 22:20 MKIV beta  fmt: 2018.3.21 and
> getfiguredimensions[~/my-test-picture.png]
> 
> 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] baseline of outlined font

2019-02-16 Thread Jeong Dal
Dear Wolfgang,

Thank you for the solution.

BTW, what is the difference between “deeptextcommand” and “textcommand”?

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
___


[NTG-context] baseline of outlined font

2019-02-16 Thread Jeong Dal
Dear all,

Recently, I used outlined font described in MetaFun for titles.
But the baselines of the number and the title of chapter are different.
What is wrong in the following code?

Thank you for reading.

Best regards,

Dalyoung


\definefont[BigFontOne][NotoSansCJKkr-Bold sa 4]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]

\startuseMPgraphic{outlineT}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .75white)
  (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick});
\stopuseMPgraphic

\define[1]\titleOutline{\useMPgraphic{outlineT}{tt="#1"}}

\setuphead[chapter,title]
 [deeptextcommand=\titleOutline,
  color=BigColorOne,
  style=\BigFontOne,
  numbercommand=\titleOutline,
  number=yes]

\setupbodyfont[rm, 11pt]

\starttext

\chapter{First}
\samplefile{knuth}

\startchapter[title={Chapter Title}]
   \samplefile{knuth}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
Dear Wolfgang,

>> I couldn’t figure out what relation is there between Theorems and Exam.
> The numbers are correct with the latest beta.
> 
> mtx-context | current version: 2019.02.10 17:43
> 

You are right. The example which I sent last time had no problem in numbers.
I checked it by adding definitions one by one and finally found the reason.

One line in my environment file cause the problem. 
\setupenumeration[alternative=serried,width=broad,distance=0.5em]

Also, I found very strange phenomena that it depends on the order of appearance 
of that line.
That is, it is OK if the command \setupenumeration… before the 
\defineenumeration[Exam], but if the command \setupenumeration… after the 
\defineenumeration[Exam] cause the problem.

After change the order of appearance such a commnad in my environment file, the 
numbers of Exam are correct.  Now, I have to find the other possible changes.

Please run the following code changing the location of the commnad 
“\setupenumeration…”.

Thank you so much.

Best regards,

Dalyoung

 general setting for enumerations:Exam,Theorem,Lemma,Definition
\setupenumeration[alternative=serried,width=broad,distance=0.5em]
%

\setupwhitespace[medium]

\defineenumeration[Exam]
   [text={\white\translate[en=Example, kr=예제]},
   numbercommand={\inframed[corner=round, 
framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, 
background=color,backgroundcolor=blue]},   %height=1.3em,
title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
before={\blank},
after=\blank]

\setupbodyfont[rm, 11pt]

\starttext

\dorecurse{3}{
\startchapter[title={Chapter Title}]

\startExam
We call it \index{OneTwo}{\bf OneTwo}
\stopExam

\startExam
We call it \index{OneTwo}{\bf OneTwo}
\stopExam
\stopchapter
}

\page
\placeindex

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
Dear all,

Since the customized Theorem structure is already complicate, I just extract 
\index from the title as following:

\startTheorem{\bf title of theorem}
\index{title of theorem}
bla bla bla
\stopTheorem

In this way, I cleared the message "[entry not flushed]” in the indices.
There may be a better way.

However, I couldn’t locate what hindered the resetting of counter Exam yet.
I have to check the definition in the environment file one by one.

Thank you for reading.

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
___


[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
Dear all,

I just found that the counter problem has no relation with theorems.
It happened without theorems while some examples worked correctly.
There may be another problem in my definitions in environment file.
I’ll do more tests.

Thank you for reading.

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
___


[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
Dear all,

I used a customized Theorem structure which is made by the help of experts in 
this list.
I have two questions.

1. Recently I added titles of theorems which was indexed and found a strange 
error message  "[entry not flushed]” in the list of index. 
Please run the following sample code?

%%
\defineframed
  [MyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{MyFrame}
picture p ; numeric o ; path a, b ; pair c ;
%p := textext.rt("\FunnyFramed{\enumerationparameter{text} 
\convertedcounter[Theorem]}") ;
   p := textext.rt("\wrappedconstruction{\MyFramed{\currentconstructiontext}}") 
;
%   p := textext.rt("\FunnyFramed{\currentconstructiontext}") ;
o := BodyFontSize ;
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic

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

\defineframedtext
  [MyText]
  [frame=off,
   background=MyFrame,
   before={\blank[line,halfline]},
   after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineenumeration[Theorem]
 [alternative=empty,
  title=yes,
  titleleft=,
  titleright=,
  text={\translate[en=Theorem, kr=정리]},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
%   alternative=command,
   before=\startMyText,
   after=\stopMyText]

\defineenumeration[Lemma]
  [alternative=empty,
  title=no,
  text={\translate[en=Lemma, kr=보조정리]},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   counter=Theorem,
   before=\startMyText,
   after=\stopMyText]

\defineenumeration[Exam]
   [text={\white\translate[en=Example, kr=예제]},
   numbercommand={\inframed[corner=round, 
framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, 
background=color,backgroundcolor=blue]},   %height=1.3em,
title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
before={\blank},
after=\blank]

\setupbodyfont[rm, 11pt]

\starttext

\startchapter[title={First}]
\startTheorem
This is the first Theorem
\stopTheorem

\startExam
We call it \index{OneTwo}{\bf OneTwo}
\stopExam

\startTheorem{\index{OneOne}{\bf OneOne}}
This is the first Theorem
\stopTheorem

\startExam
We call it \index{OneTwo}{\bf OneTwo}
\stopExam
\stopchapter

\startchapter[title={Second}]
   \startTheorem{\index{TwoOne}{\bf TwoOne}}
   This is the first Theorem
   \stopTheorem

   \startExam
   We call it \index{Two 3}{\bf Two 3}
   \stopExam

   \startExam
   We call it \index{TwoTwo}{\bf TwoTwo}
   \stopExam
\stopchapter

\startchapter[title={Third}]
   \startExam
   We call it \index{Three 1}{\bf Three 1}
   \stopExam

   \startTheorem{\index{ThreeOne}{\bf ThreeOne}}
   This is the first Theorem
   \stopTheorem

   \startExam
   We call it \index{ThreeThree}{\bf ThreeThree}
   \stopExam

\stopchapter

\page
\placeindex

\stoptext
%%

How to get rid of the message [entry not flushed]?

2.  Also, the numbers of examples is not reset even though the new chapter 
began, 
for example, Example 2.3, 2.4, 3.5, 3.6 etc.
However,  I couldn’t make the same error with this code,
It never happened without theorems, but it appeared when I added \startTheorem 
in my book.
So, I add "\setcounter[Exam][0]” before the \startchapter everytime.
I couldn’t figure out what relation is there between Theorems and Exam.

Thank you for reading.

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] about vertical alignment

2019-02-10 Thread Jeong Dal
Dear Wolfgang,

>   \startitemize[n][stopper=),width=0pt]
> 
> You have to set the width for the item symbol to 0pt because it’s now part of 
> the table.

It works perfectly. 
A short argument "width=0pt” solves my problem.

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
___


[NTG-context] about vertical alignment

2019-02-08 Thread Jeong Dal
Dear all,

I used \itemtag in \starttabulate to make columns in itemization for some 
reasons.
Actually, it works fine.

For more detailed alignment, I’d like to ask about the fine tuning of vertical 
alignment.

Here is an MWS.

%%%
\showframe
\starttext

\startitemize[n]
\item Prove the following identity.
   \startitemize[n][stopper=)]
   \item ${\displaystyle \int \tan^n x  \,dx=\frac{\tan^{n-1}x}{n-1}-\int 
\tan^{n-2}x \,dx}$ ($n>1$)
   \item  ${\displaystyle \int \sec^n x  \,dx=\frac{\sec^{n-2}x \tan 
x}{n-1}+\frac{n-2}{n-1}
   \int \sec^{n-2}x \,dx}$  $(n>1)$
   \stopitemize
\item Integration
   \startitemize[n][stopper=)]
   \starttabulate[||lw(.42\textwidth)||lw(.42\textwidth)|]
   \NC\itemtag\NC ${\displaystyle \int (2x+3)e^{-x}  \,dx}$
   \NC\itemtag\NC  ${\displaystyle \int x^2e^{x}  \,dx}$ \NC\NR\TB[halfline]
   \NC\itemtag\NC  ${\displaystyle \int x \cos x  ~d x }$
   \NC\itemtag\NC  ${\displaystyle \int x^2 \cos 2x  ~d x }$ \NC\NR\TB[halfline]
   \stoptabulate\stopitemize
\stopitemize
\stoptext


In the output, the second itemization number is aligned at the starting point 
of “Prove …”.
But the second itemization number of \itemtag is not at the starting point of 
“Integration…”
So, it looks a little bit awkward.
Of course, it is because of "lw(.42\textwidth)…” things.

Is there a method to make the starting point of \itemtag aligned to that of the 
“Integration…”?

Thank you for reading.

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
___


[NTG-context] outlined font using MetaFun

2019-02-08 Thread Jeong Dal
Dear all,

The following code which is borrowed from MetaFun manual is working nicely.

%%
\setupMPvariables[outlineT][tt="Hello"]
\startuseMPgraphic{outlineT}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .5white)
  (withcolor .625blue withpen pencircle scaled .2pt)
  scaled 3 ;
\stopuseMPgraphic

\starttext
\useMPgraphic{outlineT}
\stoptext


However, the next example is not working(without \setupMPvariables[]).

%%%
\startuseMPgraphic{outlineT}{tt}
  draw outlinetext.b (\MPvar{tt})
  (withcolor .5white)
  (withcolor .625blue withpen pencircle scaled .2pt)
  scaled 3 ;
\stopuseMPgraphic

\starttext
\useMPgraphic{outlineT}{tt=“Hello”}
\stoptext


So, the trial to use above code for chapter title as following didn’t work 
either.

\startuseMPgraphic{outlineT}{tt}
string tt;
  draw outlinetext.b (\MPvar{tt})
  (withcolor .5white)
  (withcolor .625blue withpen pencircle scaled .2pt)
  scaled 3 ;
\stopuseMPgraphic
\define[1]\myTest{\useMPgraphic{outlineT}{#1}}

\setuphead[chapter]
 [textcommand=\myTest,
 numbercommand=\myTest,
number=yes]

\starttext
\startchapter[title={First chapter}]

 Chapter

\stopchapter
\stoptext
%%%

Is there any way to make it work?

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
___


Re: [NTG-context] About the macro path intersectionpoint path with Metapost

2019-02-03 Thread Jeong Dal
Dear Fabrice,

Metapost is great for drawiang figures  but it is not easy for me  to use it.

>  b:= fullcircle scaled 2cm shifted (0,-3cm);
>  pair A, B ;
>  A:= p intersectionpoint r ;
>  B:= p intersectionpoint r ;
>  path u ;
>  u:= A--B--cycle ;

 A and B are the same point. One of “r” should be changed to “q” or “b”.
Then you can have a line.
I also made similar errors many times too.

Btw, is there any reason to add “—cycle”?

Enjoy the drawing.

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
___


[NTG-context] about the location of subscript of integral sign

2019-02-01 Thread Jeong Dal
Hi,

Four days ago, I updated the standalone ConTeXt and found a strange behavior  
in the integral sign.
The number at the bottom is far from the integral sign while the number at the 
top is OK.
I don’t know when it began since I didn’t use \int for a few month. 

Here is a small sample.
In the output, you can see the location of “a” is too far from the integral 
sign.
Here is the beginning of log file.

This is LuaTeX, Version 1.09.0 (TeX Live 2019/dev) 
 system commands enabled.
open source > level 1, order 1, name 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.01.25 20:06 MKIV beta  fmt: 2019.1.28  
int: english/english
system  > 
***

Best regards,

Dalyoung

%
\starttext

\startformula
\int_a^b f(x)\ dx
\stopformula

$\displaystyle \int_a^b f(x)\ dx$ and $ \int_a^b f(x)\ dx$ 

\setupmathematics[integral=nolimts]
   \startformula
   \int_a^b f(x)\ dx
   \stopformula

   $\displaystyle \int_a^b f(x)\ dx$ and $ \int_a^b f(x)\ dx$

\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] MetaFun: how to check the number of arguments

2019-01-16 Thread Jeong Dal
Dear Hans,

> vardef textlength(text t) =
>save n ; n := 0 ;
>for i = t :
>   n := n + 1 ;
>endfor;
>n
> enddef;
> 

Thank you for a  good method!
It can be used in another program.

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] MetaFun: how to check the number of arguments

2019-01-15 Thread Jeong Dal
Dear Hans,

Thank you for a solution.

In my memory, it is possible to check the argument in Lua, so I hope that there 
is a similar method in MetaFun.
It may be easier to draw grid using lines instead of squares.

Thank you again.

Best regards,

Dalyoung

> 2019. 1. 16. 오전 2:04, Hans Hagen  작성:
> 
> On 1/14/2019 10:44 PM, Jeong Dal wrote:
>> Dear all,
>> In the following sample, it draws squares with label which is given.
>> I’d like to know how to check the number of elements in the second argument?
>> If it is 0, then I just draw grids only.
>> Thank you for reading.
>> Best regards,
>> Dalyoung
>> 
>> \startbuffer[defs]
>> def drawGridF (expr nb) (text s) =
>>  p := unitsquare scaled wu;
>>  n:= 0;
>>  for m = s:
>>  i:= n mod nb;
>>  j:= n div nb;
>>  pic := image (draw p; label(textext(m), center p); );
>>  draw pic shifted (i*wu, j*wu);
>>  n:= n+ 1;
>>  endfor;
>> enddef;
>> \stopbuffer
>> \startbuffer[3x3b]
>> wu := \MPvar{width};
>> drawGridF (3)  (1,2,3,0,1, 1,4,5,8);
>> \stopbuffer
>> \starttext
>> \setupMPvariables[width=30pt]
>> \processMPbuffer[defs,3x3b]
>> \stoptext
> 
> 
> \startbuffer[defs]
> def drawGridF (expr nb) (text s) =
>path p ;
>picture pic ;
>numeric n;
>   p := unitsquare scaled wu;
>   n:= 0;
>   for m = s:
>   i:= n mod nb;
>   j:= n div nb;
>   pic := image (draw p; label(textext(m), center p); );
>   draw pic shifted (i*wu, j*wu);
>   n:= n+ 1;
>   endfor;
>if n == 0 :
>draw textext("A grid!");
>fi ;
> enddef;
> \stopbuffer
> 
> \startbuffer[3x3b]
> wu := \MPvar{width};
> drawGridF (3)  (1,2,3,0,1, 1,4,5,8);
> currentpicture := currentpicture shifted (bbwidth(currentpicture),0);
> drawGridF (3)  ();
> \stopbuffer
> 
> \setupMPvariables[width=30pt]
> \processMPbuffer[defs,3x3b]
> 
> 
> 
> 
>>> 2019. 1. 14. 오후 8:00, ntg-context-requ...@ntg.nl 작성:
>>> 
>>> Send ntg-context mailing list submissions to
>>> ntg-context@ntg.nl
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> https://mailman.ntg.nl/mailman/listinfo/ntg-context
>>> or, via email, send a message with subject or body 'help' to
>>> ntg-context-requ...@ntg.nl
>>> 
>>> You can reach the person managing the list at
>>> ntg-context-ow...@ntg.nl
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of ntg-context digest..."
>>> 
>>> 
>>> Today's Topics:
>>> 
>>>   1. Re: Manipulating the left blank page when chapter starts on
>>>  the right page (Wolfgang Schuster)
>>>   2. Re: Footnotes in float combinations missing in output
>>>  (Wolfgang Schuster)
>>>   3. Re: Manipulating the left blank page when chapter starts on
>>>  the right page (Jan U. Hasecke)
>>> 
>>> 
>>> --
>>> 
>>> Message: 1
>>> Date: Sun, 13 Jan 2019 16:56:40 +0100
>>> From: Wolfgang Schuster 
>>> To: mailing list for ConTeXt users , "Jan U.
>>> Hasecke" 
>>> Subject: Re: [NTG-context] Manipulating the left blank page when
>>> chapter starts on the right page
>>> Message-ID: 
>>> Content-Type: text/plain; charset=utf-8; format=flowed
>>> 
>>> Jan U. Hasecke schrieb am 12.01.19 um 22:08:
>>>> Hi Aditya,
>>>> 
>>>> Am 12.01.19 um 20:11 schrieb Aditya Mahajan:
>>>>> On Sat, 12 Jan 2019, Jan U. Hasecke wrote:
>>>>> 
>>>>>> Hi all,
>>>>>> 
>>>>>> in my document \startchapter and \starttitle starts a new chapter on the
>>>>>> right (odd) page. So sometimes, there is a blank even page just before a
>>>>>> new chapter.
>>>>>> 
>>>>>> I would like to manipulate this blank even page.
>>>>>> 
>>>>>> There are several things I would like to do, eg. having no headers and
>>>>>> footers, setting the background color to a named color, placing an image
>>>>>> or some graphics on the page.
>>>>>> 
>>>>>> Is there a way to define such a page, name it and ca

[NTG-context] MetaFun: how to check the number of arguments

2019-01-14 Thread Jeong Dal
Dear all,

In the following sample, it draws squares with label which is given.

I’d like to know how to check the number of elements in the second argument?
If it is 0, then I just draw grids only.

Thank you for reading.
Best regards,

Dalyoung


\startbuffer[defs]
def drawGridF (expr nb) (text s) = 
p := unitsquare scaled wu;
n:= 0;
for m = s:
i:= n mod nb;
j:= n div nb;
pic := image (draw p; label(textext(m), center p); );
draw pic shifted (i*wu, j*wu);
n:= n+ 1;
endfor;
enddef;
\stopbuffer

\startbuffer[3x3b]
wu := \MPvar{width};
drawGridF (3)  (1,2,3,0,1, 1,4,5,8);
\stopbuffer

\starttext
\setupMPvariables[width=30pt]
\processMPbuffer[defs,3x3b]
\stoptext

> 2019. 1. 14. 오후 8:00, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Manipulating the left blank page when chapter starts on
>  the right page (Wolfgang Schuster)
>   2. Re: Footnotes in float combinations missing in output
>  (Wolfgang Schuster)
>   3. Re: Manipulating the left blank page when chapter starts on
>  the right page (Jan U. Hasecke)
> 
> 
> --
> 
> Message: 1
> Date: Sun, 13 Jan 2019 16:56:40 +0100
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , "Jan U.
>   Hasecke" 
> Subject: Re: [NTG-context] Manipulating the left blank page when
>   chapter starts on the right page
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Jan U. Hasecke schrieb am 12.01.19 um 22:08:
>> Hi Aditya,
>> 
>> Am 12.01.19 um 20:11 schrieb Aditya Mahajan:
>>> On Sat, 12 Jan 2019, Jan U. Hasecke wrote:
>>> 
 Hi all,
 
 in my document \startchapter and \starttitle starts a new chapter on the
 right (odd) page. So sometimes, there is a blank even page just before a
 new chapter.
 
 I would like to manipulate this blank even page.
 
 There are several things I would like to do, eg. having no headers and
 footers, setting the background color to a named color, placing an image
 or some graphics on the page.
 
 Is there a way to define such a page, name it and call it in
 \startchapter so that it is placed on the left side.
>>> See https://tex.stackexchange.com/q/457428/323
>> Thanks a lot, but I wasn't looking for a way to just delete page numbers
>> but to style the empty page in arbitrary ways.
>> 
>> Maybe it is better to do this manually.
>> 
>> I would let chapter open on even pages too and just insert a styled page
>> by hand.
> 
> Here is a example which shows how you can change the background color
> of a empty page before the chapter title.
> 
> \setuppagenumbering
>   [alternative=doublesided]
> 
> \startsetups [chapter:before]
>   \doifoddpageelse
> {}
> {\pushbackground[page]
>  \setupbackgrounds[page][background=color,backgroundcolor=black]
>  \page[empty,right]
>  \popbackground}
> \stopsetups
> 
> \setuphead
>   [chapter]
>   [page=yes,
>before=\directsetup{chapter:before}]
> 
> \starttext
> 
> \startchapter[title={Knuth}]
> \dorecurse{10}{\samplefile{knuth}}
> \stopchapter
> 
> \startchapter[title={Zapf}]
> \dorecurse{10}{\samplefile{zapf}}
> \stopchapter
> 
> \startchapter[title={Ward}]
> \dorecurse{10}{\samplefile{ward}}
> \stopchapter
> 
> \stoptext
> 
> Wolfgang
> 
> 
> 
> --
> 
> Message: 2
> Date: Sun, 13 Jan 2019 21:06:42 +0100
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , Lars
>   
> Subject: Re: [NTG-context] Footnotes in float combinations missing in
>   output
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Lars schrieb am 09.01.19 um 23:01:
>> Hi there, hi Hans,
>> 
>> I just want to let you know that footnotes insterted in 
>> float-combinations don't get rendered properly, i. e. only the last 
>> footnote is placed in the output. MWE:
>> 
>> \starttext
>>   \startplacefigure[title={OuterCap\footnote{Outer footnote}}]
>> 
>> \startfloatcombination[nx=3]
>> \placefigure{Fnote1\footnote{Hello}}{\externalfigure[cow][width={.2\textwidth}]}
>> \placefigure{Fnote2\footnote{small}}{\externalfigure[cow][width={.2\textwidth}]}
>> \placefigure{Fnote3\footnote{world}}{\externalfigure[cow][width={.2\textwidth}]}
>> \stopfloatcombination
>> 
>>   \stopplacefigure
>> \stoptext
> 
> Not very nice but the following 

Re: [NTG-context] two different outputs.

2019-01-01 Thread Jeong Dal
Dear Wolfgang,

Thank you for the solution at the new year’s day.

Your sample works very well. It is what I want.

I copied it into my file and run it, then I got a strange output.
Everything is OK except outer effect text is written twice.
I don’t know what makes it write twice.
I have two more questions.
1. I’d like to put a title only in a page using the following. How to put a 
title as center aligned?
%
\page[yes]
\dontleavehmode\blank[5cm]

\title{Why, Math?}
\blank[big]
\midaligned{\fancy Why do we learn mathematics?}
\vfill
\midaligned{\tfb Institution}
\blank[2cm]
\page


2. Is there a way to remove a pagenumber from the title page?

Thank you again.
Best regards,

Dalyoung


Here is the simplified code:


%\startMPenvironment
%\stopMPenvironment

%\environment defCommon
%\environment defBook
%\usemodule[m-matrix]
%\startluacode
%mtx = moduledata.matrix
%\stopluacode

\setuplanguage[kr][patterns=us]
\mainlanguage[kr]
\setscript[hangul]

%\usetypescriptfile[type-hcrlvt]
%\usetypescript[HcrFont] % As set in your typescript file
%\definefontfamily [Myface] [mm][Neo Euler]

\definefont[fancy][Zapfino at 24pt]
\definefont[GreekA][MinionPro-MediumIt Regular]

\definefontfeature[kr][script=hang,language=kor,mode=node,analyze=yes]
%\setupbodyfont[Myface, rm, 11pt]
\setupbodyfont[pagella]
%\setuppagenumbering[state=stop]
\setupexternalfigures[directory={./figures, ./funmath/WhyMath/whyMathSlide,}]
\setupindenting[medium, yes]

\definefont [BigFontOne] [\classfont{notosanscjkkr}{Bold} sa 4]
\definecolor [BigColorOne] [r=.86,g=.850,b=.54]
\define[1]\TitlePage
 {\rlap{\offset[x=2pt,y=2pt]{\color[blue]{\effect[outer]{#1%
  \effect[inner]{#1}}
\setuphead
 [title]
 [deeptextcommand=\TitlePage,
  color=BigColorOne,
  style=BigFontOne,
  incrementnumber=list]

\startproduct Danggok

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber][][numbers]
\definestructureconversionset[backpart:pagenumber][][numbers]

\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[alternative=singlesided,number=]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setuppagenumber[number=2]
\setuppagenumbering[alternative=singlesided]
\stopsectionblockenvironment

%\startsectionblockenvironment[backpart]
%\setupuserpagenumber[numberconversion=romannumerals]
%\setuppagenumbering[alternative=doublesided]
%\setuppagenumber[number=1]
%\stopsectionblockenvironment

\setupcombinedlist[content][list={title,chapter}]%,section,subsection}]
\setuplist[chapter, title][width=5mm, style=,textstyle={\ss\bf 
}]%,after={\blank[preference]}]
\setuplist[section][width=10mm, style=,textstyle=\ss,after={\blank[preference]}]
\setuplist[subsection][style=,textstyle={\ss}]
%
\startfrontmatter
\title{Contents}
\placelist[chapter,title]
\stopfrontmatter

\startbodymatter
\title{First}
\page
\title{Second}
\page
%   \component ./funmath/whyMath/whyMathH
%   \component ./Mathematics/TopicsInMath/Crypto/CryptoH
%   \component ./funmath/algorithm/algorithmH
%   \component ./funmath/Problems/squareH
%   \component ./funmath/Tiling/tilingH
\stopbodymatter

%\startbackmatter
%\stopbackmatter

\stopproduct
 

> 2019. 1. 2. 오전 5:13, Wolfgang Schuster  작성:
> 
> Jeong Dal schrieb am 01.01.19 um 01:33:
>> Dear all,
>> First, Happy new year!
>> I tried to make a style of title as following. The first code creates the 
>> title as I wanted, but the second which uses “\title” creates the title 
>> strange. they are almost same code.
>> To include it in the list of contents, I use “\title”.
> 
> \setuphead [title] [incrementnumber=list]
> 
>> Is there a way to make output as the first one and include it in the list of 
>> contents?
> 
> You have to apply your command to the deeptextcommand key.
> 
>  begin example
> 
> % \definefontfamily [mainface] [ss] [Noto Sans CJK KR]
> %
> % \setupbodyfont [mainface]
> %
> % \definefont [BigFontOne]   [SansBold sa 4]
> 
> \definefontfamily [notosanscjkkr] [ss] [Noto Sans CJK KR]
> 
> %\definefont [BigFontOne] [file:notosanscjkkrbold*default sa 4]
> \definefont [BigFontOne] [\classfont{notosanscjkkr}{Bold} sa 4]
> 
> \setupbodyfont [pagella]
> 
> \definecolor [BigColorOne] [r=.86,g=.850,b=.54]
> 
> \define[1]\TitlePage
>  {\rlap{\offset[x=2pt,y=2pt]{\color[blue]{\effect[outer]{#1%
>   \effect[inner]{#1}}
> 
> \setuphead
>  [title]
>  [deeptextcommand=\TitlePage,
>   color=BigColorOne,
>   style=BigFontOne,
>   incrementnumber=list]
> 
> \starttext
> 
> \title{Contents}
> 
> \placelist[chapter,title]
> 
> \title{Title}
> 
> \title{타이틀}
> 
> \stoptext
> 
>  end example
> 
> Wolfgang
> 

[NTG-context] two different outputs.

2018-12-31 Thread Jeong Dal
Dear all,

First, Happy new year!

I tried to make a style of title as following. The first code creates the title 
as I wanted, but the second which uses “\title” creates the title strange. they 
are almost same code.
To include it in the list of contents, I use “\title”.
Is there a way to make output as the first one and include it in the list of 
contents?
Thank you for reading.
Best regards,

Dalyoung


\definefont[BigFontOne][NotoSansCJKkr-Bold sa 4]
\definefont[BigFontTwo][NotoSansCJKkr-Bold sa 3]
\definefont[BigFontThree][NotoSansCJKkr-Bold sa 1.5]%[YoonGothicB sa 1.5]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\define[1]\TitlePage
{\begingroup
\defineoverlay[back][{\BigFontOne \blue  \starteffect[outer]#1\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
{\kern-3pt{\BigFontOne\BigColorOne  \starteffect[inner]#1\stopeffect}}
\endgroup}

\setuphead[title]
[textcommand=\TitlePage,
%color=BigColorTwo,
%style=\BigFontTwo,
%after={\blank[2cm]}]
] %number=yes]

 \starttext
\defineoverlay[back][{\BigFontOne \blue  
\starteffect[outer]Title\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
{\kern-3pt{\BigFontOne\BigColorOne  
\starteffect[inner]Title\stopeffect}}


\title{Title}

\defineoverlay[back][{\BigFontOne \blue  \starteffect[outer]타이틀\stopeffect}]%
\framed[frame=off,background=back,align={hilo}]
{\kern-3pt{\BigFontOne\BigColorOne  \starteffect[inner]타이틀\stopeffect}}

\title{타이틀}
\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] How to adjust the sistance between a letter and subscript

2018-11-22 Thread Jeong Dal
Dear Huseyin,

Thank you. It works well.
And, I didn’t see any side effect either.

Thanks again.

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
___

[NTG-context] How to adjust the sistance between a letter and subscript

2018-11-22 Thread Jeong Dal
Hi,

In the following example, the distance between a letter ${\cal T}$ and its 
subscript is too big.
It is not an error, but it looks a little bit strange.

How to reduce  it for a good looking?

Thank you.

Best regards,

Dalyoung

*
\starttext

Compare the distance between a letter and its subscript of the following 
example.

\startformula
T_X \quad {\cal T}_X\quad   T_Y \quad {\cal T}_Y
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] ntg-context Digest, Vol 172, Issue 2

2018-10-01 Thread Jeong Dal
Dear Aditya,

Thank you for the reply.

> 
> As I said, I fixed the post.

I see why I have no problem.
Thank you for sharing your nice samples.

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] xtables with lua

2018-09-30 Thread Jeong Dal
Dear Otared,

What do you mean “does not typeset correctly as expected”?
I copied and tested the last example and got the result without error.
One problem is that the vertical alignment is not centered as the example of 
Aditya’s.
Would you please tell me what I miss? 

Thank you.

Best regards,

Dalyoung

 
> 
> I wanted to make an observation about the last example in that page, which 
> does not typeset correctly as expected, and also it does not work well if one 
> wanted to make a multiplication table instead of the addition table of your 
> examples. I think the following modification might be necessary (here for the 
> multiplication table):
> 

___
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] Metafun: Finding intersection between characters

2018-09-28 Thread Jeong Dal
Dear Hans,

Thank you so much for a new code which works fine.
It can be used for the title of chapters.
I will play with this to make a nice title.

Thank you again.

Best regards,

Dalyoung


> 2018. 9. 28. 오전 12:43, Hans Hagen  작성:
> 
> On 9/27/2018 5:06 PM, Jeong Dal wrote:
>> Dear Hans,
>> First, I appreciate for your concerning and sharing your valuable time on 
>> this matter.
>> I think that there is no one who has an interest in outlining Korean letters.
>> It is my self-interest to use outlined text for titles of chapters.
>> As we know, Korean letters are different from English letters. In one glyph, 
>> there are several parts, which makes the job difficult.
> 
> Here's some more to play with ...
> 
> \definefontfeature
> [korean-base]
> [mode=node,
>  script=hang,
>  language=kor]
> 
> \definefontfeature[outlined-10]
> [effect={effect=outline,width=0.10,auto=yes}]
> \definefontfeature[outlined-20]
> [effect={effect=outline,width=0.20,auto=yes}]
> \definefontfeature[outlined-30]
> [effect={effect=outline,width=0.30,auto=yes}]
> 
> \definefont[KoreanFontA][hanbatanglvt*korean-base @ 45pt]
> \definefont[KoreanFontB][hanbatanglvt*korean-base,boldened-10 @ 45pt]
> \definefont[KoreanFontC][hanbatanglvt*korean-base,boldened-20 @ 45pt]
> \definefont[KoreanFontD][hanbatanglvt*korean-base,boldened-30 @ 45pt]
> \definefont[KoreanFontE][hanbatanglvt*korean-base,outlined-10 @ 45pt]
> \definefont[KoreanFontF][hanbatanglvt*korean-base,outlined-20 @ 45pt]
> \definefont[KoreanFontG][hanbatanglvt*korean-base,outlined-30 @ 45pt]
> 
> \starttext
> 
>   \startlines
>   \KoreanFontA 랏논왕닭박서
>   \KoreanFontB 랏논왕닭박서
>   \KoreanFontC 랏논왕닭박서
>   \KoreanFontD 랏논왕닭박서
>   \KoreanFontE 랏논왕닭박서
>   \KoreanFontF 랏논왕닭박서
>   \KoreanFontG 랏논왕닭박서
>   \stoplines
> 
> \stoptext
> 
> This is probably easier to configure when you use titles.
> 
> 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] Metafun: Finding intersection between characters

2018-09-27 Thread Jeong Dal
Dear Hans,

First, I appreciate for your concerning and sharing your valuable time on this 
matter.
I think that there is no one who has an interest in outlining Korean letters.
It is my self-interest to use outlined text for titles of chapters. 

As we know, Korean letters are different from English letters. In one glyph, 
there are several parts, which makes the job difficult.

Thank you so much.

Best regards,

Dalyoung




> 2018. 9. 27. 오후 5:49, Hans Hagen  작성:
> 
> On 9/26/2018 11:38 PM, Jeong Dal wrote:
>> Dear Hans,
>>> 2018. 9. 26. 오후 9:24, Hans Hagen >> <mailto:j.ha...@xs4all.nl>> 작성:
>>> 
>>> On 9/26/2018 2:14 PM, Jeong Dal wrote:
>>>> Dear Hans,
>>>> I tested for more characters and found an interesting fact.
>>>> If the first consonant and the vowels are connected in a glyph, then the 
>>>> outlining works OK, otherwise, it makes outline of the first consonant 
>>>> only.
>>> 
>>> you need to send a file not embedded .. otherwise the mail agent will apply 
>>> magic to korean
>>> 
>>> 
>> I didn’t think of it.
>> I attached a sample file.
> attached
> 
> 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] Metafun: Finding intersection between characters

2018-09-26 Thread Jeong Dal
Dear Hans,2018. 9. 26. 오후 9:24, Hans Hagen <j.ha...@xs4all.nl> 작성:On 9/26/2018 2:14 PM, Jeong Dal wrote:Dear Hans,I tested for more characters and found an interesting fact.If the first consonant and the vowels are connected in a glyph, then the outlining works OK, otherwise, it makes outline of the first consonant only.you need to send a file not embedded .. otherwise the mail agent will apply magic to koreanI didn’t think of it.I attached a sample file.Thank you for your concern.Best regards,Dalyoung

outlineKorean.tex
Description: TeX 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] Metafun: Finding intersection between characters

2018-09-26 Thread Jeong Dal
Dear Hans,

I tested for more characters and found an interesting fact.
If the first consonant and the vowels are connected in a glyph, then the 
outlining works OK, otherwise, it makes outline of the first consonant only.

Here is a MWE.

Thank you.
Best regards,

Dalyoung

%
\definefontfeature
 [korean-base]
 [goodies=hanbatanglvt,
  colorscheme=default,
  mode=node,
  script=hang,
  language=kor]

\definefont[KoreanFont][hanbatanglvt*korean-base]

\starttext

\startMPdefinitions
   string KoreanColors[] ;

   KoreanColors[1] := "darkred" ;
   KoreanColors[2] := "darkgreen" ;
   KoreanColors[3] := "darkblue" ;
   KoreanColors[4] := "darkyellow" ;
   KoreanColors[5] := "darkgray" ;

   def KoreanOutline(expr txt) =
   picture p ; p := outlinetext.p(txt) ;
   numeric n ; n := 0 ;
   string old, new ; old := "" ;
   for i within p :
   new := prescriptpart i ;
   if (new = "") or (new <> old) :
   old := new ;
   n := n + 1 ;
   if unknown KoreanColors[n] :
   n := 1 ;
   fi ;
   fi ;
   draw pathpart i
   withpen pencircle scaled 1/10
   withcolor KoreanColors[n] ;
   endfor ;
   enddef ;
\stopMPdefinitions
   % entered as three characters: ᄅ  ᅡ  ᆺ (mail collapses)
\startMPpage
   KoreanOutline("\KoreanFont 랏") ;
\stopMPpage
\startMPpage
   KoreanOutline("\KoreanFont 논") ;
\stopMPpage
\startMPpage
   KoreanOutline("\KoreanFont 왕") ;
\stopMPpage
\startMPpage
   KoreanOutline("\KoreanFont 닭") ;
\stopMPpage
\startMPpage
   KoreanOutline("\KoreanFont 박") ;
\stopMPpage
\startMPpage
   KoreanOutline("\KoreanFont 서") ;
\stopMPpage

%

> 2018. 9. 26. 오후 7:10, Hans Hagen  작성:
> 
> On 9/26/2018 1:48 AM, Jeong Dal wrote:
>> Dear Hans,
>> First, it is great to know a new method of drawing an outlined font!
>>  I have applied it to Korean fonts. As you know, every Korean character is 
>> composed with “consonant+vowel(+consonant)” type. If consonant and vowel are 
>> connected (for example, “호”), then it draws correctly, otherwise (for 
>> example, “하”)  it draws only consonant.
>> Is there a way to count all the paths in a character(even if it is not 
>> connected)?
> I assume that you want to identify the upto 3 snippets in a glyph so what you 
> can do is loop over a picture.
> 
> \definefontfeature
>  [korean-base]
>  [goodies=hanbatanglvt,
>   colorscheme=default,
>   mode=node,
>   script=hang,
>   language=kor]
> 
> \definefont[KoreanFont][hanbatanglvt*korean-base]
> 
> \starttext
> 
> \startMPpage
>string KoreanColors[] ;
> 
>KoreanColors[1] := "darkred" ;
>KoreanColors[2] := "darkgreen" ;
>KoreanColors[3] := "darkblue" ;
>KoreanColors[4] := "darkyellow" ;
>KoreanColors[5] := "darkgray" ;
> 
>def KoreanOutline(expr txt) =
>picture p ; p := outlinetext.p(txt) ;
>numeric n ; n := 0 ;
>string old, new ; old := "" ;
>for i within p :
>new := prescriptpart i ;
>if (new = "") or (new <> old) :
>old := new ;
>n := n + 1 ;
>if unknown KoreanColors[n] :
>n := 1 ;
>fi ;
>fi ;
>draw pathpart i
>withpen pencircle scaled 1/10
>withcolor KoreanColors[n] ;
>endfor ;
>enddef ;
> 
>% entered as three characters: ᄅ  ᅡ  ᆺ (mail collapses)
> 
>KoreanOutline("\KoreanFont 랏") ;
> \stopMPpage
> 
> \stoptext
> 
> The prescript will be set in a next beta so then you get better results for 
> more complex shapes.
> 
> Loading the font takes a bit of time and memory because the first time the 
> outlines are filtered and converted and saved. But I assume Koreans TeX users 
> have fast computers with lots of memory.
> 
> 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] Metafun: Finding intersection between characters

2018-09-26 Thread Jeong Dal
Dear Hans,

I have tested using your code. I just replace “N”, “T” with Korean letters.

Here is an MWE which is a simplified version of your code.
I tested using two fonts, and the outputs are different.

Thank you for your concern.

Best regards,

Dalyoung

%%%
\usetypescriptfile[type-hcrlvt]
\usetypescript[HcrFont] 
\setupbodyfont[Myface, rm, 12pt]
%\setupbodyfont[unfonts, rm, 12pt]

\startMPdefinitions
def filloutlinetext(expr o) =
draw image (
save n, m ; numeric n, m ; n := m := 0 ;
for i within o :
n := n + 1 ;
endfor ;
for i within o :
m := m + 1 ;
if n = m :
eofill
else :
nofill
fi pathpart i ;
endfor ;
)
enddef ;

def drawoutlinetext(expr o) =
draw image (
% nicer for properties
for i within o :
draw pathpart i ;
endfor ;
)
enddef ;

def outlinetexttopath(text o, p, n) =
scantokens("numeric " & str n &   ";") ;
scantokens("path "& str p & "[];") ;
n := 0 ;
for i within o : p[incr(n)] := pathpart i ; endfor ;
enddef ;

\stopMPdefinitions

\startbuffer[ho]
picture first  ; first  := outlinetext.p("호") ; first  := first scaled 
10 ;
filloutlinetext(first ) withcolor .5[blue,white] ;
drawoutlinetext(first ) ;
\stopbuffer
\startbuffer[ha]
picture first  ; first  := outlinetext.p("하") ; first  := first scaled 
10 ;
filloutlinetext(first ) withcolor .5[blue,white] ;
drawoutlinetext(first ) ;
\stopbuffer
\startbuffer[wang]
picture first  ; first  := outlinetext.p("왕") ; first  := first scaled 
10 ;
filloutlinetext(first ) withcolor .5[blue,white] ;
drawoutlinetext(first ) ;
\stopbuffer

\starttext

\processMPbuffer[ho]
\processMPbuffer[ha]
\processMPbuffer[wang]

\stoptext
%%%



type-hcrlvt.mkiv
Description: Binary data


___
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] Metafun: Finding intersection between characters

2018-09-25 Thread Jeong Dal
Dear Hans,

First, it is great to know a new method of drawing an outlined font!

 I have applied it to Korean fonts. As you know, every Korean character is 
composed with “consonant+vowel(+consonant)” type. If consonant and vowel are 
connected (for example, “호”), then it draws correctly, otherwise (for example, 
“하”)  it draws only consonant.
Is there a way to count all the paths in a character(even if it is not 
connected)?

Thank you.
Best regards,

Dalyoung


> 
> \starttext
> 
> \startMPdefinitions
> 
> % will be added to metafun:
> 
> def filloutlinetext(expr o) =
> draw image (
> save n, m ; numeric n, m ; n := m := 0 ;
> for i within o :
> n := n + 1 ;
> endfor ;
> for i within o :
> m := m + 1 ;
> if n = m :
> eofill
> else :
> nofill
> fi pathpart i ;
> endfor ;
> )
> enddef ;
> 

___
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] labeling in meta post

2018-09-07 Thread Jeong Dal
Dear Henri Menke,

I always use “btex etex” for labeling math.
But “…..” is simpler and it works fine.

Thank you.

Best regards,

Dalyoung

>> 
>> \startbuffer[delta]
>> label.bot(btex ${\delta}$ etex, (1cm,0));%
>> %label.bot(btex $\delta$ etex, (3cm,0));
> 
> Why not just
> 
> label.bot("$\delta$", (3cm,0));

___
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] labeling in meta post

2018-09-06 Thread Jeong Dal
Hi,

What is the difference between {\delta} and \delta?
Former is OK, but the second is not compiled.

Here is a MWE.


\startbuffer[delta]
label.bot(btex ${\delta}$ etex, (1cm,0));   %
%label.bot(btex $\delta$ etex, (3cm,0));
label.bot(btex $\frac{2-\delta}{2}$ etex, (5cm,0)); %
\stopbuffer
\starttext
\processMPbuffer[delta]
\stoptext

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] Strange vertical result with itemize in columns

2018-09-03 Thread Jeong Dal
Dear Mikael,

I have had the similar experience.
Hans suggested another command “\NI” and “\itemtag” for this case.
Please check the following mail and wiki.

https://mailman.ntg.nl/pipermail/ntg-context/2017/089872.html 


http://wiki.contextgarden.net/Tabulate 

Best regards,

Dalyoung

> 2018. 9. 3. 오후 9:38, ntg-context-requ...@ntg.nl 작성:
> 
> Hi,
> 
> the following example generates (with latest standalone) the attached
> result. As you can see, the final item is not correctly aligned vertically.
> Am I doing something wrong, or is it a bug?
> 
> /Mikael
> 
> PS Yes, I use \displaystyle in the real example, but the same error exist
> with this simpler example.
> 
> \starttext
> \startTEXpage[offset=2bp]
> \startitemize[n]
> \startitem
> Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits
> \startitemize[a,columns,three][left=,right={)},stopper=]
> \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem
> \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem
> \startitem $\lim_{x\to 0}f(x)$.\stopitem
> \stopitemize
> \stopitem
> \stopitemize
> \stopTEXpage
> \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] split long formula in two pages

2018-08-28 Thread Jeong Dal
Dear all,

Sometime ago, I asked about the splitting the long formula.

Since it is seldom to have a long formula, I manually break the formula using

\startformula\startalign
… formula
\stopalign\stopformula
\startformula\startalign
… formula
\stopalign\stopformula

at the final stage of editing. 
It is more economical than to make some functions for this purpose, I think.

Thank you for reading.

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
___

  1   2   3   >