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 : 
/Users/graph/ConTeXtLMTX/

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

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,

[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 works.

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
___

Re: [NTG-context] closesymbol on same line as displayed formula

2018-08-28 Thread Jeong Dal
Dear Aditya,

Thank you for the reply.

>> \startproof
>> \startitemize[n]
>> \item first line.
>> \item second line
> 
> Add: \placeclosesymbol here
> 
>> \stopitemize
>> \stopproof
>> 
>> \stoptext
> 

It works in many cases that item content ends with words. But it is not working 
if the item contents end with \stopformula. If I put \placeclosesymbol before 
\stopformula, then it is shown just after the last word.
Anyway, it works in most cases.

Thank you again.

Best regards,

Dalyoung

%
\defineenumeration[proof][text=Proof.]

\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]


\starttext
\startproof
This is a simple proof.
\startformula
1+1=2.
\stopformula
\placeclosesymbol
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+1=2.
\placeclosesymbol
\stopformula
\stopproof

\startproof
\startitemize[n]
\item first line.
\item Here is an example.
\startformula \cosh x + \sinh x = e^x,~~\cosh x - \sinh x = e^{-x}  
\stopformula
The next formula is following: 
\startformula\startalign
\NC\sinh (x + y) \NC= \frac{e^{x+y} - e^{-(x+y)}}{2} \NR
\NC \NC = \frac{e^x e^y - e^{-x}e^{-y}}{2}  \NR%$
\NC \NC = \frac{(\cosh x + \sinh x)(\cosh y + \sinh y) - (\cosh x - \sinh 
x)(\cosh y - \sinh y)}{2} \NR
\NC \NC = \sinh x \cosh y + \cosh x \sinh y \NR
\stopalign \stopformula
\placeclosesymbol
\stopitemize
\stopproof

\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-26 Thread Jeong Dal
Dear all,

Sometimes, I wrote a long formula using
 \startformula\startalign … \stopalign\stopformula.

In that case, if the remaining space in the current page is not enough to 
contain the formula, then it adds ‘page break’ and write the whole formula int 
the new page.

I have read a discussion to split long table in two pages. Is there a similar 
way for long formula?

Here is a minimal example.

\showframe
\starttext
\dorecurse{3}{\input knuth}

\startformula\startalign
\NC S_1 \NC = 1 = 1 + 0 \bigg( \frac{1}{2}\bigg),   
\NR
\NC S_2 \NC = 1 + \frac{1}{2} = 1 + 1\bigg( \frac{1}{2}\bigg),  \NR
\NC S_4 \NC = 1 + \frac{1}{2} + \bigg( \frac{1}{3} + \frac{1}{4} \bigg) \NR
\NC \NC >  1 + \frac{1}{2} + \bigg( \frac{1}{4} + \frac{1}{4} \bigg)  = 1+ 
2\bigg( \frac{1}{2}\bigg),\NR
\NC S_8 \NC = 1 + \frac{1}{2} + \bigg( \frac{1}{3} + \frac{1}{4} \bigg) + 
\bigg( \frac{1}{5} + \frac{1}{6} + \frac{1}{7} + \frac{1}{8} \bigg) \NR
\NC\NC >  1 + \frac{1}{2} + \bigg( \frac{1}{4} + \frac{1}{4} \bigg) + 
\bigg( \frac{1}{8} + \frac{1}{8} + \frac{1}{8} + \frac{1}{8} \bigg) = 1 + 
3\bigg( \frac{1}{2}\bigg)   \NR
\stopalign\stopformula

\stoptext


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] closesymbol on same line as displayed formula

2018-08-26 Thread Jeong Dal

Hi, 

I am sorry to bring up old topic “Re: closesymbol on same line as displayed 
formula” again.
(ntg-context Digest, Vol 153, Issue 40)
Is there any progress after that?
It seems to me that there is no more discussions about it.

The same thing happens after the itemization as in the following MWE.

Thank you for reading.

Best regards,

Dalyoung


\defineenumeration[proof][text=Proof.]

\setupenumeration[proof]
[number=no,
closesymbol=\mathematics{\square},
closecommand=\ifmmode\eqno\else\wordright\fi]

  
\starttext
\startproof
This is a simple proof.
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+1=2.
\stopformula
\stopproof
\startproof
\startitemize[n]
\item first line.
\item second line
\stopitemize
\stopproof

\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] unwanted page break in contents

2018-08-26 Thread Jeong Dal
Dear Wolfgang,

> 
> \setuplist
>  [section]
>  [width=10mm,
>   style=,
>   textstyle=\ss,
>   after={\blank[preference]}]

It works perfectly.

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] unwanted page break in contents

2018-08-26 Thread Jeong Dal
Hi,

In the table of contents, there is a unwanted blank space after chapter 2.
There is a page break if the remaining space is not enough to cover the list of 
the next chapter.
For example, page break after ch 2. in the following example.

Is it possible to list them continuously?

Best regards,

Dalyoung


\starttext
\definepagebreak[emptyodd][yes,header, footer, odd]
\setuphead[chapter][page=emptyodd]

\setuphead[title][incrementnumber=list]
\setupcombinedlist[content][list={title,chapter,section,subsection}]
\setuplist[chapter, title][width=5mm, style=,textcommand={\ss\bf }]
\setuplist[section][width=10mm, style=,textcommand={\ss }]

\showframe
\startfrontmatter
\completecontent
\page[empty]
\stopfrontmatter

\startbodymatter
\dorecurse{9}
{\chapter{Ch \recurselevel}
\dorecurse{8}
{\section{Section \recurselevel}}
}   
\stopbodymatter
\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 do an inline itemization?

2018-08-10 Thread Jeong Dal
Dear Wolfgang,
> 

> \starttext
> \startitemize[n,packed][stopper=)]% [stopper=,right=)]
> \item This is a test for the referencing the formula like\par
> \item This is a test for the referencing the formula like\par
> \item This is a test for the referencing the formula like.
> \stopitemize
> \stoptext
> 

It is good in general case. Sometimes I need to have an output as following:

Solution  1) This is the solution of the first question.
2) This is the solution of the second question.
3) …

It is done by 
\startitemize[n, text][stopper=,lefttext=]
which works well in my text.



However, in the following example, there is no difference at all. strange!

%%%
\defineenumeration[Solution]
  [text={\ss\bf Solution},
  number=no,
  after=\blank]
  
 \starttext
 \startSolution
\startitemize[n,packed][stopper=)]
\item This is a test for the referencing the formula like
\item This is a test for the referencing the formula like
\item This is a test for the referencing the formula like.
\stopitemize
\stopSolution

 \startSolution
\startitemize[n, text][stopper=, lefttext=]
\item This is a test for the referencing the formula like\par
\item This is a test for the referencing the formula like\par
\item This is a test for the referencing the formula like.
\stopitemize
\stopSolution

\stoptext
%%%

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] How to do an inline itemization?

2018-08-10 Thread Jeong Dal
Dear Hans,

Thank you for the solution.
It works perfectly.

Have a nice weekend.

Best regards,

Dalyoung

%
\setupinteraction[state=start]
\starttext
\startitemize[n,text][stopper=,lefttext=,]
\item This is a test for the referencing the formula like\par
\item This is a test for the referencing the formula like\par
\item This is a test for the referencing the formula like.
\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] How to do an inline itemization?

2018-08-09 Thread Jeong Dal
Dear Thomas,

Using your example,

> \starttext
> 
> \startitemize[n,text]
> \startitem
> One
> \stopitem
> \startitem
> Two
> \stopitem
> \stopitemize
> 
> \stoptext
> 

 I tested the following example and it is working well.
%
\starttext
\startitemize[n,text]
\item This is the first sentence. \par
\item This is the second sentence. \par
\item This is the third sentence. \par
\stopitemize
\stoptext
%
The numbers are always in the () by default like (1) (2)…
I’d like to ask one thing more.
Is it possible to make the output 1), 2), 3)?

\startitemize[n,text][stopper=,left=,right=)] just add one more ) like (1)),…

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] referencing the equation

2018-08-09 Thread Jeong Dal
Dear Wolfgang,

Although there is an answer in the manual, I didn’t read it carefully.

Sometimes, I used “\in{word}[reference]” like “\in{equation}[eq:1]". 
But I have to change it to “equation (\in[eq:1])”. 

Thank you so much.

Best regards,

Dalyoung

> 2018. 8. 10. 오전 12:21, Wolfgang Schuster  
> 작성:
> 
> When you look at the first example in section 4.1 you can see that the 
> parentheses are inserted by hand.
> 
> %%
> \starttext
> 
> \placeformula
> \startformula \startalign
>  \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
>  \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
> \stopalign \stopformula
> 
> As seen from (\in[eq:1]) and (\in[eq:2]), referring equations is straight 
> forward.
> 
> \stoptext
> %%
> 
> Wolfgang
> 
> 
> 
> Jeong Dal schrieb am 09.08.18 um 17:12:
>> Dear,
>> 
>> The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
>> equation.
>> The numbers for the equation is written as (1.1), and in the text, it is 
>> written as (1.1).
>> That is the numbers are  always surrounded by ( , ).
>> 
>> In the output of the following code, the equations are numbered surrounded 
>> by ().
>> But there is no (), when we referece it.
>> 
>> What is the difference between MWE and mathalign.pdf.
>> 
>> 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
___

[NTG-context] referencing the equation

2018-08-09 Thread Jeong Dal
Dear,

The examples in mathalign.pdf(p4 - ) tells us the method of referencing the 
equation.
The numbers for the equation is written as (1.1), and in the text, it is 
written as (1.1). 
That is the numbers are  always surrounded by ( , ).

In the output of the following code, the equations are numbered surrounded by 
().
But there is no (), when we referece it.

What is the difference between MWE and mathalign.pdf.

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] unable to define 'texgyrepagella-regula' error etc.

2018-07-26 Thread Jeong Dal
Dear Hans,

> 
> 
> (1) wipe the cache
> (2) mtxrun —script --reload -force
> 

Do you mean “wipe cache” as  delete “luatex-cache/context/5fe67…f32e/fonts” 
folder? 

I open the terminal and run “mtxrun —script — reload -force”, then I got

mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  |
mtxrun  | no script name given, known scripts:
mtxrun  |
mtxrun  | babel 1.20  Babel Input To UTF Conversion
mtxrun  | base  1.35  ConTeXt TDS Management Tool (aka luatools)
mtxrun  | bibtex  bibtex helpers
…….
mtxrun  | evohome   1.00  Evohome Fetcher
mtxrun  | fcd   1.00  Fast Directory Change
mtxrun  | flac  0.10  ConTeXt Flac Helpers
mtxrun  | fonts 0.21  ConTeXt Font Database Management
mtxrun  | grep  0.10  Simple Grepper
……
……
mtxrun  | watch 1.00  ConTeXt Request Watchdog
mtxrun  | youless   1.10  YouLess Fetcher

Do you mean “mtxrun —script —reload —force fonts”?

> Better use type-imp-.mkiv i.e. “-imp-“ in the name for such specific 
> implementation files
> 
I will change the name.

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] about the defining itemized columns.

2018-07-26 Thread Jeong Dal
Dear Hans,

Thanks for the solution.
It works perfectly.

Best regards,
Dalyoung


>> define[1]\iCol
>  {\starttabulate[|*{#1}{|lw(\dimexpr.84\makeupwidth/#1\relax)|}]}
> 
___
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 defining itemized columns.

2018-07-26 Thread Jeong Dal
Dear all,

In mathematics, there are many occasions to make exercise problems in columns, 
and I did that using “tabulate” as following.Thanks Hans for this method!
%%%
\define\iTwo{\starttabulate[||w(.42\makeupwidth)||lw(.42\makeupwidth)|]}
\define\iThree{\starttabulate[||lw(.28\makeupwidth)||lw(.28\makeupwidth)||lw(.28\makeupwidth)|]}
\define\iFour{\starttabulate[||lw(.21\makeupwidth)||lw(.21\makeupwidth)||lw(.21\makeupwidth)||lw(.21\makeupwidth)|]}

\starttext
\startitemize[n]
\iTwo
\NC \itemtag \NC test1 
\NC \itemtag \NC test2 \NC\NR
\NC \itemtag \NC test3 
\NC \itemtag \NC test4 \NC\NR
\NC \itemtag \NC test5 
\NC \itemtag \NC test6 \NC\NR
\stoptabulate
\stopitemize
\stoptext

%%%
It works well. 
Since the numbers in the definitions are calculated by .84/2, .84/3, .84/4, I 
want to combine those definitions in one form.
Is it possible to define a one definition which can be set by argument as 
following.

\define[1]\iCol{\starttabulate[|*{#1}{|lw(.84/#1)\makeupwidth|}]}

When I call it \iCol{2}, the first *{#1} is working, but the second #1 is a 
problem.
I tried \ctxlua for division, but it didn’t work either.
Is there a nice way to define them in one definition?
It may be my greedy hope.

Thanks 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] unable to define 'texgyrepagella-regula' error etc.

2018-07-25 Thread Jeong Dal
Dear all,Yesterday, I asked about a font problem without a mwe.Here is a MWE.%\setuplanguage[kr][patterns=us]\mainlanguage[kr]\setscript[hangul]\usetypescriptfile[type-hcrlvt]\usetypescript[HcrFont] \definefontfeature[kr][script=hang,language=kor,mode=node,analyze=yes]\setupbodyfont[Myface, rm, 11pt]\starttextThis is a test file.  %이것은 시험 파일입니다.{\bf This is a test file for font.}%{\bf 이것은 시험 파일입니다.}{\sl This is a test file for font.}%{\sl 이것은 시험 파일입니다.}\stoptextHere is a part of log file of the first run.mtx-context     | run 1: luatex --fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="test" --lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall "cont-yes.mkiv"This is LuaTeX, Version 1.08.0 (TeX Live 2018)  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: 2018.07.20 21:20 MKIV beta  fmt: 2018.7.24  int: english/englishsystem          > system          > 'cont-new.mkiv' loadedopen source     > level 2, order 2, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'system          > beware: some patches loaded from cont-new.mkivclose source    > level 2, order 2, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'system          > files > jobname 'test', input './test', result 'test'fonts           > latin modern fonts are not preloadedlanguages       > language 'en' is activeopen source     > level 2, order 3, name '/Users/graph/Documents/TeXfiles/test.tex'open source     > level 3, order 4, name '/Users/graph/ConTeXt/tex/texmf-local/context/type-hcrlvt.mkiv'open source     > level 4, order 5, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'close source    > level 4, order 5, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'close source    > level 3, order 5, name '/Users/graph/ConTeXt/tex/texmf-local/context/type-hcrlvt.mkiv'fonts           > defining > font with asked name 'texgyrepagella-regular' is not found using lookup 'file'fonts           > defining > unknown font 'texgyrepagella-regular', loading abortedfonts           > defining > unable to define 'texgyrepagella-regular' as 'dummy--0'fonts           > defining > font with asked name 'texgyrepagella-bold' is not found using lookup 'file'fonts           > defining > unknown font 'texgyrepagella-bold', loading abortedfonts           > defining > unable to define 'texgyrepagella-bold' as 'dummy--0'fonts           > defining > font with asked name 'texgyrepagella-regular' is not found using lookup 'file'fonts           > defining > unknown font 'texgyrepagella-regular', loading abortedfonts           > defining > unable to define 'texgyrepagella-regular' as 'dummy--0'backend         > xmp > using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'pages           > flushing realpage 1, userpage 1, subpage 1close source    > level 2, order 5, name '/Users/graph/Documents/TeXfiles/test.tex'close source    > level 1, order 5, name '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.luamkiv lua stats  > used cache path: /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32emkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 14 found files, scanned paths: mkiv lua stats  > stored bytecode data: 428 modules (0.208 sec), 93 tables (0.013 sec), 521 chunks (0.220 sec)mkiv lua stats  > traced context: maxstack: 1309, freed: 0, unreachable: 1309mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 13 attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_definedmkiv lua stats  > node list callback tasks: 8 unique task lists, 6 instances (re)created, 43 callsmkiv lua stats  > used backend: pdf (backend for directly generating pdf output)mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loadingmkiv lua stats  > callbacks: internal: 146, file: 617, direct: 2, late: 0, function 868, total: 1633mkiv lua stats  > loaded patterns: en::2 kr::51, load time: 0.000mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, objectcompresslevel 3mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, hanbatang-lvt.ttf, hanbatangb-lvt.ttfmkiv lua stats  > font engine: otf 3.103, afm 1.513, tfm 1.000, 9 instances, 4 shared in backend, 4 common vectors, 0 common hashes, 

[NTG-context] unable to define 'texgyrepagella-regula' error etc.

2018-07-24 Thread Jeong Dal
Dear all,

I found some warning message in the log file which concerns about the font.
I didn’t see this kind of error before. (I might missed this error.)
However, it produced an output.

fonts   > defining > font with asked name 'texgyreheros-regular' is not 
found using lookup 'file'
fonts   > defining > unknown font 'texgyreheros-regular', loading 
aborted
fonts   > defining > unable to define 'texgyreheros-regular' as 
'dummy--0'
floatblocks > '1' placed (here)
fonts   > defining > font with asked name 'texgyrepagella-regular' is 
not found using lookup 'file'
fonts   > defining > unknown font 'texgyrepagella-regular', loading 
aborted
fonts   > defining > unable to define 'texgyrepagella-regular' as 
'dummy--4'
fonts   > defining > font with asked name 'texgyrepagella-regular' is 
not found using lookup 'file'
fonts   > defining > unknown font 'texgyrepagella-regular', loading 
aborted
fonts   > defining > unable to define 'texgyrepagella-regular' as 
'dummy--5'
fonts   > defining > font with asked name 'texgyrepagella-bold' is not 
found using lookup 'file'
fonts   > defining > unknown font 'texgyrepagella-bold', loading aborted
fonts   > defining > unable to define 'texgyrepagella-bold' as 
'dummy--0'
fonts   > defining > font with asked name 'texgyrepagella-regular' is 
not found using lookup 'file'
fonts   > defining > unknown font 'texgyrepagella-regular', loading 
aborted
fonts   > defining > unable to define 'texgyrepagella-regular' as 
'dummy--0'

How to remove this kind of error?
The main file is too big to list here. 
Here is a part of typescript file which was made by the help of Hans.

\loadtypescriptfile[texgyre]
%\loadtypescriptfile[euler]
%\loadtypescriptfile[xits]

\definefontfeature
  [kr-default]
  [mode=node,script=hang,lang=kor]

\definefontfeature
  [kr-slanted]
  [mode=node,script=hang,lang=kor,slant=.2]

\definefontfeature
  [kr-latin-default]
  [default]

\definefontfeature
  [kr-latin-slanted]
  [krlatindefault]
  [slant=.2]

\definefontfeature
  [kr-latin-slanted-mono]
  [slant=.2]

\definefontfeature
  [kr-latin-smallcaps]
  [krlatindefault]
  [smcp=yes]

\definefontfeature
  [kr-latin-smallcaps-mono]
  [cmcp=yes]

\definefontfallback[kr-serif]   
[texgyrepagella-regular*kr-latin-default]  [0x-0x0400][force=yes]
\definefontfallback[kr-serifbold]   [texgyrepagella-bold*kr-latin-default]  
   [0x-0x0400][force=yes]
\definefontfallback[kr-serifitalic] 
[texgyrepagella-italic*kr-latin-default]   [0x-0x0400][force=yes]
\definefontfallback[kr-serifbolditalic] 
[texgyrepagella-bolditalic*kr-latin-default]   [0x-0x0400][force=yes]
\definefontfallback[kr-serifslanted]
[texgyrepagella-regular*kr-latin-slanted]  [0x-0x0400][force=yes]
\definefontfallback[kr-serifboldslanted][texgyrepagella-bold*kr-latin-slanted]  
   [0x-0x0400][force=yes]
\definefontfallback[kr-serifcaps]   
[texgyrepagella-regular*kr-latin-smallcaps][0x-0x0400][force=yes]
\definefontfallback[kr-sans][texgyreheros-regular*kr-latin-default] 
   [0x-0x0400][force=yes]
\definefontfallback[kr-sansbold][texgyreheros-bold*kr-latin-default]
   [0x-0x0400][force=yes]
\definefontfallback[kr-sansitalic]  [texgyreheros-italic*kr-latin-default]  
   [0x-0x0400][force=yes]
\definefontfallback[kr-sansbolditalic]  
[texgyreheros-bolditalic*kr-latin-default] [0x-0x0400][force=yes]
\definefontfallback[kr-sansslanted] [texgyreheros-regular*kr-latin-slanted] 
   [0x-0x0400][force=yes]
\definefontfallback[kr-sansboldslanted] [texgyreheros-bold*kr-latin-slanted]
   [0x-0x0400][force=yes]
\definefontfallback[kr-sanscaps]
[texgyreheros-regular*kr-latin-smallcaps]  [0x-0x0400][force=yes]
\definefontfallback[kr-mono][texgyrecursor-regular] 
   [0x-0x0400][force=yes]
\definefontfallback[kr-monobold][texgyrecursor-bold]
   [0x-0x0400][force=yes]
\definefontfallback[kr-monoitalic]  [texgyrecursor-italic]  
   [0x-0x0400][force=yes]
\definefontfallback[kr-monobolditalic]  [texgyrecursor-bolditalic]  
   [0x-0x0400][force=yes]
\definefontfallback[kr-monoslanted] 
[texgyrecursor-regular*kr-latin-slanted-mono]  [0x-0x0400][force=yes]
\definefontfallback[kr-monoboldslanted] 
[texgyrecursor-bold*kr-latin-slanted-mono] [0x-0x0400][force=yes]
\definefontfallback[kr-monocaps]
[texgyrecursor-regular*kr-latin-smallcaps-mono][0x-0x0400][force=yes]

%\starttypescriptcollection[hcrfonts]

\starttypescript [serif] [HCRMJ]
\definefontsynonym [HanBatang]   [file:HANBatang-LVT.ttf]
[features=kr-default,fallbacks=kr-serif]
\definefontsynonym [HanBatangbold]   
[file:HANBatangB-LVT.ttf][featur

Re: [NTG-context] metafun: error when I call the same function twice consecutively.

2018-06-01 Thread Jeong Dal
Dear Alan,

Thank you for the clear explanation about z.
I tought that z is a special variable different from other pairs.
Now, I know that it is an equation.

Thank you again.

Best regards,

Dalyoung

> 2018. 6. 1. 오후 11:24, Alan Braslau  작성:
> 
> On Fri, 01 Jun 2018 20:29:41 +0900
> Jeong Dal  wrote:
> 
>> After inserting a line “save x, y;”, it works.
> 
> This is also defined as "clearxy ;"
> 
> For those learning MetaPost, simplifying, z is defined as "(x,y)" so
> one can write
>   z = (a,b) ;
> This is an EQUATION in MetaPost
>   (x,y) = (a,b) ;
> not an assignment (as in most other languages), actually a pair of
> equations:
>   x = a ; y = b ;
> When x and y are unknown, this can be "solved". When x and y contain
> values, it leads to "inconsistent equations".
> 
> One *cannot* write
>   z =: (a,b) ;
> ("=:" is the assignment operator),
> for z is just a macro, not a "pair" object or variable.
> 
> This can be *very* confusing when learning MetaPost.
> 
> Alan
> 
> P.S.
>   for i=0 upto n:
>   z[i] = (i,0) ;
>   endfor
> works as each element of the (pseudo)array z is unknown, at least the
> first time that it is used.

___
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: error when I call the same function twice consecutively.

2018-06-01 Thread Jeong Dal
Dear Henri Menke,

Thank you for the solution.
After inserting a line “save x, y;”, it works.

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] metafun: error when I call the same function twice consecutively.

2018-05-31 Thread Jeong Dal
Hi,

I defined a function using MetaFun, and call it to draw a figure.
It is OK when I call it once.
But there is an error when it runs the same function second time.
(it stops when it call fap(3,2) after fap(2,2))

I have no idea what is wrong and how to fix it.
Would you please tell me what I miss?

Thank you.
Best regards,

Dalyoung

%%%
\startbuffer[test]
numeric u;  u := 1cm;
path p[];

def fap(expr n, m) = 
numeric size; size := m*u;

for i = 0 upto (n*n-1):
z[i] = ((i mod n),(floor(i/n)))*size;
drawdot z[i] withpen pencircle scaled 5pt withcolor blue;
endfor;
enddef;

fap(2,2);
fap(3,2);
\stopbuffer
 
\starttext
\processMPbuffer[test]
\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] blank line at the beginning of the theorem or proof

2018-05-12 Thread Jeong Dal
Dear all,

placing a figure at the right or left of the text using 
\placefigure[right][]{}{} insert at the begining of the paragraph under the 
enumerations while there is no blank line if we comment out \placefigure. See 
the below sample.

Is there a way to make text begin from the same line of “Theorem 1” with the 
figure at the right?

Thank you.

Best regards,

Dalyoung

 \defineenumeration[Theorem]
   [text={\translate[en=Theorem, kr=정리]},
style=,
title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
number=yes,
before={\blank[big]},
after=\blank]

\defineenumeration[Proof]
  [text={\translate[en=Proof, kr=증명]},
%  headstyle=bold,
  alternative=hanging,
  titlestyle=,
  style=normal,
  number=no,
  closesymbol=\mathematics{\blacksquare},]
 
 \startbuffer[circleA]
 draw fullcircle scaled 2cm;
 \stopbuffer
  
\starttext

\startTheorem
%\placefigure[right][]{}{\processMPbuffer[circleA]}
This is a test for placing a figure in the theorem or in the proof. 
\tex{placefigure[right][]{}{\processMPbuffer[circleA]}}
insert a blank line at the beginning of the paragraph while there is no blank 
line without a figure.
%\placefigure[right][]{}{\processMPbuffer[circleA]}
\stopTheorem
\startProof
%\placefigure[right][]{}{\processMPbuffer[circleA]}
\input knuth
\stopProof
\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] \startplacetable in \startcolumnset

2018-04-19 Thread Jeong Dal
Hi,

I found \definecolumnset in the wiki not in the setup-en.pdf.
I’ll test it again.

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] \startplacetable in \startcolumnset

2018-04-19 Thread Jeong Dal
Hi,

I used the following exam format well which was set by the help of Wolfgang 
long time ago.

Recently I got a strange output when I used \startplacetable or \placetable in 
the \startcolumnset … \stopcolumnset.
There is a strange number first and table in the next column.
The output is OK if I comment out either \startcolumnset or \placetable.

Is “\definecolumnset, \startcolumnset” still a good command? I couldn’t find it 
in the list of commands.

Thank you for reading.

Best regards,

Dalyoung

%
\startuseMPgraphic{verticalrule}
  if CurrentColumn < NOfColumns :
draw leftboundary OverlayBox;%  shifted (-1mm,0);
draw rightboundary OverlayBox shifted (4mm,0);
draw rightboundary OverlayBox shifted (TextWidth+6mm,0);
draw bottomboundary OverlayBox shifted (1mm,0);
draw bottomboundary OverlayBox shifted (TextWidth+6mm,0);
setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi
\stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]

\starttext

\startcolumnset[exam]
\startcolumns[n=2, rule=on]
\startitemize[n]
\item Question 1.
Good
\vfill
\column
\item Question 2
%   \startplacetable[location=]
{\starttabulate[|c|c|c|]
\NC A   \NC B   \NC C \NC\NR
\NC A   \NC B   \NC C \NC\NR
\NC A   \NC B   \NC C \NC\NR
\stoptabulate}
%   \stopplacetable
\vfill
\stopitemize
\stopcolumns
\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
___

Re: [NTG-context] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang,

I found that the previous run “mtxrun - script font…” cheked the fonts for 
TeXLive 2017.
So I run “setuptex” for ConTeXt standalone and run “mtxrun” again.
After that I compiled the same file.
The result is that \tt works as Nanum Gothic Coding but \ss still not working.
“Nanum Gothic” file was not found yet.

I am using Mac OSX 10.13 and latest beta.

Thank you.

Best regards,

Dalyoung

> 2017. 12. 7. 오전 2:17, ntg-context-requ...@ntg.nl 
>  작성:
> 
> You need fonts [1-3]  which contains hangul characters (don’t forget to 
> set a math font because it is used for the symbols in enumerations) and 
> you have to enable linebreaking for korean with the \setscript command.
> 
>  begin example
> \definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
> \definefontfamily [mainface] [rm] [DejaVu Serif]
> 
> \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
> \definefontfamily [mainface] [ss] [DejaVu Sans]
> 
> \definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] 
> [features=none,preset=range:korean]
> \definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none]
> 
> \definefontfamily [mainface] [mm] [DejaVu Math]
> 
> \setupbodyfont[mainface]
> 
> \setscript[hangul]
> 
> \starttext
> 
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> 
> {\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.}
> 
> \starttyping
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> \stoptyping
> 
> \stoptext
>  end example

___
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] Typefile with Chinese, Korean or Japanase text

2018-02-19 Thread Jeong Dal
Dear Wolfgang,

Two months ago, you suggested an example for typefile with korean. I just read 
it at that time and I try your sample today. 
Although there are Nanum Gothic and Nanum Gothic Coding in my system font, no 
output of korean for \ss and \tt.
I run ‘mtxrun —script font —reload —force
in the terminal, but the output is same. In the log file, it reads that 

selectfont  > The requested fallback font 'Nanum Gothic' for typeface 
'mainface' style 'ss' was ignored because no files where found.
selectfont  > The requested fallback font ‘Nanum Gothic Coding' for 
typeface 'mainface' style 'tt' was ignored because no files where found.


Why ConTeXt couldn’t locate the font files?

I am using Mac OSX 10.13 and latest beta.

Thank you.

Best regards,

Dalyoung

> 2017. 12. 7. 오전 2:17, ntg-context-requ...@ntg.nl 작성:
> 
> You need fonts [1-3]  which contains hangul characters (don’t forget to 
> set a math font because it is used for the symbols in enumerations) and 
> you have to enable linebreaking for korean with the \setscript command.
> 
>  begin example
> \definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
> \definefontfamily [mainface] [rm] [DejaVu Serif]
> 
> \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
> \definefontfamily [mainface] [ss] [DejaVu Sans]
> 
> \definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] 
> [features=none,preset=range:korean]
> \definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none]
> 
> \definefontfamily [mainface] [mm] [DejaVu Math]
> 
> \setupbodyfont[mainface]
> 
> \setscript[hangul]
> 
> \starttext
> 
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> 
> {\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.}
> 
> \starttyping
> 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
> 모아 엮어졌습니다.
> \stoptyping
> 
> \stoptext
>  end example

___
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 makempy (metapost outlines)

2018-02-19 Thread Jeong Dal
Dear Otared,

I am sorry that the sample code is not fully loaded. 
Although Hans said that we don’t need  ‘makempy’, I copied the whole code again 
for the sake of test.
\setuphead[section][style={\effect[outer]}] is working well.

For korean, use \setupbodyfont[unfonts] as Hans said.

Thank you. 

Best regards,

Dalyoung

> 
> Tha sample code below runs correctly, except that the Korean words are not 
> displayed, since there is no body fonts set up for that language.
> Could you please send a more complete sample in order for us to see what you 
> are reporting?
> 
> Best regards: OK

\setupbodyfont[unfonts]

% the following is copied from makempy manual.

\startuseMPgraphic{text}
  graphictext \MPstring{string} scaled 4
withdrawcolor \MPcolor{blue} withfillcolor \MPcolor{gray}
withpen pencircle scaled 2pt ;
\stopuseMPgraphic
\startuseMPgraphic{number}
  graphictext \MPstring{string} scaled 10
withdrawcolor \MPcolor{red} withfillcolor \MPcolor{gray}
withpen pencircle scaled 2pt ;
\stopuseMPgraphic
\def\TextCommand#1%
  {\setMPtext{string}{#1}%
   \framed
 [frame=off,offset=overlay,height=3cm,width=\hsize]
 {\useMPgraphic{text}}}
\def\NumberCommand#1%
  {\expanded{\setMPtext{string}{\currentheadnumber}}%
   \hsmash
 {\framed
[frame=off,offset=overlay,height=3cm,width=\hsize]
{\useMPgraphic{number
\setuphead
  [section]
  [distance=0pt,
   textcommand=\TextCommand,
   numbercommand=\NumberCommand]
%\setuphead[section][style={\effect[outer]}]

\starttext
\section{First One}
This worked fine before. %이 전에는 잘 되었습니다.

\startformula
\int f(x) dx 
\stopformula

\section{Second Two}
Who made the Euler font. x, y, z

$x^2 + y^2 =  z^2$
\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] about makempy (metapost outlines)

2018-02-18 Thread Jeong Dal

Hi, 

During the search Euler font, I found a manual “creating metapost outlines”.
It is what I looking for at the last year.

I tried an example for section head, but it issued an undefined control 
sequence message.

Please tell me what is wrong and how to change.
I copied the  sample code and a part of log file at the end.

Thank you for reading.

Best regards,

Dalyoung


%%%
\starttext
\section{First One}
This worked fine before. 이 전에는 잘 되었습니다.

\startformula
\int f(x) dx 
\stopformula

\section{Second Two}
Who made the Euler font. x, y, z

$x^2 + y^2 =  z^2$
\stoptext
%

tex error   > tex error on line 4 in file 
/Users/graph/Documents/TeXfiles/test-mpgraph.tex: ! Undefined control sequence

 \setstrut \begstrut \getheadtitle 
  \endstrut 
\MPLIBgraphictext ...\startTEXpage [scale=1]#1
  \stopTEXpage 
l.4 ...\setstrut \begstrut \getheadtitle \endstrut }
  

1 \starttext
2 \def\MPLIBgraphictext#1{\startTEXpage[scale=1]#1\stopTEXpage}
3 
4 >>  \MPLIBgraphictext{\setstrut \begstrut \getheadtitle \endstrut }
5 \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] xits-math font problem

2018-02-18 Thread Jeong Dal
Dear Hans,

Since I couldn’t use xits for math font, I tried to use euler.
I found  some mails about the euler font in the list, and change the 
type-imp-unfonts slightly.
I replaced the lines containing xits with euler font.

\loadtypescriptfile[euler]  %\loadtypescriptfile[xits]
…
…
\definetypeface [unfonts] [mm] [math]  [pagellaovereuler][default]
%\definetypeface [unfonts] [mm] [math]  [xits]

According to this typescript file, english uses texgyrepagella and korean uses 
unfonts. 
After that the sample file runs well without complaints.

I am not sure it is the right way to use Euler font for math.
Is it OK? or any other suggestions, like to use another font file?

I tried ‘Neo Euler’ as  mentioned in the list, but it doesn’t work in my system.

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] xits-math font problem

2018-02-15 Thread Jeong Dal
Hi,

I am using ‘xits’ font as math font which was fine for at least 10 days ago.

it is defined in ’type-imp-unfonts.mkiv’ under  ..tex/context/fonts/mkiv/
\loadtypescriptfile[xits]
…
 \definetypeface [unfonts] [\s!mm] [\s!math]  [xits]

Suddenly it is not located by ConTeXt.

Here is a sample code and a part of its log file.

Also, I’d like to know the most prefered math font for math people.
Thank you for reading.

Best regards,

Dalyoung

%
\setupbodyfont[unfonts]
\starttext
This worked fine before. 이 전에는 잘 되었습니다.

\startformula
\int f(x) dx 
\stopformula

$x^2 + y^2 =  z^2$
\stoptext
%%%
log-file

…
This is LuaTeX, Version 1.05.0 (TeX Live 2017) 
 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: 2018.02.14 22:56 MKIV beta  fmt: 2018.2.16  
int: english/english
…
…
fonts   > defining > forced type 'otf' of 'xits-math' not found
fonts   > defining > font with asked name 'xits-math' is not found 
using lookup 'file'
fonts   > defining > unknown font 'xits-math', loading aborted
fonts   > defining > unable to define 'xits-math.otf' as 
'unfonts-12pt-mm-mr--3'
fonts   > defining > forced type 'otf' of 'xits-math' not found
fonts   > defining > font with asked name 'xits-math' is not found 
using lookup 'file'
fonts   > defining > unknown font 'xits-math', loading aborted
fonts   > defining > unable to define 'xits-math.otf' as 
'unfonts-12pt-mm-mr--2'
fonts   > defining > forced type 'otf' of 'xits-math' not found
fonts   > defining > font with asked name 'xits-math' is not found 
using lookup 'file'
fonts   > defining > unknown font 'xits-math', loading aborted
fonts   > defining > unable to define 'xits-math.otf' as 
'unfonts-12pt-mm-mr--1'
fonts   > math: unset for global bodyfont unfonts at 12pt
fonts   > math: unset for global bodyfont unfonts at 12pt
backend > xmp > using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'___
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 164, Issue 29

2018-02-11 Thread Jeong Dal
Dear Wolfgang,

“\setupmathematics[integral=nolimits]” did what I want.
If I knew this two weeks ago, I saved my time to edit formulas.
I should ask for this feature two weeks ago.

There are so many things  in ConTeXt that I don’t know.

Thank you.

Best regards,

Dalyoung




> \starttext
> 
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
> 
> \setupmathematics[integral=nolimits]
> 
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
> 
> \setupmathematics[integral=limits]
> 
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1
> \stopformula
> 
> \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] Problem with a macro

2018-02-11 Thread Jeong Dal
Dear Otared,

All of your examples yield the same output in which the numbers locate at the 
top and at the bottom of the integral sign.
Is it what you expected? 
I am looking for a way to place numbers at the right of the integral sign under 
the \startformula … \stopformula environment as the output of 
$\displaystyle\int_1^4 …$.

I am using the latest beta.

mtx-context | run 1: luatex 
--fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="test" 
--lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" 
--c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall 
"cont-yes.mkiv"
This is LuaTeX, Version 1.05.0 (TeX Live 2017) 
 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: 2018.02.09 00:04 MKIV beta  fmt: 2018.2.11  
int: english/english
system  > 

Thank you.

Best regards,

Dalyoung

 

> 2018. 2. 12. 오전 2:18, ntg-context-requ...@ntg.nl 작성:
> 
> You are right regarding the unnatural way of using \autointegral. An easy way 
> to use the \autointegral command in a more natural way is to define one’s own 
> macro, as in the following:
> 
> \setupmathdelimiter[integral][rightoffset=-3mu,exact=yes,factor=2]
> 
> \unexpanded\def\myint#1#2#3#4{\autointegral{#2}{#1}{#3(#4)}\,\diff #4}
> 
> \starttext
> $\myint{1}{4}{f}{x}$
> 
> \startformula
> \myint{0}{2\pi}{\cos(t)^2\sin}{t} = 0
> \stopformula
> And here is the classical \type{\int} command:
> \startformula
> \int_{0}^{1} g(x)\,\diff x = 1.
> \stopformula
> \stoptext
> 
> Best regards: OK

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

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

Re: [NTG-context] Problem with a macro

2018-02-11 Thread Jeong Dal
Dear Otared,

As you said, it is working well.

However, the numbers 1, 4 located at the top and the bottom of the integral 
sign which is not usual in math. 
I have seen a discussion about such an output, but I may not see the result 
which I want.

As you see in the following example, only the 1st and the 2nd  gave the output 
which is usual in math.
Is still there no way to make nice output  using “\startformula”?

Thank you.

Best regards,

Dalyoung

%%
\unexpanded\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}

\starttext
\math{\int_1^4 f(x) \diff x}

\math{\displaystyle \int_1^4 f(x) \diff x}

\startformula
\int_1^4 f(x) \diff x
\stopformula

\integ{4}{1}{f(x)}
\stoptext


> If you remove the line
>   \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]  
> then your example typesets well with the last beta version 2018.02.09 00:04.
> 
> Best regards: OK
> 
>> On 11 Feb 2018, at 09:35, Fabrice Couvreur  
>> wrote:
>> 
>> Hi Hans,
>> The macro that you proposed me worked very well but since my update of 
>> context standalone, it does not work any more.
>> Thank you.
>> Fabrice
>> 
>> \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]  
>> 
>> \unexpanded\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}
>> 
>> \starttext
>> \integ{4}{1}{f(x)}
>> \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] about \placeindex: uppercase initial and lowercase initial, two languages

2018-01-28 Thread Jeong Dal
Hi, 

To place the index at the end of the book, I put \placeindex before 
\stopproduct.
It is compiled well.
But, for the better output, I have two questions about the index.

1. In the output, it distinguished uppercase and lowercase initial.
For example,

S
Squeeze theorem

s
set
simple statements
…

Is there a way to make index combining the lowercase and the uppercase together 
as follows?

s
set
simple statements
…
Squeeze theorem

2. The index shows the English letters first and the Koren letters follows. 
Although it is OK that English words are shown first, is there a way to make 
Korean words are shown first since the main language is Korean?

Since I just use “\placeindex”, I don’t give a Minimal sample.

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 make the first chapter number 0?

2018-01-27 Thread Jeong Dal
Dear Lukas,

Thank you for the solution.
It works fine for all, definitions, theorems, … except the numbers which I 
defined for exercise.
I’ll change the number definition of exercise following your example.

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] How to make the first chapter number 0?

2018-01-27 Thread Jeong Dal
Hi, 

I’d like to start the chapter number from 0.
So I tried “\setcounter[chapter][-1]” or “\setcounter[chapter][0]” to test, but 
it doesn’t work.
Is there any good method to make the number of the first chapter 0?

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] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal

Dear Hans,

Thank you for the quick answer.
Repalcing “p:=textext.rt();” and commenting out “headcommand=gobbleone…”  with 
your suggestion, the references are working.
However, there is a side effect.
“Theorem 1.1” appears twice, one in the frame which I expected and one at the 
beginning of the framed text which I don’t want.

One more thing, is there no way to show the number of  the Definition?

Thanks again.

Best regards,

Dalyoung

%%

\setupcolors[state=start]
\definecolor[dGreen] [r=0,g=.375,b=.0]
%%% define the background of Theorems:
\defineframed
  [FunnyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
%p := textext.rt(“\FunnyFramed{\enumerationparameter{text} 
\convertedcounter[Theorem]}”) ;
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[FunnyFrame][\useMPgraphic{FunnyFrame}] 

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

\defineenumeration[Theorem]
  [title=no,
  text={\translate[en=Theorem, kr=정리]},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
%% headcommand=\gobbleoneargument,
   before=\startFunnyText,  
   after=\stopFunnyText]

 Definition style
\definenumber[DefNumber][way=bychapter,sectionumber=yes]
\setuptextrules[rulecolor=dBlue]

\define\DefCommand{\incrementnumber[DefNumber]
\textrule[top]{\translate[en=Definition, kr=정 의] \getnumber[DefNumber]}
}   
\defineenumeration[Definition]
[width=fit,
alternative=serried,
text={}, 
number=no,
before={\DefCommand}, 
after=\vskip3pt\hrule\blank] 

%%% Examples with or without solutions
\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=dGreen]},
%title=no,
alternataive=hanging,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
before={\blank[big]},
after=\blank]

 
\starttext

\chapter{Spaces}

\section{Space 1}

\startDefinition[def:first]
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopDefinition

\startTheorem[lem:first]
Fort's space is a compact and Hausdorff topological space.\par
\stopTheorem

\startTheorem[thm:second]
Fort's space is a compact and Hausdorff topological space.
\stopTheorem

\startExam[Ex:first]
Example Example Example Example Example Example Example Example Example 
Example Example Example Example Example Example Example Example Example 
Example Example Example Example Example Example Example Example Example 
\stopExam

In this example, we defined \in{Definition}[def:first]. After that, we proved 
\in{Lemma}[lem:first] and \in{정리}[thm:second]. Finally, \in{Example}[Ex:first], 
we saw an example of it.

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

<    1   2   3   4   >