[NTG-context] "Trial typesetting" in ConTeXt / lua ?

2015-11-14 Thread josephcanedo
Dear all,


Is it possible in ConTeXt within lua code to do “trial typesetting” (not sure 
that’s best name for what I would like to achieve) ? By this I mean store some 
input (with text and macros) in some buffer and do what ConTeXt does normally 
(parsing, create nodes …) but instead of shipping the nodes to line breaking 
algorithm and to the page output, only retrieve the nodes and after discard 
them. This is to get an estimate of the total text width within a paragraph (to 
calculate some shape on the paragraph).


I browsed the lua code from http://source.contextgarden.net/ but I do not dare 
to use too low level lua functionality.


Many thanks for any hint (even a pointer to lua function).


Best regards


Joseph Canedo___
If your question is of interest to others as well, please add an 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
___

[NTG-context] can't find file `./1.tex'.

2015-11-14 Thread Context NTG
I installed in windows 7 x64 standatalone context from
http://standalone.contextgarden.net/setup/context-setup-mswin.zip
I installed it with first-setup.bat --version=current --modules=all
I added d:\context\tex\texmf-win64\bin in the PATH
I made a simple \starttext .. \stoptext file and run it in a command prompt
with:

context myfile.tex

Below is the output. Would somebody know what could cause this problem

Thanks
John



ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2015.11.14  int:
english/english
system  > 'cont-new.mkiv' loaded
open source > 2 > 2 >
D:/0_System/software_portable/context/context0/tex/tex
mf-context/tex/context/base/cont-new.mkiv
close source> 2 > 2 >
D:/0_System/software_portable/context/context0/tex/tex
mf-context/tex/context/base/cont-new.mkiv
system  > files > jobname '1', input './1', result '1'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
tex error   > error on line 8 in file
D:/0_System/software_portable/context/
context0/tex/texmf-context/tex/context/base/cont-yes.mkiv: ! I can't find
file `
./1.tex'.
l.8 }
\clf_processjob ...uafunction \16>>clf_processjob
l.97 \getvalue{clf_processjob}
 % from cont-run.lua
 1 %D \module
 2 %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4 %D  title=\CONTEXT\ Miscellaneous Macros,
 5 %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 >>  %D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13
14 % At some point I will reconsider the \starttext .. \stoptext
15 % wraping as we can assume proper styling. It's a left-over from
16 % mkii that we need to get rid of.
17
18 % now moved to cont-run.lua
Please type another input file name:
___
If your question is of interest to others as well, please add an 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
___