Re: [NTG-context] Metapost Font Question
Taco, Thanks. D. On Jan 1, 2010, at 12:26 AM, Taco Hoekwater wrote: David Arnold wrote: All, The attached Metapost file uses the statsmac package by Anthony Phan. http://www-math.univ-poitiers.fr/~phan/statsmac.html And the package: mps.tar.gz http://www-math.univ-poitiers.fr/~phan/downloads/metapost/mps.tar.gz To compile the attached file I use: mpost Untitled.mp mptopdf Untitled.1 I've attached the resulting file. I am wondering why the cm label is set in a larger font than the ticklabels. Can anyone help? The tick labels are typeset by metapost itself, but the cm is typeset externally (by ConTeXt, if you run the garden distribution). Metapost is probably using 10pt while ConTeXt uses its default 12pt. verbatimtex \setupbodyfont[10pt] etex or something similar is needed at the top of the file. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Random numbers in metapost
Taco et al, I think I've found a way. Anthony Phan has written a brilliant stats package for Metapost. http://www-math.univ-poitiers.fr/~phan/statsmac.html I think (haven't tried yet) I can select a number at random from the uniform distribution on [0,1], then use one of Anthony's functions such as: poissonicdf(expr p, lambda). Inverse cumulative distribution function of P(lambda). See Anthony's manual at: http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf David. On Dec 31, 2009, at 5:13 AM, Taco Hoekwater wrote: David Arnold wrote: Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? Assuming you are using mkiv: create a lua function and use its calculated results to create the metapost code. Metapost only knows about uniformdeviate and normaldeviate, and metapost is not a good language to program mathematics in. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Metapost Font Question
All,The attached Metapost file uses the statsmac package by Anthony Phan.http://www-math.univ-poitiers.fr/~phan/statsmac.htmlAnd the package:mps.tar.gzTo compile the attached file I use:mpost Untitled.mpmptopdf Untitled.1I've attached the resulting file. I am wondering why the "cm" label is set in a larger font than the ticklabels. Can anyone help?David. Untitled.mp Description: Binary data Untitled-1.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Random numbers in metapost
Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? David ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] tkz-2d
All, I've recently been playing with a fascinating package tkz-2d (http://www.texample.net/tikz/examples/tkz-2d/ and http://altermundus.fr/pages/download.html). I've been using: \usemodule[tikz] But I am wondering how I would use tkz-2d in Context. David Arnold College of the Redwoods http://msemac.redwoods.edu/~darnold/index.php ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz
In the minmals directory: david-arnolds-macbook-pro:context darnold$ find . grep 'tikz' find: tikz: No such file or directory On Sep 30, 2009, at 10:58 PM, luigi scarso wrote: On Thu, Oct 1, 2009 at 7:42 AM, David Arnold dwarnol...@suddenlink.net wrote: All, After installing context minimals, this no longer compiles with MKII: \usemodule[tikz] \starttext \starttikzpicture \draw[gray] (-5,-5) grid (5,5); \stoptikzpicture \stoptext system : module tikz loaded (./tikz.tex system : module tikz (line 2) already loaded publications: file tikz.bbl not found, waiting for bibtex systems : begin file tikz at line 3 ! Undefined control sequence. l.5 \starttikzpicture Can be. If I rememeber well, by default ./first-run.sh setup a new and fresh minimals: others files are deleted. Are there tikz* files still in your minimals ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz
Ran: first-setup.sh Then: david-arnolds-macbook-pro:context darnold$ find: tikz: No such file or directory No tikz files. D. On Sep 30, 2009, at 11:17 PM, luigi scarso wrote: On Thu, Oct 1, 2009 at 8:10 AM, David Arnold dwarnol...@suddenlink.net wrote: In the minmals directory: david-arnolds-macbook-pro:context darnold$ find . grep 'tikz' find: tikz: No such file or directory So , it seems to me that you don't have tikz in your minimals anymore. Can you try to re-install? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tikz
All, After installing context minimals, this no longer compiles with MKII: \usemodule[tikz] \starttext \starttikzpicture \draw[gray] (-5,-5) grid (5,5); \stoptikzpicture \stoptext system : module tikz loaded (./tikz.tex system : module tikz (line 2) already loaded publications: file tikz.bbl not found, waiting for bibtex systems : begin file tikz at line 3 ! Undefined control sequence. l.5 \starttikzpicture___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Metafun problem
All, I've got the context minimals installed and I'm compiling the following (from the new Metafun manual) using MKIV: \startuniqueMPgraphic{name} path p; p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight; fill p withcolor .625yellow; draw p withcolor .625red; \stopuniqueMPgraphic \starttext Hello, World! \defineoverlay[my graphic][\uniqueMPgraphic{name}] \button[background=my graphic,frame=off]{Go Home}[firstpage] \stoptext No button shows up. Am I missing something? David ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV on Mactex Texlive 2008 (Context broken)
All, After trying below, my context is now broken. david-arnolds-macbook-pro:en darnold$ texexec --help -bash: /usr/texbin/texexec: Permission denied I need help. D. On Sep 22, 2009, at 9:58 PM, David Arnold wrote: All, I am using Mactex Texlive 2008 on a Macbook pro. I did this: sudo ctxtools --updatecontext After reading http://wiki.contextgarden.net/Running_Mark_IV, I tried: sudo rsync -av rsync://contextgarden.net/minimals/current/context/ current/ /usr/local/texlive/2008/texmf-dist/ sudo rsync -av rsync://contextgarden.net/minimals/current/bin/luatex/ osx-universal/bin/luatex /usr/local/texlive/2008/bin/ Then I try: david-arnolds-macbook-pro:~ darnold$ sudo luatools --generate And I get: sudo: luatools: command not found Then I tried: david-arnolds-macbook-pro:~ darnold$ luatools --generate The result was: -bash: /usr/texbin/luatools: Permission denied Trying the context command yields the same result: david-arnolds-macbook-pro:~ darnold$ context --make Result: -bash: /usr/texbin/context: Permission denied So, there is some sort of permissions problem. We looked at this: david-arnolds-macbook-pro:texbin darnold$ cd /usr/texbin david-arnolds-macbook-pro:texbin darnold$ ls -l lua* lrwxr-xr-x 1 root wheel6 May 13 17:46 lualatex - luatex -rwxr-xr-x 1 root wheel 8009384 Aug 13 2008 luatex lrwxr-xr-x 1 root wheel 49 May 13 17:46 luatools - ../../ texmf-dist/scripts/context/lua/luatools.lua And tried: david-arnolds-macbook-pro:texbin darnold$ ls -l ../../texmf-dist/ scripts/context/lua/luatools.lua -rw-r--r-- 1 33 33 222585 Aug 14 01:50 ../../texmf-dist/scripts/ context/lua/luatools.lua And see that this file is not executable, so we try: david-arnolds-macbook-pro:texbin darnold$ sudo chmod +x ../../texmf- dist/scripts/context/lua/luatools.lua Now the following works. david-arnolds-macbook-pro:texbin darnold$ luatools --generate But this piecemeal approach to making things executable might go on and on. Can someone give a more universal cure? Is there an entire directory of scripts that need to be executable? Thanks. David ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV on Mactex Texlive 2008 (Context broken)
Aditya, Thanks. You are always so helpful. But I would really prefer to fix this and correct installation directions on pages like: http://wiki.contextgarden.net/Running_Mark_IV I think I have maybe an owner and permissions problem as a result of these rsync commands: david-arnolds-macbook-pro:context darnold$ ls -l total 0 drwxr-xr-x 33 33 33 1122 Aug 19 08:13 lua drwxr-xr-x 15 33 33 510 Aug 19 08:12 perl drwxr-xr-x 35 33 33 1190 Aug 19 08:13 ruby drwxr-xr-x 5 33 33 170 Aug 19 08:12 stubs 15? 33? 5? david-arnolds-macbook-pro:context darnold$ cd lua david-arnolds-macbook-pro:lua darnold$ ls -l total 1784 -rwxr-xr-x 1 3333 222585 Aug 14 01:50 luatools.lua -rw-r--r-- 1 3333140 Apr 18 2008 luatools.rme -rw-r--r-- 1 3333 10520 Jun 2 09:31 mtx-babel.lua -rw-r--r-- 1 3333 3124 Apr 3 04:27 mtx-cache.lua -rw-r--r-- 1 3333 11524 May 13 04:47 mtx-chars.lua -rw-r--r-- 1 3333 5402 Apr 3 04:39 mtx-check.lua -rw-r--r-- 1 3333 55776 Jul 16 14:16 mtx-context.lua -rw-r--r-- 1 3333 4681 Jun 14 04:33 mtx-convert.lua -rw-r--r-- 1 3333 6010 Aug 7 08:13 mtx-fonts.lua -rw-r--r-- 1 3333 3790 Jul 12 08:11 mtx-grep.lua -rw-r--r-- 1 3333 11746 Apr 11 14:47 mtx-interface.lua -rw-r--r-- 1 3333 2241 Apr 19 23:46 mtx-metatex.lua -rw-r--r-- 1 3333 4535 Apr 3 04:43 mtx-mptopdf.lua -rw-r--r-- 1 3333 2825 May 16 10:19 mtx-package.lua -rw-r--r-- 1 3333 14637 Apr 11 14:48 mtx-patterns.lua -rw-r--r-- 1 3333 6168 Apr 3 04:42 mtx-profile.lua -rw-r--r-- 1 3333 24868 Aug 6 13:20 mtx-server-ctx- fonttest.lua -rw-r--r-- 1 3333 22332 May 6 05:03 mtx-server-ctx-help.lua -rw-r--r-- 1 3333 1874 May 7 10:12 mtx-server-ctx- startup.lua -rw-r--r-- 1 3333 12872 May 28 07:35 mtx-server.lua -rw-r--r-- 1 3333 2913 Jun 24 10:08 mtx-texworks.lua -rw-r--r-- 1 3333 7235 May 2 12:38 mtx-timing.lua -rw-r--r-- 1 3333 1751 Jul 2 07:21 mtx-tools.lua -rw-r--r-- 1 3333 3067 Apr 3 04:26 mtx-unzip.lua -rw-r--r-- 1 3333 20868 Jun 14 12:31 mtx-update.lua -rw-r--r-- 1 3333 11510 Apr 3 04:41 mtx-watch.lua -rw-r--r-- 1 3333 335022 Aug 14 01:50 mtxrun.lua -rw-r--r-- 1 3333132 Apr 18 2008 mtxrun.rme -rw-r--r-- 1 3333 25310 Jan 17 2008 scite-ctx.lua drwxr-xr-x 3 root wheel 102 Jun 1 11:33 third -rw-r--r-- 1 3333 12563 Apr 15 00:39 x-ldx.lua And should all of the above scripts be executable? And how about these? david-arnolds-macbook-pro:lua darnold$ cd ../perl david-arnolds-macbook-pro:perl darnold$ ls -l total 768 -rw-rw-r-- 1 root wheel2049 Jan 8 2006 cont_mis.pm -rw-rw-r-- 1 root wheel 23869 Jan 8 2006 cont_set.pm -rw-r--r-- 1 3333 10679 Mar 25 2008 makempy.pl -rw-r--r-- 1 3333 4009 Apr 13 2007 mptopdf.pl -rw-r--r-- 1 3333851 Jun 16 2000 path_tre.pm -rw-r--r-- 1 3333 15006 Dec 8 2006 pdftrimwhite.pl -rw-r--r-- 1 root wheel 109461 Nov 15 2006 texexec.pl -rw-r--r-- 1 root wheel6098 Nov 15 2006 texexec.rme -rw-r--r-- 1 3333 9589 May 27 2002 texfind.pl -rw-r--r-- 1 3333 48852 Dec 13 2006 texfont.pl -rw-r--r-- 1 3333 29209 Aug 4 2006 texshow.pl -rw-r--r-- 1 root wheel 109414 Nov 15 2006 texutil.pl -rw-rw-r-- 1 root wheel 566 Jan 8 2006 utiplug.pm Do they need to be executable? On Sep 23, 2009, at 9:46 AM, Aditya Mahajan wrote: On Wed, 23 Sep 2009, David Arnold wrote: All, After trying below, my context is now broken. david-arnolds-macbook-pro:en darnold$ texexec --help -bash: /usr/texbin/texexec: Permission denied I need help. You can try to install context minimals. They will not interfere with your mactex installation. For installation instructions see http://wiki.contextgarden.net/ConTeXt_Minimals and to configure mac specific editors http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http
Re: [NTG-context] MKIV on Mactex Texlive 2008 (Context broken)
Hans, No. I have Mactex texlive 2008 installed and I used the rsync directions on: http://wiki.contextgarden.net/Running_Mark_IV The result is I no longer have a functioning context installation. I will try installing the minimals, but I'd really like to get my Mactex installation correct and the directions on the above page correct. D. On Sep 23, 2009, at 1:16 PM, Hans Hagen wrote: David Arnold wrote: All, After trying below, my context is now broken. david-arnolds-macbook-pro:en darnold$ texexec --help -bash: /usr/texbin/texexec: Permission denied I need help. did you install the minimals using first-setup.sh ? it should set the permissions right 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MKIV on Mactex Texlive 2008 (Context broken)
Hans, My impression from reading installation directions for minimals is that when you open a shell, and if you have your .bash_profile configured, that setuptex will be sourced. That must set some sort of path while the current shell is active? Will that interfere with needing to suddenly latex a file? D. On Sep 23, 2009, at 2:04 PM, Hans Hagen wrote: David Arnold wrote: Hans, No. I have Mactex texlive 2008 installed and I used the rsync directions on: http://wiki.contextgarden.net/Running_Mark_IV The result is I no longer have a functioning context installation. I will try installing the minimals, but I'd really like to get my Mactex installation correct and the directions on the above page correct. you should install the minimals alongside (not combined) with mactex; the operate isolated and can be updated independently and used without interference (issue the setuptex script to switch to the minimals tree) 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Mark IV
All, Hans recommended I contact the list with my inquiry. I'm running Leopard on a Mac, using Mactex, texlive 2008. I've updated my context with: sudo ctxtools --updatecontext On a first run of ctxtools, I get this error: loading : ConTeXt Core Macros / Environments ! Undefined control sequence. argument ...def \...@ea \noexpand \csname \e!start \v!setups \endcsname {\beg... \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded l.212 ...xpand\csname\e!stop\v!setups\endcsname}}} I hit s several time to scroll through the errors til it finishes, then run the command again: sudo ctxtools --updatecontext This time it seems to complete with no errors. This seem OK to folks? Now, I'd like to give MKIV a try. I see the following instructions: http://wiki.contextgarden.net/Running_Mark_IV Are they adequate for my platform? That is, will they work if I follow them to the letter? Or do folks have other advice? Thanks. David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://msemac.redwoods.edu/~darnold/index.php ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MKIV on Mactex Texlive 2008
All, I am using Mactex Texlive 2008 on a Macbook pro. I did this: sudo ctxtools --updatecontext After reading http://wiki.contextgarden.net/Running_Mark_IV, I tried: sudo rsync -av rsync://contextgarden.net/minimals/current/context/ current/ /usr/local/texlive/2008/texmf-dist/ sudo rsync -av rsync://contextgarden.net/minimals/current/bin/luatex/ osx-universal/bin/luatex /usr/local/texlive/2008/bin/ Then I try: david-arnolds-macbook-pro:~ darnold$ sudo luatools --generate And I get: sudo: luatools: command not found Then I tried: david-arnolds-macbook-pro:~ darnold$ luatools --generate The result was: -bash: /usr/texbin/luatools: Permission denied Trying the context command yields the same result: david-arnolds-macbook-pro:~ darnold$ context --make Result: -bash: /usr/texbin/context: Permission denied So, there is some sort of permissions problem. We looked at this: david-arnolds-macbook-pro:texbin darnold$ cd /usr/texbin david-arnolds-macbook-pro:texbin darnold$ ls -l lua* lrwxr-xr-x 1 root wheel6 May 13 17:46 lualatex - luatex -rwxr-xr-x 1 root wheel 8009384 Aug 13 2008 luatex lrwxr-xr-x 1 root wheel 49 May 13 17:46 luatools - ../../ texmf-dist/scripts/context/lua/luatools.lua And tried: david-arnolds-macbook-pro:texbin darnold$ ls -l ../../texmf-dist/ scripts/context/lua/luatools.lua -rw-r--r-- 1 33 33 222585 Aug 14 01:50 ../../texmf-dist/scripts/ context/lua/luatools.lua And see that this file is not executable, so we try: david-arnolds-macbook-pro:texbin darnold$ sudo chmod +x ../../texmf- dist/scripts/context/lua/luatools.lua Now the following works. david-arnolds-macbook-pro:texbin darnold$ luatools --generate But this piecemeal approach to making things executable might go on and on. Can someone give a more universal cure? Is there an entire directory of scripts that need to be executable? Thanks. David ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \getmyAbstract
All, At one time I had a style file that handled my abstract. \definebuffer[myAbstract] \startmyAbstract In this activity you will learn how to solve systems of linear equations using LU decomposition, with both forward and back substitution. In addition, you will also be introduced to function files and a number of \mat's control structures. {\em Prerequisites: Some knowledge of how to enter vectors and matrices in \mat. Familiarity with Gaussian elimination, elementary matrices, and LU decomposition.} \stopmyAbstract In my style file I have things like: \midaligned{\bf Abstract} \startnarrower[3*middle] \noindenting\getmyAbstract \stopnarrower At one time (long ago) this worked, but now it is throwing this error. ! Undefined control sequence. \getmyAbstract -\dodoprocessTEXbuffer [myAbstract][def-2] l.218 \getmyAbstract What is the current workaround for this? Thanks. David ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PSTricks
All, Can someone give me some example code that includes a PSTricks object? Thanks. D. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] overarc
All, How can I place an overarc over some text, such as in \overarc{AB}? D. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] UPdating context fails
All, Running textlive2008 on mac (MacTex). The command: sudo CtxTools --updatecontext Fails with: ! Undefined control sequence. argument \??cv :\c!n :\v!one \setvalue #1-\expandafter \def \csname #1 \endcsname l.618 \setvalue{\??cv:\c!n:\v!one } {1} ? Any suggestions? D. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf
All, I sent this to OS X TeX list, but perhaps I can get some guidance here? All, After installing MacTeX (textlve2008), mptopdf fails: pstricks $ mptopdf bruce This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %-line parsing enabled. [MP to PDF] (./bruce.0{/Users/darnold/Library/texmf/fonts/map/pdftex/ updmap/pdf tex.map}) [1] kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 rm-lmr12 mktexpk: don't know how to create bitmap font for rm-lmr12. kpathsea: Appending font creation commands to missfont.log. !pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found == Fatal error occurred, no output PDF file produced! This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %-line parsing enabled. [MP to PDF] (./bruce.1{/Users/darnold/Library/texmf/fonts/map/pdftex/ updmap/pdf tex.map}) [1] kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 rm-lmr12 mktexpk: don't know how to create bitmap font for rm-lmr12. kpathsea: Appending font creation commands to missfont.log. !pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found == Fatal error occurred, no output PDF file produced! MPtoPDF 1.3.3 : bruce.* is converted to bruce-0.pdf + bruce-1.pdf I tried: tlmgr update context No good. Same error as above after update. Any suggestions? david ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Miktex
I'll check when I get to school. D. On Oct 1, 2008, at 10:45 AM, Mojca Miklavec wrote: On Wed, Oct 1, 2008 at 1:57 AM, David Arnold wrote: Mojca, I saw your note on blog.miktex.org: If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 \miktex\bin with the content: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby \texmfstart.rb %* However, $ texmfstart texexec --help Did not work Does removing the quotation marks around argument help? @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby \texmfstart.rb %* Mojca __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Miktex
Mojca, Thanks. On: http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx At the bottom of the list, these seem to be the errors that another user reports. Please keep me informed. I need to have mptopdf working for my students in the Miktex tree. D. On Oct 1, 2008, at 11:58 AM, Mojca Miklavec wrote: I got ConTeXt working on this machine, but mptopdf indeed seems to be broken. c:\Documents and Settings\Uporabnik\My Documents\testmp example (example.mpCreating example.mpx... This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) entering extended mode (C:/DOCUME~1/UPORAB~1/LOCALS~1/Temp/mik55214/mpx314.tex LaTeX2e 2005/12/01 Babel v3.8l and hyphenation patterns for english, dumylang, nohyphenation, sl ovenian, loaded. (C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo)) (C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty (C:\Program Files\MiKTeX 2.7\tex\latex\base\latin9.def)) (C:\Program Files\MiKTeX 2.7\tex\latex\base\fontenc.sty (C:\Program Files\MiKTeX 2.7\tex\latex\base\t1enc.def)) (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty For additional information on amsmath, use the `?' option. (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amstext.sty (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty)) (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty) (C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty)) (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty)) No file mpx314.aux. (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd) (C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd) [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] (mpx314.aux) ) Output written on mpx314.dvi (19 pages, 2344 bytes). Transcript written on mpx314.log. Done. [1] ) 1 output file written: example.1 Transcript written on example.log. c:\Documents and Settings\Uporabnik\My Documents\testmptopdf example.1 This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) entering extended mode (example.1 [MP to PDF] ! I can't find file `0'. to be read again \relax \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1} }\ifdim \wd 01in \message... l.19 0 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth pop Please type another input file name: ! Emergency stop. to be read again \relax \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1} }\ifdim \wd 01in \message... l.19 0 0 0 setrgbcolor 0 0.5 dtransform truncate idtransform setlinewidth pop ! == Fatal error occurred, no output PDF file produced! Transcript written on example.log. c:\Documents and Settings\Uporabnik\My Documents\testmptopdf example.mp This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) entering extended mode (example.mp [MP to PDF] ! I can't find file `verbatimtex'. to be read again \relax \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1} }\ifdim \wd 01in \message... l.2 verbatimtex Please type another input file name: ^\ ! Emergency stop. to be read again \relax \processMPfile ...vbox {\convertMPtoPDF {#1}{1}{1} }\ifdim \wd 01in \message... l.2 verbatimtex ! == Fatal error occurred, no output PDF file produced! Transcript written on example.log. (I did not yet move files around, but will try.) Mojca __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Miktex 2.7 --- Remove quotes from %*
Mojca, Ouch! Ignore my last email. You had: Input file name: cont-en.tex But I had: Input file name: cont-en.ini I'll have to pay more attention. I'll try this again tomorrow. D. On Oct 1, 2008, at 1:14 PM, Mojca Miklavec wrote: On Wed, Oct 1, 2008 at 9:42 PM, [EMAIL PROTECTED] wrote: Mojca, OK. Removed quotes, so texmfstart.bat now reads: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby \texmfstart.rb %* This now works: $ C:\temptexmfstart texexec --help TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD However, I cannot make the formats. Going to Miktex 2.7-Settings- Formats, attempting to build cont-en results in, even though I've copied cont-en.ini into the directory expected by Miktex 2.7. Creating the cont-en.pdftex format file... Running pdftex... This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX) entering extended mode (C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini) ! Emergency stop. * cont-en.ini No pages of output. Transcript written on cont-en.log. makefmt: pdftex failed on cont-en.ini. initexmf.EXE: The operation failed for some reason. Can you please check/compare the values with the sones below? I did not put any ini file anywhere, though I had some issues with formats (restarting the program helped). http://wiki.contextgarden.net/MikTeX#Make_formats Make formats * Go to Start Menu - MikTeX 2.7 - Settings - Formats - New ... Format key: ConTeXt (could be anything) Format name: cont-en (could be anything) Compiler: pdftex Input file name: cont-en.tex Description: ConTeXt format (could be anything) (uncheck) Exclude this format ... * Choose the newly created format and Build it. * For mptopdf uncheck the box for excluding as well. Mojca __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Miktex 2.7 --- Remove quotes from %*
Wolfgang, Thanks. I am aware of this option. But my students are using Latex, so we need Miktex. What I need is to get mptopdf running in Miktex. D. On Oct 1, 2008, at 12:53 PM, Wolfgang Schuster wrote: Am 01.10.2008 um 21:42 schrieb [EMAIL PROTECTED]: Mojca, OK. Removed quotes, so texmfstart.bat now reads: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby \texmfstart.rb %* This now works: $ C:\temptexmfstart texexec --help TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD TeXExec | --checkcheck versions TeXExec | --figures generate overview of figures TeXExec | --listing list of file content TeXExec | --make make formats TeXExec | --modules generate module documentation TeXExec | --mpgraphicprocess mp file to stand-alone graphics TeXExec | --mpstatic process mp/ctx file to stand-alone graphics TeXExec | --mptexprocess mp file TeXExec | --mpxtex process mpx file TeXExec | --pdfarrange impose pages (booklets) TeXExec | --pdfcombine combine multiple pages TeXExec | --pdfcopy copy pages from file(s) TeXExec | --pdfselectselect pages from file(s) TeXExec | --pdfsplit split file in pages TeXExec | --pdftrim trim pages from file(s) TeXExec | --process process file TeXExec | TeXExec | --help --all shows all switches However, I cannot make the formats. Going to Miktex 2.7-Settings- Formats, attempting to build cont-en results in, even though I've copied cont-en.ini into the directory expected by Miktex 2.7. Creating the cont-en.pdftex format file... Running pdftex... This is pdfTeX, Version 3.141592-1.40.4 (MiKTeX 2.7) (INITEX) entering extended mode (C:\Program Files\MiKTeX 2.7\tex\context\config\cont-en.ini) ! Emergency stop. * cont-en.ini No pages of output. Transcript written on cont-en.log. makefmt: pdftex failed on cont-en.ini. initexmf.EXE: The operation failed for some reason. So, here is where I stand. Can't you just use the standaline version from Hans, it includes Perl and Scite too. Wolfgang __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Miktex
Mojca, I saw your note on blog.miktex.org: If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 \miktex\bin with the content: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %* and extract www.pragma-ade.com/context/current/cont-tmf.zip into C: \Program Files\MiKTeX 2.7. Then, update filename database and generate formats, and everything should work again. Mojca I followed this advice, installed texmfstart.bat, unzipped cont- tmf.zip properly, updated the filename database, then got stuck. At the dos prompt: $ texmfstart --help Worked just fine. However, $ texmfstart texexec --help Did not work. What am I missing? If I recall I'll need to do: $ texmfstart texexec --make --all Or some such thing. David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Miktex
Mojca, I a hopeless mac user at home now. I used to be pretty good with miktex, even working with hans to test the settings that now exist in the texexec.rme file, back in the days when we made that an .ini file in Miktex. But no longer. It's our school machines I am trying to configure, PC's with Windows XP. I got to a point today where I selected the formats tab in the Miktex Settings gui, and tried to build cont-en there. It objected that it could not find cont-en.ini in tex/something or other so I tried moving cont-en.ini from the context distribution to tex/ something or other and updating the filename database to no avail. I'll give your idea of no spaces a try tomorrow. Meanwhile if you can think of anything less drastic, as I have to do this on 20 different machines, Thanks so much. David. On Sep 30, 2008, at 5:15 PM, Mojca Miklavec wrote: On Wed, Oct 1, 2008 at 1:57 AM, David Arnold wrote: Mojca, I saw your note on blog.miktex.org: If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 \miktex\bin with the content: @echo off ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby \texmfstart.rb %* and extract www.pragma-ade.com/context/current/cont-tmf.zip into C: \Program Files\MiKTeX 2.7. Then, update filename database and generate formats, and everything should work again. Mojca I followed this advice, installed texmfstart.bat, unzipped cont- tmf.zip properly, updated the filename database, then got stuck. At the dos prompt: $ texmfstart --help Worked just fine. However, $ texmfstart texexec --help Did not work. What am I missing? If I recall I'll need to do: $ texmfstart texexec --make --all Or some such thing. Can you please try what happens if you install MikTeX in some folder with no spaces in base path? Mojca __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mswincontext.zip
I followed these directions exactly and scite is working out of the box on mswincontext.zip. To remove RubyGems from a single Ruby installation, from the site_ruby/1.8 directory of that installation, remove: * rubygems.rb (file) * rubygems (directory) If you do not have RubyGems installed in other Ruby installation directories, you can also remove the following files from whatever command directory is listed in your PATH: * gem * gemwhich * gem_server * gem_mirror * generate_yaml_index.rb And if you are removing RubyGems completely, don't forget to remove the RUBYOPT environment variable from your environment. Without actually trying it, I think that will do it. D. I also added import metapost in scite, but not all of the menu items on the tool menu work, in fact most of them don't work. Ctrl+6 doesn't open the console, I can't get gsview to work instead of gv, etc. D. On Aug 28, 2008, at 12:35 AM, Hans Hagen wrote: [EMAIL PROTECTED] wrote: I found all my gems problems were coming from an environment variable which pointed to rubygems. After I deleted it all the probs went away. You will nedd to search using set as I have forgotten the variable ah, if we know that variable we can delete it in the startup script - 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 - __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mswincontext.zip
Hans, Idris, The only thing I know about Ruby is you used to install it in Windows so that Context thru Miktex would work. So, how do I get rid of the gems? D. On Aug 27, 2008, at 4:31 AM, Hans Hagen wrote: [EMAIL PROTECTED] wrote: All, A bit frustrated as I cannot seem to get a mswincontext scite combination going. I gave up on: http://pragma-ade.com/context/ install/mswintex.zip. I got absolutely nowhere with the installation and trying to connect scite. mswintex is just a zipped minimal So, I just downloaded: http://pragma-ade.com/context/install/ mswincontext.zip that one has also scite, perl and ruby + some more After extracting to c:\context, I ran the file first-setup.bat, which proceeded to install a lot of files. Was this a correct thing to do? Strange, as the distribution size was already huge. It would really help to have a readme.txt in this distribution with installation directions. After first-setup was complete, I ran cscite.bat. Scite opened. Good! I entered the usual test file: \starttext Hello, World! \stoptext And saved as test.tex. one option is to let setuptex be executed when you open a cmd prompt and then start scite from that (it's what i do here, since i do much on the console) then scite knows in which env it lives Then I tried Tools-Compile, which resulted in this error mesage: texmfstart concheck test.tex ruby: no such file to load--ubygems (LoadError) might be some conflict between the ruby in the zip and the installed one; this gems stuff overloads the 'require' function in an incompatible way (as idris suggested, get rid of gems) 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 - __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mswintex.zip versus mswincontext.zip
Hans et al, For our students, I need to have Miktex and at least one of these distributions (mswintex.zip or mswincontext.zip) coexisting side by side. I've got Miktex installed and working with the Texniccener IDE for student use. Now, I need to get context and metapost working properly (no longer any mptopdf in the Miktex distro). Students don't deal well with DOS boxes and terminals at first (they can grow into them), so what I need is a scite icon on the desktop, that when clicked, will open and work (for context and metapost). I had already loaded mswintex.zip on each machine in our lab, run first-setup.bat. I also installed Scite by downloading from the scintilla site. I finally figured out that you need to import context in the Globals, though (the http://pragma-ade.com/general/manuals/ mscite-p.pdf said it should work in user as well, which I could not get to work. So, as I understand it now, the difference is the mswincontext.zip comes with perl and ruby, but we already have perl and ruby installed. If I get rid of the gems (how?) then I should be able to make progress? What I need is students to have both scite and texniccenter running at the same time. What are my best options? Thanks. D. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Some Progress on Installing mswincontext.zip
All, As Idris and Hans expected, Ruby was the culprit. I had installed Ruby before downloading mswincontext.zip, as that was what I used to do in the old days with a Miktex installation. After following exactly these directions: http:// blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/173018 Scite now works on context documents. I tried to add metapost.properties to the global with import metapost. I can Build a file, but the Go command does not work because I don't have gv installed. So I opened metapost.properties and tried changing the gv command to gsview32 (and even tried c: \Program Files\ghostgum\gsview\gsview32.exe), but neither worked. Any suggestions how I can get the go command to work? Secondly, what would I do to compile a metapost file in scite directly into PDF? I am aware of context way with processMPbuffer and other assorted tricks, and I am aware of mptopdf, but what I am looking for is to configure Scite to compile the metapost file and open it in acrobat reader. Here is the test file I am trying to compile. beginfig(1); numeric u; 10u=4in; drawdblarrow (-5u,0)--(5u,0); drawdblarrow (0,-5u)--(0,5u); endfig; end. David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mswincontext.zip
Idris, Thanks. I'm a Mac person at home now, so I'll have to wait until tomorrow to give this a try on a windows machine at school. What I'll try (unless I get further advice from this list) is download mswincontext.zip again, uninstall it, and NOT run first-setup.bat. Regarding Ruby, I am looking at this page: http://www.ruby-lang.org/ en/downloads/, where it seems like I have two options: http://rubyforge.org/frs/download.php/29263/ruby186-26.exe And: ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.7-i386- mswin32.zip Not sure I see anything on this page about without RubyGems. Any advice? D. On Aug 26, 2008, at 6:08 PM, Idris Samawi Hamid ادريس سماوي Øامد wrote: Hi, On Tue, 26 Aug 2008 18:27:37 -0600, [EMAIL PROTECTED] wrote: All, A bit frustrated as I cannot seem to get a mswincontext scite combination going. I gave up on: http://pragma-ade.com/context/install/mswintex.zip. I got absolutely nowhere with the installation and trying to connect scite. So, I just downloaded: http://pragma-ade.com/context/install/mswincontext.zip After extracting to c:\context, I ran the file first-setup.bat, which proceeded to install a lot of files. Was this a correct thing to do? Not sure, but I did not do it :-) Strange, as the distribution size was already huge. It would really help to have a readme.txt in this distribution with installation directions. After first-setup was complete, I ran cscite.bat. Scite opened. Good! I entered the usual test file: \starttext Hello, World! \stoptext And saved as test.tex. Then I tried Tools-Compile, which resulted in this error mesage: texmfstart concheck test.tex ruby: no such file to load--ubygems (LoadError) Reinstall Ruby without RubyGems. That worked for me. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MacTex Update
All, If you have a MacTex installation, how can you safely update the context installation that comes with MacTex? David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Miktex still broken
All, The context in Miktex is still broken. Has anyone got experience installing the standalone version of context on windows alongside Miktex? And one specific question, will the mptopdf command work in this dual installation? Thanks. David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Context on Miktex
All,On http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx I read that Miktex version of Context is broken. I also read Mojca's workaround, pasted below. Has anyone tried this and does it work? Any conflicts or difficulties?Second question: Can I get mptopdf to work in the Miktex tree without installing Context?Mojca's workaround:May 31. 2008 00:37 If you still want to run ConTeXt on MikTeX while it has been removed, you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7\miktex\bin with the content: @echo off ruby "C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb" "%*" and extract www.pragma-ade.com/context/current/cont-tmf.zip into C:\Program Files\MiKTeX 2.7. Then, update filename database and generate formats, and everything should work again. MojcaMojca David ArnoldCollege of the RedwoodsMathematics DepartmentEureka, CA 95501(707) 476-4222http://online.redwoods.edu/instruct/darnold/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Standalone chart
All, I am trying to make a standalone chart, a single graphic to be included in a Latex file by a student. I have: \startMPinclusions \usemodule[chart] \setupFLOWcharts [option=test, nx=4, ny=3, dx=2\bodyfontsize, dy=2\bodyfontsize, width=12\bodyfontsize, height=7\bodyfontsize, maxwidth=\textwidth] \stopMPinclusions \starttext \startMPpage \startFLOWchart[SIRS] \stopFLOWchart \FLOWchart[SIRS] \stopMPpage \stoptext But I am getting the following error. Any suggestions? systems : system commands are disabled (/usr/local/texlive/2007/../texmf-local/tex/context/base/pdfr-def.tex) systems : begin file SIRSchart at line 16 ! Argument of \dotripletestempty has an extra }. inserted text \par to be read again } \doifnextcharelse ...token =#1\def \!!stringa {#2} \def \!!stringb {#3}\futur... write \usemodule dx=2...=test,rts [chart] inserted text }\endwrite \nonowriteMPgraphicline ...te \write \MPwrite {#1} \else \long \edef \ascii {... ... l.25 \stopMPpage ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ctxtools --updatecontext
All, If you run: ctxtools --updatecontext And it just hangs and times out, what should you try? D. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ctxtools --updatecontext
Taco, Thanks. But it works in my office, but not in my colleague's office. I have gwtex and he has mactex. Admitting my ignorance, what is a proxy server? D. On Apr 23, 2008, at 11:42 PM, Taco Hoekwater wrote: David Arnold wrote: All, If you run: ctxtools --updatecontext And it just hangs and times out, what should you try? Check you network connection, you could be behind a firewall that prevents direct access to the internet. You can specify a proxy server on the commandline with --proxy=... Best wishes, Taco __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Unfill with anglebetween
All, I was trying to help a student today and the following came up. drawarrow anglebetween(path1, path2, btex $\theta$ etex) Is there some way to typeset the theta with an unfilled background? David. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Movies
All, Does anyone have any experience embedding Quicktime or other movies in Context? Either in the document itself or simply a URL that will play the movie in the the user's system player? Can anyone supply some sample code snippets? Appreciated. David Arnold http://online.redwoods.edu/instruct/darnold ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] More on a page
All, What's the command again to force another line or two on a page? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize columns three
All, Has this bug been fixed? \startitemize[a,columns,three] \item $|x|-5$ \item $|x|0$ \item $|x|4$ \stopitemize ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in itemize
John, Wolfgang, et al, I forget how I discovered the option three, but it worked in January with an older version of Context. See: http://msenux.redwoods.edu/IntAlgText/chapter4/section4.pdf Example 13 on page 384. It no longer works as is evidenced on: http://msenux.redwoods.edu/ IntAlgText/fall2007/chapter4/section4.pdf Example 13 on page 394. On Jul 13, 2007, at 5:09 AM, John R. Culleton wrote: On Thursday 12 July 2007 15:46, David Arnold wrote: All, Think I found a bug in itemize. \starttext \startitemize[a,columns,three] \item $|x|-5$ \item $|x|0$ \item $|x|4$ \stopitemize \stoptext I don't understand your parameters. The Manual allows for columns but not for three. Is this a later feature? -- John Culleton ATTN Publishers/authors: If you don't read you don't succeed. Free short list of publishing/marketing books. http://wexfordpress.com/tex/shortlist.pdf __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in itemize
All, Think I found a bug in itemize. \starttext \startitemize[a,columns,three] \item $|x|-5$ \item $|x|0$ \item $|x|4$ \stopitemize \stoptext On my system, the first item is not labeled, the second and third are labeled a and b. gimp $ ctxtools --contextversion CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ texmf.local/tex/context/base/context.tex) CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ texmf.local/tex/context/base/cont-new.tex) Any ideas? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Version Information on each page of text
Hi, I'd like to put the phrase Version: Fall 2007 on each page of our intermediate algebra textbook. On even-numbered pages, I'd like to put it in the lower left corner of the page, in odd-numbered pages, I'd like it in the lower right corner of the page. I'd like it to be well below the area where footnotes are posted so as not to interfere with foonotes. Any suggestions? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] We have a problem --- Old file no longer compiles
Hi, In setting out to update our intermediate algebra textbook for the fall semester (http://msenux.redwoods.edu/IntAlgText/), I've found that a file that would formerly compile under a previous version of context will no longer compile. Preliminaries $ ctxtools --contextversion CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ texmf.local/tex/context/base/context.tex) CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ texmf.local/tex/context/base/cont-new.tex) Preliminaries $ texmfstart texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD The error message I receive is: textblocks : reading blocks from NumberSystemsExercises.tub (./NumberSystemsExercises.tub textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset ! Missing number, treated as zero. to be read again \relax \dogenfrac ...{\begingroup #4\endgroup #2#3\relax #5}} \mathematics #1-\relax \ifmmode #1 \else $#1$\fi l.216 $ \frac{81}{125} $ ? The point in the source that seems to cause the difficulty is: \noindent In \in{Exercises}[ex:secqu.9]-\in[ex:secqu.16], convert the given decimal to a fraction. % Exercise #9 \beginquestion \startquestion[ex:secqu.9] $0.648$ \stopquestion \endquestion \beginlonganswer \startanswer There are three decimal places, so $0.648=\frac{648}{1000}=\frac{81}{125}$. \stopanswer \endlonganswer \beginshortanswer \startanswer $\displaystyle \frac{81}{125}$ \stopanswer \endshortanswer Shortanswer and longanswer are blocks. Startanswer is an enumeration. I've tried this in other files and gotten similar errors, which seem to be tied to the frac command. Can anyone help? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] We have a problem --- Old file no longer compiles
Here is another example, this time not within a block, but within an enumeration again: The source: \startproperty Let $a$ and $b$ be any numbers such that $a=b$. Then, if $c$ is any number other than zero, \placeformula[-] \startformula ac=bc.\index{equations+multiplication} \stopformula If $c$ is any number other than zero, then \placeformula[-] \startformula \frac ac=\frac bc.\index{equations+division} \stopformula \stopproperty Where property is defined: \defineframedtext[MyBox] \definemeasure[BoxWidth][\textwidth] \defineblank[BoxBlank][medium] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \setuplabeltext[property=Property] \defineenumeration [Default] [location=serried, width=broad, text=\labeltext{}, headstyle=bold, inbetween=\blank, before=\blank, after=\blank, way=bysection, sectionnumber=no, number=yes, right=.] \defineenumeration [property] [Default] [text=\labeltext{property}, before={\startMyBox[backgroundcolor=lavender]}, after=\stopMyBox, way=bysection, sectionnumber=no] And the error. Again, the \frac command seems to be the culprit. (./EquationsSection.tuo) [1.15] [MP to PDF] (./EquationsSection- mpgraph.1) [2.16] [3.17] ! Missing number, treated as zero. to be read again \relax \dogenfrac ...{\begingroup #4\endgroup #2#3\relax #5}} \mathematics #1-\relax \ifmmode #1 \else $#1$\fi l.275 \frac ac =\frac bc.\index{equations+division} ? On Jul 4, 2007, at 12:30 PM, David Arnold wrote: Hi, In setting out to update our intermediate algebra textbook for the fall semester (http://msenux.redwoods.edu/IntAlgText/), I've found that a file that would formerly compile under a previous version of context will no longer compile. Preliminaries $ ctxtools --contextversion CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ texmf.local/tex/context/base/context.tex) CtxTools | context version: 2007.06.06 09:53 (/usr/local/gwTeX/ texmf.local/tex/context/base/cont-new.tex) Preliminaries $ texmfstart texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD The error message I receive is: textblocks : reading blocks from NumberSystemsExercises.tub (./NumberSystemsExercises.tub textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset textblocks : shortanswer loaded and processed textblocks : shortanswer loaded and typeset ! Missing number, treated as zero. to be read again \relax \dogenfrac ...{\begingroup #4\endgroup #2#3\relax #5}} \mathematics #1-\relax \ifmmode #1 \else $#1$\fi l.216 $ \frac{81}{125} $ ? The point in the source that seems to cause the difficulty is: \noindent In \in{Exercises}[ex:secqu.9]-\in[ex:secqu.16], convert the given decimal to a fraction. % Exercise #9 \beginquestion \startquestion[ex:secqu.9] $0.648$ \stopquestion \endquestion \beginlonganswer \startanswer There are three decimal places, so $0.648=\frac{648}{1000}=\frac{81}{125}$. \stopanswer \endlonganswer \beginshortanswer \startanswer $\displaystyle \frac{81}{125}$ \stopanswer \endshortanswer Shortanswer and longanswer are blocks. Startanswer is an enumeration. I've tried this in other files and gotten similar errors, which seem to be tied to the frac command. Can anyone help? __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki
Re: [NTG-context] We have a problem --- Old file no longer compiles
Aditya, Thanks for the reply. As far as I know, we don't explicitly import newmat in our environment files: trunk $ grep usemodule * bookenv-clean1-base.tex:\usemodule[math-ext] bookenv-clean1-colors.tex:\usemodule[colors] As you can see, we do use the module math-ext. On Jul 4, 2007, at 2:57 PM, Aditya Mahajan wrote: On Wed, 4 Jul 2007, David Arnold wrote: Here is another example, this time not within a block, but within an enumeration again: The newmat module seems to be the culprit. After loading newmat add \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1} {#2}}} and it should work fine. I do not really understand why this is failing. Aditya __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] We have a problem --- Old file no longer compiles
Yes, it is getting loaded: system : module newmat loaded Turns out it's not in our style files, but in the exercise file that I am compiling: \startcomponent NumberSystemsExercises \project book \product Preliminaries/PreliminariesChapter \usemodule[newmat] \usemodule[math-ext] \usemodule[fig-base] \usefigurebase[figures/figlibNumberSystemsExercises] On Jul 4, 2007, at 10:02 PM, Aditya Mahajan wrote: On Wed, 4 Jul 2007, David Arnold wrote: On Jul 4, 2007, at 2:57 PM, Aditya Mahajan wrote: On Wed, 4 Jul 2007, David Arnold wrote: Here is another example, this time not within a block, but within an enumeration again: The newmat module seems to be the culprit. After loading newmat add \unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1} {#2}}} and it should work fine. I do not really understand why this is failing. Aditya, Thanks for the reply. As far as I know, we don't explicitly import newmat in our environment files: trunk $ grep usemodule * bookenv-clean1-base.tex:\usemodule[math-ext] bookenv-clean1-colors.tex:\usemodule[colors] As you can see, we do use the module math-ext Firstly, you do not use to explicitly use math-ext. AFAIU, it is included automatically. Secondly, something in your setup is including newmat, because \dogenfrac is defined in newmat. Look into the log file or the tui file for newmat. If newmat is not being loaded, then something strange is happening. Aditya __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Back to Metafun Manual
Taco, After updating my gWTeX, it now works here as well. Thanks., On Jun 7, 2007, at 12:05 AM, Taco Hoekwater wrote: David Arnold wrote: All, I am wondering what is wrong with the following. On my system it It runs fine on my system, somehow your metapost output image is broken: (./meta-meta.tmp [MP to PDF] (./meta-mpgraph.1 ! Dimension too large. recently read \onebasepoint \handleMPboundingbox ...expr \MPury \onebasepoint -\MPlly \onebasepoint \rel... l.2 %%BoundingBox: -11 -11 82 25121 this boundingbox is definately wrong: it gives the image an height of 350 inches! Sorry, I can't explain why. Best wishes, Taco __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to make \framed ignore the width of the rule
Huh? This: \starttext \newdimen\scale \scale\1mm \def\rule#1{\hrule width #1\scale} \rule{10} but you made this \def\scale{1mm} \def\rule#1{\hrule width #1\scale} \rule{10} \stoptext Got me this error: ! Undefined control sequence. l.4 \newdimen\scale \scale\1 mm What am I missing? On Jun 7, 2007, at 3:16 AM, Wolfgang Schuster wrote: On Wed, 06 Jun 2007 19:42:26 -0400 Aditya Mahajan [EMAIL PROTECTED] wrote: Hi, How can I make \framed ignore the width of the rule? I am trying to typeset internet protocol headers, but I cannot fully get what I want. Here is my attempt: \unprotect \makecounter{v!protocolheaderlength} \defineframed[protocolfieldheader] [location=lohi,height=3 \lineheight,offset=none,strut=yes] \def\startprotocolheader {\dodoubleempty\dostartprotocolheader} \def\dostartprotocolheader[#1][#2]% {\getparameters[c!protocol][#1]% \let\field\protocolheaderfield \resetcounter{v!protocolheaderlength}% \vbox\bgroup %\ruledvbox\bgroup \removeunwantedspaces \dontleavehmode \protocolfieldheader[frame=on,width=\c!protocolbits\c! protocolunitsize]% \protocolfieldheader[frame=on,width=\dimexpr\c!protocolunitsize* \c!protocolbits\relax]% {\let\\\crlf\bold #2}\crlf} \def\stopprotocoloheader {\egroup} \def\protocolheaderfield#1#2% {\doif{\countervalue{v!protocolheaderlength}}{\c!protocolbits} {\resetcounter{v!protocolheaderlength}\crlf}% \removeunwantedspaces \dontleavehmode \protocolfieldheader[width=#1\c!protocolunitsize]{\let\\\crlf #2 \\(#1)}% \protocolfieldheader[width=\dimexpr\c!protocolunitsize*#1\relax] {\let\\\crlf #2\\(#1)}% \incrementcounter{v!protocolheaderlength}{#1}} \protect % \showstruts % \showboxes \starttext % Why should unitsize=1mm. Are things being scaled by another factor? \startprotocolheader[bits=16,unitsize=1mm][General MAC Headers] \startprotocolheader[bits=16,unitsize=1cm][General MAC Headers] \field{1} {HT} \field{1} {EC} \field{6} {Type} \field{1} {ESF} \field{1} {CI} \field{2} {EKS} \field{1} {Rsv} \field{3} {LEN MSB} \field{8} {LEN LSB} \field{8} {CID MSB} \field{8} {CID LSB} \field{8} {HCS} \stopprotocoloheader \stoptext Notice that all the lines are not of the same size. It seems that the rules of framed are causing the frame to be of a larger width. Also am I missing a scaling factor in width= expressions above. Everything looks fine with unitsize=1mm, but the final figure is clearly larger than 16mm. I am confused as to what is happening. Is there any better way to do this? Thanks, Aditya Hi Aditya, you wanted something like this \newdimen\scale \scale\1mm \def\rule#1{\hrule width #1\scale} \rule{10} but you made this \def\scale{1mm} \def\rule#1{\hrule width #1\scale} \rule{10} The length of the \hrule in the first example is 10pt (10 \times 1pt = 10pt), while in the second example it is 101pt width (10 1pt = 101pt). Wolfgang __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] gwTeX problem
All, After using i-installer to install gwTeX Support : Context Updater, I now get the following message: FatalError : Your format does not match the base files! FormatVersion : 2007.01.02 13:44 MK II FilesVersion: 2007.04.17 12:51 How should I proceed? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gwTeX problem
Neither option worked. I am now getting the famous error: Transcript written on mfput.log. grep: rm-lmr7.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rm-lmr7' failed to make rm-lmr7.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \dodosetmathfamilyA ...amily \fontsize \endcsname \else \ifcsname \fontbody ... \dosetmathfamily ...athfamily \scriptscriptfont #1 \let \fontbody #3 \dodosetm... inserted text ...ptscriptface \c!mr \mrfallback \dosetmathfamily \mifam \t... \synchronizemath ...athfonts \the \mathstrategies \fi ... l.1 \setuppapersize[S6][S6] ? x No pages of output. Transcript written on meta.log. TeXExec | runtime: 39.71611 context $ It may have something to do with the way gwTeX is structured: gwTeX $ ls bin lib texmf texmf.local include man texmf.cnf texmf.pkgs infotexdist texmf.gwtex texmf.texlive On Jun 6, 2007, at 9:09 AM, Aditya Mahajan wrote: Quoting David Arnold [EMAIL PROTECTED]: All, After using i-installer to install gwTeX Support : Context Updater, I now get the following message: FatalError : Your format does not match the base files! FormatVersion : 2007.01.02 13:44 MK II FilesVersion: 2007.04.17 12:51 How should I proceed? Remake the formats texexec --make --all BTW, to update context (if you are not behind a firewall) you can do ctxtools --update Aditya __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gwTeX problem
All, I got myself in trouble by using gwTeX i-installer and tried to use Context Updater. The result was that the format files didn't match the base files (error message). Then I tried ctxtools --update. Now I have the font problem error described below. Here's part of a log file prior to my problem. This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5) (format=cont-en 2007.1.3) 3 JUN 2007 20:21 entering extended mode (/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx) **hans.tex emergencyend (./hans.tex ConTeXt ver: 2007.01.02 13:44 MK II fmt: 2007.1.3 int: english/ english language: language en is active system : cont-new loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex \boislevel=\count210 (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.mkii)) system : cont-old loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/user/cont-sys.rme (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded You can see that it is using this path: usr/local/gwTeX/texmf.pkgs. After my attempts at updating, note that it is now using an entirely different area of my tex tree: context $ texmfstart texexec meta TeXExec | processing document 'meta' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file meta.top TeXExec | using randomseed 890 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5) (/usr/local/gwTeX/texmf.local/web2c/natural.tcx) entering extended mode (./meta.tex ConTeXt ver: 2007.06.06 09:53 MKII fmt: 2007.6.6 int: english/english language: language en is active system : cont-new loaded (/usr/local/gwTeX/texmf.local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/gwTeX/texmf.local/tex/context/base/cont-new.mkii)) system : cont-old loaded (/usr/local/gwTeX/texmf.local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/gwTeX/texmf.local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/gwTeX/texmf.local/tex/context/user/cont-sys.rme (/usr/local/gwTeX/texmf.local/tex/context/base/type-exa.tex) (/usr/local/gwTeX/texmf.local/tex/context/base/type-syn.tex) (/usr/local/gwTeX/texmf.local/tex/context/base/type-enc.tex) (/usr/local/gwTeX/texmf.local/tex/context/base/type-siz.tex) (/usr/local/gwTeX/texmf.local/tex/context/base/type-map.tex) (/usr/local/gwTeX/texmf.local/tex/context/base/type-spe.tex) (/usr/local/gwTeX/texmf.local/tex/context/base/type-akb.tex)) Note the path: /usr/local/gwTeX/texmf.local I think what I should have done after using i-installer, is try using texmfstart texexec --make --all. Not sure how best to proceed. Does ctxtools have an uninstall? Does ctxtools install in texmf.local by default? On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote: Quoting David Arnold [EMAIL PROTECTED]: Neither option worked. I am now getting the famous error: Transcript written on mfput.log. grep: rm-lmr7.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rm-lmr7' failed to make rm-lmr7.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not found. to be read again Usually this is because latin modern fonts are not present. Try to download the fonts, unzip them in your texmf tree, run mktexlsr and try again. Aditya __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest
Re: [NTG-context] gwTeX problem
Latin modern fonts have names like what? Where are they installed in your tree? Where can I get these fonts? At what point in my tree do I place the zip file and then what command do I use to unzip them? Thanks, Aditya. Your help is appreciated. I would have never messed with my installation but I tried your first example in section 4, page 4 of: http://dl.contextgarden.net/myway/ mathalign.pdf and got two equations but three numbers! (1) (2) and (3). So I thought that might be a bug and I hadn't updated context in some time, so here I am, hammered again On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote: Quoting David Arnold [EMAIL PROTECTED]: Neither option worked. I am now getting the famous error: Transcript written on mfput.log. grep: rm-lmr7.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rm-lmr7' failed to make rm-lmr7.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not found. to be read again Usually this is because latin modern fonts are not present. Try to download the fonts, unzip them in your texmf tree, run mktexlsr and try again. Aditya __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gwTeX problem (I'm back)
Aditya et al, The cure follows: 1. Use GW's i-installer to: Update gwTeX based on Texlive During this installation and configuration, I am confronted with a warning that I have some personal tex setttings and This is true, as I have some stuff in ~/Library/texmf/. 2. Update gwTeX Support: Context Updater. Run: texmfstart texexec --make --all Watching carefully, I see formats going into ~/Library/texmf/web2c/ and ~/Library/texmf/web2c/pdflatex/. And I am back. All is well. There are still two things I am unsure of: 1. Does GW's Context Updater install Context in texmf.local? 2. Which context installation does ctxtools --updatecontext update? Does it interfere with GW's installation? On Jun 6, 2007, at 9:23 AM, Aditya Mahajan wrote: Quoting David Arnold [EMAIL PROTECTED]: Neither option worked. I am now getting the famous error: Transcript written on mfput.log. grep: rm-lmr7.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input rm-lmr7' failed to make rm-lmr7.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*7ptmmmrrm*=rm-lmr7 not loadable: Metric (TFM) file not found. to be read again Usually this is because latin modern fonts are not present. Try to download the fonts, unzip them in your texmf tree, run mktexlsr and try again. Aditya __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Back to Metafun Manual
All, I am wondering what is wrong with the following. On my system it produces the error that follows. \setuppapersize[S6][S6] \usetypescriptonce [map] [times,helvetica,palatino] [texnansi] \usetypescriptonce [serif][times][name,texnansi] \usetypescriptonce [sans] [helvetica][name,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi] \usetypescriptonce[serif][times][name,texnansi] \usetypescriptonce[sans][helvetica][name,texnansi] \usetypescriptonce[palatino][texnansi] \setupbodyfont[palatino,10pt] \definefont[RotFont][RegularBold] \stopMPenvironment \stopbuffer \definefont[RotFont][RegularBold] \getbuffer[mpenv] \setupcolors[state=start] \starttext \def\showMPline#1#2% {\startMPcode path p ; p := ((0,0)--(.5,1)--(1,0)) xscaled 2.5cm yscaled 1.25cm ; pickup pencircle scaled .75cm ; draw p withcolor .625white ; interim linejoin := #1 ; interim linecap := #2 ; draw p withcolor transparent(1,.5,.625yellow) ; \stopMPcode} \def\showMPtext#1#2% {linejoin=#1\par linecap=#2} \startbuffer \startcombination[3*3] {\showMPline{mitered}{butt}}{\showMPtext{mitered}{butt}} {\showMPline{mitered}{rounded}} {\showMPtext{mitered}{rounded}} {\showMPline{mitered}{squared}} {\showMPtext{mitered}{squared}} {\showMPline{rounded}{butt}}{\showMPtext{rounded}{butt}} {\showMPline{rounded}{rounded}} {\showMPtext{rounded}{rounded}} {\showMPline{rounded}{squared}} {\showMPtext{rounded}{squared}} {\showMPline{beveled}{butt}}{\showMPtext{beveled}{butt}} {\showMPline{beveled}{rounded}} {\showMPtext{beveled}{rounded}} {\showMPline{beveled}{squared}} {\showMPtext{beveled}{squared}} \stopcombination \stopbuffer \placefigure [here] [fig:joints] {The nine ways to end and join lines.} {\getbuffer} \stoptext \stoptext The error: (./meta-meta.tmp [MP to PDF] (./meta-mpgraph.1 ! Dimension too large. recently read \onebasepoint \handleMPboundingbox ...expr \MPury \onebasepoint -\MPlly \onebasepoint \rel... l.2 %%BoundingBox: -11 -11 82 25121 ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gwTeX ghostscript
Bernd, Thanks. But even though I used i-installer to install Ghostscript, I have no gv on my system. On Jun 5, 2007, at 12:14 AM, Bernd Militzer wrote: David Arnold schrieb: All, I anyone is running gwTeX on a mac, may I ask two questions: 1. Is the i-installer still running Context Updater properly? I think yes 2. How do I access ghostscript from the command line? gv filename Bernd __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to format the line Table of Contents ?
Does this help? \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[TocHead][chapter] \setuphead [TocHead] [number=no, incrementnumber=no, before=\blank, after=\blank] \definecombinedlist [content] [part, chapter,section,subsection, subsubsubsection,subsubsubsubsection] [level=subsubsubsubsection, criterium=local] \def\PageCommand#1{Page #1} \setuplist [chapter] [before=\blank, after=\blank, style=bold, pagecommand=\PageCommand] \setuplist [section] [pagecommand=\PageCommand, alternative=c] \starttext \TocHead{Table of Contents} \placecontent \chapter{New Chapter} \input knuth \dorecurse{5}{\expanded{\section{Section \recurselevel}} \input knuth} \stoptext On Jun 5, 2007, at 5:57 AM, Steffen Wolfrum wrote: Hi, maybe just a detail, but it never was really clear to me: To change the actual text of TOC's heading I use ... \setupheadtext [de] [content=Inhaltsverzeichnis] But how do I manually change the formatting (font, spaces etc.) for this line? Steffen __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Enabling write 18 via texmfstart and texexec
All, Is there a way to enable write18 via command line when compiling with texmfstart texexec filename? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Beautiful source code
Hans, I'm revisiting the metafun manual and I am marveling at the format of the source code. For example: \starttabulate[|lT|l|] \HL \NC \METAPOST\ code \NC mathematical equivalent \NC \NR \HL \NC (x,y) shifted (a,b) \NC $(x+a,y+b)$ \NC \NR \NC (x,y) scaled s \NC $(sx,sy)$ \NC \NR \NC (x,y) xscaled s \NC $(sx,y)$\NC \NR \NC (x,y) yscaled s \NC $(x,sy)$\NC \NR \NC (x,y) zscaled (u,v) \NC $(xu-yv,xv+yu)$ \NC \NR \NC (x,y) slanted s \NC $(x+sy,y)$ \NC \NR \NC (x,y) rotated r \NC $(x\cos(r)-y\sin(r),x\sin(r)+y\cos(r))$ \NC \NR \HL \stoptabulate Pasting into my email program does not do this code snippet justice, as in the Metafun source, all of the \NC's are aligned vertically, as are the \NR's. How do you do this? Does your editor align these for you, or do you painstakenly align them manually with the spacebar? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] gwTeX ghostscript
All, I anyone is running gwTeX on a mac, may I ask two questions: 1. Is the i-installer still running Context Updater properly? 2. How do I access ghostscript from the command line? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ctxtools --purgefiles
All, Why does ctxtools --purgefiles meta miss the two files shown below (.keep is ignored and .tuo is not removed)? context $ ctxtools --purgefiles meta CtxTools | purging temporary files : meta CtxTools | checking files that match 'meta-*.*' CtxTools | checking files that match 'meta.*' CtxTools | removed : meta-mpgraph.mp CtxTools | removed : meta-mpgraph.mpo CtxTools | removed : meta-mpgraph.1 CtxTools | removed : meta.tui CtxTools | removed : meta-mpgraph.log CtxTools | removed : meta.log CtxTools | removed : meta-path.tmp CtxTools | removed : meta.tmp CtxTools | removed : meta-mpgraph.mpb CtxTools | not removed : meta.tuo CtxTools | removed : mpgraph.mp CtxTools | removed files : 10 CtxTools | kept files : 1 CtxTools | persistent files : 0 CtxTools | reclaimed bytes : 25817 context $ ls meta* meta-mpgraph.mp.keepmeta.tex meta.pdfmeta.tuo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ctxtools --purgefiles
Not quite, still one left: context $ ctxtools --purgefiles --all meta CtxTools | purging all temporary files : meta CtxTools | checking files that match 'meta-*.*' CtxTools | checking files that match 'meta.*' CtxTools | removed : meta-mpgraph.mp CtxTools | removed : meta-mpgraph.mpo CtxTools | removed : meta-mpgraph.1 CtxTools | removed : meta.tui CtxTools | removed : meta-mpgraph.log CtxTools | removed : meta.log CtxTools | removed : meta-path.tmp CtxTools | removed : meta.tmp CtxTools | removed : meta-mpgraph.mpb CtxTools | removed : meta.tuo CtxTools | removed : mpgraph.mp CtxTools | removed files : 11 CtxTools | kept files : 0 CtxTools | persistent files : 0 CtxTools | reclaimed bytes : 27017 context $ ls meta* meta-mpgraph.mp.keepmeta.pdfmeta.tex On Jun 4, 2007, at 1:38 PM, Hans Hagen wrote: David Arnold wrote: All, Why does ctxtools --purgefiles meta miss the two files shown below (.keep is ignored and .tuo is not removed)? context $ ctxtools --purgefiles meta CtxTools | purging temporary files : meta CtxTools | checking files that match 'meta-*.*' CtxTools | checking files that match 'meta.*' CtxTools | removed : meta-mpgraph.mp CtxTools | removed : meta-mpgraph.mpo CtxTools | removed : meta-mpgraph.1 CtxTools | removed : meta.tui CtxTools | removed : meta-mpgraph.log CtxTools | removed : meta.log CtxTools | removed : meta-path.tmp CtxTools | removed : meta.tmp CtxTools | removed : meta-mpgraph.mpb CtxTools | not removed : meta.tuo CtxTools | removed : mpgraph.mp CtxTools | removed files : 10 CtxTools | kept files : 1 CtxTools | persistent files : 0 CtxTools | reclaimed bytes : 25817 context $ ls meta* meta-mpgraph.mp.keepmeta.tex meta.pdfmeta.tuo keeps can be handy when you run into an error and want to see what was written to file; keeping the tuo around saves passes when a next run is done ---all will remove all of them -- - 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 - __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] z0---z1---z2---z3---cycle strange effect
All, In working through the beginning chapters of the metafun manual, I am getting a very unusual effect when I open the resulting pdf file in Preview on Mac OS X. Here's a snapshot of what I see. http://online.redwoods.edu/instruct/darnold/context/meta.gif In acrobat, it looks fine. http://online.redwoods.edu/instruct/darnold/context/meta.pdf Any thoughts? \setuppapersize[S6][S6] \usetypescriptonce [map] [times,helvetica,palatino] [texnansi] \usetypescriptonce [serif][times][name,texnansi] \usetypescriptonce [sans] [helvetica][name,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi] \usetypescriptonce[serif][times][name,texnansi] \usetypescriptonce[sans][helvetica][name,texnansi] \usetypescriptonce[palatino][texnansi] \setupbodyfont[palatino,10pt] \definefont[RotFont][RegularBold] \stopMPenvironment \stopbuffer \definefont[RotFont][RegularBold] \getbuffer[mpenv] \setupcolors[state=start] \starttext \startuseMPgraphic{axis} tickstep := 1cm ; ticklength := 2mm ; drawticks unitsquare xscaled 8cm yscaled 3cm ; tickstep := tickstep/2 ; ticklength := ticklength/2 ; drawticks unitsquare xscaled 8cm yscaled 3cm ; \stopuseMPgraphic \startuseMPgraphic{points} z0 = (0.5cm,1.5cm) ; z1 = (2.5cm,2.5cm) ; z2 = (6.5cm,0.5cm) ; z3 = (2.5cm,1.5cm) ; \stopuseMPgraphic \startuseMPgraphic{path} str := z0---z1---z2---z3---cycle ; \stopuseMPgraphic \startbuffer \startlinecorrection[blank] \startMPcode string str ; defaultfont := \truefontname{Mono} ; \includeMPgraphic{axis} \includeMPgraphic{points} \includeMPgraphic{path} label.lft(str,(14.5cm,2.5cm)) ; drawwholepath scantokens(str) ; \stopMPcode \stoplinecorrection \stopbuffer \getbuffer \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] drawarrowpath
All, Doesn't look like drawarrowpath accepts options, as advertised in the metafun manual. Comments? \setuppapersize[S6][S6] \usetypescriptonce [map] [times,helvetica,palatino] [texnansi] \usetypescriptonce [serif][times][name,texnansi] \usetypescriptonce [sans] [helvetica][name,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi] \usetypescriptonce[serif][times][name,texnansi] \usetypescriptonce[sans][helvetica][name,texnansi] \usetypescriptonce[palatino][texnansi] \setupbodyfont[palatino,10pt] \definefont[RotFont][RegularBold] \stopMPenvironment \stopbuffer \definefont[RotFont][RegularBold] \getbuffer[mpenv] \setupcolors[state=start] \starttext \startlinecorrection[blank] \startMPcode visualizepaths ; path p ; p := (0cm,1cm)..(2cm,2cm)..(4cm,0cm)..(2cm,1cm)..cycle ; drawarrowpath p withcolor .625red ; draw p shifted (7cm,0) dashed withdots withcolor .625yellow ; \stopMPcode \stoplinecorrection \stoptext On the other hand, drawpath does seem to accept options. \startlinecorrection[blank] \startMPcode visualizepaths ; path p ; p := (0cm,1cm)..(2cm,2cm)..(4cm,0cm)..(2cm,1cm)..cycle ; drawpath p withcolor .625blue withpen pencircle scaled 2pt ; draw p shifted (7cm,0) dashed withdots withcolor .625yellow ; \stopMPcode \stoplinecorrection ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Prepare exams with ConTeXT
Aditya, As usual, great work. I don't understand the purpose of the fourth argument to \dowritelist: \def\savescore{\expanded{\dowritetolist{Score} {\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}} There are 4 arguments here, as in \dowritelist#1#2#3#4. It appears that: #1 holds the name of the list. #2 ? #3 ? #4 ? Can you describe what is expected in #2, #3, and #4? Above, I can see that you are sending the number of the current answer to #2 and the value of the total score to #3. This is not my problem. My problem is what is generally expected in #2 and #3 and I am baffled by the use of #4. Any help appreciated. On Jun 3, 2007, at 7:36 AM, Aditya Mahajan wrote: On Sun, 3 Jun 2007, batela wrote: \startelements dutch english germanczech italian romanian french begin: beginvan start anfangzacatek inizioinceput debut end: eindvan stop ende konec fine sfarsit fin \stopelements \defineenumeration[Answer][text=Question] \defineenumeration[Question] \defineblock[answer,question] \setupblock [answer][before={\startAnswer\resetscore},after={\savescore \stopAnswer}] \setupblock [question][before={\startQuestion},after={\stopQuestion}] \makecounter{totalscore} \definelist[Score] [ pagenumber=no, width=5em, height=broad, textcommand=\showscores, numbercommand=\showquestionnumber, ] \def\showscores#1{\dotfill\emspace#1~points} \def\showquestionnumber#1{Question~#1} \def\score[#1]% {\incrementcounter{totalscore}{#1}% \dotfill\emspace#1~points\endgraf} \def\resetscore{\resetcounter{totalscore}} \def\savescore {\expanded{\dowritetolist{Score} There should be no line break here {\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} \placelist[Score][criterium=all] \title{Criteria} \useblocks[answer]} \starttext \startquestion In a body with mass=2 kg is applied a force of 2N. Which is the body acceleration? \startanswer write F = m a \score[5] solve a = F/m \score[4] find and write correctly a = 1 m/s2 \score[1] \stopanswer \stopquestion \startquestion In a body with mass=2 kg is applied a force of 2N. Which is the body acceleration? \startanswer write F = m a \score[5] solve a = F/m \score[14] find and write correctly a = 1 m/s2 \score[10.5] \stopanswer \stopquestion \generateexam \stoptext this code generate a little error: Wrong line breaks caused by email client. Try the attached code. Aditya prepareexam.tex __ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Prepare exams with ConTeXT
You can find some ideas here: http://www.tug.org/pracjourn/2006-4/mahajan/ On Jun 2, 2007, at 5:22 AM, batela wrote: Hello to all: I need to prepare an exam. The layout must be the following one: Questions page Scores page Answers For example: \startquestion In a body with mass=2 kg is applied a force of 2N. Which is the body acceleration? \startanswer write F = m a \score[5] solve a = F/m \score[4] find and write correctly a = 1 m/s2 \score[1] \stopanswer \stopquestion The result should be: Question 1: In a body with mass=2 kg is applied a force of 2N. Which is the body acceleration?. Question 2: Question 3: __ Page___ Scores Question 1 . 10 points Question 2 .. 20 points Question 3 .. 20 points ___Page Criteria Question 1 write F = m a 5 points resolve a = F/m 4 points find and write correctly a = 1 m/s2 ... 1 points are there any way to make this a easy task? thanks a lot Have a nice day.__ _ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] multipars?
All, I see an example of the use of multipars in a background developed in It's in the Details, but I can't find any explanation of what multipars represents (or multilocs or friends). Can someone steer me to an explanation of what these things represent and how to use them? Thanks. David. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Plural Name on definefloat?
All, Under what circumstances would you use the plural form of: \definefloat[figure][figures] ? Thanks. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Keeping it single valued
All, This example from the Metapost manual is beyond my expertise. The second figure is sweet, just what I would want. Can anyone wax philosophic for a bit and explain why the y-scaling keeps the second function single valued? starttext \startbuffer[figure] numeric scf, t[]; 3.2scf=2.4in; path fun; fun:=(0,-1)..(1,.5){right}..(1.9,.2){right}..{curl .1}(3.2,2); fun:=fun scaled scf; draw fun; \stopbuffer \placefigure [][fig:one] {Caption.} {\processMPbuffer[figure]} \startbuffer[figure] numeric scf, yscl, t[]; 3.2scf=2.4in; path fun; yscl=.1; %keep the function single valued fun:=(0,-1yscl)..(1,.5yscl){right}..(1.9,.2yscl){right}..{curl .1} (3.2,2yscl); fun:=fun yscaled (1/yscl); fun:=fun scaled scf; draw fun; \stopbuffer \placefigure [][fig:one] {Caption.} {\processMPbuffer[figure]} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Positioning graphics at positions on a page
Hi, Measuring from the top left hand corner of US letter paper, I'd like to position four identical metapost graphics, centered at (2in,2in), (6in,4in), (2in,6in) and (6in,8in). The first entry in each pair is the amount I'd like to move to the right from the top left corner of the page. The second entry is the amount I'd like to move down from the top left corner of the page. Any ideas? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \em in typing environment
All, I have: \startMatlab function output=primary(input) statements---including subfunction calls % first subfunction function out=one(in) statements % second subfunction function out=two(in) statments \stopMatlab Where: \definetyping[Matlab] \setuptyping [Matlab] [before={\startframedtext[width=\textwidth, background=screen, backgroundscreen=0.9]}, after={\stopframedtext}, indentnext=no, color=darkred] I'd like to override the monotype and make one line emphasized, as in: \startMatlab function output=primary(input) {\em statements---including subfunction calls} % first subfunction function out=one(in) statements % second subfunction function out=two(in) statments \stopMatlab Which of course doesn't work but it does give an idea of what I want to try. Any ideas? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Ugly matrix spacing
Try: \placeformula[-] \startformula \left( {\matrix{ {a_1 } {a_2 } {a_3 } \ldots {a_X } \cr {b_1 } 0 0 0 0 \cr 0 {b_2 } 0 0 0 \cr 0 0 \ddots 0 0 \cr 0 0 0 {b_{X - 1} } 0 \cr } } \right), \stopformula On Feb 19, 2007, at 2:24 PM, Vyatcheslav Yatskovsky wrote: $$\left( {\matrix{ {a_1 } {a_2 } {a_3 } \ldots {a_X } \cr {b_1 } 0 0 0 0 \cr 0 {b_2 } 0 0 0 \cr 0 0 \ddots 0 0 \cr 0 0 0 {b_{X - 1} } 0 \cr } } \right), $$ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Natural table questions
All, Using natural tales, how can I: 1. get some padding around text in each cell? 2. Increase the height of a cell (or row)? fix the height of a cell (or row)? David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] test
All, please ignore this test. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Test
All, Sorry, this is just a test. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setup linecorrection
All, How do you set up: \startlinecorrection[blank] \midaligned{\getbuffer[table]} \stoplinecorrection so ensuing lines are not indented? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to squeeze one more line onto a page
All, How can I squeeze one more line onto a page without rewriting text or resizing graphics. Just a one time I want a couple more lines. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to squeeze one more line onto a page
Aditya, Tried: \adaptlayout[lines+=2] The image in \infigure[fig:series2](c) clearly contains enough information to complete the graph of the parabola having equation $y=-(x+2)^2+3$ in \infigure[fig:finalparab]. Got an error: ! Missing number, treated as zero. to be read again \relax \balancedimensions #1#2#3-\scratchdimen #3\relax \redoglobal \advance #1 \s... \dodoadaptlayout ...ht \footerheight \@@zaheight } \ifdim \footerheight \zer... to be read again \par l.660 Where should I put this command? On Jan 12, 2007, at 9:04 PM, Aditya Mahajan wrote: On Fri, 12 Jan 2007, David Arnold wrote: How can I squeeze one more line onto a page without rewriting text or resizing graphics. Just a one time I want a couple more lines. \adaptlayout[lines+=2] or \adaptlayout[height=+2cm] Aditya ___ 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] How to squeeze one more line onto a page
\adaptlayout[lines=+2] On Jan 12, 2007, at 9:25 PM, Aditya Mahajan wrote: On Sat, 13 Jan 2007, Aditya Mahajan wrote: On Fri, 12 Jan 2007, David Arnold wrote: Aditya, Tried: \adaptlayout[lines+=2] Where should I put this command? hmm... I copy pasted from an old project so this code used to work. But I get the same error right now. Hmm I do not know why this used to work earlier. The correct syntax is \adaptlayout[lines=+2] For example \showframe \setuppapersize[A6][A6] \starttext \dorecurse{30} {\recurselevel \endgraf} \page \adaptlayout[lines=+2] \dorecurse{30} {\recurselevel \endgraf} \stoptext Aditya ___ 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] Last page number
Hans, I think you may have misinterpreted my question. It seems \lastpage holds the pagenumber for the last page. I think. If so, that's not what I am looking for. The following code outputs eight pages. The first seven pages have a pagenumber at the top of the page, i.e., 1, 2, 3, 4, 5, 6, and 7. However, the 8th page is completely blank. There is no pagenumber at the top of the page. My question is: Why not? Why isn't there a pagenumber on the 8th page? And what should I do to get one? \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[answers][section] \setuphead[answers][page=right] \setuppagenumbering[alternative=doublesided] \starttext \chapter{Functions} \input knuth \section{Function Notation} \dorecurse{10}{\input knuth \par} \answers{Answers} \dorecurse{10}{\input knuth \par} \stoptext On Jan 8, 2007, at 1:27 AM, Hans Hagen wrote: David Arnold wrote: All, How can I get the last page to have a page number in this example? \lastpage \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[answers][section] \setuphead[answers][page=right] \setuppagenumbering[alternative=doublesided] \starttext \chapter{Functions} \input knuth \section{Function Notation} \dorecurse{10}{\input knuth par} \answers{Answers} \dorecurse{10}{\input knuth par} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - 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] Last page number
Hans, That's what I thought, but this code produces 9 pages. How come? doublesided by default makes an even number of pages \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[answers][section] \setuphead[answers][page=right] \setuppagenumbering[alternative=doublesided] \starttext \startbodymatter \chapter{Functions} \input knuth \section{Function Notation} \dorecurse{10}{\input knuth par} \answers{Answers} \dorecurse{10}{\input knuth par} \stopbodymatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Header problem in project
Taco et all, From what I could deduce, our former macro for placeanswers was a group. \def\placeanswers{ \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } It occurred at the end of an exercise set like this: %%% ENDTESTBANK %%% \stopquestions \placeanswers\kern0pt \stopcomponent So when the group was finished, the header for the component took over. Here is the fix I found. I just set new headers for the rest of the way. \def\placeanswers{\doifmode{long}{% \page[yes] \def\headermarkleft{{\sc Chapter \headnumber[chapter]}} \def\headermarkright{{\sc{}Section \headnumber[section]}} \setupheadertexts[][\headermarkright][\headermarkleft][]} \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } So now when we compile with: texmfstart texexec --mode=long,paging section1exercise We get what we want, which is no page numbers in the headers once the solutions start. You can see the result at: http://msenux.redwoods.edu/IntAlgText2/chapter2/section1solutions.pdf We have a paging mode and a perl script that syncs the page numbers at the beginning of this document with the chapter page numbers. Thanks. On Jan 8, 2007, at 11:04 AM, Taco Hoekwater wrote: David Arnold wrote: \placeanswers\kern0pt \stopcomponent When we compile section1exercises.tex with texmfstart texexec -- mode=long section1exercises, all is well until the last page, where the former header is used instead of the header defined in the \placeanswers macro. But we want to finish out the document from the point we put the \placeanswers with the second header. Any suggestions? Does ending with \placeanswers\page help? Taco ___ 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
[NTG-context] bad page break
All, We have a situation where we want to put in a page break to move some text at the bottom of the page to the next page. However, there is a float that hasn't been typeset yet, so the result of \page[yes] is to put the float at the top of a blank page, then page again to continue the running text. Anyway around this? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Header problem in project
Hans et all, We have a project call book.tex, a product in that called chapter1.tex, and a component in that called section1exercises.tex. We have blocks that we save and then place at the end of section1exercises.tex with a macro defined in our environment file: \def\placeanswers{% \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \def\headermarkleft{{\sc Chapter \headnumber[chapter]}} \def\headermarkright{{\sc{}Section \headnumber[section]}} \setupheadertexts[][\headermarkright][\headermarkleft][] \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } The else part of the do above is an attempt to define a different header when we compile with --mode=long, but just for the pages on which we use \placeanswers. The other pages have a different header defined in the environment file. Those headers have page numbers as well with: \def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}} \def\headermarkright{{\sc{}Section \headnumber[section]\headerskip \getmarking[section][current]}\headerskip\bold{\pagenumber}} The file section1exercises ends like this: %%% ENDTESTBANK %%% \stopquestions \placeanswers\kern0pt \stopcomponent When we compile section1exercises.tex with texmfstart texexec -- mode=long section1exercises, all is well until the last page, where the former header is used instead of the header defined in the \placeanswers macro. But we want to finish out the document from the point we put the \placeanswers with the second header. Any suggestions? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Last page number
All, How can I get the last page to have a page number in this example? \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[answers][section] \setuphead[answers][page=right] \setuppagenumbering[alternative=doublesided] \starttext \chapter{Functions} \input knuth \section{Function Notation} \dorecurse{10}{\input knuth par} \answers{Answers} \dorecurse{10}{\input knuth par} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Last page number
All, And why does this one have page numbers on all pages? And why does it end on an odd page? What's the difference from my first example? \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[answers][section] \setuphead[answers][page=right] \setuppagenumbering[alternative=doublesided] \starttext \startbodymatter \chapter{Functions} \input knuth \section{Function Notation} \dorecurse{10}{\input knuth par} \answers{Answers} \dorecurse{10}{\input knuth par} \stopbodymatter \stoptext On Jan 7, 2007, at 9:50 PM, David Arnold wrote: All, How can I get the last page to have a page number in this example? \setupwhitespace[medium] \setupindenting[medium,yes] \definehead[answers][section] \setuphead[answers][page=right] \setuppagenumbering[alternative=doublesided] \starttext \chapter{Functions} \input knuth \section{Function Notation} \dorecurse{10}{\input knuth par} \answers{Answers} \dorecurse{10}{\input knuth par} \stoptext ___ 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
[NTG-context] Help --- Arithmetic Overflow: Weird error
All, Anyone see what I am doing wrong here? \setupcolors[state=start] \definecolor[gridlines][s=0.7] \startMPinclusions color mygridcolor; mygridcolor=\MPcolor{gridlines}; \stopMPinclusions \starttext \startbuffer[one] % initialize scale numeric u; 10u=4cm; % draw grid for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor mygridcolor; draw (k,-5u)--(k,5u) withcolor mygridcolor; endfor; % draw axes drawdblarrow (-5.2u,0)--(5.2u,0); drawdblarrow (0,-5.2u)--(0,5.2u); % label axes label.rt(btex $\tfx x$ etex, (5.2u,0)); label.top(btex $\tfx y$ etex, (0,5.2.u)); label.bot(btex $\tfx 5$ etex, (5u,0)); label.lft(btex $\tfx 5$ etex, (0,5u)); %draw the given line and the parallel line drawdblarrow (-5u,-4.5u)--(5u,0.5u) withcolor blue; label.bot(btex $\tfx x-2y=4$ etex, (-5u,-4.5u)); %pairs pair Q, R; R:=(4u,0u); Q:=(0u,-2u); %labels dotlabel.lrt(btex $\tfx R(4,0)$ etex, R); dotlabel.lrt(btex $\tfx Q(0,-2)$ etex, Q); \stopbuffer \startbuffer[two] % initialize scale numeric u; 10u=4cm; % draw grid for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor mygridcolor; draw (k,-5u)--(k,5u) withcolor mygridcolor; endfor; % draw axes drawdblarrow (-5.2u,0)--(5.2u,0); drawdblarrow (0,-5.2u)--(0,5.2u); % label axes label.rt(btex $\tfx x$ etex, (5.2u,0)); label.top(btex $\tfx y$ etex, (0,5.2.u)); label.bot(btex $\tfx 5$ etex, (5u,0)); label.lft(btex $\tfx 5$ etex, (0,5u)); %draw the given line and the parallel line drawdblarrow (-5u,-4.5u)--(5u,0.5u) withcolor blue; label.bot(btex $\tfx x-2y=4$ etex, (-5u,-4.5u)); drawdblarrow (-4u,5u)--(1u,-5u) withcolor blue; %pairs pair P, Q, R; P:=(-3u,3u); Q:=(-3u,1u); R:=(-2u,1u); draw P--Q--R withpen pencircle scaled 1pt withcolor red; label.lft(btex $\tfx \Delta y=-2$ etex, 0.5[P,Q]); label.bot(btex $\tfx \Delta x=1$ etex, 0.5[Q,R]); %labels dotlabel.urt(btex $\tfx (-3,3)$ etex, P); \stopbuffer \startbuffer[combined] \startcombination[2*1] {\processMPbuffer[one]}{(a)} {\processMPbuffer[two]}{(b)} \stopcombination \stopbuffer \startlinecorrection[blank] \midaligned{\getbuffer[combined]} \stoplinecorrection %\startlinecorrection[blank] %\midaligned{\processMPbuffer[two]} %\stoplinecorrection \stoptext I am getting this error: ! Arithmetic overflow. recently read \@@raggedskipb \setraggedness ...e \@@raggedskipa \@@raggedskipb \hyphenpenalty \@@raggedsk... \raggedcenter -\setraggedness \middleraggedness \setraggedskips 2 \middlerag... \@@align@@middle ...gedcenter \else \raggedcenter \fi \fi \next2 #1,-\dodosetupalign {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.3 {\processMPbuffer[two]}{( b)} ? It doesn't seem to be the Metapost code, because if you uncomment and comment the last few lines like this: %\startbuffer[combined] % \startcombination[2*1] %{\processMPbuffer[one]}{(a)} %{\processMPbuffer[two]}{(b)} % \stopcombination %\stopbuffer % %\startlinecorrection[blank] %\midaligned{\getbuffer[combined]} %\stoplinecorrection \startlinecorrection[blank] \midaligned{\processMPbuffer[two]} \stoplinecorrection It compiles fine. So does this: I'm stymied. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help --- Arithmetic Overflow: Weird error
Mojca, Does the code I sent crash on your system with an overflow error? On Jan 3, 2007, at 5:34 PM, Mojca Miklavec wrote: Btw: use \sometxt{$\tfx x-2y=4$} instead of btex $\tfx x-2y=4$ etex It's much more efficient. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help --- Arithmetic Overflow: Weird error
Mojca, Mac OS X 10.4.8. Gerben's GWTeX. LinearFunctions $ texmfstart texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD On Jan 3, 2007, at 5:45 PM, Mojca Miklavec wrote: david.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help --- Arithmetic Overflow: Weird error
Mojca, Attached. Meanwhile, I guess I should try to update my Context and see if that makes a difference. I found that I needed to update my installer and now I am realizing that I am a bit behind the times. In trying Context Updater in the update i-installer, I get this message: You are now installing in the location for de deprecated gwTeX 2003-2005 i-Package in part based on teTeX. This is probably not what you want. I suggest you make sure you have the gwTeX i-Package based on TeX Live installed. Then the best thing is to reset this i-Package to its default package properties. It will then pick up the new default location. Looks like it wants me to install the latest tex. Any advice? On Jan 3, 2007, at 6:01 PM, Mojca Miklavec wrote: On 1/4/07, David Arnold [EMAIL PROTECTED] wrote: Mojca, Mac OS X 10.4.8. Gerben's GWTeX. LinearFunctions $ texmfstart texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD (I also use gwTeX here.) Can you send me complete file+logs? Mojca junk.tex Description: Binary data junk.log Description: Binary data ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] GWTEX -- Uninstall before installing the new?
All, GWTeX has some serious updates. Should I uninstall the deprecated tex before installing the new? Or can they both be installed at the same time (in case the new doesn't work well with my old files). ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help --- Arithmetic Overflow: Weird error
Mojca, Well, I just finished installing gwtex, the newer version. It is in / usr/local/gwTeX. I am just finishing installing CM Super fonts. I'll then do Freetype, libwmf, and ImageMagick and ghostscript. Then I'll do the contextupdater. There's something about a preference pane but I haven't found that yet. At the moment, from my command line, I am finding the old tex. darnold $ which pdflatex /usr/local/teTeX/bin/powerpc-apple-darwin-current/pdflatex Advice welcome as I proceed. On Jan 3, 2007, at 7:45 PM, Mojca Miklavec wrote: On 1/4/07, David Arnold [EMAIL PROTECTED] wrote: Mojca, What is ctxtools --contextversion It tells you the version of ConTeXt rather than the version of texexec. Perhaps you need to use texmfstart ctxtools --contextversion (before upgrading) Evn if you uninstall tex.ii2, you can still install it agin if something fails. The problem might be that if you don't uninstall tex.ii2, context might install under tetex and then you won't be able to update context itself (although the version should be OK) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help --- Arithmetic Overflow: Weird error
Mojca, Looks like I did it. Thanks for the help. All is well at the moment. On Jan 3, 2007, at 8:19 PM, Mojca Miklavec wrote: On 1/4/07, David Arnold [EMAIL PROTECTED] wrote: OK. I am starting anew. I uninstalled the old. Now, I do have some stuff in ~/Library/texmf, and I am at a point in the installation where I am getting this message: I found (a) personal configuration file(s) for user(s): David Arnold. These users will not fully use system-wide settings and their TeX configuration is not fully covered by this system-wide configuration phase. I suspect they are related. However, I don't want to just delete these as some would be hard to recover. Can I put them in a tmp directory somewhere? And, after the installation completes, is thre a proper new place to move them to? I did mv texmf texmf2 You can recover them later if needed by copying single files or folders back. In my case there were only format files. I had to do that because I got format file mismatch - there were ConTeXt formats in there, but they were older as they should be. Probably it would be OK if I just regenerated the formats again. Don't bother too much. If something causes you troubles, just rename the whole tree. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cdwincontext
Wolfgang, Thanks. I'll wait to see if someone can come up with a file. If not, I'll get back to you. Anyone out there have an existing file for win98 that works? On Jan 3, 2007, at 5:46 PM, Wolfgang Werners-Lucchini wrote: Has anyone modified the batch file in cdwincontext so that it will run on Windows98? If so, can I get a copy of the batch file? Yes, I have done this in the past. But I have updated my windows and deleted the old stuff. If nobody else has working files I can summarize, what I have done. Wolfgang ___ 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
[NTG-context] cdwincontext
All, Has anyone modified the batch file in cdwincontext so that it will run on Windows98? If so, can I get a copy of the batch file? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Figure library -- figures not found but they are there
Hans et al, Running: figures $ texmfstart texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD I have a figure library figlibLogic.xml, the first few lines of which are: ?xml version='1.0'? ?context-directive job module fig-make ? ?context-directive job mode letter ? figurelibrary language=en description organizationCollege of the Redwoods Mathematics Department/ organization projectIntermediate Algebra Text/project productPreliminaries/product commentFigures for Logic Section/comment /description figure fileLogicFigs-mpgraph.1/file labelrealline1/label copyrightCollege of the Redwoods Mathematics Department/copyright comment/comment /figure In attempting to compile this file with texmfstart texexec figlibLogic.xml, the log reports that it cannot find the figures. For example, figures : figure LogicFigs-mpgraph.3 can not be found [3.1] figures : figure LogicFigs-mpgraph.4 can not be found [4.1] figures : figure LogicFigs-mpgraph.5 can not be found However, they are there: figures $ ls LogicFigs-mpgraph.* LogicFigs-mpgraph.1 LogicFigs-mpgraph.26 LogicFigs-mpgraph.10LogicFigs-mpgraph.27 LogicFigs-mpgraph.11LogicFigs-mpgraph.28 LogicFigs-mpgraph.12LogicFigs-mpgraph.29 LogicFigs-mpgraph.13LogicFigs-mpgraph.3 LogicFigs-mpgraph.14LogicFigs-mpgraph.30 LogicFigs-mpgraph.15LogicFigs-mpgraph.4 LogicFigs-mpgraph.16LogicFigs-mpgraph.5 LogicFigs-mpgraph.17LogicFigs-mpgraph.6 LogicFigs-mpgraph.18LogicFigs-mpgraph.7 LogicFigs-mpgraph.19LogicFigs-mpgraph.8 LogicFigs-mpgraph.2 LogicFigs-mpgraph.9 LogicFigs-mpgraph.20LogicFigs-mpgraph.log LogicFigs-mpgraph.21LogicFigs-mpgraph.mp LogicFigs-mpgraph.22LogicFigs-mpgraph.mp.keep LogicFigs-mpgraph.23LogicFigs-mpgraph.mpb LogicFigs-mpgraph.24LogicFigs-mpgraph.mpo LogicFigs-mpgraph.25LogicFigs-mpgraph.mpx Any ideas? David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tagging external figure files in output
All, Suppose I have in my source: \placefigure [][] {none} {\externalfigure[sec3onea]} Now, when I compile, I'd like to have a label somewhere on the output figure in the pdf that says this figure is using the external file sec3onea. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] no indent after figure
Use \indentation, as in: \indentation Now is the time. On Sep 8, 2006, at 6:29 AM, Wolfgang Werners-Lucchini wrote: Hallo! I have a problem with indenting. The paragraph following the \placefigure is not indented and I find not any way to achieve this. The following testfile shows the situation: -- \setupfloats[indentnext=yes]% --- Doesn't help! \setupfloat[figure][default={page,high,none}] \setupcaption[figure][number=no] \setupindenting[medium,yes,next] \starttext \dorecurse{2}{\input knuth\par} \placefigure{}{\framed[offset=none, width=\makeupwidth, height=\textheight]{figure}} \indenting[yes]% --- Doesn't help! \indent {\bf Here!} % --- Doesn't help! \dorecurse{3}{\input knuth\par} \stoptext -- I tryed the 'indentnext=yes' in \setupfloats but I don't know if that option should do what I want or if it has an other meaning. Wolfgang ___ 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] layout question
curspace=2.55in should be cutspace=2.55in On Aug 21, 2006, at 3:12 AM, richard rascher-friesenhausen wrote: Hans Hagen schrieb: richard rascher-friesenhausen wrote: Hello, i have a simple (?) layout question. I want to typeset a doublesided text with a larger margin on one side. This margin will be filled with 'margin images' or 'margin remarks'. But sometimes, larger images have to be placed in the text+margin. Which commands, options or setups are correct, to get the same results on odd and even pages? In the attached pdf file, odd and even pages behave different, using a simple setup (see tex file). it's dangerous to use dimensions in \setuplayout that get set themselves also, textwidth is for special purposed and special effects, not to be used here (spoils things) \setuppapersize[A4][A4] \setuplayout [width=middle, backspace=.75in, curspace=2.55in, leftmargin=.50in, margindistance=.25in, rightmargin=2.3in] \setuppagenumbering[alternative={singlesided,doublesided}] \starttext The very first page with a small image in the (bigger) margin. \placefigure [inright]{a margin image} {\framed[width=\marginwidth,height=3cm]{image}} \input tufte An now a larger image in the text and margin are \placefigure [here,inright]{a text+margin image} {\framed[width=1.2\textwidth,height=3cm]{image}} \inmargin{Tufte text} \input tufte \page The second page with a small image in the (bigger) margin. \placefigure [inright] {a margin image} {\framed[width=\rightmarginwidth,height=3cm]{image}} \input tufte An now a larger image in the text and margin are \placefigure [here,inright] {a text+margin image} {\framed[width=1.2\textwidth,height=3cm]{image}} \inmargin{Tufte text} \input tufte \page - 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 - Thanks for the quick response. I have some questions about your code, because it does not fullfill all my wishes. The command \inmargin now correctly puts its text on the correct side on even and odd pages. But i would like to have the same behaviour for the figures too. In a longer script, TeX should know, if the margin image has to be placed left or right. So 'inright' or 'inleft' is not an option. And 'margin' does not work ... (the image is placed mostly outside the page). In your code, the long image on the second page does not start in the left margin, as desired. % % output=pdf \setuppapersize[A4][A4] \setuplayout [%width=middle, backspace=.75in, curspace=2.55in, leftmargin=.50in, margindistance=.25in, rightmargin=2.3in] \setuppagenumbering[alternative={doublesided}] \starttext The very first page with a small image in the (bigger) margin. \placefigure [margin]{a margin image} {\framed[width=\marginwidth,height=3cm]{image}} \input tufte And now a larger image in the text and margin \placefigure [here,inright]{a text+margin image} {\framed[width=1.2\textwidth,height=3cm]{image}} \inmargin{Tufte text} \input tufte \page The second page with a small image in the (bigger) margin. \placefigure [margin] {a margin image} {\framed[width=\marginwidth,height=3cm]{image}} \input tufte And now a larger image in the text and margin \placefigure [here,inleft] {a text+margin image} {\framed[width=1.2\textwidth,height=3cm]{image}} \inmargin{Tufte text} \input tufte \page % Any help appreciated richard -- == Richard Rascher-Friesenhausen MeVis -- Centrum fuer Medizinische Diagnosesysteme und Visualisierung GmbH Universitaetsallee 29 D-28359 Bremen email: [EMAIL PROTECTED], [EMAIL PROTECTED] bremerhaven.de www : http://www.mevis.de/, http://www.hs-bremerhaven.de/ fon : +49 - 421 - 218 7707 (mevis) fax : +49 - 421 - 218 4236 (mevis) == ___ 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