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

2017-03-10 Thread Hans Hagen

On 3/10/2017 5:34 PM, Jeong Dal wrote:

Dear all,

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


latest luatex and latest context?


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
%%%(3)

\SlideTitle{연결하기 문제}
\null\vfill
\startplacefigure[title={전기, 개스, 상수도 연결하기}]
 {\externalfigure[./GraphBook/fig103][width=.8\makeupwidth]}
\stopplacefigure
 \vfill

%%%(4)
\SlideTitle{그래프 모델링의 예}

Re: [NTG-context] everybeforeoutput vs everyafteroutput

2017-03-10 Thread Hans Hagen

On 3/10/2017 10:07 AM, Michael Eidenbenz wrote:

hello,

i try to understand the difference of everybeforeoutput and everafteroutput to 
inject some pages. it seems as there is no difference.
\the\everybeforeoutput is placed after the output of the page:

\newtoks\Before
\appendtoks
\the\Before
\global\Before\emptytoks
\to\everybeforeoutput

\newtoks\After
\appendtoks
\the\After
\global\After\emptytoks
\to\everyafteroutput

\starttext
\input{knuth}\par
\appendtoks{before}\to\Before
\appendtoks{after}\to\After
\stoptext


this code in page-otr.mkvi seems to put it before the content:

\def\page_otf_set_engine_output_routine#content%
  {\global\output
 {\inotrtrue
  \the\everybeforeoutput
  #content\relax
  \the\everyafteroutput}}

can this be fixed?


there is nothing wrong .. you feed something in the output routine there

you can try to use one of the other \before\after ones but be aware of 
possible interferences with tex's state, hold content etc ... 
\startpostponing ... might do what you want


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] 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] The requested font has no files for the 'tf' alternative

2017-03-10 Thread Pablo Rodriguez
On 03/09/2017 10:33 AM, Marco Patzer wrote:
> \definefontfamily
>   [mainface]
>   [rm]
>   [Caecilia LT Std Roman]
>   %% doesn't work, either
>   %% [tf=file:CaeciliaLTStd-Roman.otf]
> [...]
>   %% \definedfont [name:CaeciliaLTStd-Roman] %% this works

Hi Marco,

how about the following?

   \definefontfamily[mainface][rm][Caecilia LT Std-Roman]

What it works is a different font name. And I guess that Roman isn’t
part of the font name, but this is the style.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] everybeforeoutput vs everyafteroutput

2017-03-10 Thread Michael Eidenbenz
hello,

i try to understand the difference of everybeforeoutput and everafteroutput to 
inject some pages. it seems as there is no difference. 
\the\everybeforeoutput is placed after the output of the page:

\newtoks\Before
\appendtoks
\the\Before  
\global\Before\emptytoks 
\to\everybeforeoutput

\newtoks\After
\appendtoks
\the\After 
\global\After\emptytoks 
\to\everyafteroutput

\starttext
\input{knuth}\par
\appendtoks{before}\to\Before
\appendtoks{after}\to\After
\stoptext


this code in page-otr.mkvi seems to put it before the content:

\def\page_otf_set_engine_output_routine#content%
  {\global\output
 {\inotrtrue
  \the\everybeforeoutput
  #content\relax
  \the\everyafteroutput}}

can this be fixed? 
thanks michael





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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] The requested font has no files for the 'tf' alternative

2017-03-10 Thread Marco Patzer
On Fri, 10 Mar 2017 08:13:59 +0800
Vladimir Lomov  wrote:

> Some time ago I faced the same problem: I tried to use one of
> Microsoft font but it didn't work, the only thing I saw in log was
> the same message. I solved the problem by deleting "font cache"
>   luatex-cache/context/HASH/fonts
> and generating it again
>   mtxrun --script fonts --reload --force

Thanks for the response. The same result with the rebuilt cache.

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

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