Re: [NTG-context] Clipping again
On 6/27/06, David Arnold wrote: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) ConTeXt ver: 2006.03.20 10:19 fmt: 2006.3.21 I hope I get to see the final file. Nice work. You can see it here, but the only changes to your graphics can be seen in the source, not in the final PDF: http://pub.mojca.org/tex/temp/dblarrow.pdf I don't know what exactly has changed in ConTeXt that could influence that specific behaviour (I guess that the graphics are simply processed one after another instead of processing them separately), but indeed I was able to reproduce the behaviour on contextgarden (I'll try to write to Patrick once more - the garden still uses the perl version and doesn't have all the variables set priperly, but he seems to be extremely busy). The (temporal) remedy for that is to use u:=w/10; instead as I said last time, but then again the labels won't work as they should. There might a remedy for that as well, but it's not worth investigating it. You probably have heard that trillions of times already, but you *really*, *really* and again *really* should do two things before trying to proceed: - update your ConTeXt (just unzip the cont-tmf.zip over the old files; later you'll be able to do that with ctxtools --update). Some *enormous* changes were introduced to metafun graphics handling in April and May. - call ConTeXt with texmfstart texexec. See the folder texmf-local/scripts/stubs/unix. You should use it's content as the source of executables. texexec --version should return you TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Clipping again
Mojca Miklavec wrote: On 6/27/06, David Arnold wrote: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) ConTeXt ver: 2006.03.20 10:19 fmt: 2006.3.21 I hope I get to see the final file. Nice work. You can see it here, but the only changes to your graphics can be seen in the source, not in the final PDF: http://pub.mojca.org/tex/temp/dblarrow.pdf I don't know what exactly has changed in ConTeXt that could influence that specific behaviour (I guess that the graphics are simply processed one after another instead of processing them separately), but indeed I was able to reproduce the behaviour on contextgarden (I'll try to write to Patrick once more - the garden still uses the perl version and doesn't have all the variables set priperly, but he seems to be extremely busy). when you do runtime processing, each graphic is on its own, otherwise you can indeed run into redundant equations, just change = into := then or do a proper allocation of local vars (numeric u ; etc) 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
[NTG-context] Index sorting again
Hello Hans,I'd like to remind the 2 persisting problems with the index sorting.1. Numbers are sorted under A2. Symbols are sorted under the first letter which follows.See the attached test file.Both these issues are independent on language and on the expansion type.Proposed solution:1. Sort numbers into separate divisions2. Sort symbols to a special division called "Symbols"Could you please look into it? May I help you any further (except the attached test file)?Many thanx,Richard test-002.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] table splitting in columns
this used to work but doesn't since the (my) last update: \starttext \setupTABLE[split=repeat, frame=off] \setupTABLE[c][1][align=right] \setupTABLE[c][2][align=left, style=bf, width=4em] \startcolumns[n=2, balance=no] \bTABLE \bTABLEhead \bTR\bTD\bf Verzeichnis \eTD\bTD\hbox{Dateien}\eTD\eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\bTR\bTD Folder\eTD\bTD 1\eTD\eTR} \eTABLEbody \eTABLE \stopcolumns \stoptext Instead of a table that flows in columns, it breaks only in pages. Greetlings, Hraban ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] inside halign
Thanks. Spares me a lot of puzzling. In some places things with dodoubleargument etc seem to work, so here and there a workaround is possible. On Jun 26, 2006, at 10:37, Taco Hoekwater wrote: Hans van der Meer wrote: I get the impression that none if these argument related stuff works inside the halign template. Correct. TeX is in a very special state when it is looking for a potential \noalign, and the argument parsing required for optional arguments destroys that special state, Greetings, Taco Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texmfstart newbie
OK, I've updated to the latest context via Gerben's i-installer on my mac osx 10.4.6. I have no idea what texmfstart is nor do I understand its purpose. I imagine the first thing I have to do is configure, because it is certainly not found on my system. tmp $ which texmfstart tmp $ texmfstart -bash: texmfstart: command not found Here is my path: tmp $ echo $PATH /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ local/teTeX/bin/powerpc-apple-darwin-current:/opt/local/bin:/usr/ local/mysql/bin:/usr/X11R6/bin For example: tmp $ texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.06.23 20:39 cont-en : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: english cont-nl : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: dutch total run time : 3 seconds warning : use 'texmfstart texexec' instead tmp $ which texexec /usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec Which appears to be some sort of shell script. tmp $ cat /usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec #!/bin/sh test -f /bin/sh5 test -z $RUNNING_SH5 \ { UNAMES=`uname -s`; test x$UNAMES = xULTRIX; } 2/dev/null \ { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1 +$@}; } unset RUNNING_SH5 test -f /bin/bsh test -z $RUNNING_BSH \ { UNAMES=`uname -s`; test x$UNAMES = xAIX; } 2/dev/null \ { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1 +$@}; } unset RUNNING_BSH export PATH # hack around a bug in zsh: test -n ${ZSH_VERSION+set} alias -g '${1+$@}'='$@' what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.pl` { test -n $p test -f $p; } \ || { echo \`$what.pl' not found.; exit 1; } perl $p ${1+$@} Ruby is installed: tmp $ which ruby /usr/bin/ruby tmp $ ruby --version ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] And here is the location of texmfstart: /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/texmfstart /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ texmfstart/base /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ texmfstart/base/kpse Now for questions: 1. How do I configure my system to use texmstart? 2. What are some of the usual uses I should be employing of texmfstart? How will it improve performance? How will it simplify my work? Etc? I.e what are the advantages? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie questions
On Jun 24, 2006, at 16:56, Thomas Moore wrote: 2. I would like the math environment to be as close to the LaTeX AMS environment as possible. I have figured out how to download the t- amsl module and can successfully invoke it as long as the t-amsl.tex file is in the same folder as my document files. But how do I install it permanently so that I can invoke it in all my documents? I was unable to find instructions in the ConTexT garden for this, and what I could find on the archives was not helpful (something about running mktexlsr and/or texhash that I have don't know how to do in OS X, and would be afraid to do without instructions anyway for fear of screwing up my TeX distribution). Thanks for any help, and sorry if the questions are stupid. Tom Moore Depending on how you installed TeX, t-amsl.tex is there. If you installed with the TeX i-Package: $ kpsewhich t-amsl.tex /usr/local/teTeX/share/texmf.tetex/tex/context/maths/t-amsl.tex But it is the one from 1.5 years ago in the old ConTeXt that comes with the (discontinued) teTeX texmf tree. If you also installed the ConTeXt updater (which is pretty up-to-date), the math stuff is not in there (Hans, why not?) so you get a newer ConTeXt with an older t-amsl.tex and I have no idea if that works. If you have a (more recent) t-amsl.tex file and you are using the TeX i-Package, you can install th efile as ~/Library/texmf/tex/context/t-amsl.tex and it will be found. No mktexlsr or texhash is needed for that particular tree. If someone tells me what to include in the ConTeXt updater for this math stuff and where to get it, I can make life easy for you. If you installed with fink or in some other way, I have no idea how to help you. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table splitting in columns
Henning Hraban Ramm wrote: this used to work but doesn't since the (my) last update: \starttext \setupTABLE[split=repeat, frame=off] \setupTABLE[c][1][align=right] \setupTABLE[c][2][align=left, style=bf, width=4em] \startcolumns[n=2, balance=no] \bTABLE \bTABLEhead \bTR\bTD\bf Verzeichnis \eTD\bTD\hbox{Dateien}\eTD\eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\bTR\bTD Folder\eTD\bTD 1\eTD\eTR} \eTABLEbody \eTABLE \stopcolumns \stoptext Instead of a table that flows in columns, it breaks only in pages. ok, i managed to fix that 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
[NTG-context] table splitting in columns
this used to work but doesn't since the (my) last update: \starttext \setupTABLE[split=repeat, frame=off] \setupTABLE[c][1][align=right] \setupTABLE[c][2][align=left, style=bf, width=4em] \startcolumns[n=2, balance=no] \bTABLE \bTABLEhead \bTR\bTD\bf Verzeichnis \eTD\bTD\hbox{Dateien}\eTD\eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\bTR\bTD Folder\eTD\bTD 1\eTD\eTR} \eTABLEbody \eTABLE \stopcolumns \stoptext Instead of a table that flows in columns, it breaks only in pages. Greetlings, Hraban ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] i-Installer and ConTeXt updater
On Jun 23, 2006, at 18:04, Otared Kavian wrote: Hi Gerben, Sorry, I did not see this until now. When trying to update ConTeXt with i-Installer, I see this: Remote Package: Remote is being updated since 2006/06/23 04:02:30 Is it a normal situation? If Hans or Taco changes something, the i-Package is rebuilt and seeded automatically every night (CET). Given that it is 8GB (with beta) and it is uploaded to at least 4 repositories that takes some time (I have a 1Mbps upload). But not hours. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
All, I updated to Gerben's latest context and now files that formally compiled will not. Here's one error: The code: Let's look at another example. \startexample[exam:relT] Consider the relation $T$ defined by \placeformula[eq:rel2] \startformula T=\big\{(1,2), (3,2), (4,5)\big\}. \stopformula What is the domain and range of this relation? The result: ! Extra }, or forgotten \endgroup. \doattributes ...name [EMAIL PROTECTED] \endcsname \fi {#4} \dostopattributes \special@@descriptionhandler ...t #2\endstrut \doifsomething {\descripti... \@@dostartdescription ...gnorespaces #3\endstrut } }\assignwidth \!! widtha {\... \@@descriptionserriedbroad ...\def \\{\crlf }}{#2} \noindent \ignorespaces \i... \dodogotopar ...description {example}[exam:relT]{} \BeforePar \emptytoks to be read again C l.100 C onsider the relation $T$ defined by ? Example is defined by: \defineenumeration [example] [location=serried, width=broad, text={\color[heavygreen]\bgroup\bold{Example}}, stopper={.\egroup}, style=slanted, inbetween=\blank, after=\blank] I need help! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
On Jun 27, 2006, at 21:59, David Arnold wrote: I updated to Gerben's latest context and now files that formally compiled will not. Let's shoot him! G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
Gerben Wierda wrote: On Jun 27, 2006, at 21:59, David Arnold wrote: I updated to Gerben's latest context and now files that formally compiled will not. Let's shoot him! before doing that, will make sure that David behaved well -) 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] Newbie questions
Gerben Wierda wrote: On Jun 24, 2006, at 16:56, Thomas Moore wrote: 2. I would like the math environment to be as close to the LaTeX AMS environment as possible. I have figured out how to download the t- amsl module and can successfully invoke it as long as the t-amsl.tex file is in the same folder as my document files. But how do I install it permanently so that I can invoke it in all my documents? I was unable to find instructions in the ConTexT garden for this, and what I could find on the archives was not helpful (something about running mktexlsr and/or texhash that I have don't know how to do in OS X, and would be afraid to do without instructions anyway for fear of screwing up my TeX distribution). Thanks for any help, and sorry if the questions are stupid. Tom Moore Depending on how you installed TeX, t-amsl.tex is there. If you installed with the TeX i-Package: $ kpsewhich t-amsl.tex /usr/local/teTeX/share/texmf.tetex/tex/context/maths/t-amsl.tex But it is the one from 1.5 years ago in the old ConTeXt that comes with the (discontinued) teTeX texmf tree. If you also installed the ConTeXt updater (which is pretty up-to-date), the math stuff is not in there (Hans, why not?) so you get a newer ConTeXt with an older t-amsl.tex and I have no idea if that works. it's a third party module, and when not present at the context garden, it will not end up on ctan (or in the extras zip) If someone tells me what to include in the ConTeXt updater for this math stuff and where to get it, I can make life easy for you. taco can give you details on how to auto-sync with the garden third party modules, 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] Oh no! Never update in the middle of a project. I am in trouble.
David Arnold wrote: Hans, Commenting the stopper did not help. i'll upload a fix for the stopper (something went wrong when i changed some code due to better suffix handling in split floats) 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] texmfstart newbie
On 6/27/06, David Arnold [EMAIL PROTECTED] wrote: OK, I've updated to the latest context via Gerben's i-installer on my mac osx 10.4.6. I have no idea what texmfstart is nor do I understand its purpose. I imagine the first thing I have to do is configure, because it is certainly not found on my system. tmp $ which texmfstart tmp $ texmfstart -bash: texmfstart: command not found Here is my path: tmp $ echo $PATH /sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ local/teTeX/bin/powerpc-apple-darwin-current:/opt/local/bin:/usr/ local/mysql/bin:/usr/X11R6/bin For example: tmp $ texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2006.06.23 20:39 cont-en : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: english cont-nl : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: dutch total run time : 3 seconds warning : use 'texmfstart texexec' instead tmp $ which texexec /usr/local/teTeX/bin/powerpc-apple-darwin-current/texexec Which appears to be some sort of shell script. Yes, it is a wrapper that uses kpsewhch to search for what.pl and then fires up perl with the full path to the script. The same trick works for ruby (.rb) and java (.jar). I've made 3 scripts, called runtexmfXX, where XX={pl,rb,jar}: - runtexmfrb #! /bin/sh # runtexmfrb -- run ruby scripts with ruby pathtexmfstart.rb .. # Author: George N. White III [EMAIL PROTECTED] # Date: 2006-06-25 # to use: link (ln -s) to the names of ConTeXt scripts in your tex bin # directory. # cd .../bin/arch # for f in texmfstart texexec pstopdf textools texutil ctxtools pdftools rlxtools texsync ; do ln -s runtexmfrb $f ; done # # requires: # ruby, sed, kpsewhich what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts texmfstart.rb` { test -n $p test -f $p; } \ || { echo \`texmfstart.rb' not found.; exit 1; } # for texmfstart just case $what in texmfstart) exec ruby $p ${1+$@} ;; *) q=`kpsewhich -format=texmfscripts $what.rb` { test -n $q test -f $q; } \ || { echo \`$what.rb' not found.; exit 1; } exec ruby $p $what.rb ${1+$@} ;; esac - end runtexmfrb -- - runtexmfjar #!/bin/sh # runtexmfjar -- run texmf Java app # Author: George N. White III [EMAIL PROTECTED] # Date: 2006-06-25 # to use: link to the names of the apps: # e.g., ln -s runtexmfjar JabRef java=/usr/java/jre1.5.0/bin/java what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.jar` { test -n $p test -f $p; } \ || { echo \`$what.jar' not found.; exit 1; } exec $java -jar $p ${1+$@} - end runtexmfjar -- - runtexmfpl #!/bin/sh # runtexmfpl -- run texmf perl script # to use: link to the names of the apps: # e.g., ln -s runtexmfpl epstopdf what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.pl` { test -n $p test -f $p; } \ || { echo \`$what.pl' not found.; exit 1; } exec perl $p ${1+$@} - end runtexmfpl -- [...] Ruby is installed: tmp $ which ruby /usr/bin/ruby tmp $ ruby --version ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] And here is the location of texmfstart: /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/texmfstart /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ texmfstart/base /usr/local/teTeX/share/texmf.local/scripts/context/stubs/lib/ texmfstart/base/kpse Now for questions: 1. How do I configure my system to use texmstart? in the bin directory with texexec, rename texexec to texexec.orig, create the 2 or 3 scripts you want to use, do chmod +x runtexmf*, and decide which names are perl (.pl) and which are ruby (.rb). Create symbolic links: ln -s runtexmfrb texmfstart, etc. for the ruby scripts. You can also do this for other perl scripts such as epstopdf, but be careful, as the bin directory may contain newer versions than the texmf trees. 2. What are some of the usual uses I should be employing of texmfstart? How will it improve performance? How will it simplify my work? Etc? I.e what are the advantages? Performance for scripts like this is not much af an issue these days -- if you want performance, buy better hardware. What is an issue is the ability of the developers to find and fix bugs. Perl is old and tricky. There are lots of old buggy perl versions installed. Hopefully ruby will turn out to be more robust (lessons learned, etc.). The advantages to us are that you will use it and report bugs before we do.
[NTG-context] Bug with 'inmargin' head-setup in Beta
Hello, Consider this code example - the section titles are preceded by inapropriate vertical whitespace. \setupheads[alternative=inmargin] \starttext \section{Hello} \subsection{Wie geht's?} \subsubsection{Gut'n Tach!} \stoptext Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
David Arnold wrote: Hans (please CC Jacob), here is the whole environment file. My student did this for me, but if you'd like to make some changes, that would be ok. He has in another environment file: \def\indetvskiponeem{\vskip 1em plus 1em minus 1em} Then he has: \def\startboxcode{\indetvskiponeem\hbox\bgroup\hskip 0.1\makeupwidth} \def\stopboxcode{\hskip 0.1\makeupwidth\egroup\indetvskiponeem} \def\keyprefix{\bigstar\hskip 1em} \def\tipprefix{\checkmark\hskip 1em} \def\summaryprefix{\bigstar\hskip 1em} \def\boxwidth{0.8\makeupwidth} \def\warningprefix{\bgroup\tfa\bold{!}\egroup\hskip 1em} \defineenumeration [summary] [location=serried, width=broad, text=\summaryprefix Summary, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=tingedblue,frame=no]}, after={\stopframedtext\stopboxcode}] \defineenumeration [keyresult] [location=serried, width=broad, text=\keyprefix, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=tingedblue,frame=no]}, after={\stopframedtext\stopboxcode}] \defineenumeration [tip] [location=serried, width=broad, text=\tipprefix, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=icicle,frame=no]}, after={\stopframedtext\stopboxcode}] \defineblock[insummary] \def\placesectionsummary{\unnumberedsubsection{Section Summary}\bgroup \tfx\selectblocks[insummary]\egroup} \defineenumeration [example] [location=serried, width=broad, text={\color[heavygreen]\bgroup\bold{Example}}, stopper={.\egroup}, style=slanted, inbetween=\blank, after=\blank] \defineenumeration [warning] [location=serried, width=broad, text=\warningprefix, style=slanted, number=no, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=lightred,frame=no]}, after={\stopframedtext\stopboxcode}] \defineenumeration [definition] [location=serried, width=broad, text={\color[darklavender]\bgroup\bold{Definition}}, stopper={.\egroup}, style=slanted, inbetween=\blank, before={\startboxcode\startframedtext[width=\boxwidth, background=color,backgroundcolor=lavender,frame=no]}, after={\stopframedtext\stopboxcode}] less tricky, cleaner, etc \defineframedtext[MyBox] \setuplabeltext[definition=Definition] \setuplabeltext [example=Example] \setuplabeltext [warning={\tfb !}] \setuplabeltext [key=\bigstar] \setuplabeltext [tip=\checkmark] \setuplabeltext [summary=\bigstar\quad Summary] \definemeasure[BoxWidth][.8\textwidth] \defineblank[BoxBlank][1em plus 1em minus 1em] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \defineenumeration [summary] [location=serried, width=broad, text=\labeltext{summary}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [keyresult] [location=serried, width=broad, text=\labeltext{key}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [tip] [location=serried, width=broad, distance=1em, text=\labeltext{tip}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [example] [location=serried, width=broad, distance=1em, headcolor=heavygreen, headstyle=bold, text=\labeltext{example}, stopper=., style=slanted, inbetween=\blank, after=\blank] \defineenumeration [warning] [location=serried, width=broad, distance=1em, text=\labeltext{warning}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=red]}, after=\stopMyBox] \defineenumeration [definition] [location=serried, width=broad, distance=1em, headcolor=darklavender, headstyle=bold, text=\labeltext{definition}, stopper=., style=slanted, inbetween=\blank, before={\startMyBox[backgroundcolor=green]}, after=\stopMyBox] \setupcolors[state=start] \starttext \input tufte \startdefinition \input tufte \stopdefinition \stoptext no more time today -) 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 - ___
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
And I failed to make all the changes you posted previously. After I made all of them, one error went away, now I have to attack the other enumerations in the environment file. My young helper would appreciate any words of wisdom. On Jun 27, 2006, at 1:51 PM, Hans Hagen wrote: David Arnold wrote: Hans, Commenting the stopper did not help. i'll upload a fix for the stopper (something went wrong when i changed some code due to better suffix handling in split floats) 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
Aditya Mahajan wrote: On Tue, 27 Jun 2006, Hans Hagen wrote: David Arnold wrote: Hans (please CC Jacob), here is the whole environment file. My student did this for me, but if you'd like to make some changes, that would be ok. He has in another environment file: [code snipped] less tricky, cleaner, etc \defineframedtext[MyBox] \setuplabeltext[definition=Definition] \setuplabeltext [example=Example] \setuplabeltext [warning={\tfb !}] \setuplabeltext [key=\bigstar] \setuplabeltext [tip=\checkmark] \setuplabeltext [summary=\bigstar\quad Summary] \definemeasure[BoxWidth][.8\textwidth] \defineblank[BoxBlank][1em plus 1em minus 1em] Wow. Did not know about labeltexts. This goes one more step in separating content from presentation. well, the code in the lang-* files is pretty old (therw you can see how do deal with languages as well; there is also left/right lable stuff, as needed for chinese), actually, this is the oldest code ... (reminds of frustrations with latex due to hard coded Chapter in the styles in those days) 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] Oh no! Never update in the middle of a project. I am in trouble.
Should I just comment out all the stopper' commands until this update circulates through G's context updater? On Jun 27, 2006, at 1:51 PM, Hans Hagen wrote: David Arnold wrote: Hans, Commenting the stopper did not help. i'll upload a fix for the stopper (something went wrong when i changed some code due to better suffix handling in split floats) 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
Hans et al, OK. I repaired this with: \setuplabeltext[question=] \setuplabeltext[answer=] \defineenumeration [questions] [location=serried, text=\blank] \setupenumerations [questions] [before={\page[yes]\unnumberedsubsection{Exercises}\startcolumns[n=2]}, after=\stopcolumns, number=no] \defineenumeration [answers] [location=serried, text=\blank] \setupenumerations [answers] [before={\unnumberedsubsection{Answers}\startcolumns[n=2]}, after=\stopcolumns, number=no] \def\placeanswers{% \startanswers \doifmodeelse{short} {\selectblocks[shortanswer][criterium=section]} {\selectblocks[longanswer][criterium=section]} \stopanswers} \defineenumeration [question] [location=inleft, text=\labeltext{question}, headcolor=heavygreen] \setupenumerations [question] [location=inleft, headcolor=heavygreen, stopper=., way=bysection, sectionnumber=no] \defineenumeration [subquestion] [location=hanging, headcolor=heavygreen, conversion=characters] \setupenumerations [subquestion] [stopper=.] \defineenumeration [answer] [location=inleft, text=\labeltext{answer}, headcolor=heavygreen] \setupenumerations [answer] [location=inleft, headcolor=heavygreen, stopper=., way=bysection, sectionnumber=no] \defineenumeration [subanswer] [location=hanging, headcolor=heavygreen, conversion=characters] \setupenumerations [subanswer] [stopper=.] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] Now back in business. Although what is still needed here is a way of hiding subanswers. Suggestions are welcome. On Jun 27, 2006, at 3:25 PM, David Arnold wrote: Hans, I think when we make your fixes, we'll be OK. We have one more failure that won't compile. chapter1 $ texexec section3exercises This crashes on: (./section3exercises-texutil0.tmp ! Missing } inserted. inserted text } to be read again \endgroup \special@@descriptionhandler ...t #2\endstrut \doifsomething {\descripti... \@@dostartdescription ...gnorespaces #3\endstrut } }\assignwidth \!! widtha {\... \do@@description ...tion [#2]{\def \\{\crlf }}{#3} \noindent \ignorespaces #1... \dodogotopar ...escription {question}[ex:sec3.1]{} \BeforePar \emptytoks ... l.3 \startbuffer ? Pressing e takes me to this area: \startquestion[ex:sec3.1] \startbuffer numeric w,h; w=4cm;h=4cm; % inititialize numerator and denominator of the slope of f numeric a; a=1.5; Our exercise envrionment file looks like this: \defineenumeration[questions][location=serried,text=\blank] \setupenumerations[questions][before={\page[yes]\unnumberedsubsection {Exercises}\startcolumns[n=2]},after=\stopcolumns,number=no] \defineenumeration[answers][location=serried,text=\blank] \setupenumerations[answers][before={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [question] [location=inleft, headcolor=heavygreen, % stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[subquestion][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subquestion][stopper={.\egroup}] \defineenumeration[answer][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [answer] [location=inleft, headcolor=heavygreen, % stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[subanswer][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subanswer][stopper={.\egroup}] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] Do you see what might be causing the problem? On Jun 27, 2006, at 3:18 PM, Hans Hagen wrote: Aditya Mahajan wrote: On Tue, 27 Jun 2006, Hans Hagen wrote: David Arnold wrote: Hans (please CC Jacob), here is the whole environment file. My student did this for me, but if you'd like to make some changes, that would be ok. He has in another environment file: [code snipped] less tricky, cleaner, etc \defineframedtext[MyBox] \setuplabeltext[definition=Definition] \setuplabeltext [example=Example] \setuplabeltext [warning={\tfb !}] \setuplabeltext [key=\bigstar] \setuplabeltext [tip=\checkmark] \setuplabeltext [summary=\bigstar\quad Summary] \definemeasure[BoxWidth][.8\textwidth] \defineblank[BoxBlank][1em plus 1em minus 1em] Wow. Did not know
[NTG-context] sectionnumber conversion redux
I sent this a week ago, still awaiting help :-) Idris On Tue, 20 Jun 2006 19:20:58 -0600, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear fellow gangsters, Consider the following test file; partnumber=on. I would like partnumber to be converted to capital roman numerals while the page numeral remains as an Arabic numeral. Viz., instead of 1--1, 1--2 etc. in the TOC and pagenumbers I would like I--1, I--2 etc. in the TOC and pagenumbers. Is there a command like \setupsectionnumbering[conversion=Romannumerals]? Then I would say, \setuppartnumbering[conversion=Romannumerals] The test file is below. Best Idris ===part-test.tex== % output=pdf interface=en \def\PartTitle#1{\noheaderandfooterlines \vbox{\blank[force,7\bodyfontsize] \switchtobodyfont[14.4pt] \midaligned{\cgd #1} }} \setuphead[part][number=no, ownnumber=yes, style=\itd, textcommand=\PartTitle, placehead=yes] \setupsection [section2] [appendixconversion=Character, % Watch the capital previousnumber=no] %\setuppagenumbering[way=bytext,partnumber=no] %\setupcombinedlist[content][partnumber=no] \starttext \startbodymatter \placecontent \part{I}{Body} \chapter{The Body Stuff} \stopbodymatter \startappendices \setupheadnumber[part][+] \part{II}{Appendices} \chapter{Appendix} \stopappendices \stoptext == -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] emp.sty and metapost
All, Not strictly a context question, but it has to do with Metapost, so maybe someone can help. I have a file of macros called qdftools.mp: numeric s; s=0.2; color gridlines; gridlines:=(s,s,s); def openbluedot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor blue; enddef; def openreddot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor red; enddef; def filledreddot(expr pos)= fill fullcircle scaled 4pt withcolor red; draw fullcircle scaed 4pt withcolor red; enddef; def filledbluedot(expr pos)= fill fullcircle scaled 4pt withcolor blue; draw fullcircle scaed 4pt withcolor blue; enddef; def vtick(expr pos)= draw ((0,-3)--(0,3)) shifted pos; enddef; def htick(expr pos)= draw ((-3,0)--(3,0)) shifted pos; enddef; def gridfivefive = for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor gridlines; draw (k,-5u)--(k,5u) withcolor gridlines; endfor; enddef; def xyaxesfivefive= drawdblarrow (-5u,0)--(5u,0); label.rt(btex $x$ etex, (5u,0)); label.bot(btex $5$ etex, (5u,0)); drawdblarrow (0,-5u)--(0,5u); label.top(btex $y$ etex, (0,5u)); label.lft(btex $5$ etex, (0,5u)); enddef; endinput; In the same directory as qdftools.mp, I have a file useemp.tex. Note that I am using the emp package. \documentclass{article} \usepackage{amsmath} \usepackage{emp,ifpdf} \ifpdf \DeclareGraphicsRule{*}{mps}{*}{} \fi \setlength{\unitlength}{1cm} \begin{document} Now is the time for all good men to come to the aid of their country. \empprelude{input qdftools} \begin{empfile} \begin{empdef}[david](4,4) numeric u; 10u=3in; gridfivefive; xyaxesfivefive; \end{empdef} \end{empfile} \immediate\write18{mpost \jobname} \empuse{david} Now is the time for all good men to come to the aid of their country. \end{document} Now, here is what I fail to understand. If I compile useemp.tex with: pdflatex --shell-escape useemp Then all is well. I get a nice pdf file. However, if I change one line in the file useemp.tex, namely \immediate\write18{mpost \jobname} to: \immediate\write18{mpost -tex=latex \jobname} Then if I remove the file qdftools.mpx and compile useemp.tex with: pdflatex --shell-escape useemp Then I get: loading : Context Support Macros / PDF (2004.03.26) )This is MetaPost, Version 0.901 (Web2C 7.5.5) (useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't exist. /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command failed: latex mpxerr.tex; see mpxerr.log qdftools.mp qdftools.mpx ! Unable to make mpx file. l.41 label.rt(btex $x$ etex, (5u,0)); Transcript written on useemp.log. Can anyone tell how to work around this problem? I know Context has much better support for labels, but I need to write this in Latex for our online testing system. http://scinux.redwoods.edu/cgi-bin/ online_s06/testing.cgi/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
On Tue, 27 Jun 2006, David Arnold wrote: All, Not strictly a context question, but it has to do with Metapost, so maybe someone can help. I have a file of macros called qdftools.mp: numeric s; s=0.2; color gridlines; gridlines:=(s,s,s); def openbluedot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor blue; enddef; def openreddot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor red; enddef; def filledreddot(expr pos)= fill fullcircle scaled 4pt withcolor red; draw fullcircle scaed 4pt withcolor red; enddef; def filledbluedot(expr pos)= fill fullcircle scaled 4pt withcolor blue; draw fullcircle scaed 4pt withcolor blue; enddef; def vtick(expr pos)= draw ((0,-3)--(0,3)) shifted pos; enddef; def htick(expr pos)= draw ((-3,0)--(3,0)) shifted pos; enddef; def gridfivefive = for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor gridlines; draw (k,-5u)--(k,5u) withcolor gridlines; endfor; enddef; def xyaxesfivefive= drawdblarrow (-5u,0)--(5u,0); label.rt(btex $x$ etex, (5u,0)); label.bot(btex $5$ etex, (5u,0)); drawdblarrow (0,-5u)--(0,5u); label.top(btex $y$ etex, (0,5u)); label.lft(btex $5$ etex, (0,5u)); enddef; endinput; In the same directory as qdftools.mp, I have a file useemp.tex. Note that I am using the emp package. \documentclass{article} \usepackage{amsmath} \usepackage{emp,ifpdf} \ifpdf \DeclareGraphicsRule{*}{mps}{*}{} \fi \setlength{\unitlength}{1cm} \begin{document} Now is the time for all good men to come to the aid of their country. \empprelude{input qdftools} \begin{empfile} \begin{empdef}[david](4,4) numeric u; 10u=3in; gridfivefive; xyaxesfivefive; \end{empdef} \end{empfile} \immediate\write18{mpost \jobname} \empuse{david} Now is the time for all good men to come to the aid of their country. \end{document} Now, here is what I fail to understand. If I compile useemp.tex with: pdflatex --shell-escape useemp Then all is well. I get a nice pdf file. However, if I change one line in the file useemp.tex, namely \immediate\write18{mpost \jobname} to: \immediate\write18{mpost -tex=latex \jobname} Then if I remove the file qdftools.mpx and compile useemp.tex with: pdflatex --shell-escape useemp Then I get: loading : Context Support Macros / PDF (2004.03.26) )This is MetaPost, Version 0.901 (Web2C 7.5.5) (useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't exist. /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command failed: latex mpxerr.tex; see mpxerr.log qdftools.mp qdftools.mpx ! Unable to make mpx file. l.41 label.rt(btex $x$ etex, (5u,0)); Transcript written on useemp.log. Can anyone tell how to work around this problem? I know Context has much better support for labels, but I need to write this in Latex for our online testing system. http://scinux.redwoods.edu/cgi-bin/ online_s06/testing.cgi/ I have faced this problem in the past, but was never sure why it occured or how to rectify it. Try the command mpost --tex=latex useemp.mp on your shell. Do you get the same error message as before (you should). Now try, makempx --tex=latex useemp.mp useemp.mpx Does this create an mpx file? If it does, then atleast a workaround for the problem is to have \immediate\write18{makempx --tex=latex \jobname.mp \jobname.mpx} before \immediate\write18{mpost --tex=latex \jobname}. If makempx fails, look at the output of makempx --verbose --tex=latex useemp.mp useemp.mpx What do you get? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context