Re: [NTG-context] ConTeXt upgrade blues
On 31. des. 2006, at 8:29, Hans Hagen wrote: > texexec --make --all > > the --all will force all patterns to be loaded yes, but take a look at lang-no.dat – \patterns{} is empty. I don't know if it's significant. -- Rolf Lindgren [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Where is ifforwardreference defined?
> grep -r ifforwardreference . That finds only the \newif and uses of the new if. To find the algorithm, you want egrep -r 'forwardreference(false|true)' . because the assignments are done by \forwardreferencetrue and \forwardreferencefalse (a property of the TeX macro language, so not specific not ConTeXt). -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt upgrade blues
� wrote: > On 30. des. 2006, at 11:27, Rolf Marvin B�e Lindgren wrote: > > >> OK, so the ConTeXt that comes with the TeX distribution I use (until >> eariler today, MacPorts, and as from later today, fink) is ancient. >> >> now, with good old LaTeX that's not much of a problem - just put the >> most recent release in the few relevant places in texmf-local, >> rebuild the formats, and off you go. with ConTeXt, that's, er, not >> so simple. >> >> > > OK, the problem was solvable and I now have an up-to-date ConTeXt. > the only remaining issue is that of hyphenation - the previous > version, apparently had Norwegian hyphenation on by default. I > managed to coerce ConTeXt into handeling it, but what is the > canonical way to edit which hyphenation patterns ConTeXt loads when > building formats? > > texexec --make --all the --all will force all patterns to be loaded (luatex will provide runtime loading of patterns) 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] store counter or variable and reread again
On Sun, 31 Dec 2006, Thomas Engel wrote: > Aditya Mahajan wrote: > > > \unprotect > > \def\addtocounter#1#2% #1 name #2 value > > > [EMAIL PROTECTED] > > \protect > > > > % To Hans and Taco: Should the above macro be added to syst-ext? > > > > % Now lets define everything in terms of ConTeXt's counter macros > > > > \makecounter{Points} > > > > % % show the points on the right side > > \def\showP[#1]{\inright{\hskip 10mm \framed{#1} }} > > > > \def\pkt[#1]% > > {\showP[#1]% > > \addtocounter{Points}{#1}} > > % > > > > \def\nofPoints{0} % Number of points from previous run > > > > \def\savenofPoints > >{\savecurrentvalue\nofPoints{\countervalue{Points}}} > > > > % It is a bit boring to type \savenofPoints everytime > > > > \appendtoks \savenofPoints \to \everystoptext > > > Thanks for your help. It's great! > > What I recognized is when I put this on layer for better placement of > the header it doesn't work. > Here is an example: > > \def\Schulaufgabekopf% > {\bf \tfa > \setupTABLE[option=stretch] > \setupTABLE[frame=off] > \setupTABLE[column][1][width=0.7\textwidth] > \setupTABLE[column][2][width=0.3\textwidth] > > \setupTABLE[row][2,3,4][background=color,backgroundcolor=gray,frame=off] > \setupTABLE[row][5][height=1cm] > \bTABLE > \bTR \bTD \strut \eTD \bTD \strut \eTD \eTR > \bTR \bTD \AAnr \eTD \bTD Date: \eTD \eTR > \bTR \bTD Name:\eTD \bTD Points: \hfill of \nofPoints \eTD\eTR > \bTR \bTD Form: \Klnr \eTD \bTD Mark: \eTD \eTR > \bTR \bTD [nc=3, align=low] \tfxx Unterschrift eines > Erziehungsberechtigten: \thinrule \eTD \eTR > \eTABLE} > > \definelayer[kopf][width=\paperwidth, height=\paperheight] > > %Klassenarbeiten Kopf > \def\AAnr{2. Schulaufgabe Englisch 2006/2007} > \def\Klnr{10 \hfill} > %\definelogo[SAK] [top][left][command=\Schulaufgabekopf] > %\placelogos[SAK] > > > \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf} Change this line to \appendtoks \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf} \to \everystarttext or \appendtoks \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf} \to \everyafterutilityread > \setupbackgrounds[page][background=kopf] > \starttext > > % Lets set 10 problems with different points > \dorecurse{10} >{\pkt[\recurselevel] \input tufte \endgraf} > > \stoptext > > What's going wrong? The layer kopf is being set before the tui file is read. So, the value of \nofPoints is still 0. You need to set this layer after the utility file is read by appending the code to \everyafterutilityread or to \everystarttext (which happens after reading utility file). Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making a verbatim file for another language
On 2006-12-31, at 13:40.0, Mojca Miklavec wrote: > On 12/31/06, [EMAIL PROTECTED] wrote: >> What is the recommended way to install the latest Context version >> (MacOS X)? > > You have to install at least the following two packages: > - gwTeX based on TeX Live (texlive.ii2) > - gwTeX Support: ConTeXt updater (context-update.ii2) Good news - I deleted everything from my system and re-installed from scratch. Now everything works better - and I've even got the vimsyntax coloring up my Lisp code! Cool. Thanks very much for your help... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Easy insertion of Unicode symbols?
I need to insert a few Unicode symbols...(Just the symbols for the solar system planets)... Is this going to be easy - doable inside ConTeXt with a few preparatory mystic runes, or will it require running scripts, moving files around, etc...? The wiki suggests: Use \enableregime[utf] in order to be able to typeset in unicode under ConTeXt. But is it as simple as it looks? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making a verbatim file for another language
On 12/31/06, [EMAIL PROTECTED] wrote: > What is the recommended way to install the latest Context version > (MacOS X)? You have to install at least the following two packages: - gwTeX based on TeX Live (texlive.ii2) - gwTeX Support: ConTeXt updater (context-update.ii2) Perhaps uninstall both ConTeXt and "DEPRECATED" gwTeX based on teTeX and TeX Live first (tex.ii2) before installing texlive.ii2 and install context-update at the end again. You also have to configure auto-updating, but I'm not sure how to do that properly. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making a verbatim file for another language
On 2006-12-30, at 21:24.0, Jarimatti Valkonen wrote: > /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb Unfortunately, I don't have a scripts directory here... Obviously my system is not correctly installed. What is the recommended way to install the latest Context version (MacOS X)? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Where is ifforwardreference defined?
Mike Bird wrote: > > Does anyone know where \ifforwardreference is defined? The logic is inside \dogetreferenceelements (core-ref.tex) Look for \forwardreferencetrue and \forwardreferencefalse. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Where is ifforwardreference defined?
\somewhere sometimes prints the wrong text. To track down the problem I tried to find the definition for \ifforwardreference. I can see where \iffowardreference is declared to be a \newif but I can't find where the algorithm is defined: $ grep -r ifforwardreference . ./tex/context/base/core-ref.tex:\newif\ifforwardreference ./tex/context/base/core-ref.tex:\def\doifforwardreferenceelse#1#2% ./tex/context/base/core-ref.tex: {\ifforwardreference#1\else#2\fi} ./tex/context/base/core-ref.tex: {\ifforwardreference ./tex/context/base/core-ref.tex:\ifforwardreference Binary file ./web2c/pdfetex/cont-de.fmt matches Binary file ./web2c/pdfetex/cont-en.fmt matches Binary file ./web2c/pdfetex/cont-it.fmt matches $ Does anyone know where \ifforwardreference is defined? Thanks, --Mike Bird ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making a verbatim file for another language
[EMAIL PROTECTED] kirjoitti 30.12.2006 kello 16.18: > > On 2006-12-30, at 09:22.0, Jarimatti Valkonen wrote: > >> Works fine here. System: Mac OS 10.4.8, using default Vim (6.2: >> yikes, thats old!). >> ConTeXt ver: 2006.08.08 21:51 fmt: 2006.11.1 > > Thanks Jarimatti for sharing that. It suggests that my week-old > installation isn't the most up to date one: > >> ConTeXt ver: 2005.01.31 fmt: 2006.7.23 int: english mes: english > > I obviously chose a suboptimal option when I started i-Installer. > (Not difficult, really - it felt like a first attempt to hot-wire a > Boing 747... :-) That is odd, as I haven't updated my ConTeXt in a while. My ConTeXt updater i-Package (context-update.ii2) is dated 2006/10/06 meaning that it's almost three months old. And I'm still using the teTeX installation that is apparently no longer available (tex.ii2). Anyway, I use ConTeXt from the shell (Terminal.app) and have defined the following aliases: --- # ConTeXt stuff alias texmfstart="ruby /usr/local/teTeX/share/texmf.local/scripts/ context/ruby/texmfstart.rb" alias context="texmfstart texexec" --- You could try those, just change the name and path to texmfstart.rb so that it matches your installation. After adding the aliases you can just issue command 'context myfile.tex' and the file gets processed. -- Jarimatti Valkonen [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] store counter or variable and reread again
Aditya Mahajan wrote: > \unprotect > \def\addtocounter#1#2% #1 name #2 value > [EMAIL PROTECTED] > \protect > > % To Hans and Taco: Should the above macro be added to syst-ext? > > % Now lets define everything in terms of ConTeXt's counter macros > > \makecounter{Points} > > % % show the points on the right side > \def\showP[#1]{\inright{\hskip 10mm \framed{#1} }} > > \def\pkt[#1]% > {\showP[#1]% > \addtocounter{Points}{#1}} > % > > \def\nofPoints{0} % Number of points from previous run > > \def\savenofPoints >{\savecurrentvalue\nofPoints{\countervalue{Points}}} > > % It is a bit boring to type \savenofPoints everytime > > \appendtoks \savenofPoints \to \everystoptext > Thanks for your help. It's great! What I recognized is when I put this on layer for better placement of the header it doesn't work. Here is an example: \def\Schulaufgabekopf% {\bf \tfa \setupTABLE[option=stretch] \setupTABLE[frame=off] \setupTABLE[column][1][width=0.7\textwidth] \setupTABLE[column][2][width=0.3\textwidth] \setupTABLE[row][2,3,4][background=color,backgroundcolor=gray,frame=off] \setupTABLE[row][5][height=1cm] \bTABLE \bTR \bTD \strut \eTD \bTD \strut \eTD \eTR \bTR \bTD \AAnr \eTD \bTD Date: \eTD \eTR \bTR \bTD Name:\eTD \bTD Points: \hfill of \nofPoints \eTD\eTR \bTR \bTD Form: \Klnr \eTD \bTD Mark: \eTD \eTR \bTR \bTD [nc=3, align=low] \tfxx Unterschrift eines Erziehungsberechtigten: \thinrule \eTD \eTR \eTABLE} \definelayer[kopf][width=\paperwidth, height=\paperheight] %Klassenarbeiten Kopf \def\AAnr{2. Schulaufgabe Englisch 2006/2007} \def\Klnr{10 \hfill} %\definelogo[SAK] [top][left][command=\Schulaufgabekopf] %\placelogos[SAK] \setlayer[kopf][x=1.9cm, y=1cm]{\Schulaufgabekopf} \setupbackgrounds[page][background=kopf] \starttext % Lets set 10 problems with different points \dorecurse{10} {\pkt[\recurselevel] \input tufte \endgraf} \stoptext What's going wrong? Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context