[NTG-context] Re: [OS X TeX] TeX run : 8
Hans Hagen [EMAIL PROTECTED] 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 The Mac output (plus the Win output) were unfortunately bounced back - Message body is too big: 59628 bytes with a limit of 40 KB. But if someone is interested I can send it privately. Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Steffen Wolfrum wrote: Hans Hagen [EMAIL PROTECTED] 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Hans Hagen [EMAIL PROTECTED] 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Hans Hagen [EMAIL PROTECTED] 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Hans Hagen [EMAIL PROTECTED] 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Gerben Wierda [EMAIL PROTECTED] wrote: Hans Hagen [EMAIL PROTECTED] 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{} 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
... I meant: maybe this is too old? c \thisisutilityversion{2003.07.19} Steffen Gerben Wierda [EMAIL PROTECTED] wrote: Hans Hagen [EMAIL PROTECTED] 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{} 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Steffen Wolfrum wrote: I opened them and they wrote all the same: c \thisissectionseparator{:} c \thisisutilityversion{2003.07.19} c \thisisbytesequence{} 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Hans Hagen [EMAIL PROTECTED] 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{} \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{} \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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: [OS X TeX] TeX run : 8
Steffen Wolfrum wrote: Hans Hagen [EMAIL PROTECTED] 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context