[NTG-context] making tables with lua

2012-10-16 Thread Jeong Dal
Dear all,

I used code which generates the table as following:

\startluacode
local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
HL()
for i=1, 6, 1 do
for j=1,10 ,1 do
k= i % 3
if k==1 then
VL() context(10*(i - k)/3+j)
else
VL()
end
end
VL()
NR()
if k==0 then
HL()
end
end
context.stoptabulate()
\stopluacode

But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the number 
of columns.
I wonder it is possible to use the variable for j to control the number of 
columns and the column setting.
Of course, I may put similar codes  which are different only in the number of 
columns and column settings when I need a table.
But I have many similar tables whose number of columns are different only.
If such a method is possible, I'd like to put such a code in 
\startbuffer…\stopbudffer and call it to generate tables of various number of 
columns given at each time. 
I also don't know whether it is possible to convey a number from ConTeXt to the 
variable in Lua code.

I write this email because I saw a hope in recent discussion Re: Fwd: Need 
help with \definetabulate which has a method to vary the column setting.

\definetabulate
[whatever]
[|l|r|]

\definetabulate
[whatever][else]
[|l|c|r|]


It may be a lazy man's question with no need for others.

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

Re: [NTG-context] making tables with lua

2012-10-17 Thread Jeong Dal
Dear Proch?zka Luk?? Ing and Hans,

Thank you for the reply.

It works fine.

I modify your code to write a matrix and it also works too.

\startformula
\startluacode
local NC, NR = context.NC, context.NR
local t = {{1,0,3,4},{0,2,-2,5},{0,0,1,2}}
context.startmatrix() --{left={\left (\,},right={\,\right)}})
for _, r in ipairs(t) do
for _, c in ipairs(r) do
NC()
context(c)
end
NR()
end
context.stopmatrix()
\stopluacode
\stopformula

But I couldn't put ( ) before and after matrix.
If I use
context.startmatrix({left={\left (\,},right={\,\right)}})
then it wrote left… as text before the matrix.

How to enclose matrix with (  )?

Thank you again.

Best regards,

Dalyoung




  4. Re: making tables with lua
 (Proch?zka Luk?? Ing. - Pontex s. r. o.)
 
 
 Once you have such functions prepared, you just select to type:
 
 printTabulate(mytab) -- via 'tabulate'
 
 or
 
 printTABLE(mytab) -- via 'TABLE'
 
 If you insist on 'tabulate' family, you could use the following snippet for 
 your start:
 
 
 \starttext
  \startluacode
local tab = {{1,2},{3,4}}
 
printTabulate = function(tab)
  context.starttabulate{| .. string.rep(c|, #tab[1])}
context.HL()
for _, r in ipairs(tab) do
  for _, c in ipairs(r) do
context.VL()
context(c)
  end
  context.VL()
  context.NR()
  context.HL()
end
  context.stoptabulate()
end
 
printTabulate(tab)
  \stopluacode
 \stoptext
 
 
 You can write a similar function(s) to typeset via 'TABLE'.
 
 Best regards,
 
 Lukas
 
 
 On Wed, 17 Oct 2012 03:13:39 +0200, Jeong Dal hak...@me.com wrote:
 
 Dear all,
 
 I used code which generates the table as following:
 
 \startluacode
 local NC, NR, HL, VL = context.NC, context.NR, context.HL, context.VL
 context.starttabulate { |c|c|c|c|c|c|c|c|c|c| }
 HL()
 for i=1, 6, 1 do
  for j=1,10 ,1 do
  k= i % 3
  if k==1 then
  VL() context(10*(i - k)/3+j)
  else
  VL()
  end
  end
  VL()
  NR()
  if k==0 then
  HL()
  end
 end
 context.stoptabulate()
 \stopluacode
 
 But it has a fixed column definition as |c|c|c|c|c|c|c|c|c|c| and the 
 number of columns.
 I wonder it is possible to use the variable for j to control the number of 
 columns and the column setting.
 Of course, I may put similar codes  which are different only in the number 
 of columns and column settings when I need a table.
 But I have many similar tables whose number of columns are different only.
 If such a method is possible, I'd like to put such a code in 
 \startbuffer?\stopbudffer and call it to generate tables of various number 
 of columns given at each time.
 I also don't know whether it is possible to convey a number from ConTeXt to 
 the variable in Lua code.
 
 I write this email because I saw a hope in recent discussion Re: Fwd: Need 
 help with \definetabulate which has a method to vary the column setting.
 
 \definetabulate
 [whatever]
 [|l|r|]
 
 \definetabulate
 [whatever][else]
 [|l|c|r|]
 
 
 It may be a lazy man's question with no need for others.
 
 Thank you for reading.
 
 Best regards,
 
 Dalyoung
 
 
 -- 
 Ing. Luk?? Proch?zka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezov? 1658
 147 14 Praha 4
 
 Tel: +420 244 062 238
 Fax: +420 244 461 038
 -- next part --
 A non-text attachment was scrubbed...
 Name: t-Tabulate.mkiv
 Type: application/octet-stream
 Size: 496 bytes
 Desc: not available
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20121017/d9e8158e/attachment-0001.obj
 -- next part --
 A non-text attachment was scrubbed...
 Name: t-Tabulate.pdf
 Type: application/pdf
 Size: 5121 bytes
 Desc: not available
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20121017/d9e8158e/attachment-0001.pdf
 
 --
 
 Message: 5
 Date: Wed, 17 Oct 2012 08:55:01 +0200
 From: luigi scarso luigi.sca...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] ConTeXt unofficial test suite stub
 Message-ID:
   CAG5iGsB6f+sEzwu6O_p=+TnDzdwFoq4Y3=69z6c5evbt5_p...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8
 
 On Wed, Oct 17, 2012 at 8:44 AM, Marco Pessotto melmo...@gmail.com wrote:
 
 Aditya Mahajan adit...@umich.edu writes:
 
 It may be worthwhile to merge the two repos.
 
 I'm on my way. I'll keep you posted.
 
 
 Can you use graphicsmagick ?
 
 
 -- 
 luigi
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20121017/a99aa46a/attachment.html
 
 --
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki

Re: [NTG-context] making tables with lua

2012-10-17 Thread Jeong Dal
Dear Wolfgang and Proch?zka Luk?? Ing,

Thank you for the solution.
It works nicely. It is so convenient to write many matrices.

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


[NTG-context] making horizontal space in luacode.

2012-10-21 Thread Jeong Dal
Dear all,

1. I'd like to make a horizontal space using \hspace[3em] inside luacode.

But  context.hspace({3em}), context.hspace({3em}), context.hspace(3em) 
don't work.
And print(   ) doesn't work either. 

How to make some horizontal space in luacode?

2. There is no white line even though I put \blank[big] between Frame(bring 
it from MetaFun) and text as in the following example.

\starttext

 framed Text
\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt(\MPstring{FunnyFrame}) ;
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 ;
%fill b withcolor .85white ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .425green;%.85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame, 
offset=\bodyfontsize, width=\overlaywidth]%.8\textwidth]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText}
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf\white #1\hss}}}

This is a test line file for blank spaces.
\blank[big]  % white line is wanted
{\FrameTitle{Test}
\StartFrame
\startitemize[n]
\item the first line.
\item the second line.
\item the third line.
\stopitemize
\StopFrame
}
\blank[big]  % white line is wanted
Here is another test line.

\stoptext

What should I do to make a blank line before and after 

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


Re: [NTG-context] making horizontal space in luacode.

2012-10-22 Thread Jeong Dal
Dear Aditya, Hans

Both solutions work well.

It is really efficient to write matrix in ConTeXt + lua.
I am enjoying the benefit of lua in ConTeXt.

Thank you.

Best regards,

Dalyoung

 
 \definehspace[skip][3em]
 \starttext
 \startluacode
   context(Some text)
   context.hspace{skip}
   context(More text)
 \stopluacode
 \stoptext
 
 
 Aditya
 
 
 --
 
 Message: 5
 Date: Mon, 22 Oct 2012 09:40:01 +0200
 From: Hans Hagen pra...@wxs.nl
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] making horizontal space in luacode.
 Message-ID: 5084f851.7050...@wxs.nl
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
 On 22-10-2012 07:15, Aditya Mahajan wrote:
 On Mon, 22 Oct 2012, Jeong Dal wrote:
 
 Dear all,
 
 1. I'd like to make a horizontal space using \hspace[3em] inside luacode.
 
 But  context.hspace({3em}), context.hspace({3em}),
 context.hspace(3em) don't work.
 And print(   ) doesn't work either.
 
 How to make some horizontal space in luacode?
 
 
 \hspace does not accept dimensions. The syntax for hspace is
 
 \definehspace[whatever][3em]
 
 \hspace[whatever].
 
 So, you need:
 
 \definehspace[skip][3em]
 \starttext
 \startluacode
   context(Some text)
   context.hspace{skip}
   context(More text)
 \stopluacode
 \stoptext
 
 Indeed this is the best way. At some point I'll wrap primitives (maybe 
 in another namespace). If you really want to use context.hskip, you can 
 say context.hskip(false,10pt plus 5pt) etc as a first false argument 
 will signal a drop of {}.
 
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] using variable for subscript in math+lua

2012-10-24 Thread Jeong Dal
Dear Hans, Lucas, Wolfgang, Aditya

Now, I write a matrix using \startluacode by the helps of  you.
Also, I can do some operations in matrices which reduced my typing job.
In this code, I have to give all the entries of a matrix as a table. It is good 
to use in many cases.

I have one more question. If the given array is as the following and it works 
well.

\starttext
\startluacode
  printMatrix = function (t)
context.startmatrix{left = \\left(\\,, right = \\,\\right)}
for _, r in ipairs(t) do
for _, c in ipairs(r) do
context.NC(c)
end
context.NR()
end
context.stopmatrix()
end
\stopluacode

\startformula
\startluacode
local 
mat={{a_{11},a_{12},a_{13}},{a_{21},a_{22},a_{23}},{a_{31},a_{32},a_{33}}}
printMatrix(mat)
\stopluacode
\stopformula
\stoptext

%

However, there might be a better way to do job using for iteration.
I tired to use i, j in several ways but it doesn't work.  

  function printMatrixA()
context.startmatrix{left = \\left(\\,, right = \\,\\right)}
for i=1,3 do
for j=1, 3 do
context.NC(a_{ij})
end
context.NR()
end
context.stopmatrix()
  end

%%%

Is there a way to do such a job using for iteration?

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


Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Jeong Dal
Dear Gesang and Hans,

Your solution is working nicely. 
I may use lua to simplify my other work.

I'd like to ask you one more thing.

I tried to write a matrix using MetaFun to add some graphics as following:

label(btex $a_{11}$ etex, ( , )); 
label(btex $a_{12}$ etex, ( , ));
label(btex $a_{13}$ etex, ( , ));
…
label(btex $a_{3,3}$ etex, ( , ));

Since the same command is repeated, I tested to use for iteration.
But I couldn't succeed. It is OK to use the variable as a text but I couldn't 
find a way to use a variable as a subscript.

For example, 

for i=1 unto 3: label(btex decimal(i) etex, (x,y)); endfor;  

is OK. But,
 
for i=1 upto 3: label(btex $a_{i}$ etex, (x,y)); endfor; 
or
for i=1 upto 3: label(btex $a_{deciaml(i)}$ etex, (x,y)); endfor; 

are not working as I wanted. 

Is there a way to use variable as a subscript in label?

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

Re: [NTG-context] using variable for subscript in math+lua (and math+MetaFun)

2012-10-25 Thread Jeong Dal
Dear Hans,

The structure of your code  is very interesting.

MP code) inside ConTeXt) inside Lua) inside ConTeXt) again!

It is really useful.

Thank you.

Best regards,

Dalyoung

 
 play with code like this
 
 \starttext
 
 \startluacode
context.startMPcode()
for i=1,10 do
for j=1,10 do
context('draw (%scm,%scm) withpen pencircle scaled 2mm
 ;',i,j)
context('draw
 thetextext.top(\\tt%s,%s,(%scm,%scm+2mm)) ;',i,j,i,j)
end
end
context.stopMPcode()
 \stopluacode
 
 \stoptext
 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] using variable for subscript in math+lua

2012-10-26 Thread Jeong Dal
Thanks to all who gave a nice solutions.

To write a big matrix of unknowns A=(a_{ij}) is not a frequent case.
 In math, there are many occasions to write matrices which need some typing 
work like

\NC 2 \NC 3 \NC 4 \NR 

So if we have a function which write a matrix when the data is given as  a form 
of table in Lua.
There are other benefits.
Sometimes, we may have to write a series matrices which are the results of the 
some row operations in matrix.
We can also handle it conveniently because we can do some calculations in Lua.
If there is a way to convey some table data from ConTeXt to Lua, it would be 
more convenient.

Here is an example which I did by your help.

I hope that you experts can make it more useful.

Thank you again.

Best regards,

Dalyoung


\starttext

\startluacode
matrixfunction = matrixfunction or {} -- recommended: use namespace
matrixfunction.print_matrixA = function ()
context.startmatrix{left = \\left(\\,, right = \\,\\right)}
local schema1 = a_{%d%d} -- %d: prints integer part
local schema2 = a_{%d%s}
local schema3 = a_{%s%d}
for i=1, 3 do
for j=1, 3 do
context.NC()
context(schema1, i, j)
end
context.NC()
context(\\cdots)
context.NC()
context(schema2, i, n)
context.NR()
end
for j = 1, 3 do
context.NC()
context(\\vdots)
end
context.NC()
context(\\ddots)
context.NC()
context(\\vdots)
context.NR()
for i=1, 3 do
context.NC()
context(schema3, m, i)
end
context.NC()
context(\\cdots)
context.NC()
context(a_{mn})
context.NR()
context.stopmatrix()
end

matrixfunction.print_matrix = function (t)
context.startmatrix{left = \\left(\\,, right = \\,\\right)}
for _, r in ipairs(t) do
for _, c in ipairs(r) do
context.NC(c)
end
context.NR()
end
context.stopmatrix()
end

matrixfunction.rowChange = function(t, i, j) -- interchange two rows(i-th, j-th)
t[i] , t[j]= t[j], t[i]
end
matrixfunction.rowMult = function(t, i, m) -- replace i-th row with m*(i-th row)
local len
len = #(t[i])
for k = 1, len do t[i][k] = m*t[i][k] end
end

matrixfunction.rowMultSum = function(t, i, j, m) -- replace i-th row with i-th 
row + m*(j-th row)
local len
len = #(t[1])
for k = 1, len do t[i][k] = t[i][k] + m*t[j][k] end
end

\stopluacode


\startformula\startluacode
matrixfunction.print_matrixA()
\stopluacode\stopformula


\startformula\startalign
\startluacode
local mat = {{0, 2, 4, -4, 1},{0, 0, 2, 3 , 4}, {2, 2, -6, 2, 4 }, {2,0 , -6, 
9, 7}}
context.NC(\\text{Given matrix}\\quad\\Rightarrow\\quad)
context.NC()
matrixfunction.print_matrix(mat)
context.NR()

context.NC()
context({\\bf r}_1 \\leftrightarrow {\\bf r}_3 \\quad\\Rightarrow\\quad)
matrixfunction.rowChange(mat, 1, 3)
context.NC()
matrixfunction.print_matrix(mat)
context.NR()

context.NC()
context(\\frac{1}{2}{\\bf r}_1 \\rightarrow {\\bf r}_1 
\\quad\\Rightarrow\\quad)
matrixfunction.rowMult(mat, 1, 1/2)
context.NC()
matrixfunction.print_matrix(mat)
context.NR()

context.NC()
context(-2{\\bf r}_1 + {\\bf r}_4 \\rightarrow {\\bf r}_4 
\\quad\\Rightarrow\\quad)
matrixfunction.rowMultSum(mat, 4, 1, -2)
context.NC()
matrixfunction.print_matrix(mat)
context.NR()

context.NC()
context({\\bf r}_2 \\leftrightarrow {\\bf r}_3 \\quad\\Rightarrow\\quad)
matrixfunction.rowChange(mat, 2, 3)
context.NC()
matrixfunction.print_matrix(mat)
context.NR()
\stopluacode
\stopalign\stopformula

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] align and location in \setupcombination

2012-10-27 Thread Jeong Dal
Dear all,

In the output of the following sample, figures are left flushed.
I found some discussions about the align and location in \setupcombination.
align= is for caption and location=middle is for figures' location.

But align=worked while location=  has no effect at all.
So I have to enclose \startcombination … \stopcombination in \placefigure[][]{}.
How to locate the combined figures at the horizontal center?

Thank you for reading.

Best regards,

\starttext
\setupcombination[align=leftflush, location=middle]
\startcombination[2*1]
{\externalfigure[dummy][]}{aa}
{\externalfigure[dummy][]}{bb}
\stopcombination
\stoptext


* my system:
Mac OS 10.8

This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
\write18 enabled.
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2012.10.19 00:06 MKIV fmt: 2012.10.19 int: english/english
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] align and location in \setupcombination

2012-10-29 Thread Jeong Dal
Dear Marco and Wolfgang,

Thank you for solutions. 

I have tried \startalignment … \stopalignment, but it is not working.
Does it work as same as \midaligned?

\startcontent … \stopcontent, \startcaption … \stopcaption seem to me a new 
commands. 
Is every command in ConTeXt changed as a form of \start … \stop?

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

[NTG-context] \overrightarrow{AB} gives under rightarrow

2012-11-02 Thread Jeong Dal
Dear all.

The following short sample gives a under right arrow instead of over right 
arrow.
Would you please check it?

\starttext
$\overrightarrow{AB}$
\stoptext

Thanks.

Best regards,

Dalyoung


ConTeXt ver: 2012.10.06 15:31 MKIV fmt: 2012.10.8 int: english/english

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \overrightarrow{AB} gives under rightarrow

2012-11-02 Thread Jeong Dal
Dear Rogers,

It works fine after updating.

Thank you for checking.

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


[NTG-context] \startchapter[title = First] didn't show the title.

2012-11-02 Thread Jeong Dal
Hi all,

Here is one more question.

\starttext
\startchapter[title = First]
bla bla bla
\stopchapter
\stoptext

In this sample, the title First isn't show up.
After removing spaces before and after = sign, it showed up.

It is not a big problem though, but, is it intended?
It still remains after the updating.

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


[NTG-context] Spacing around integrals

2012-11-06 Thread Jeong Dal
Dear Aditya,

In ntg-context Digest, Vol 99, Issue 59, you mention about \int_a^b, but I 
could't find the follow-up for that.

I also have a similar problem when using \int_a^b.

a and b are located at the bottom and top of the integral sign respectively.
Also there is a somewhat big space between the integral sign and f(x).
I am using the latest beta.

Is there any progress for that?

Thank you.
Best regards.

Dalyoung

\setupbodyfont[xits]

\starttext
\startformula
  \int_a^b f(x)dx
\stopformula
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Spacing around integrals

2012-11-07 Thread Jeong Dal
Dear Otared,

Thank you for the sample files.
I may miss the follow-ups.

I'll check your samples and choose a good one for me.

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


[NTG-context] vertical alignment problem in column items

2012-11-16 Thread Jeong Dal
Dear all,

In the following example, the vertical alignment of items looks strange.

I wonder it is my only problem.
Is there anything what I have to do to correct it?

Thank you.

Best regards,

Dalyoung

% sample code

\starttext
\startitemize

\item Find a well-ordered set.

\startitemize[n, columns, four][stopper=,left=(, right=)]
\item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\stopitemize
\stoptext 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] vertical alignment problem in column items

2012-11-17 Thread Jeong Dal
Dear Otared,

Thank you for detailed explanations.

I got the same results as you explained.
There may be something which controls the vertical spaces in columns.
I believe that it will be resolved 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \not\in doesn't work properly

2012-11-30 Thread Jeong Dal
Hi,

After updating ConTeXt, math command '\not\in' is not shown properly.

For example,

$a \not\eq b$ is good.

but $a \not\in A$ shows two symbols separately. 


I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are

This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english

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


Re: [NTG-context] \not\in doesn't work properly

2012-12-03 Thread Jeong Dal
Dear Hans,

I thought that it is not delivered to the list because I didn't see it, but you 
read the mail.

I also found that it is already reported by Otared before.
I checked the  latest beta, ConTeXt ver: 2012.12.03 20:57 MKIV, and it is fixed.

Thank you for your concern.

Best regards,

Dalyoung


2012. 12. 4., 오전 5:07, Hans Hagen pra...@wxs.nl 작성:

 On 11/30/2012 10:26 AM, Jeong Dal wrote:
 Hi,
 
 After updating ConTeXt, math command '\not\in' is not shown properly.
 
 For example,
 
 $a \not\eq b$ is good.
 
 but $a \not\in A$ shows two symbols separately.
 
 
 I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are
 
 This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
 ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english
 
 I assume that you use lm ... before I start looking into it I'd like to know 
 Khaleds point of view on this.
 
 Hans
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \not\in doesn't work properly

2012-12-05 Thread Jeong Dal
Dear Otared,

I tested your sample and it works well.

\notin also works with \enablemode[lmmath] too.

I also agree with your comment on the size of the integrals.

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


Re: [NTG-context] MetaPost Animations

2012-12-30 Thread Jeong Dal
Dear Troy,

The animations are impressive and thank you for sharing the code.

In the creation of many pdf for animation, it changes the recurselevel only.
 I wonder if there is a way to make such kind of animation in ConTeXt using 
Wolfgang's animation module.
Then we can include the animation in PDF output directly.

Here is my trial.

I modified it as following and got an animation. But it is only good for a few 
step animation.

%
\startbuffer[base]
N:=64;%\N;
u:=136;
pair f;
c:=2/(1+sqrt(5));%\c;
if c1: f:=(1+-+c,0); v:=u/2; else: f:=(0,1+-+(1/c)); v:=u/c/2; fi; % Focus f 
is defined
path p,q;
pair z;
picture base;
numeric L;
p:=fullcircle yscaled c; % This is the ellipse
L:=length p;
draw p scaled (2*v) withpen pencircle scaled (v/260) dashed evenly; % Draw the 
ellipse dashed (will be traced later)
base:= currentpicture;
q:=bbox currentpicture enlarged (v/64); % Enlarge the bounding box slightly
q:=(llcorner q+(-v/128,-v/128))--(lrcorner q+(v/128,-v/128))--(urcorner 
q+(v/128,v/128))--(urcorner q+(-v/128,v/128))--cycle;
fill fullcircle scaled (v/32) shifted (f*v) withcolor red; % Focus
fill fullcircle scaled (v/32) shifted (-f*v) withcolor red; % Focus
base:=currentpicture; % Save this picture to draw in every frame
setbounds currentpicture to q; % Set the bounding box as described before
\stopbuffer

\startbuffer[fig1]
%\startMPpage
n:=1;%\recurselevel%1;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled (v/260); % Draw the string 
used to trace the ellipse
setbounds currentpicture to q; % Set the bounding box so that it is the same 
for each frame
%\stopMPpage
\stopbuffer

\startbuffer[fig2]
%\startMPpage
n:=2;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled (v/260); % Draw the string 
used to trace the ellipse
setbounds currentpicture to q; % Set the bounding box so that it is the same 
for each frame
%\stopMPpage
\stopbuffer

\startbuffer[fig3]
%\startMPpage
n:=3;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled (v/260); % Draw the string 
used to trace the ellipse
setbounds currentpicture to q; % Set the bounding box so that it is the same 
for each frame
%\stopMPpage
\stopbuffer

\setupinteraction[state=start]
\usemodule[animation]
\starttext
\startanimation[menu=yes]

{\processMPbuffer[base, fig1]}
{\processMPbuffer[base, fig2]}
{\processMPbuffer[base, fig3]}
\stopanimation
\stoptext

%

I also tried to simplify the code as following, but it just draw 10 figures not 
an animation.
Is there a way to combine them as an animation?

Thank you.

Best regards,

Dalyoung
 
%
\startbuffer[base]
N:=64;%\N;
u:=136;
pair f;
c:=2/(1+sqrt(5));%\c;
if c1: f:=(1+-+c,0); v:=u/2; else: f:=(0,1+-+(1/c)); v:=u/c/2; fi; % Focus f 
is defined
path p,q;
pair z;
picture base;
numeric L;
p:=fullcircle yscaled c; % This is the ellipse
L:=length p;
draw p scaled (2*v) withpen pencircle scaled (v/260) dashed evenly; % Draw the 
ellipse dashed (will be traced later)
base:= currentpicture;
q:=bbox currentpicture enlarged (v/64); % Enlarge the bounding box slightly
q:=(llcorner q+(-v/128,-v/128))--(lrcorner q+(v/128,-v/128))--(urcorner 
q+(v/128,v/128))--(urcorner q+(-v/128,v/128))--cycle;
fill fullcircle scaled (v/32) shifted (f*v) withcolor red; % Focus
fill fullcircle scaled (v/32) shifted (-f*v) withcolor red; % Focus
base:=currentpicture; % Save this picture to draw in every frame
setbounds currentpicture to q; % Set the bounding box as described before
\stopbuffer

\startbuffer[fig1]
%\startMPpage
n:=\recurselevel;
draw base; % Draw the common picture saved above
draw subpath (0,(n-1)/(N-1)*L) of p scaled (2*v) withpen pencircle scaled 
(v/130) withcolor blue; % Trace the ellipse in blue
z:=point ((n-1)/(N-1)*L) of p scaled v; % The point on the ellipse where we are 
thusfar
fill fullcircle scaled (v/32) shifted (2*z) withcolor blue; % Draw the point
draw (-f*v)--(2*z)--(f*v) withpen pencircle scaled 

Re: [NTG-context] MetaPost Animations

2012-12-31 Thread Jeong Dal
Dear Wolfgang,

Thank you for the explanation, and your sample works nicely.

I  enclosed \processMPbuffer using \startframe and \stopframe as following.
Then  I got a 'undefined control sequence' error.
If I use '\framed[]' instead of '\startframe … \stopframe', then it gave all 7 
circles of different radius in two pages without error.
If I add \startanimation … \stopanimation, the only change is the appearance 
of menu at the bottom of the last circle.(no animation)

What is wrong in the code?

Best regards,

Dalyoung


Happy New Year to all listers!!!



\startbuffer[circles]
path p;
numeric n, u;
u := 1cm;
n:=\recurselevel*u;
p := fullcircle scaled n;
draw p;
\stopbuffer

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

\starttext
%\startanimation[menu=yes]
\dorecurse{7}{
\startframe
%   \framed[]%{\processMPbuffer[circles]}}
\processMPbuffer[circles]
\stopframe
}
%\stopanimation
\stoptext


! Undefined control sequence.
system  tex  error on line 23 in file test-ani.tex: Undefined control 
sequence ...
13 \setupinteraction[state=start]
14
15 \starttext
16
17 %\startanimation[menu=yes]
18 \dorecurse{7}{
19 \startframe
20 %\framed[]%{\processMPbuffer[circles]}}
21 \processMPbuffer[circles]
22 \stopframe
23  }
24 %\stopanimation
25
26 \stoptext
27
\121 #1#2- \startframe
\processMPbuffer [circles] \stopframe
\syst_helpers_recurse_indeed_yes ...curse_content
\syst_helpers_recurse_indeed
to be read again
{
inserted text
2
\syst_helpers_recurse_indeed ...the \innerrecurse
}{#2}
l.23 }




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MetaPost Animations

2013-01-01 Thread Jeong Dal
Dear Wolfgang,

Thank you for the explanation and the correction of the code.

It works nicely. It also taught me some other things too.

I'd like to ask you one more thing.
When you update the animation module, would you please concern the location of 
the menu?
I think that it is better to put it at the bottom center of the animation frame 
in default?  
Currently, it is located slightly left from the center.

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


Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta

2013-01-03 Thread Jeong Dal
Dear Michael and Otared,

After updating ConTeXt to the latest version(2013.01.02.) and run the sample 
code.

 
 \starttext
 $\hbar$
 \stoptext

But I also got empty page.

If I add either \setupbodyfont[xits] or \enablemode[lmmath], \hbar appeared.

I also use Mac OSX mountain lion 64bit, luatex beta 0.74.

In the log file, I found the message Missing character:…

%
…
fonts  typescripts  unknown: library 'loc'
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
…
…
Missing character: There is no ħ (U+0127) in font texgyretermesmath-regular!
backend  xmp  using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
…
%

I think that Otared doesn't have this kind of message.

Do you have any idea to fix this?

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

[NTG-context] question about the layer.

2013-05-28 Thread Jeong Dal
Dear Wolfgang,

I read your detailed explanation about the difference between overlay and 
layer.

Here is your sample code using layer.

\starttext

\definelayer[test]

\setlayer[test][x=3cm,y=6cm]{ONE}
\setlayer[test][x=8cm,y=2cm]{TWO}
\setlayer[test][x=2cm,y=9cm]{THREE}

\flushlayer[test]

\stoptext

It shows ONE, TWO, and THREE in the same page.

I'd like to show each word one by one when I click, so I tested the following 
code.

\setupinteraction[state=start]
\usemodule[pre-60]
\starttext
\definelayer[test1]
\definelayer[test2]
\definelayer[test3]
\setlayer[test1][x=3cm,y=6cm]{ONE}
\setlayer[test2][x=8cm,y=2cm]{TWO}
\setlayer[test3][x=2cm,y=9cm]{THREE}
\StartSteps
\flushlayer[test1] \FlushStep
\flushlayer[test2] \FlushStep
\flushlayer[test3] \FlushStep
\StopSteps
\stoptext

This code produces 3 page output one word per each page. There is no need to 
click the mouse.
I may misunderstand about the layer.

However, is there a way to show each word one by one in the same page when I 
click.

Best regards,
Thank you.

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


Re: [NTG-context] question about the layer.

2013-05-29 Thread Jeong Dal
Dear Wolfgang,

Thank you for your solution.
It works well.

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


Re: [NTG-context] korean

2013-11-01 Thread Jeong Dal
Dear Wolfgang,


Thank you.

Best regards,

Dalyoung


 
 You need a newer version of context, I used the following version which 
 produces colored output.
 
 mtx-context | current version: 2013.10.30 14:53
 
 Wolfgang
 

Dear Wolfgang,

After updating to the current version (mtx-context | current version: 
2013.11.01 12:20), I run ConTeXt again.
But I still don't have the color output.
The addition of the command  \setupcolors[state=start] doesn't do any change.

Would you please give me a tip for fix?

 
 He seems to use Apple Mail like me, and I have no problems with it - seldom 
 breaks threads and displays Unicode glyphs correctly.
 Ah, but his says Apple Mail (2.1510)?, and the current version is 7.0
 
 Greetlings, Hraban

Dear Hraban,

I checked the version of Apple Mail which is 6.6(1510). Isn't it good for now?
I changed the fonts for the text with a hope to solve the problem.

Thanks Wolfgang and Hraban.

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


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

2013-11-01 Thread Jeong Dal
Dear Hans,

 
 After updating to the current version (mtx-context | current version: 
 2013.11.01 12:20), I run ConTeXt again.
 But I still don't have the color output.
 
 make sure you have input in triplets (no precomposed characters)
 

What do you mean input in triplets (no precomposed characters)?
We type the first consonant, second vowel, and third consonant in order, then 
computer show one character for these input. 

 - make sure you have the right fonts
 - check if there is an hanbatanglvt.lfg file (loaded)
 

Yes, there is an hanbatanglvt.lfg file.
ConTeXt/tex/texmf-context/tex/context/fonts/hanbatanglvt.lfg
But the installed font's name is HANBatang-LVT.ttf. 
So I changed the font name in your file from hanbatanglvt to HANBatang-LVT, 
also I copied the above lfg file as HANBatang-LVT.lfg in the same folder. 
Is it OK to use another Korean font?

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


Re: [NTG-context] korean

2013-11-02 Thread Jeong Dal

Dear Wolfgang and Hans,

 context normalizes font names ... so you can leave the name as it is 
 (works here)
 

I checked the font name in the terminal and the result as following:

MacBook:ConTeXt graph$ luatools hanbatanglvt.ttf

MacBook:ConTeXt graph$ luatools hanbatanglvt.otf

MacBook:ConTeXt graph$ luatools HANBatang-LVT.otf

MacBook:ConTeXt graph$ luatools HANBatang-LVT.ttf
/Users/graph/Library/Fonts/HANBatang-LVT.ttf

Thus font call hanbatanglvt doesn't work in my macbook. So, I thought my 
system is different from Hans' which may affect to this font coloring.  

I am using Macbook with OSX 10.8 and here are the versions of ConTeXt and 
LuaTeX:

mtx-context | current version: 2013.11.01 12:20
This is LuaTeX, Version beta-0.76.0-2013040508  (TeX Live 2013/dev)(rev 4627)


 get other users results when they test this?
 

I will upload this sample file in KTUG and ask to check. As soon as I know the 
result of other user, I'll let you know. 

 Is it OK to use another Korean font?

I tested other Korean font and got the correct output except the coloring.

 
 best discuss that with Chof cum suis as fonts need to have the right logic

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


Re: [NTG-context] korean

2013-11-02 Thread Jeong Dal
Dear Wolfgang,

Thank you for your suggestion.

 
 Try this on the command line:
 
 mtxrun --script font --list --file hanbatang*
 

I tried it and got the following output in which lvt is missing from the font 
name.

hcrbatang   normal   normal   normal   normal   hcrbatang   
/Users/graph/Library/Fonts/HANBatang.ttfconflict: book
hcrbatang   bold normal   normal   normal   hcrbatangbold   
/Users/graph/Library/Fonts/HANBatangB.ttf

 On my system I get this output:
 
 hcrbatanglvt   normal   normal   normal   normal   hcrbatanglvt   
 /Users/wolf/Library/Fonts/HANBatang-LVT.ttfconflict: book
 hcrbatanglvt   bold normal   normal   normal   hcrbatanglvtbold   
 /Users/wolf/Library/Fonts/HANBatangB-LVT.ttf
 

Is there any fix for this? How to update the database?

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


Re: [NTG-context] korean

2013-11-03 Thread Jeong Dal

Dear Wolfgang and Hans,

First, other user in KTUG succeeded to get the colorful output of your sample 
file. 
This means that there is a problem in my system.

 You can do a manual update of the database with
 
mtxrun --script fonts --reload
 

After running the above command, I got the right output of the command
 mtxrun --script font --list --file hanbatang* 

But there was another problem in my TeX file.

Korean in my file is precomposed characters, so I changed it to triplet by 
the help of Dohyun Kim, 
KTUG. 

(Someone who have an interest, please check the following:
   
http://www.ktug.org/xe/?document_srl=176946mid=KTUG_open_boardrnd=176962#comment_176962)

After fixing two problems, I succeeded to have colorful output. 

Thank you so much for this nice new feature.

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


Re: [NTG-context] korean (Hans Hagen)

2013-11-04 Thread Jeong Dal
Dear Hans,

 
 no, the decompose converts composed into 3 parts first (so one can use
 precomposed input)
 

 Then I don’t need to convert the file before running context.
It is great.
I’ll wait the next beta and tell it to KTUG users.

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

Re: [NTG-context] Euler with fallback

2014-02-17 Thread Jeong Dal

 
 Am 17.02.2014 um 15:29 schrieb Sanjoy Mahajan san...@olin.edu:
 
 Put your font definitions before \startcomponent or better put them
 in a environment file and load this file before \startcomponent.
 
 Sorry, I should have said that I had tried that, but it has the same
 problem (Euler font for everything).
 
 I can?t reproduce this, when I process your example the text is typeset with 
 the pagella font.
 
 Wolfgang

I run the sample code and got the correct output( patella for text and euler 
for math).
My ConTeXt version is 

ConTeXt  ver: 2013.12.20 23:45 MKIV beta  fmt: 2013.12.22  int: english/english

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


[NTG-context] passing arguments to \processMPbuffer

2014-04-21 Thread Jeong Dal
Dear all,

For \startuseMPgraphic, there is a way to do that (found in metafun book) as 
following:

\startuseMPgraphic{Labels}{s, t}
numeric u; u:= 1cm;

for i=0 upto 7:
label (textext($v_{  decimal (i)  }$ ), \MPvar{s}[origin,3u*dir(30*i)]) ;
label (textext($v_{  decimal (i)  }$ ), \MPvar{t}[origin,3u*dir(30*i)]) ;
endfor;
\stopuseMPgraphic

\starttext
\placefigure[][]{}
{\useMPgraphic{ColoringFace::Labeling}{s=0.8, t=1.3}}
\stoptext

Is there a way to the same job for \processMPbuffer instead of .5 and .7 in 
buffer?

\startbuffer[Labels]%{s, t}
numeric u; u:= 1cm;
for i=0 upto 7:
label (textext($v_{  decimal (i)  }$ ), .5[origin,3u*dir(30*i)]) ;
label (textext($v_{  decimal (i)  }$ ), .7[origin,3u*dir(30*i)]) ;
endfor;
\stopbuffer

\starttext
\processMPbuffer[Labels]%% ?{s, t}?
\stoptext

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


Re: [NTG-context] passing arguments to \processMPbuffer

2014-04-22 Thread Jeong Dal
Dear Wolfgang,

Thank you for your solution.
Sometimes I need to use \processMPbuffer for the animated graphics.
BTW, what is the differences between ‘MPrawvar’ and ‘MPvar’.
MPvar didn’t work in your example.

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

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
Dear Luigi and listers,

Last year, I need to write a text for a linear algebra class.
Since there are many \startmatrix … \stopmatrix and matrix calculations, I 
wrote a lua code which did matrix calculations and writing with a lot of help 
from this list. 
Using the code, I can write class materials easily. It is good enough for my 
purpose.
I am not good in Lua coding, so there may be many things to be checked for 
efficiency and for stability.

However, I attached the code because there may be someone who need it. 
It is also good thing to return what I get from the list back.

I hope that you enhance the code for better performance since you are an expert 
in Lua.

I always thank to this list and to developers of ConTeXt.

Best regards,

Dalyoung



MatrixLuacode.tex
Description: Binary data





 
 Message: 1
 Date: Fri, 23 May 2014 13:44:30 +0200
 From: luigi scarso luigi.sca...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Simple command with variable number of
   arguments
 Message-ID:
   CAG5iGsCadu33Hw=hphmde+wp1b_fcpjn0caxwjaso+vnqbj...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8
 
 On Fri, May 23, 2014 at 11:54 AM, Matthias Weber matwe...@indiana.eduwrote:
 
 Dear All,
 
 I would like to define a command that expands
 
 \vector{2,4} % or vector[2,4] if that?s easier
 
 to
 
 \startpmatrix
 \NC 2 \NR
 \NC 4 \NR
 \stoppmatrix
 
 and more generally
 
 \vector{2,4,1,7}
 
 to
 
 \startpmatrix
 \NC 2 \NR
 \NC 4 \NR
 \NC 1 \NR
 \NC 7 \NR
 \stoppmatrix
 
 Any hints how to achieve this?
 
 Thanks,
 
 
 
 
 \definemathmatrix
  [pmatrix]
  [left={\left(\,},right={\,\right)}]
 
 \startluacode
 document = document or {}
 document.matthias =  document.matthias or {}
 local function lua_columnvector(a)
 context.startpmatrix()
  for i,v in ipairs(a) do
 context.NC() context(tostring(v))  context.NR()
 end
 context.stoppmatrix()
 end
 document.matthias.lua_columnvector = document.matthias.lua_columnvector  or
 lua_columnvector
 \stopluacode
 
 \def\columnvector#1{\ctxlua{document.matthias.lua_columnvector(#1)}}
 
 \starttext
 \startformula
 \columnvector{{1,2,3}} %% watch the double { !
 \stopformula
 
 
 \stoptext
 
 -- 
 luigi
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20140523/569165d6/attachment-0001.html
 
 --

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Jeong Dal
Dear Hans,

Thank you for checking and enhancing.
I also got an error at “uppertri” as you point out. 
The version that I have sent is one in my notebook which may be different from 
that in the desktop at school. When I made a class material, it worked fine. I 
have to check it and send it to you again.
I appreciate you for making it more usable for ConTeXt users.

I also found that there is a matrix module for lua programming. It is nice for 
the calculation of matrix, but I have a difficulty to typeset the result. 
That’s why I try to write a code even though I am not good in Lua programming. 
If it is easy to take over the result into TeX, using the lua module is much 
efficient and correct, I think. 

Anyway, I hope that it helps to typeset matrices.

Best regards,

Dalyoung

 Hi,
 
 Can you check the attached? The uppertri is wrong but it was already wrong 
 (e.g. sign is used but never assigned). I inlined some code so ... I think 
 there were some more errors (obscured by the fact that that piece of code is 
 not reached).
 
 We can turn this into m-matrix or so, maybe we need to add some more.
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 xtest.tex

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Simple command with variable number of arguments

2014-05-24 Thread Jeong Dal
Dear Hans,

Here is the file in my desktop.
The reason I didn’t define “sgn” in the function “uppertri” is that it is 
inherited from the call of “determinant’.
However, I put “sgn=1” so that the function “uppertri” works independently.

I checked the function “uppertri” and found that it worked fine. Here is a 
sample file.

\environment MatrixLuacode


\starttext
\getbuffer[luaMatrix]

\startformula\startalign
\startluacode
local mat = {{0, 2, 4, -4, 1},{0, 0, 2, 3 , 4}, {2, 2, -6, 2, 4 }, {2,0 , -6, 
9, 7},{2, 2, -6, 2, 4 },{2, 2, -6, 2, 4 }}
-- local mat = {{1,2,3},{3,4,5},{3,4,5},{3,4,5},{3,4,5}}
context.NC(\\text{Given Matrix}\\quad\\Rightarrow\\quad)
context.NC()
matrixOP.write(mat)
context.NR()
context.NC()
context(\\text{Upper Triangular}\\quad\\Rightarrow\\quad)
mat = matrixOP.upperTri(mat)
context.NC()
matrixOP.write(mat)
context.NR()
\stopluacode
\stopalign\stopformula

\stoptext


Sometimes, I got “-0” as an entry of matrix after calculation but I couldn’t 
resolve it(I asked about it to this list before). 

Thank you.

Best regards,

Dalyoung



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

[NTG-context] about Noto Sans CJK font problem

2014-09-26 Thread Jeong Dal
Dear all,

Recently, I installed “Noto Sans CJK” font which is developed by Adobe and 
Google.
After “mtxrun —generate”, luatex locates the font.

For test, I run the following code and got “fatal error:no return code” 
message. 
Even though I didn’t include Korea test, it says the same error message.

However, I can use the font in the text editor without problem.

What is wrong in this case? 

Thank you.

Best regards,

Dalyoung


%\definefontfamily[mainface] [rm] [Noto Sans CJKkr]
%\setupbodyfont[mainface]

\definefont[test][NotoSansCJKkr-Regular at 14pt]

\starttext
\test
TeX uses different fonts for text and math, but it possible to replace certain 
characters in the math font with glyphs from a text font.

%한글이 잘 되는지 모르겠네요.
\stoptext


log file:
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=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
\write18 enabled.
open source  1  1  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.6 int: english/english
system  'cont-new.mkiv' loaded
open source  2  2  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
close source  2  2  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system  files  jobname 'test', input './test', result 'test'
fonts  latin modern fonts are not preloaded
languages  language 'en' is active
open source  2  3  /Users/graph/Documents/TeXfiles/test.tex
fonts  preloading latin modern fonts (second stage)
fonts  'fallback modern-designsize rm 12pt' is loaded
backend  xmp  using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages  flushing realpage 1, userpage 1
close source  2  3  /Users/graph/Documents/TeXfiles/test.tex
close source  1  3  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
mtx-context | fatal error: no return code, message: luatex: execution 
interrupted

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] about Noto Sans CJK font problem

2014-09-26 Thread Jeong Dal
Dear Akira,

Thank you for your test.

I updated to ConTeXt ver: 2014.09.26 11:42 MKIV beta and test it again.
But I got the same error.

There may be another problem which I don’t know.

Thank you again.

Best regards,

Dalyoung

 --
 
 Message: 6
 Date: Sat, 27 Sep 2014 10:30:51 +0900
 From: Akira Kakuto kak...@fuk.kindai.ac.jp
 To: ntg-context@ntg.nl
 Subject: [NTG-context]  about Noto Sans CJK font problem
 Message-ID: 2136E6CBAF67499789D6C08EDA3FE859@CJ3001517A
 Content-Type: text/plain; charset=utf-8; Format=flowed
 
 Recently, I installed ?Noto Sans CJK? font which is developed by Adobe and 
 Google.
 After ?mtxrun ?generate?, luatex locates the font.
 
 For test, I run the following code and got ?fatal error:no return code? 
 message. Even though I didn?t include Korea test, it 
 says the same error message.
 
 In the case of NotoSansCJKjp-Regular, context ends
 without errors  (mtx-context | current version: 2014.09.26 11:42).
 However the resulting PDF shows incorrect
 characters. I attach nototest.tar.gz:
 source = u.tex
 result = u.pdf
 Compare with the correct XeTeX case:
 source = u1.tex
 result = u1.pdf
 
 Best,
 Akira
 -- next part --
 A non-text attachment was scrubbed...
 Name: nototest.tar.gz
 Type: application/x-gzip
 Size: 9937 bytes
 Desc: not available
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20140927/a0769181/attachment.bin
 
 --
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 End of ntg-context Digest, Vol 123, Issue 40
 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] about Noto Sans CJK font problem

2014-09-27 Thread Jeong Dal


 I have tested your source by installing NotoSansCJKkr-Regular.otf etc.
 It seems to work OK.
 Note that I'm using  .otf fonts, not .ttf ones.
 I attach cjkkrtest.tar.gz in which there are k.tex and k.pdf.
 

Your output is perfect. 
But I still get an error message which is as same as Luigi mentioned.
Would you please send K.log file to compare with mine?

 
 luatex crashes with error message
 mtx-context | fatal error: no return code, message: latex: execution
 interrupted
 
 Under WINE (linux) mingw 64bit,
 luatex.exe
 Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5041)
 is ok
 
 luatex.exe experimental is also also ok and both give the same result of
 u.pdf

My version of latex is
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)

But it is not ok for me.

Anyway, there is some problem in my TeX system rather than in the font.
I’ll check it.

I am using ConTeXt standalone in Mac Maveric.

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

Re: [NTG-context] about Noto Sans CJK font problem

2014-09-28 Thread Jeong Dal
I updated ConTeXt standalone again and test it.
The result is same as before.

In the log file, it located the font but it issues the luatex error.
The font version is 1.001.

The only difference of the luatex  which I can see is that (mine: Standalone, 
rev 4972) and (Luigi’s: TeXLive 2014, rev 5041). 

Does it matter?

I may test it under TeXLive 2014 which I need to install it.

Thank you.

Best regards,

Dalyoung

Test code:

\definefont[test][file:NotoSansCJKkr-Thin.otf at 14pt]
\starttext
\test
TeX uses different fonts for text and math, but it possible to replace certain
characters in the math font with glyphs from a text font.
한글이 잘 되는지 모르겠네요.
\stoptext

Log file:
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=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
\write18 enabled.
open source  1  1  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.09.27 14:46 MKIV beta fmt: 2014.9.28 int: english/english
system  'cont-new.mkiv' loaded
open source  2  2  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
close source  2  2  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system  files  jobname 'test', input './test', result 'test'
fonts  latin modern fonts are not preloaded
languages  language 'en' is active
open source  2  3  /Users/graph/Documents/TeXfiles/test.tex
fonts  preloading latin modern fonts (second stage)
fonts  'fallback modern-designsize rm 12pt' is loaded
fonts  otf loading  loading 
'/Users/graph/Library/Fonts/NotoSansCJKkr-Thin.otf', hash 'notosanscjkkr-thin'
fonts  otf loading  loading done
fonts  otf loading  file size: 15177740
fonts  otf loading  fixing kernclass table of lookup 'pp_l_1_k_1'
fonts  otf loading  7 kern overloads ignored
fonts  encoding  loading (extended) adobe glyph list
fonts  otf loading  saving 
'/Users/graph/Library/Fonts/NotoSansCJKkr-Thin.otf' in cache
system  lua  compiling 
'/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/notosanscjkkr-thin.tma'
 into 
'/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/notosanscjkkr-thin.tmc'
system  lua  dumping 
'/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/notosanscjkkr-thin.tma'
 into 
'/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/notosanscjkkr-thin.tmc'
 stripped
fonts  otf loading  preprocessing and caching time 13.783, packtime 0.980
backend  xmp  using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages  flushing realpage 1, userpage 1
close source  2  3  /Users/graph/Documents/TeXfiles/test.tex
close source  1  3  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
mtx-context | fatal error: no return code, message: luatex: execution 
interrupted
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] error in animation

2014-09-29 Thread Jeong Dal
After updating ConTeXt standalone, \startanimation … \stopanimation is not 
working.
Here is a sample code and its log file. I tried another animation and have the 
same error message at \stopanimation line.

What is wrong in this code?

Thank you.

Best regards,

Dalyoung


\usemodule[animation]
\setupinteraction[state=start]
\useMPlibrary[dum]
\starttext
\startplacefigure[]
{\startanimation[menu=yes]
%{\startcombination[2*2]
{\externalfigure[dummy][]}
{\externalfigure[dummy][]}
{\externalfigure[dummy][]}
{\externalfigure[dummy][]}
%\stopcombination}
\stopanimation}
\stopplacefigure
\stoptext

open source  1  1  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.09.27 14:46 MKIV beta  fmt: 2014.9.28  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
close source 2  2  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system   files  jobname 'test-ani', input './test-ani', result 
'test-ani'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  /Users/graph/Documents/TeXfiles/test-ani.tex
resolversmodules  'animation' is loaded
interfacemacros  processed mkvi file 
'/Users/graph/ConTeXt/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi',
 delta 133
interfacemacros  processed mkvi file 
'/Users/graph/ConTeXt/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi',
 delta 0
open source  3  4  
/Users/graph/ConTeXt/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi
close source 3  4  
/Users/graph/ConTeXt/tex/texmf-modules/tex/context/third/animation/t-animation.mkvi
metapost library 'dum' is loaded
open source  3  5  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/meta-imp-dum.mkiv
close source 3  5  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/meta-imp-dum.mkiv
fontspreloading latin modern fonts (second stage)
fonts'fallback modern-designsize rm 12pt' is loaded
open source  3  6  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/java-imp-fld.mkiv
close source 3  6  
/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/java-imp-fld.mkiv
interactions javascripts  loaded: library 'fld'
graphics inclusion  format guess for './dummy' is not possible
graphics inclusion  format guess for '../dummy' is not possible
graphics inclusion  format guess for '../../dummy' is not possible
metapost initializing instance 'metafun' using format 'metafun'
metapost loading 'metafun' as 
'/Users/graph/ConTeXt/tex/texmf-context/metapost/context/base/metafun.mpiv' 
using method 'default'
metapost initializing number mode 'scaled'

lua errorerror on line 15 in file 
/Users/graph/Documents/TeXfiles/test-ani.tex:

.../ConTeXt/tex/texmf-context/tex/context/base/font-ctx.lua:1557: attempt to 
call global 'context_char' (a nil value)
stack traceback:
.../ConTeXt/tex/texmf-context/tex/context/base/font-ctx.lua:1557: in 
function 'fontchar'
[\directlua]:1: in main chunk

 5 
 6 \starttext
 7 \startplacefigure[]
 8 {\startanimation[menu=yes]
 9 %{\startcombination[2*2]
10 {\externalfigure[dummy][]}
11 {\externalfigure[dummy][]}
12 {\externalfigure[dummy][]}
13 {\externalfigure[dummy][]}
14 %\stopcombination}
15   \stopanimation}
16 \stopplacefigure
17 \stoptext
18 
19  
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] error in animation

2014-10-02 Thread Jeong Dal

Hi,

 
 {\externalfigure[dummy][]}{}
 

I added {} at the end, but I still got the same error.
 
 Works fine with ConTeXt  ver: 2014.09.26 11:42 MKIV beta
 
The previous bata version may be OK, but the latest version has a problem as 
Akira said.

Thank you for testing.

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

Re: [NTG-context] error in animation

2014-10-03 Thread Jeong Dal
 

\startanimation … \stopanimation is working in the new ConTeXt 2014.10.02 23:07 
version.

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

Re: [NTG-context] error in animation

2014-10-05 Thread Jeong Dal
Dear Wolfgang,

I am using animation feature frequently for the class materials.
It is very convenient to use \startanimation … \stopaimation.
It reduces many steps which I have to define.
Thank you for a nice module.

I’d like to ask you to add caption feature like \startcombination.

When I show the figures one by one, it is better to put a caption sometimes.
If you think that it is not too bad, would you please concern to add the 
feature?

I am sorry to ask too much.

Thank you again.

Best regards,

Dalyoung


2014. 10. 3., 오후 11:06, Jeong Dal hak...@me.com 작성:

 
 
 \startanimation … \stopanimation is working in the new ConTeXt 2014.10.02 
 23:07 version.
 
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-05 Thread Jeong Dal
Dear Wolfgang,

I tested after inserting figures instead of letters in your sample code and it 
also works fine.
It is so nice to know the way of using caption in the animation module.

Thank you for your help.

Best regards,

Dalyoung


%

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

\definepairedbox[animationtext][location=top,align=middle]

\starttext

\startanimation
{\placeanimationtext{The letter a}{\externalfigure[dummy]}}
{\placeanimationtext{The letter b}{\externalfigure[dummy]}}
{\placeanimationtext{The letter c}{\externalfigure[dummy]}}
{\placeanimationtext{The letter d}{\externalfigure[dummy]}}
\stopanimation

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-06 Thread Jeong Dal
Deat Hraban and Otared,

 
 I wikified that, but didn’t test:
 http://wiki.contextgarden.net/Animation
 

I read the wiki page and it is explained well about the animation.
Also, thank you for introducing  cites for making movies. 
It looks very nice but it would be a painful job, I think.

 Indeed a very nice feature in ConTeXt. 
 I tested Wolfgang’s example with math formulas and the result is very good: 
 however it seems that one has to fix the width of the caption by saying
   
 \definepairedbox[animationtext][location=top,align=middle,width=\textwidth]
 Otherwise the formulas are cut.
 

Thank you for mentioning the option \textwidth also. For graphic animation, it 
is good to resize the width according to the width of the figure so that the 
caption is located within the width of the figure. 

Thank Wolfgang and Hans for this nice feature and ConTeXt!
It makes my class materials fancy.

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

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-07 Thread Jeong Dal

Dear Woldgang,


I searched \definepairedbox and found several discussions as following:

http://www.ntg.nl/pipermail/ntg-context/2005/014315.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg71401.html

In the above examples, it took a long sentences as a caption while my example 
don’t allow multiple lines.
I inserted \crlf but it is not working.

The difference is that “side by side”(example above)  and “top and 
bottom”(example below).

Is there a way of allowing multiple lines?

Thank you.

Best regards,

Dalyoung


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

\definepairedbox[animationtext][location=top,align=middle]

\starttext

\startanimation
{\placeanimationtext{A long long long long long long long long long \crlf long 
long long long long long long long long long long long long long long long long 
long long long long caption}{\externalfigure[dummy]}}
{\placeanimationtext{The letter b}{\externalfigure[dummy]}}
{\placeanimationtext{The letter c}{\externalfigure[dummy]}}
{\placeanimationtext{The letter d}{\externalfigure[dummy]}}
\stopanimation

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-08 Thread Jeong Dal
Dear Wolfgang,


After changing the order, it works fine.

Also, \startcontent … \stopcontent and \startcaption … \stopcaption are working 
too.

Thank you for your help.

Best regards,

Dalyoung

\useMPlibrary[dum]
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\definepairedbox
[mylegend]
[location={bottom}] % width=10cm
\startanimation
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
{\startplacemylegend
{\externalfigure[dummy][]}
{ caption caption}
\stopplacemylegend}
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
\stopanimation
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-08 Thread Jeong Dal
Dear Wolfgang,


After changing the order, it works fine.

Also, \startcontent … \stopcontent and \startcaption … \stopcaption are working 
too.

Thank you for your help.

Best regards,

Dalyoung

\useMPlibrary[dum]
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\definepairedbox
[mylegend]
[location={bottom}] % width=10cm
\startanimation
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
{\startplacemylegend
{\externalfigure[dummy][]}
{ caption caption}
\stopplacemylegend}
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
\stopanimation
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \startanimation and \dorecurse

2014-10-20 Thread Jeong Dal
Hi,

I tested the following simple code to generate enlarging circles as a test of 
animation.
But it just draw 5 circles in a row.

\usemodule[animation]
\setupinteraction[state=start]
\startbuffer[Circles]
numeric u; u:= 1cm;
draw fullcircle scaled \MPrawvar{Circles}{s}u;
\stopbuffer
\starttext
\startanimation
{ \dorecurse{5}{%
\setupMPvariables[Circles][s=\recurselevel]
\processMPbuffer [Circles]
}}
\stopanimation
\stoptext

It seems to me that \startanimation just treat the figures 
{\dorecurse … } as just one figure.

Is there a way to treat it 5 figures to generate animation? 

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

Re: [NTG-context] \startanimation and \dorecurse

2014-10-21 Thread Jeong Dal
Dear Wolfgang,

Thank you for a nice solution.

I applied your method to produce an animation which draw a circle using the 
following:


\usemodule[animation]
\setupinteraction[state=start]
\startuseMPgraphic{Circles}{s}
numeric sn, L, N;
path p, q;
p := fullcircle scaled 72;
L:=length p;
N:=20;
sn:= \MPvar{s};
q := subpath (0, sn/N*L) of p;%
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopuseMPgraphic
\starttext
\startanimation
\dorecurse{20}
{\startexpanded
%\setupMPvariables[Circles][s]
\useMPgraphic{Circles}{s=\recurselevel}
\stopexpanded}
\stopanimation
\stoptext
%%

However, it just draw 20 figures instead of making an animation.

Would you please tell me what is wrong in the above code?

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

Re: [NTG-context] \startanimation and \dorecurse

2014-10-22 Thread Jeong Dal
Dear Wolfgang,

According to your advice, I am able to make a working example as following.

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

\startuseMPgraphic{Circles}{s}
numeric sn, L, N;
path p, q;
p := fullcircle scaled 72;
L:=length p;
N:=20;
sn := \MPvar{s};

q := subpath (0, sn/N*L) of p;%
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopuseMPgraphic

\starttext

\startanimation[menu=yes, menucolor=blue, framerate=5]
\dorecurse{20}
{\expanded{\frame{
\useMPgraphic{Circles}{s=\recurselevel
\stopanimation

\stoptext


One more question.

In metafun document, there is a command \setupMPvariables before 
\startuseMPgraphic. But we don’t use it in this example. 
Hence I think that it is not necessary always. Is there any case in which we 
have set the MPvariables?

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

Re: [NTG-context] korean unfonts globbing path error

2014-10-22 Thread Jeong Dal
Dear NY Park,

I am able to run your code in my mac without any error message.

My ConTeXt version is “ConTeXt  ver: 2014.10.19 21:08 MKIV beta  fmt: 
2014.10.20  int: english/english” which is as same as yours.

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

Re: [NTG-context] korean unfonts globbing path error

2014-10-23 Thread Jeong Dal


 fontsnames  globbing path 'c:/windows/fonts/**.ttf'
 
 fontsnames  identifying system font files with suffix 'TTF'
 
 mtx-context | fatal error: return code: 1Exit code: 1
 

It seems to me that there is a problem to make a font db.
Try “mtxrun unbatang.ttf” in the terminal to see if it locates the unbatang.ttf 
file.
If it doesn’t locate it, then 
“sudo mtxrun —generate” in the terminal and try “mtxrun unbatang.ttf” once more.
If you don’t get any output, you need to create the font db.

Because of some Korean fonts in the system font files(Window system), it can 
not create font db.
It is reported in the QA in KTUG with the solution.
Please search using the key word “LuaLaTeX”.

http://www.ktug.org/xe/index.php?_filter=searchmid=KTUG_QnA_boardsearch_target=contentsearch_keyword=lualatexdocument_srl=178432

I hope that you have the solution.

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

Re: [NTG-context] korean unfonts globbing path error

2014-10-23 Thread Jeong Dal
Dear Hans,

 
 http://www.ktug.org/xe/index.php?_filter=searchmid=KTUG_QnA_boardsearch_target=contentsearch_keyword=lualatexdocument_srl=178432
 
 I hope that you have the solution.
 
 not for latex … afaik it uses its own font database
 
Yes, the above solution is not for latex but for Lualatex.
One of my colleague who try to run Lualatex(TeXlive 2013 in the window 7) first 
time had a similar problem. After removing Korean fonts like penhl.ttf, 
taenmr.ttf from the system font file directories, she can run Lualatex.  
Someone registered those files in the blacklist which LuaTeX referred to when 
it scans fonts, and succeed to make font db.

Anyway, it is not the ConTeXt problem. It is because of the problematic fonts.

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

Re: [NTG-context] Steps in presentation

2015-01-03 Thread Jeong Dal
Dear Fabrice,

The following code is working in my mac. I tried your first code and it is 
working after adding \setupinteraction[].
Since I didn’t use ‘rsteps’ module, I could’t test the second code.

My ConTeXt version is as following.

ConTeXt  ver: 2014.12.21 22:25 MKIV beta  fmt: 2014.12.26  int: english/english


\setupinteraction[state=start]
\setupcolors[state=start] 

\usemodule[pre-60]

\setuppapersize[S4][S4]

\starttext

\StartSteps 
\startformula \startalign
\NC x^2 + y^2  \NC  = z^2 \NR \FlushStep
\NC   x^2 + y^2   \NC = z^2 \NR  \FlushStep
\stopalign\stopformula
\StopSteps
\stoptext

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

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Jeong Dal
Dear Wolfgang,

 You have to use \starthanging instead of \placefgure when you’re in a frame.
 
 \starttext
 
 \startframedtext[width=max]
 \starthanging[location=right]
 {\startMPcode
  draw unitsquare scaled 2cm ;
  \stopMPcode}
 \input tufte
 \stophanging
 \stopframedtext
 
 \stoptext
 
 Wolfgang

Thank you for letting me know the command “starthanging”.
I tried the command  “\startfiguretext … \stopfiguretext”, and found that there 
is no text below the square.

\startframedtext[width=\textwidth]{
\startfiguretext[right,none]{}{%
\startMPcode
 draw unitsquare scaled 2cm ;
 \stopMPcode}
\input knuth
\stopfiguretext}
\stopframedtext

Your example worked fine, but if we replace tufte by knuth, then text is 
written over the square while the tufte’s text was witten surround the square.
Is it expected result?

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

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Jeong Dal
Dear Otared and Wolfgang,

It works fine after replacing the text itself.
Thank you for the info.

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

[NTG-context] % !TeX root problem

2015-11-14 Thread Jeong Dal
Dear all,

I use product file: FM_main.tex which contains component files like FM_1.tex, 
FM_2.tex, etc.
They are all in the same folder.
In each component file, I put  “% !TEX root=FM_main.tex” at the first line.

It worked fine but some time after it won’t work. 
I know that it is a matter of TeXShop, but I just wonder why it doesn’t work 
now.
Is there any clue for this?

I am using TeXShop in the latest Mac OS X.
 
Thank you in advance.

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

Re: [NTG-context] % !TeX root problem

2015-11-16 Thread Jeong Dal
Dear Hans and Otared,

Thank you for the reply.

 I tried "%!TEX root =“  with no space before but it does’t work.

I think that ConTeXt doesn’t do anything as you said.

The strange thing is that  it worked in ConTeXt file sometime ago. 
I don’t remember from when it didn’t work.

Anyway it is not a big problem, though.

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

Re: [NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?

2015-12-08 Thread Jeong Dal
Dear all,


After searching ConTeXt wiki and googling, I got what I want using the attached 
code.
It can be modified in nicer way which I don’t know.
There are so many hidden commands in ConTeXt for me.
It is absolutely convenient to use the “\defineenumeration” if I don’t use 
FunnyFrame.

Thanks Hans and other developers of ConTeXt.

Best regards,

Dalyoung

%
\definenumber[ThmNumber][way=bychapter, prefix=no]
\setnumber[ThmNumber][1]

\startuseMPgraphic{FunnyFrame} 
picture p ; numeric o ; path a, b ; pair c ; 
p := textext.rt(\MPstring{ThmTitle}) ; 
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[Thm]
[frame=off,
background=FunnyFrame,
offset=\bodyfontsize, 
%increment=yes,
width=\textwidth,
before={\blank[big]},
after={\incrementnumber[ThmNumber]\blank}]

\def\FrameTitle#1% 
{\setMPtext{ThmTitle}{\hbox spread 1em{\hss\strut\ss\bf #1 
\namedheadnumber{chapter}.\getnumber[ThmNumber]\hss}}} 

\starttext

\startchapter[title={First Chapter}]
\setnumber[ThmNumber][1]

{\FrameTitle{Proposition}
\startThm
First theorem in chapter 1.\par
\stopThm}
\input Zapf
{\FrameTitle{Lemma}
\startThm
Second theorem in chapter 1.\par
\stopThm}
\blank
{\FrameTitle{Theorem}
\startThm
$3^{\text{rd}}$ theorem in chapter 1.\par
\stopThm}

\stopchapter

\startchapter[title={Second Chapter}]
\setnumber[ThmNumber][1]

{\FrameTitle{Theorem}  
\startThm
$1^{\text{st}}$ theorem in chapter 2.\par
\stopThm}

\input knuth

{\FrameTitle{Corollary}
\startThm
Second theorem in chapter 2.\par
\stopThm}

{\FrameTitle{Proposition}  
\startThm
Third theorem in chapter 2.\par
\stopThm}

\stopchapter

\stoptext



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?

2015-12-04 Thread Jeong Dal
Dear all,

I found a partial solution for my former question which still have problems.

1. I set a new counter “ThmNumber” and use it in the FrameTitle. Its output is 
similar to what I want. 
2. insert “after={\doglobal\increment\ThmNumber}” in the enumeration 
environment.
3. But the Initial value of ThmNumber is 0 even though \setcounter\ThmNumber1.

Please enhance the sample code which works nicer way.
Also, where can I find good explanation on “counter”?

Thank you for reading.

Best regards,

Dalyoung


%
\newcounter\ThmNumber
\setcounter\ThmNumber1
\increment\ThmNumber

\startuseMPgraphic{FunnyFrame} 
picture p ; numeric o ; path a, b ; pair c ; 
p := textext.rt(\MPstring{FunnyFrame}) ; 
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[Thm]
[frame=off,
background=FunnyFrame,
offset=\bodyfontsize, 
increment=yes,
width=\textwidth,
after={\doglobal\increment\ThmNumber}]%\overlaywidth]%

\def\FrameTitle#1% 
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf #1\hss}}} 

\starttext
This is a test for Framed Theorem.

I'd like to put \quote{Theorem \#1(Some Title)} in a small frame and the main 
text in the big frame.

\blank[big]

{\FrameTitle{Theorem \ThmNumber} 
\startThm
First theorem\par
\input knuth
\stopThm}

{\FrameTitle{Theorem \ThmNumber} 
\startThm
First theorem\par
\input knuth
\stopThm}

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] How to put title and counter of the enumeration env. in the FrameTitle?

2015-12-03 Thread Jeong Dal
Hi,

I use the FunnyFrame and FrameTitle in the metafun book to display theorems.
Thanks ConTeXt and MetaFun, it looks nice!
For better output,  I try to put “Theorem + number” in the FrameTitle instead 
of putting in the main text. But I couldn’t make it.
I found a similar question and answers by Hans in the list (2015. 8.6-7) under 
the title 
“Some questions about an environment (Metafun)”

It works fine but I want to put number too. I think that I want to much.

Thanks for reading.

Best regards,

Dalyoung

I am using the following code.


\defineenumeration[Theorem]
   [%text=Theorem ,
style=,
%title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
number=yes,
before={\blank[big]},
after=\blank]

\defineenumeration[Definition]
   [text=Definition,
style=,
%title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
number=yes,
before={\blank[big]},
after=\blank]

\startuseMPgraphic{FunnyFrame} 
picture p ; numeric o ; path a, b ; pair c ; 
p := textext.rt(\MPstring{FunnyFrame}) ; 
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 ; 
%fill b withcolor .85white ; 
draw b ; 
b := (boundingbox p) superellipsed .95 ; 
fill b withcolor .425green;%.85white ; 
draw b ; 
draw p withcolor black ;
setbounds currentpicture to a ; 
\stopuseMPgraphic 

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 
\defineframedtext[FunnyText][frame=off,background=FunnyFrame, 
offset=\bodyfontsize, width=\textwidth]%\overlaywidth]%
\def\StTheorem{\startFunnyText\startTheorem} 
\def\SpTheorem {\stopTheorem\stopFunnyText } 
\def\FrameTitle#1% 
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf\white #1\hss}}} 

\starttext
This is a test for Framed Theorem.

\StTheorem
This is a theorem in the Funny Frame. 
\SpTheorem


I'd like to put \quote{Theorem \#1(Some Title)} in a small frame and the main 
text in the big frame.

\blank[big]

{\FrameTitle{Theorem 2(Title of Theorem)} 
\StTheorem
I want to show the main text without \quote{Theorem 2} in this frame.
\SpTheorem

\stoptext

%%

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] about animation problem

2016-01-04 Thread Jeong Dal
Dear all,

First, Happy new year to all!

Here is the sample code in the wiki. 

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

\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]

\starttext

\startanimation[menu=yes]
{\placeanimationtext{The letter a}{\externalfigure[dummy]}}
{\placeanimationtext{The letter b}{\externalfigure[dummy]}}
{\placeanimationtext{The letter c}{\externalfigure[dummy]}}
{\placeanimationtext{The letter d}{\externalfigure[dummy]}}
\stopanimation

\stoptext
%%%

There is no error message during the compilation, but no output except the menu 
symbol.
When I click the play or forward button, there is no action at all.
Is there something more I have to do?

Thank you.

Best regards,

Dalyoung

* Here is the  version of ConTeXt in my Macbook.

This is LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) 
 system commands enabled.


ConTeXt  ver: 2015.12.21 12:16 MKIV beta  fmt: 2015.12.21  int: english/english


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] strange output in math display mode

2015-12-21 Thread Jeong Dal
Dear Hans,

After updating the minimal, I got a strange output of math display mode.
Would you please check it?

Here is an example.

Best regards,
Thank you.

Dalyoung


\starttext

Here is a strange output of math formula. It is displayed correctly in text 
line, but is displayed strangely in math display mode.
\blank
Here is a correct output  in text line.  $\int_0^t B(s)\ dB(s) = \frac{1}{2} 
B^2(t) - \frac{1}{2} t.$
\blank
But in the output of display mode, the location of the sub- super-script of the 
integral sign is not normal and the output of \type{ \frac{1}{2} B^2(t)} is 
wrong.

\startformula
\int_0^t B(s)\ dB(s) = \frac{1}{2} B^2(t) - \frac{1}{2} t.
\stopformula
\stoptext
%%
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] question about the \starteffect[hidden]

2015-11-23 Thread Jeong Dal
Dear Hans,

Thank you for the comment.
> 
> \startcolor[white] \stopcolor
> 

It works fine. It is really good feature for me to prepare the class materials.

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

[NTG-context] question about the \starteffect[hidden]

2015-11-22 Thread Jeong Dal
Dear all,

I need to hide some part of the text while keep the space for them .
I found a very nice command “ \starteffct[hidden]”
It works well in most cases.
But it couldn’t hide horizontal bars in math mode. Is there a way to hide 
horizontal bars also?

Here is an sample code.

Thank you.

Dalyoung

%%%

\def\StartHide{\doifmode{nodetails}{\starteffect[hidden]}}   
\def\StopHide{\doifmode{nodetails}{\stopeffect}}   

\enablemode[nodetails]

\starttext

Here is the test file for hiding something.
Below, the same sentence is hiding.
Here is the test file for hiding something.
Below, the same sentence is hiding.

\StartHide
Here is the test file for hiding something.
Below, the same sentence is hiding.
Here is the test file for hiding something.
Below, the same sentence is hiding.
\StopHide

But the horizontal bar in the fraction mode still appears.
\startformula
\frac{12}{1234567}
\stopformula

Hiding mode
\StartHide
\startformula
\frac{12}{1234567}
\stopformula
\StopHide
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] right to left direction for itemize columns

2016-02-22 Thread Jeong Dal
Dear Wolfgang,

 I’d like to ask one thing related with the itemize columns.

In my country, the items are listed from left to right first and then go down 
to the next line.
For example, to get the following output, 

1. first2. second   3. third
4. fourth   5. fifth6. sixth

I use the code as below.

\starttext

\startitemize[n, columns,three, ]
\item first
\item second
\item third
\stopitemize

\startitemize[continue]
\item fourth
\item fifth
\item sixth
\stopitemize

\stoptext

Is there any simpler way to achieve this?

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

Re: [NTG-context] right to left direction for itemize columns

2016-02-23 Thread Jeong Dal
Dear  Hans,

It is nice to have this feature in the next beta.
It will help us to make multiple-choice problems.

Thank you.

Best regards,

Dalyoung

> 
> \starttext
> 
> \startitemize[horizontal,a,three]
> \startitem first \stopitem \startitem second \stopitem
> \startitem third \stopitem \startitem fourth \stopitem
> \startitem fifth \stopitem
> \stopitemize
> 
> \startitemize[horizontal,n,four]
> \startitem first \stopitem \startitem second \stopitem
> \startitem third \stopitem \startitem fourth \stopitem
> \startitem fifth \stopitem \startitem sixth \stopitem
> \startitem seventh \stopitem
> \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] right to left direction for itemize columns

2016-02-22 Thread Jeong Dal
Dear Hans,

>> Is there any simpler way to achieve this?
> 
> how is that supposed to work with multi-line items ?
> 

I am sorry, I should explain more carefully.

This type of itemization usually needed to list the short answers of the 
multiple-choice questions.
Some problems are not well-composed, but you can see an example at the end of 
the following page. 

http://dugod1.tistory.com/archive/20120826 
 
http://blog.daum.net/_blog/BlogTypeView.do?blogid=0dl2J=153 


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

Re: [NTG-context] Fieldstacks are broken

2016-01-21 Thread Jeong Dal
Thanks Hans, Wolfgang, Luigi

The new beta with Luatex 0.88 makes \fieldstacks and \startanimation work.
The following example of Wolfgang is now working well.

\def\MyGraphics#1{%
\startMPcode
path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
q:=subpath (0,#1/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopMPcode}
\usemodule[animation]
\setupinteraction[state=start]

\starttext
\startanimation[menu=yes]
{\MyGraphics {5}}
{\MyGraphics {10}}
{\MyGraphics {15}}
{\MyGraphics {20}}
\stopanimation

\stoptext

One more question. Is there any convenient way to list \MyGraphics{#1}? I tried 
\dorecurse, but it just display figures one by one.  I also tried lua, but it 
stops with the error message  “unexpected symbol near ‘\'”.

\dorecurse{20}
{{\MyGraphics {\recurselevel}}

\startluacode
for i = 1, 20 do
context(“{\\MyGraphics {i}}”)
end
\stopluacode

Thanks again.

Best regards,

Dalyoung


> Today's Topics:
> 
>   1. Re: Fieldstacks are broken (Hans Hagen)
> 
> 
> --
> 
> Message: 1
> Date: Mon, 11 Jan 2016 10:53:56 +0100
> From: Hans Hagen 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID: <56937bb4.1070...@wxs.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 1/10/2016 5:01 PM, Wolfgang Schuster wrote:
>> Hi Hans,
>> 
>> the fieldstack mechanism doesn’t work anymore.
>> 
>> \setupinteraction[state=start]
>> 
>> \starttext \showframe
>> 
>> \definesymbol[frame-1][\tt 1]
>> \definesymbol[frame-2][\tt 2]
>> \definesymbol[frame-3][\tt 3]
>> 
>> \definefieldstack[frame][frame-1,frame-2,frame-3]
>> 
>> \placeontopofeachother
>> {\framed[strut=no,offset=1ex]{\fieldstack[frame]}}
>> {\goto{Play}[Walk{frame}]}
>> 
>> \stoptext
> 
> fixed in next engine update
> 
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
> -

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Fieldstacks are broken

2016-01-25 Thread Jeong Dal
Dear Wolfgang,


> The key has no effect because there is only one style for the buttons.
> 

I see.
I think that the other options: menu, menu color, framerate are enough for me.

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

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

2016-01-24 Thread Jeong Dal
Dear Fabrice,

I run the same file again and I think that main things in my log file is not 
different from yours.

Do you use Adobe Reader to view the pdf files?
The pdf viewer of TeXShop and that of TeXworks can not show the animation.

If you have the trouble even if you use the adobe reader, I don’t know the 
solution.

I hope that animation feature works in your computer.

Best regards,

Dalyoung

> 2016. 1. 24., 오후 8:40, ntg-context-requ...@ntg.nl 작성:
> 
> Date: Sun, 24 Jan 2016 12:39:56 +0100
> From: Fabrice Couvreur  >
> To: mailing list for ConTeXt users  >
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID:
>    >
> Content-Type: text/plain; charset="utf-8"
> 
> Hello everyone,
> I tested the code and it does not work: I get one page with buttons for
> animation is not working.
> thank you,
> Fabrice

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Fieldstacks are broken

2016-01-24 Thread Jeong Dal
I am sorry, I forgot to  change the subject. I send it again.

***
Dear Fabrice,

I run the same file again and I think that main things in my log file is not 
different from yours.

Do you use Adobe Reader to view the pdf files?
The pdf viewer of TeXShop and that of TeXworks can not show the animation.

If you have the trouble even if you use the adobe reader, I don’t know the 
solution.

I hope that animation feature works in your computer.

Best regards,

Dalyoung

> 2016. 1. 24., 오후 8:40, ntg-context-requ...@ntg.nl 
>  작성:
> 
> Date: Sun, 24 Jan 2016 12:39:56 +0100
> From: Fabrice Couvreur  >
> To: mailing list for ConTeXt users  >
> Subject: Re: [NTG-context] Fieldstacks are broken
> Message-ID:
>    >
> Content-Type: text/plain; charset="utf-8"
> 
> Hello everyone,
> I tested the code and it does not work: I get one page with buttons for
> animation is not working.
> thank you,
> Fabrice

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Fieldstacks are broken

2016-01-24 Thread Jeong Dal
Dear Wolfgang and Fabrice,

I am sorry. I didn’t notice that there is a difference between my code and 
Fabrice’s.
I made a wrong comment.

I know that there are several options in the animation module: menu, menustyle, 
menucolor, framerate.  
Would you please explain the menustyle option once more?

Thank you so much.

Best regards,

Dalyoung

 
> 2016. 1. 24., 오후 9:55, ntg-context-requ...@ntg.nl 작성:
> 
> \unexpanded\def\MyGraphics#1%
>   {\startMPcode
>  ...
>\stopMPcode}
> 
> or
> 
> \define[1]\MyGraphics
>   {\startMPcode
>  ...
>\stopMPcode}

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt vs Beamer

2016-01-26 Thread Jeong Dal
Dear Saša Janiška,

I’d like tell you about my case.
I have used Beamer long time ago, but now I am using ConTeXt + Simpleslides 
module for my presentations.
There are already many given templates. 
You can find them in the doc of simple slides.(…../tex/texmf-modules/doc/…)
However we  can make our own template if we want. 
Although I am not an expert, I made my own template by modifying the given 
templates.

I think that ‘animation module’ is also a good module for presentation.
Using it, we can make the presentation more interesting.

I hope that you got what you want by using ConTeXt.

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

Re: [NTG-context] Fieldstacks are broken

2016-01-22 Thread Jeong Dal
Dear Hans, Wolfgang

Thank you for the solutions.

“\unexpanded …” method is working well.

It can make the class materials more interesting.

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

Re: [NTG-context] Fieldstacks are broken

2016-01-22 Thread Jeong Dal
Dear Otared,

You are welcome. It is not my code.
As you know I am just an enduser of ConTeXt.
I also always thank to Hans, ConTeXt team and this list.
Here are always answers!

I mainly use ConTeXt to prepare documents, math papers, and class materials.
It is really good to use Metafun and Lua inside ConTeXt with ease. 
And the animation feature is really good to give better presentation to 
students.

As you said \dostepwiserecurse would be useful in many ways.

Please share your ideas too.

Best regards,

Dalyoung


> Hi Jeong,
> 
> I played with your code and indeed it is very nice to use this animation 
> feature (I never succeeded to imbed a movie in a TeX file typeset with 
> Context…).
> Thanks to Hans and Wolfgang, and you, I can now use such things in my 
> presentations.
> 
> Just to say something which may be useful, one can also use 
> \dostepwiserecurse as in
> 
> \startanimation[menu=yes]
> \dostepwiserecurse{0}{20}{2}{\expanded{\startframe \MyGraphics{\recurselevel} 
> \stopframe}}
> \stopanimation
> 
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \startuseMPgraphic

2016-04-11 Thread Jeong Dal
Dear Hans van der Meer,

Thank you for your sample code.
I learned how to pass the value of the variables.
BTW, if I change “orange” to “red” or “green”, it is working fine. I think that 
 “orange” is not the predefined color. There is no color “orange” in the  
MetaFun manual either.

Thank you.

Best regards, 
Dalyoung


> \starttext
> \startuseMPgraphic{myname1}{color}
>  pickup pencircle scaled 1mm;
>  draw unitsquare scaled 1cm withcolor \MPvar{color};
> \stopuseMPgraphic
> 
> \startuseMPgraphic{myname2}{color=red}
>  pickup pencircle scaled 1mm;
>  draw unitsquare scaled 1cm withcolor \MPvar{color};
> \stopuseMPgraphic
> 
> \useMPgraphic{myname1}{color=blue}
> \useMPgraphic{myname2}{color=orange}
> 
> \stoptext
> 
> Hans van der Meer
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] figures in tables

2016-04-01 Thread Jeong Dal
Dear Hans and listers,

I am sorry that I didn’t read another series of mails about “skipped figure 
numbers”.
Please ignore my previous mail.

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

Re: [NTG-context] figures in tables

2016-04-01 Thread Jeong Dal
Dear Hans,

Your sample works fine. This method gives me a flexibility of combining figures.

BTW, I have one question.

In the output, figure numbers started from 3, but suddenly jumped to 184. 
In a log file, 

metapost> initializing number mode 'scaled'
floatblocks > '3' placed
floatblocks > '4' placed
floatblocks > '5' placed
floatblocks > '6' placed
floatblocks > '7' placed
floatblocks > '8' placed
floatblocks > '9' placed
floatblocks > '10' placed
floatblocks > '11' placed
…
floatblocks > '241' placed
floatblocks > '242' placed
floatblocks > '243' placed
backend > xmp > using file 
'/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
pages   > flushing realpage 2, userpage 2
pages   > flushing realpage 3, userpage 3
pages   > flushing realpage 4, userpage 4
pages   > flushing realpage 5, userpage 5
pages   > flushing realpage 6, userpage 6
pages   > flushing realpage 7, userpage 7
pages   > flushing realpage 8, userpage 8
pages   > flushing realpage 9, userpage 9
pages   > flushing realpage 10, userpage 10
pages   > flushing realpage 11, userpage 11

I just curious why the number started from 3, and where are the numbers 4 - 182 
omitted.
Is there any other meaning?

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

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jeong Dal
Dear Fabrice and Wolfgang,

I tried the following code of yours, but I got “! undefined control sequence” 
error.
Would you please tell me where I should to correct?

Thank you so much,

Best regards,

Dalyoung

%%%
\setupbodyfont[pagella,11pt]

\setupcolors[state=start]

\defineframedtext
 [MyFrame]
 [before={\blank},
  after={\blank},
  frame=off,
  background=MyFrame,
  %width=\textwidth,
  width=max,
  height=fit,
  style=italic]

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

\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Définition");
p := textext.rt("\white\framedtextparamemter{Title}");
%p := textext.rt("\white\getvariable{text}{text1}");
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;
fill OverlayBox withcolor lightgray;  %\MPcolor{
fill b withcolor darkred;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw topboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw p;
setbounds currentpicture to boundingbox currentpicture enlarged 2mm;
\stopuseMPgraphic

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

\starttext

\showframe
\startMyFrame[Title=Hans]
\input knuth
\stopMyFrame

\startMyFrame[Title=Hagen]
\input knuth
\stopMyFrame

\stoptext

…..

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

 ... p := textext.rt("\white \framedtextparamemter 
  {Title}"); p := p shifted ...
\meta_process_graphic ...currentMPformat }data {#1
  ;}initializations {\meta_f...
\meta_handle_use_graphic ...a_process_graphic {#3}
  \endgroup 
\meta_use_graphic ...me \??mpgraphic #1\endcsname 
  \empty \meta_end_graphic_g...
 
\else 
\executedefinedoverlay ...e \everyoverlay #2\else 
  \lower \d_framed_target_dp...
...
l.52 \stopMyFrame
   

42 
43 \defineoverlay
44  [MyFrame]
45  [\useMPgraphic{MyFrame}]
46 
47 \starttext
48 
49 \showframe
50 \startMyFrame[Title=Hans]
51 \input knuth
52 >>  \stopMyFrame
53 
54 \startMyFrame[Title=Hagen]
55 \input knuth
56 \stopMyFrame
57 
58 \stoptext


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Optimize code to create a environnementt with Metafun ?

2016-07-28 Thread Jeong Dal
Dear Wolfgang,

Thank you for the correction, It works fine.
I couldn’t see extra ‘m’ when I check.

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

Re: [NTG-context] about table operation in lua-ConTeXt

2017-02-13 Thread Jeong Dal
Dear Henri, Hans, Procházka,

Thank you for the answers.
It is what I want, and I can complete my code.

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] about table operation in lua-ConTeXt

2017-02-12 Thread Jeong Dal
Dear all,

It may be a slight off topic.
In the following example, I copied a table “m” to “tempM”, and remove the last 
row of tempM.
Then the output is “ 2, 2”
I checked the contents of tempM and m and found that they are same even though 
I didn’t touch m.
I want to remove the last row of tempM while keeping the table m untouched.
Please tell me how to do it.

Thank you.
Best regards,

Dalyoung

\startbuffer[test]
\startluacode
 m = {{0, 2, 4},{2, 3 , 4}, {2, 2, -6}}
local tempM = {}

tempM = m
table.remove(tempM)
context(#tempM, “, ” , #m)
\stopluacode
\stopbuffer

\starttext
getbuffer[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
___

Re: [NTG-context] Displayed formula inside paragraph change vertical space before the paragraph

2017-01-16 Thread Jeong Dal
Dear Mikael,

 I didn’t see any problem which you mentioned when I run it under the ConTeXt 
version 2016.10. 6 MKIV beta.
But I saw a change the vertical space when I run it under ConTeXt version 2016. 
12. 28 MKIV beta after updated the bata.

I tested in several ways and found that the vertical space is narrow only in 
the following case:

Bla bla bla bla bla bla bla bla bla
%
\startformula
k>1000\implies |1/k-0|=1/k<1/1000=0.001.
\stopformula

Bla bla bla bla bla bla bla bla bla

If I remove either “%” or the formula, then the output looks fine.

As Otaired said it is better to open a new thread.

Best regards,

Dalyoung


> Maybe you should open a new thread with a title like « Bug in vertical 
> spacing of paragraphs » so that Hans may see it more easily.
> 
> 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] Clickable question/answer numbers (Otared Kavian)

2016-11-06 Thread Jeong Dal
Dear Otared,

Hi,
I run the given  code and got an error message as following.

tex error   > tex error on line 1 in file virtual://block.answer.2: ! 
Undefined control sequence

l.1 \myanswer
   [Q:test]



Would you please tell me how to avoid such an error?
It seems to me that you don’t have an error.

I am running minimal(beta) in OSX.

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] Clickable question/answer numbers

2016-11-07 Thread Jeong Dal
Dear Otared,

It is not the problem of your code. 
Strangely, the code you just sent to me is stopped by the same reason during 
the compilation
even though it does not contain the word “myanswer”.
After removing *.tmc file, the error disappear.  
I still don’t know why such an error occurred.

Anyway, I got a nice sample which is very useful.

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] floatcombination alignment has changed?

2016-12-08 Thread Jeong Dal
Dear Christoph,

I don’t know how to put figures horizontally using “\startfloatcombination”.
Is there any reason to use “\startfloatcombination”?

I usually use the following code when I need to display the figures.
It is displayed horizontally and center aligned nicely.


\useMPlibrary[dum]

\starttext
\placefigure{}{
 \startcombination[2*1]
{\externalfigure[cow.pdf]}{}
   {\externalfigure[cow.pdf]}{}
 \stopcombination}
 \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] floatcombination alignment has changed?

2016-12-10 Thread Jeong Dal
Dear Christoph,

Your knowledge on ConTeXt is much better than me.  I am just an end user.
It seems to me that you already found a solution.
However, many experts in this list will clear your question soon.
Good luck!

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] unwanted vertical space below combinations captions

2016-12-31 Thread Jeong Dal
Dear Mikael,

By changing the numbers [2*2] to [2*1], the space below the caption is 
disappeared.
I also got no space below the caption when I add two more contents while 
keeping  [2*2].
I think that it happened because of the mismatch between the numbers of 
contents and the dimension.

Best regards,

Dalyoung

PS: Happy New Year to all!

> 
> \framed[offset=overlay]{%
> \startcombination[2*2]

\startcombination[2*1]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] output of the table is wierd

2017-03-16 Thread Jeong Dal
Dear all,

I made a column as following:
…
\starttabulate[|c|c]
\HL
\NC $\sim (p \vee q)$ \VL   $\sim p \ 
\wedge \sim q$ \NC\NR \HL
\NC $\sim (p \ \wedge q)$ \VL   $\sim p 
\vee \sim q$ \NC\NR \HL
\NC $\sim (p \to q) $ \VL   $p \wedge \sim 
q$ \NC\NR \HL
\NC $\sim (p \leftrightarrow q)$\VL $(p \ 
\wedge \sim q) \vee (q \ \wedge \sim p)$ \NC\NR \HL
\stoptabulate   
…

The first column is OK.
But lines in the first three rows in the second column expanded to the width as 
wide as the last row.
So the it looked very strange.

Is there a way to avoid such a bad looking output?
I am using latest luatex and ConTeXt stand alone in OSX.

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] output of the table is wierd

2017-03-17 Thread Jeong Dal
Dear Wolfgang,

You are right. 
After putting “|”, the output is correct.

I did right in other tables except the given one.

Thank you for pointing out my mistake.

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 the table in the columns

2017-03-21 Thread Jeong Dal
Dear all,

I want to put a table at the center of the second column.
After compiling the code below, the first one(negation part) is appeared right,
but the second one(biconditional part) is not the center of the second column.
I can not see any difference between two codes.
What are wrong in the following code?

Best regards,

Dalyoung

\definefontfamily[mainface][rm][Noto Sans CJK KR][]
\definefontfamily[mainface][mm][Neo Euler][]

\setupbodyfont[mainface]

\setupalign[hanging]
\starttext
\subsubject{명제의 부정(Negation)}

\startcolumns[n=2]
어떤 명제 $p$의 부정은 "$p$가 아니다(not $p$)"이며 "$\neg p$(혹은 $ p$)"로 표현한다.
\column
\startplacetable[title={부정의 진리표}]
{\starttabulate[|c|c|]
\HL
\NC $p$ \NC $\neg p$\NC\SR 
\HL
\NC T \NC F\NC\AR
\NC T \NC T\NC\AR
\HL
\stoptabulate}
\stopplacetable
\stopcolumns

다음 명제들의 부정명제를 말해보시오.
\startitemize
\item  $p$: 지금 비가 오고 있다.
\item {\red $\neg p$: 지금 비가 오고 있지않다.}
\item $q$: -2는 양의 정수이다.
\item {\red $\neg q$: -2는 양의 정수가 아니다.}
\item $r:\ 3 + 4 = 5$
\item {\red $\neg r:\ 3 + 4 \ne 5$}
\stopitemize

\subsubject{쌍조건문(Biconditional)}

\startcolumns[n=2]
$p$이면 $q(p \to q)$인 동시에 $q$이면 $p(q \to p)$를 말하는 것으로  "$p$ if and only 
if $q$"로 표현하고 $p \ \leftrightarrow\ q$로 표시한다. 
\column
\startplacetable[title={쌍조건명제의 진리표}]
{\starttabulate[|c|c|c|]
\HL
\NC $p$ \NC $q$ \NC $p\leftrightarrow q$\NC\SR 
\HL
\NC T \NC T \NC T \NC\AR
\NC T \NC F \NC F  \NC\AR
\NC F \NC T \NC F \NC\AR
\NC F \NC F \NC T \NC\AR 
\HL
\stoptabulate}
\stopplacetable
\stopcolumns

\startitemize
\item $p:$ 파리는 영국의 수도이다.
\item  $q$: 2006년 월드컵에서 대한민국이 16강에 진출했다.
\item {\red 파리가 영국의 수도라는 것은 2006년 월드컵에서 대한민국이 16강에 진출하기 위한 필요충분조건이다.} 
\item $p$는 거짓이고  $q$ 역시 거짓이므로 $p\leftrightarrow q$는 참이다.
\stopitemize

\stoptext

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

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

[NTG-context] Question about " ! Infinite glue shrinkage inserted from \skip131" error

2017-03-10 Thread Jeong Dal
Dear all,

I have an error " ! Infinite glue shrinkage inserted from \skip131”
What is the meaning of this error?

Also, depending on the position of “\stopcomponent”, the error varies.

There are many similar lines in the file.
I am sorry that I can't give a sample file which invoke the same error.

Thank you for reading.

Best regards,

Dalyoung


putting \stopcomponent at the position (1), (2) are OK, no error.
putting \stopcomponent at the position (4) invoke the following  error.
…
pages   > flushing realpage 5, userpage 5
fonts   > bodyfont '24.0414pt' is defined (can better be done global)

tex error   > tex error on line 7 in file 
/Users/graph/Documents/Mathematics/MathModelling/MathModel2.tex: ! Infinite 
glue shrinkage inserted from \skip131


\handlenoteinsert ...enoteitself {#1}{#2}}\egroup 
  \the \everyafternoteinsert...
l.7 }
   
\clf_flushpostponednotes ...f_flushpostponednotes 
  
\flushnotes ...es \relax \clf_flushpostponednotes 
  \global \setfalse \postpon...
\page_breaks_process ...the \everybeforepagebreak 
  \c_page_breaks_prevpage \r...
 ...t \nonoindentation \else \page [\v!preference ]
  \page_otr_command_check_if...
...
l.50 \stopplacefigure
   

 1 % !TEX root =../../Main.tex
 2 
 3 \startcomponent MathModel2
 4 \product Main
 5 
 6 \SlideTitle{미적분학}
 7 >>  \null\vfill
 8 자연과 일상생활에서 일어나는 많은 일들의 수학적 모델을 잘 찾아낼 수만 있다면 앞으로의 변화나 예상되는 일들을 정확하게 파악할 수 
있을 것이다. 하지만 이런 일들의 정확한 수학적모델을 찾는다는 것은 매우 어려운 일이다. 
 9 대부분의 경우 어느 정도 오차를 인정하고 수학적모델을 만들 수 밖에 없는데 많은 경우에 미분방정식 혹은 편미분방정식으로 
모델링된다. 따라서, 이를 분석하기위해서는 미적분학, 넓게는 해석학의 도움이 많이 필요하다. 대학수학에서 미적분학을 필수로 다루는 이유도 
여기에 있다. 
10 \vfill
11 
12 \SlideTitle{개체군 증가모델}
13 \null\vfill
14 인구증가나 어떤 동물의 개체증가는 현재 존재하는 개체수가 많을수록 더 많이 증가할 것이라고 예상할 수 있다. 
15 즉, 인구가 작은 나라의 인구증가울보다 인구가 많은 나라의 인구증가율이 높을 것이라는 짐작이다. 이런 예상을 바탕으로 개체수가 
$N$이고 증가율이 $r$인 개체의 시간에 따른 증가율은 대체로 다음과 같은 방정식으로 표현할 수 있다. 
16 \nowhitespace
17 \startformula


? x

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.007 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 55 found files, scanned paths: 



putting \stopcomponent at the position (3), (5), (6) invoke the error
…..
pages   > flushing realpage 5, userpage 5
fonts   > bodyfont '24.0414pt' is defined (can better be done global)

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted
Process aborted
…..

Here is a part of the text.
% !TEX root =../../Main.tex

\startcomponent MathModel2
\product Main

\SlideTitle{미적분학}
\null\vfill
자연과 일상생활에서 일어나는 많은 일들의 수학적 모델을 잘 찾아낼 수만 있다면 앞으로의 변화나 예상되는 일들을 정확하게 파악할 수 있을 
것이다. 하지만 이런 일들의 정확한 수학적모델을 찾는다는 것은 매우 어려운 일이다. 
대부분의 경우 어느 정도 오차를 인정하고 수학적모델을 만들 수 밖에 없는데 많은 경우에 미분방정식 혹은 편미분방정식으로 모델링된다. 따라서, 
이를 분석하기위해서는 미적분학, 넓게는 해석학의 도움이 많이 필요하다. 대학수학에서 미적분학을 필수로 다루는 이유도 여기에 있다. 
\vfill

\SlideTitle{개체군 증가모델}
\null\vfill
인구증가나 어떤 동물의 개체증가는 현재 존재하는 개체수가 많을수록 더 많이 증가할 것이라고 예상할 수 있다. 
즉, 인구가 작은 나라의 인구증가울보다 인구가 많은 나라의 인구증가율이 높을 것이라는 짐작이다. 이런 예상을 바탕으로 개체수가 $N$이고 
증가율이 $r$인 개체의 시간에 따른 증가율은 대체로 다음과 같은 방정식으로 표현할 수 있다. 
\nowhitespace
\startformula
{dN \over dt} = r \cdot N
\stopformula
\nbb{활동} 개체군 증가모델이 만족해야할 조건들이 어떤 것들이 있는지 살펴보고 좀 더 나은 모델링을 찾아보자.
\vfill

\SlideTitle{로지스트형 개체군 성장모델}
\null\vfill
개체군 증가 모델이 실제로는 잘 맞지 않는 경우가 생긴다. 이는 환경, 자원 등의 문제때문이다. 
이를 감안한 모델이 다음과 같다.
\startformula
{dN \over dt} = r \cdot N(1 - {N \over K})
\stopformula
여기서 $k$는 환경수용능력을 나타내는 수로 개체당 출생률, 개체당 사망률, 개체군 크기에 따른 개체당 출생률의 변화율, 그리고 개체군 크기에 
따른 개체당 사망률의 변화율에 따라 정해지는 수이다. 
\vfill

\SlideTitle{퀘니히스베르그의 7개 다리}
%\null\vfill
\startplacefigure[location=none]
\startanimation[menu=yes]
 {\externalfigure[./MathShapes/7Bridges/konigsberg][width=.6\makeupwidth]}
 
{\externalfigure[./MathShapes/7Bridges/konigsbergDots][width=.6\makeupwidth]}
 
{\externalfigure[./MathShapes/7Bridges/konigsbergLines][width=.6\makeupwidth]}
 
{\externalfigure[./MathShapes/7Bridges/konigsbergGraph][width=.6\makeupwidth]}
\stopanimation
\stopplacefigure
%\vfill
%\stopcomponent(1)
\SlideTitle{지하철 지도}
\null\vfill
\startplacefigure[title={서울 지하철\footnote{네이버}}]
 {\externalfigure[./GraphBook/SubwaySeoul][width=.7\makeupwidth]}
\stopplacefigure
 \vfill
%%%\stopcomponent(2)

\SlideTitle{길 찾 기}
\null\vfill
\startplacefigure[title={길찾기 예}]
 {\externalfigure[./graphbook/Path2][width=.8\makeupwidth]}
\stopplacefigure
 \vfill

Re: [NTG-context] Question about " ! Infinite glue shrinkage inserted from \skip131" error

2017-03-11 Thread Jeong Dal
Dear Hans,

I can’t believe it!
After updating ConTeXt, all the errors are disappeared!

Here is the beginning of the log file before updating:
…
This is LuaTeX, Version 1.0.3 (TeX Live 2017/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: 2017.01.27 14:39 MKIV beta  fmt: 2017.2.16  
int: english/english
system  > 
…

This is the current one:

"cont-yes.mkiv"
This is LuaTeX, Version 1.0.3 (TeX Live 2017/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: 2017.03.02 22:23 MKIV beta  fmt: 2017.3.11  
int: english/english
system  > 


Thank you and have a nice weekend.

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 \setupheadertexts : simplify a code

2017-08-18 Thread Jeong Dal
Hi, Otared,

I am also able to typeset Aditya’s example without problem, so example file is 
OK for me.
There may be something which is not in the file.
I am using MKIV beta 6. 21 version under OSX.

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: 2017.06.21 23:03 MKIV beta  fmt: 2017.6.25  
int: english/english

Best regards,

Dalyoung


> 2017. 8. 19. 오전 7:14, ntg-context-requ...@ntg.nl 작성:
> 
> About \setupheadertexts : simplify a code

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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   >