ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Re: [OS X TeX] TeX run : 8
@ 2005-03-02 11:59 Steffen Wolfrum
  2005-03-02 12:31 ` Hans Hagen
  2005-03-02 12:35 ` Re: [OS X TeX] " Hans Hagen
  0 siblings, 2 replies; 27+ messages in thread
From: Steffen Wolfrum @ 2005-03-02 11:59 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> wrote:

>  Steffen Wolfrum wrote:
>  > After playing a bit with minimal examples I think the "bug" has to do
>  > with the project structure. Here comes a very minimal example that
>  > *still* runs 8 times under Mac (2 times under Win)! Why?
>  >
>  > Given a main TEST.tex file and besides that a PARTS folder containing
>  > the files ONE.tex and TWO.tex :
>  >
>  >
>  > TEST.tex
>  > \startproject TEST
>  > \startfrontmatter
>  > \component PARTS/ONE.tex
>  > \component PARTS/TWO.tex
>  > \stopfrontmatter
>  > \stopproject
>  >
>  >
>  > ONE.tex
>  > \startcomponent ONE
>  > text
>  > \stopcomponent
>  >
>  > TWO.tex
>  > \startcomponent TWO
>  > text
>  > \stopcomponent
>
>  this runs normal here; (but your big zip didn't as mentioned in a 
>previous mail)
>
>  Hans


How many runs do you have under Mac OS X?
And what is your setup for Mac: Gerben's tex.ii2 plus your recent cont-tmf.zip?

Steffen

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 11:59 Re: [OS X TeX] TeX run : 8 Steffen Wolfrum
@ 2005-03-02 12:31 ` Hans Hagen
  2005-03-02 19:46   ` Patrick Gundlach
  2005-03-02 12:35 ` Re: [OS X TeX] " Hans Hagen
  1 sibling, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 12:31 UTC (permalink / raw)


Steffen Wolfrum wrote:

> How many runs do you have under Mac OS X?

dunno, the mac is not updated yet and actually not sitting on my desk but in my 
library; best let patrick and/or adam test that since they normally have the 
latest (alpha/beta/current) versions


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 11:59 Re: [OS X TeX] TeX run : 8 Steffen Wolfrum
  2005-03-02 12:31 ` Hans Hagen
@ 2005-03-02 12:35 ` Hans Hagen
  1 sibling, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 12:35 UTC (permalink / raw)


Steffen Wolfrum wrote:

> How many runs do you have under Mac OS X?

ps. it's on my agenda to have a mini mac with decent keyboard on my desk 
(instead of the cumbersome 17 inch laptop) sharing the large display i use on my 
workhorse laptop; at that time i'll also sync the mac versions of context

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: TeX run : 8
  2005-03-02 12:31 ` Hans Hagen
@ 2005-03-02 19:46   ` Patrick Gundlach
  2005-03-02 20:05     ` Patrick Gundlach
  2005-03-02 23:32     ` Adam Lindsay
  0 siblings, 2 replies; 27+ messages in thread
From: Patrick Gundlach @ 2005-03-02 19:46 UTC (permalink / raw)


Hello Hans, Steffen and all the others involved,

> dunno, the mac is not updated yet and actually not sitting on my desk
> but in my library; best let patrick and/or adam test that since they
> normally have the latest (alpha/beta/current) versions

I have tried your small file (the one you have sent me) an a vanilla
tetex 3.0 and an older texlive (I had to dig out my iBook -- anybody
wants to buy a used iBook?) and both were two runs.

I do not use Gerben's tex, so we cannot really compare the results.

Patrick


(sorry for not reading this earlier)
-- 
ConTeXt wiki: http://contextgarden.net

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: TeX run : 8
  2005-03-02 19:46   ` Patrick Gundlach
@ 2005-03-02 20:05     ` Patrick Gundlach
  2005-03-02 20:32       ` Hans Hagen
  2005-03-02 23:32     ` Adam Lindsay
  1 sibling, 1 reply; 27+ messages in thread
From: Patrick Gundlach @ 2005-03-02 20:05 UTC (permalink / raw)


Hello again,

> I have tried your small file (the one you have sent me) an a vanilla
> tetex 3.0 and an older texlive (I had to dig out my iBook -- anybody
> wants to buy a used iBook?) and both were two runs.

Ah, not so fast, Patrick. I can reproduce your problem:

$ ls -lR
.:
total 4
drwxr-xr-x    4 pg       pg            136 Mar  2 20:27 PARTS
-rw-r--r--    1 pg       pg            117 Mar  2 20:28 TEST.tex

./PARTS:
total 8
-rw-r--r--    1 pg       pg             40 Mar  2 20:27 ONE.tex
-rw-r--r--    1 pg       pg             40 Mar  2 20:27 TWO.tex

(so setup is TEST.tex in all capitals and ONE.tex and TWO.tex in
subdir, tetex 3.0). Now I run

texexec --pdf test.tex

(lowercase test.tex !)

and I get:

[...]

 utility file analysis : another run needed
               TeX run : 8


[...]


Note that the standard OS X filesystem is case preserving, but not
case sensitive when accessing a file. So accessing test.tex would be
happy with a file called TEST.tex. It is possible to create a pure
case sensitive HFS+ filesystem, but it isn't necessary to reproduce
the problem. (It would probably avoid it, though).


Patrick
-- 
ConTeXt wiki: http://contextgarden.net

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 20:05     ` Patrick Gundlach
@ 2005-03-02 20:32       ` Hans Hagen
  2005-03-02 22:15         ` Patrick Gundlach
  0 siblings, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 20:32 UTC (permalink / raw)


Patrick Gundlach wrote:

>>I have tried your small file (the one you have sent me) an a vanilla
>>tetex 3.0 and an older texlive (I had to dig out my iBook -- anybody
>>wants to buy a used iBook?) and both were two runs.
> 
> 
> Ah, not so fast, Patrick. I can reproduce your problem:
> 
> $ ls -lR
> .:
> total 4
> drwxr-xr-x    4 pg       pg            136 Mar  2 20:27 PARTS
> -rw-r--r--    1 pg       pg            117 Mar  2 20:28 TEST.tex
> 
> ./PARTS:
> total 8
> -rw-r--r--    1 pg       pg             40 Mar  2 20:27 ONE.tex
> -rw-r--r--    1 pg       pg             40 Mar  2 20:27 TWO.tex
> 
> (so setup is TEST.tex in all capitals and ONE.tex and TWO.tex in
> subdir, tetex 3.0). Now I run
> 
> texexec --pdf test.tex
> 
> (lowercase test.tex !)
> 
> and I get:
> 
> [...]
> 
>  utility file analysis : another run needed
>                TeX run : 8
> 
> 
> [...]
> 
> 
> Note that the standard OS X filesystem is case preserving, but not
> case sensitive when accessing a file. So accessing test.tex would be
> happy with a file called TEST.tex. It is possible to create a pure
> case sensitive HFS+ filesystem, but it isn't necessary to reproduce
> the problem. (It would probably avoid it, though).

ah, i explicitly tried both lower and uppercase variants of the sample files, 
but windows does not care, i.e. all access deep down in the system is (afaik) 
cap. So i saw no difference here.

so, what do you recomend, renaming the file to lowercase?

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: TeX run : 8
  2005-03-02 20:32       ` Hans Hagen
@ 2005-03-02 22:15         ` Patrick Gundlach
  0 siblings, 0 replies; 27+ messages in thread
From: Patrick Gundlach @ 2005-03-02 22:15 UTC (permalink / raw)


Hello Hans,

[...]

> ah, i explicitly tried both lower and uppercase variants of the sample
> files, but windows does not care, i.e. all access deep down in the
> system is (afaik) cap. So i saw no difference here.

> so, what do you recomend, renaming the file to lowercase?

Well, my mail was sent too soon. The problems also arises without
the uppercase variant. So currently I doubt that it has to do with the
naming alone. 

Patrick

-- 
ConTeXt wiki: http://contextgarden.net

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 19:46   ` Patrick Gundlach
  2005-03-02 20:05     ` Patrick Gundlach
@ 2005-03-02 23:32     ` Adam Lindsay
  2005-03-03  7:38       ` Hans Hagen
  2005-03-03 10:05       ` Patrick Gundlach
  1 sibling, 2 replies; 27+ messages in thread
From: Adam Lindsay @ 2005-03-02 23:32 UTC (permalink / raw)


Patrick Gundlach said this at Wed, 2 Mar 2005 20:46:05 +0100:

>
>> dunno, the mac is not updated yet and actually not sitting on my desk
>> but in my library; best let patrick and/or adam test that since they
>> normally have the latest (alpha/beta/current) versions

I can't add much to this discussion, other than I get 1 < n < 9 runs with
Steffen's minimal test case as well. I'm running Hans's minimal distro
and the latest alpha. (On my new Mac mini. :)

[And boy, it sure is faster than the setup I had on my PowerBook!]
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: TeX run : 8
  2005-03-02 23:32     ` Adam Lindsay
@ 2005-03-03  7:38       ` Hans Hagen
  2005-03-03  9:49         ` Adam Lindsay
  2005-03-03 10:05       ` Patrick Gundlach
  1 sibling, 1 reply; 27+ messages in thread
From: Hans Hagen @ 2005-03-03  7:38 UTC (permalink / raw)


Adam Lindsay wrote:
> Patrick Gundlach said this at Wed, 2 Mar 2005 20:46:05 +0100:
> 
> 
>>>dunno, the mac is not updated yet and actually not sitting on my desk
>>>but in my library; best let patrick and/or adam test that since they
>>>normally have the latest (alpha/beta/current) versions
> 
> 
> I can't add much to this discussion, other than I get 1 < n < 9 runs with
> Steffen's minimal test case as well. I'm running Hans's minimal distro
> and the latest alpha. (On my new Mac mini. :)
> 
> [And boy, it sure is faster than the setup I had on my PowerBook!]

if it runs ok on your old box ... is it related to the version of perl?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03  7:38       ` Hans Hagen
@ 2005-03-03  9:49         ` Adam Lindsay
  0 siblings, 0 replies; 27+ messages in thread
From: Adam Lindsay @ 2005-03-03  9:49 UTC (permalink / raw)


Hans Hagen said this at Thu, 3 Mar 2005 08:38:11 +0100:

>> [And boy, it sure is faster than the setup I had on my PowerBook!]
>
>if it runs ok on your old box ... is it related to the version of perl?

Old box is in for repair--can't test it. :/
It was a slower processor, with heavier TeX trees, and a full (fragmented
disk)--no real surprise that a virgin setup on a new machine is nicer.

Anyway, on both machines, Perl is stock 5.8.1-RC3, nothing modified from
what Apple ships with the current OS.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: TeX run : 8
  2005-03-02 23:32     ` Adam Lindsay
  2005-03-03  7:38       ` Hans Hagen
@ 2005-03-03 10:05       ` Patrick Gundlach
  2005-03-03 10:34         ` Adam Lindsay
  1 sibling, 1 reply; 27+ messages in thread
From: Patrick Gundlach @ 2005-03-03 10:05 UTC (permalink / raw)


Hello Adam,


[...]

> [And boy, it sure is faster than the setup I had on my PowerBook!]

Don't say that ;-). I just got a new PowerBook.

Patrick (and happy with it)
-- 
ConTeXt wiki: http://contextgarden.net

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: TeX run : 8
  2005-03-03 10:05       ` Patrick Gundlach
@ 2005-03-03 10:34         ` Adam Lindsay
  0 siblings, 0 replies; 27+ messages in thread
From: Adam Lindsay @ 2005-03-03 10:34 UTC (permalink / raw)


Patrick Gundlach said this at Thu, 3 Mar 2005 11:05:15 +0100:

>> [And boy, it sure is faster than the setup I had on my PowerBook!]
>
>Don't say that ;-). I just got a new PowerBook.

My _two-year-old_ 12" PowerBook. The Mac mini'd be just a shade slower
than the current (very attractive) generation of PBs.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 13:24 Steffen Wolfrum
  2005-03-02 13:31 ` Gerben Wierda
  2005-03-02 14:50 ` Hans Hagen
@ 2005-03-03  7:28 ` Hans Hagen
  2 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-03  7:28 UTC (permalink / raw)


Steffen Wolfrum wrote:
> Hans Hagen <pragma@wxs.nl> wrote:
> 
>>  Steffen Wolfrum wrote:
>>  > TEST.tex
>>  > \startproject TEST
>>  > \startfrontmatter
>>  > \component PARTS/ONE.tex
>>  > \component PARTS/TWO.tex
>>  > \stopfrontmatter
>>  > \stopproject

(not related to the problem but ...)

projects normally only have references to products/components/environments, so 
you example should be:

\startproduct TEST

\startfrontmatter
\component PARTS/ONE.tex
\component PARTS/TWO.tex
\stopfrontmatter

\stopproduct

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
@ 2005-03-02 19:08 Steffen Wolfrum
  0 siblings, 0 replies; 27+ messages in thread
From: Steffen Wolfrum @ 2005-03-02 19:08 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> wrote:


>  and the tuo files?
>
>  texexec --pdf test.tex --runs=2
>  copy test.tuo test-2.tuo
>
>  texexec --pdf test.tex --runs=3
>  copy test.tuo test-3.tuo
>
>  texexec --pdf test.tex --runs=4
>  copy test.tuo test-4.tuo



test-3.tuo and test-4.tuo are identical
(via openssl md5 *.tui - as Gerben explained) :

%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Commands
%
\thisissectionseparator{:}
\thisisutilityversion{2003.07.19}
\thisisbytesequence{\a^[“}
\initializevariable\usedcolorchannels{}
\initializevariable\lastpage{1}
\initializevariable\lastpagenumber{1}
\initializevariable\totalnofMPgraphics{0}
\initializevariable\totalnofpositions{0}
\initializevariable\totalnofparbackgrounds{0}
\initializevariable\currentstrategypass{1}
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Registers
%
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Synonyms
%
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Files
%
% PARTS/TWO.tex (2)
% test (2)
% PARTS/ONE.tex (2)
%
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Status
%
% embedded files    : 3 (0 errors)
% synonym entries   : 0 (0 errors)
% register entries  : 0 (0 errors)
% metapost graphics : 0
% position commands : 0 (not used)
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / System
%


AND


test-2.tuo and test-n.tuo (texexec --pdf test.tex) are identical :


%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Commands
%
\thisissectionseparator{:}
\thisisutilityversion{2003.07.19}
\thisisbytesequence{\a^[“}
\initializevariable\usedcolorchannels{}
\initializevariable\lastpage{1}
\initializevariable\lastpagenumber{1}
\initializevariable\totalnofMPgraphics{0}
\initializevariable\totalnofpositions{0}
\initializevariable\totalnofparbackgrounds{0}
\initializevariable\currentstrategypass{1}
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Registers
%
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Synonyms
%
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Files
%
% PARTS/ONE.tex (2)
% test (2)
% PARTS/TWO.tex (2)
%
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Status
%
% embedded files    : 3 (0 errors)
% synonym entries   : 0 (0 errors)
% register entries  : 0 (0 errors)
% metapost graphics : 0
% position commands : 0 (not used)
%
% TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / System
%



Steffen

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 16:03 Steffen Wolfrum
@ 2005-03-02 16:47 ` Hans Hagen
  0 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 16:47 UTC (permalink / raw)


Steffen Wolfrum wrote:

> c \thisisutilityversion{2003.07.19}

no, the version only chnages when the format of the tui file changes and is used 
to catch

- a version mismatch with texutil (needs updating)
- updates in the formats (needs one extra run one time)



Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 15:57 Steffen Wolfrum
@ 2005-03-02 16:45 ` Hans Hagen
  0 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 16:45 UTC (permalink / raw)


Steffen Wolfrum wrote:

> I opened them and they wrote all the same:
> 
> c \thisissectionseparator{:}
> c \thisisutilityversion{2003.07.19}
> c \thisisbytesequence{\a^[“}
> f b {test}
> f b {PARTS/ONE.tex}
> f e {PARTS/ONE.tex}
> f b {PARTS/TWO.tex}
> f e {PARTS/TWO.tex}
> c \initializevariable\usedcolorchannels{}
> f e {test}
> c \initializevariable\lastpage{1}
> c \initializevariable\lastpagenumber{1}
> c \initializevariable\totalnofMPgraphics{0}
> c \initializevariable\totalnofpositions{0}
> c \initializevariable\totalnofparbackgrounds{0}
> c \initializevariable\currentstrategypass{1}

and the tuo files?

texexec --pdf test.tex --runs=2
copy test.tuo test-2.tuo

texexec --pdf test.tex --runs=3
copy test.tuo test-3.tuo

texexec --pdf test.tex --runs=4
copy test.tuo test-4.tuo

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 15:33     ` Gerben Wierda
@ 2005-03-02 16:43       ` Hans Hagen
  0 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 16:43 UTC (permalink / raw)


Gerben Wierda wrote:

> Lines like these make my eyebrows go up though it might not be th eproblem
> at hand. What if $JobName contains whitespace?

it has worked ok for many years on our linux and windows boxes, and quoting in 
perl is mostly a problem for windows (perl being more unix oriented) and all 
quoting magic in texexec is for windows

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
@ 2005-03-02 16:03 Steffen Wolfrum
  2005-03-02 16:47 ` Hans Hagen
  0 siblings, 1 reply; 27+ messages in thread
From: Steffen Wolfrum @ 2005-03-02 16:03 UTC (permalink / raw)


... I meant: maybe this is too old?

c \thisisutilityversion{2003.07.19}

Steffen



Gerben Wierda <Gerben.Wierda@rna.nl> wrote:

>  > Hans Hagen <pragma@wxs.nl> wrote:
>  >>  texexec test --pdf --runs=1
>  >>  copy test.tui 1.tui
>  >>  texexec test --pdf --runs=2
>  >>  copy test.tui 2.tui
>  >>  texexec test --pdf --runs=3
>  >>  copy test.tui 3.tui
>  >>  texexec test --pdf
>  >>  copy test.tui n.tui
>  >>
>  >>  where do the tui's difer?
>  >>
>  >>  Hans
>  >
>  >
>  > They don't. They are all the same.
>  > But nevertheless texexec test --pdf ran 8 runs ...
>
>  - How do you check that they are the same? (cmp command?)

...

>  G


I opened them and they wrote all the same:

c \thisissectionseparator{:}
c \thisisutilityversion{2003.07.19}
c \thisisbytesequence{\a^[“}
f b {test}
f b {PARTS/ONE.tex}
f e {PARTS/ONE.tex}
f b {PARTS/TWO.tex}
f e {PARTS/TWO.tex}
c \initializevariable\usedcolorchannels{}
f e {test}
c \initializevariable\lastpage{1}
c \initializevariable\lastpagenumber{1}
c \initializevariable\totalnofMPgraphics{0}
c \initializevariable\totalnofpositions{0}
c \initializevariable\totalnofparbackgrounds{0}
c \initializevariable\currentstrategypass{1}


Steffen

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
@ 2005-03-02 15:57 Steffen Wolfrum
  2005-03-02 16:45 ` Hans Hagen
  0 siblings, 1 reply; 27+ messages in thread
From: Steffen Wolfrum @ 2005-03-02 15:57 UTC (permalink / raw)


Gerben Wierda <Gerben.Wierda@rna.nl> wrote:

>  > Hans Hagen <pragma@wxs.nl> wrote:
>  >>  texexec test --pdf --runs=1
>  >>  copy test.tui 1.tui
>  >>  texexec test --pdf --runs=2
>  >>  copy test.tui 2.tui
>  >>  texexec test --pdf --runs=3
>  >>  copy test.tui 3.tui
>  >>  texexec test --pdf
>  >>  copy test.tui n.tui
>  >>
>  >>  where do the tui's difer?
>  >>
>  >>  Hans
>  >
>  >
>  > They don't. They are all the same.
>  > But nevertheless texexec test --pdf ran 8 runs ...
>
>  - How do you check that they are the same? (cmp command?)

...

>  G


I opened them and they wrote all the same:

c \thisissectionseparator{:}
c \thisisutilityversion{2003.07.19}
c \thisisbytesequence{\a^[“}
f b {test}
f b {PARTS/ONE.tex}
f e {PARTS/ONE.tex}
f b {PARTS/TWO.tex}
f e {PARTS/TWO.tex}
c \initializevariable\usedcolorchannels{}
f e {test}
c \initializevariable\lastpage{1}
c \initializevariable\lastpagenumber{1}
c \initializevariable\totalnofMPgraphics{0}
c \initializevariable\totalnofpositions{0}
c \initializevariable\totalnofparbackgrounds{0}
c \initializevariable\currentstrategypass{1}


Steffen

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 14:55   ` Hans Hagen
  2005-03-02 15:18     ` Taco Hoekwater
@ 2005-03-02 15:33     ` Gerben Wierda
  2005-03-02 16:43       ` Hans Hagen
  1 sibling, 1 reply; 27+ messages in thread
From: Gerben Wierda @ 2005-03-02 15:33 UTC (permalink / raw)


> Gerben Wierda wrote:
>
>> - How do you check that they are the same? (cmp command?)
>> - How does texexec check if another run is needed?
>
> texexec calls texutil which converts a tui file into a tuo file (in the
> process
> it sorts indexes and such); when a job is aborted (or has errors) no tuo
> file is
> generated (saves an additional later run after a fix); copied from
> texexec:
>
> use File::Compare;
>
> sub RunTeXutil {
>      my $StopRunning;
>      my $JobName = shift;
>      unlink "$JobName.tup";
>      rename "$JobName.tuo", "$JobName.tup";
>      print "  sorting and checking : running texutil\n";
>      my $TcXSwitch = '';
>      if ( $TcXPath ne '' ) { $TcXSwitch = "--tcxpath=$TcXPath" }
>      RunPerlScript( $TeXUtil, "--ref --ij --high $TcXPath $JobName" );

Lines like these make my eyebrows go up though it might not be th eproblem
at hand. What if $JobName contains whitespace?

This stuff must run on Win and Unix so shall escapes and quoting is not
the same on both sides. From the perlfunc man page:

exec LIST
The exec() function executes a system command AND NEVER RETURNS. Use the
system() function if you want it to return.

If there is more than one argument in LIST, or if LIST is an array with
more than one value, calls execvp(3) with the arguments in LIST. If there
is only one scalar argument, the argument is checked for shell
metacharacters. If there are any, the entire argument is passed to /bin/sh
-c for parsing. If there are none, the argument is split into words and
passed directly to execvp(), which is more efficient. Note: exec() (and
system(0) do not flush your output buffer, so you may need to set $| to
avoid lost output.

I am not at my system right now, but executing stuff is a bit tricky to
get the same on Win and Unix. And given that the argument contains
multiple arguments for texutil, I suspect it is the one-argument version
of system() (which does shell interpretation) that is eventually used.
Better circumvent this and use the LIST version which is almost guaranteed
to be the same on both OS's.

>
>      if ( -e "$JobName.tuo" ) {
>          CheckPositions($JobName);
>          $StopRunning = !compare( "$JobName.tup", "$JobName.tuo" );
>      } else {
>          $StopRunning = 1;
>      }    # otherwise potential loop
>      if ( !$StopRunning ) {
>          print "\n utility file analysis : another run needed\n";
>      }
>      return $StopRunning;
> }
>
> maybe some file permissions problem?
>
> Hans
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                               | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 14:55   ` Hans Hagen
@ 2005-03-02 15:18     ` Taco Hoekwater
  2005-03-02 15:33     ` Gerben Wierda
  1 sibling, 0 replies; 27+ messages in thread
From: Taco Hoekwater @ 2005-03-02 15:18 UTC (permalink / raw)



Hans wrote:
>     unlink "$JobName.tup";
>     rename "$JobName.tuo", "$JobName.tup";

I mistrust these two lines. Essentially, these are system calls
without error checking. Lots of stuff can go wrong here.

Taco

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 13:31 ` Gerben Wierda
@ 2005-03-02 14:55   ` Hans Hagen
  2005-03-02 15:18     ` Taco Hoekwater
  2005-03-02 15:33     ` Gerben Wierda
  0 siblings, 2 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 14:55 UTC (permalink / raw)


Gerben Wierda wrote:

> - How do you check that they are the same? (cmp command?)
> - How does texexec check if another run is needed?

texexec calls texutil which converts a tui file into a tuo file (in the process 
it sorts indexes and such); when a job is aborted (or has errors) no tuo file is 
generated (saves an additional later run after a fix); copied from texexec:

use File::Compare;

sub RunTeXutil {
     my $StopRunning;
     my $JobName = shift;
     unlink "$JobName.tup";
     rename "$JobName.tuo", "$JobName.tup";
     print "  sorting and checking : running texutil\n";
     my $TcXSwitch = '';
     if ( $TcXPath ne '' ) { $TcXSwitch = "--tcxpath=$TcXPath" }
     RunPerlScript( $TeXUtil, "--ref --ij --high $TcXPath $JobName" );

     if ( -e "$JobName.tuo" ) {
         CheckPositions($JobName);
         $StopRunning = !compare( "$JobName.tup", "$JobName.tuo" );
     } else {
         $StopRunning = 1;
     }    # otherwise potential loop
     if ( !$StopRunning ) {
         print "\n utility file analysis : another run needed\n";
     }
     return $StopRunning;
}

maybe some file permissions problem?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 13:24 Steffen Wolfrum
  2005-03-02 13:31 ` Gerben Wierda
@ 2005-03-02 14:50 ` Hans Hagen
  2005-03-03  7:28 ` Hans Hagen
  2 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 14:50 UTC (permalink / raw)


Steffen Wolfrum wrote:

> They don't. They are all the same.
> But nevertheless texexec test --pdf ran 8 runs ...

ah ... and how bout the tuo file? are they produced?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 13:24 Steffen Wolfrum
@ 2005-03-02 13:31 ` Gerben Wierda
  2005-03-02 14:55   ` Hans Hagen
  2005-03-02 14:50 ` Hans Hagen
  2005-03-03  7:28 ` Hans Hagen
  2 siblings, 1 reply; 27+ messages in thread
From: Gerben Wierda @ 2005-03-02 13:31 UTC (permalink / raw)


> Hans Hagen <pragma@wxs.nl> wrote:
>>  texexec test --pdf --runs=1
>>  copy test.tui 1.tui
>>  texexec test --pdf --runs=2
>>  copy test.tui 2.tui
>>  texexec test --pdf --runs=3
>>  copy test.tui 3.tui
>>  texexec test --pdf
>>  copy test.tui n.tui
>>
>>  where do the tui's difer?
>>
>>  Hans
>
>
> They don't. They are all the same.
> But nevertheless texexec test --pdf ran 8 runs ...

- How do you check that they are the same? (cmp command?)
- How does texexec check if another run is needed?

Hans,

if you want me to test something tonight on Mac OS X, different versions
of TeX, I can. I'll first update to any latest ConTeXt beta if any.

G

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
@ 2005-03-02 13:24 Steffen Wolfrum
  2005-03-02 13:31 ` Gerben Wierda
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Steffen Wolfrum @ 2005-03-02 13:24 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> wrote:

>  Steffen Wolfrum wrote:
>  > TEST.tex
>  > \startproject TEST
>  > \startfrontmatter
>  > \component PARTS/ONE.tex
>  > \component PARTS/TWO.tex
>  > \stopfrontmatter
>  > \stopproject
>  >
>  >
>  > ONE.tex
>  > \startcomponent ONE
>  > text
>  > \stopcomponent
>  >
>  > TWO.tex
>  > \startcomponent TWO
>  > text
>  > \stopcomponent
>  >
>  >
>  >
>  > The Mac output (plus the Win output) were unfortunately bounced back -
>  > Message body is too big: 59628 bytes with a limit of 40 KB.
>
>  texexec test --pdf --runs=1
>  copy test.tui 1.tui
>  texexec test --pdf --runs=2
>  copy test.tui 2.tui
>  texexec test --pdf --runs=3
>  copy test.tui 3.tui
>  texexec test --pdf
>  copy test.tui n.tui
>
>  where do the tui's difer?
>
>  Hans


They don't. They are all the same.
But nevertheless texexec test --pdf ran 8 runs ...

Steffen

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-02 11:04 Steffen Wolfrum
@ 2005-03-02 11:32 ` Hans Hagen
  0 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 11:32 UTC (permalink / raw)


Steffen Wolfrum wrote:
> TEST.tex
> \startproject TEST
> \startfrontmatter
> \component PARTS/ONE.tex
> \component PARTS/TWO.tex
> \stopfrontmatter
> \stopproject
> 
> 
> ONE.tex
> \startcomponent ONE
> text
> \stopcomponent
> 
> TWO.tex
> \startcomponent TWO
> text
> \stopcomponent
> 
> 
> 
> The Mac output (plus the Win output) were unfortunately bounced back -
> Message body is too big: 59628 bytes with a limit of 40 KB.

texexec test --pdf --runs=1
copy test.tui 1.tui
texexec test --pdf --runs=2
copy test.tui 2.tui
texexec test --pdf --runs=3
copy test.tui 3.tui
texexec test --pdf
copy test.tui n.tui

where do the tui's difer?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Re: [OS X TeX] TeX run : 8
  2005-03-01 17:24 Steffen Wolfrum
@ 2005-03-02 11:28 ` Hans Hagen
  0 siblings, 0 replies; 27+ messages in thread
From: Hans Hagen @ 2005-03-02 11:28 UTC (permalink / raw)


Steffen Wolfrum wrote:
> Hans Hagen <pragma@wxs.nl> wrote:
> 
> ...
> 
>>  just post to the context list what you want to achieve with that and 
>> i will look
>>  into it (minimal example and such)
>>
>>  so, nothing for gerben to worry about since it's not related to the 
>> mac, but
>>  more to trickery -)
>>
>>  Hans
> 
> 
> 
> 
> After playing a bit with minimal examples I think the "bug" has to do 
> with the project structure. Here comes a very minimal example that 
> *still* runs 8 times under Mac (2 times under Win)! Why?
> 
> Given a main TEST.tex file and besides that a PARTS folder containing 
> the files ONE.tex and TWO.tex :
> 
> 
> TEST.tex
> \startproject TEST
> \startfrontmatter
> \component PARTS/ONE.tex
> \component PARTS/TWO.tex
> \stopfrontmatter
> \stopproject
> 
> 
> ONE.tex
> \startcomponent ONE
> text
> \stopcomponent
> 
> TWO.tex
> \startcomponent TWO
> text
> \stopcomponent

this runs normal here; (but your big zip didn't as mentioned in a previous mail)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2005-03-03 10:34 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-02 11:59 Re: [OS X TeX] TeX run : 8 Steffen Wolfrum
2005-03-02 12:31 ` Hans Hagen
2005-03-02 19:46   ` Patrick Gundlach
2005-03-02 20:05     ` Patrick Gundlach
2005-03-02 20:32       ` Hans Hagen
2005-03-02 22:15         ` Patrick Gundlach
2005-03-02 23:32     ` Adam Lindsay
2005-03-03  7:38       ` Hans Hagen
2005-03-03  9:49         ` Adam Lindsay
2005-03-03 10:05       ` Patrick Gundlach
2005-03-03 10:34         ` Adam Lindsay
2005-03-02 12:35 ` Re: [OS X TeX] " Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2005-03-02 19:08 Steffen Wolfrum
2005-03-02 16:03 Steffen Wolfrum
2005-03-02 16:47 ` Hans Hagen
2005-03-02 15:57 Steffen Wolfrum
2005-03-02 16:45 ` Hans Hagen
2005-03-02 13:24 Steffen Wolfrum
2005-03-02 13:31 ` Gerben Wierda
2005-03-02 14:55   ` Hans Hagen
2005-03-02 15:18     ` Taco Hoekwater
2005-03-02 15:33     ` Gerben Wierda
2005-03-02 16:43       ` Hans Hagen
2005-03-02 14:50 ` Hans Hagen
2005-03-03  7:28 ` Hans Hagen
2005-03-02 11:04 Steffen Wolfrum
2005-03-02 11:32 ` Hans Hagen
2005-03-01 17:24 Steffen Wolfrum
2005-03-02 11:28 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).