[NTG-context] Install minimal context distribution
Dear Context-ers, I would like to install the minimal context distribution, but have no idea of which zip files to download and how to configure the system. I have seen that there are many zip files in the Pragma website : justtex.zip, cont-bas.zip, cont-tmf.zip, linuxtex.zip. Any advice on setting up a minimal system to use Context will be appreciated. Thanks, saji -- Saji N. Hameed, Assistant Researcher, Tel:808 9569534 International Pacific Research Center, email:[EMAIL PROTECTED] 2525 Correa Rd, Honolulu, HI 96822 http://iprc.soest.hawaii.edu/~saji ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Install minimal context distribution
On Tue, 4 Jul 2006, Saji Njarackalazhikam Hameed wrote: Dear Context-ers, I would like to install the minimal context distribution, but have no idea of which zip files to download and how to configure the system. I have seen that there are many zip files in the Pragma website : justtex.zip, cont-bas.zip, cont-tmf.zip, linuxtex.zip. Any advice on setting up a minimal system to use Context will be appreciated. Does Installing Context on context wiki http://wiki.contextgarden.net/Main_Page help? Hans, should there be a link to the wiki on pragma's website? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux upgrade
On Fri, 23 Jun 2006, Hans Hagen wrote: Aditya Mahajan wrote: utilities. It also provides some useful things like ifchanged and iftoughed. There is a texmfstart manual (bit out of date). Simply the source is updated, but not yet the pdf -) Had a look at the updated manual and learnt about some features of texmfstart that I did not know. The front page is a nice example of \sometxt. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
I can confirm that this works from the command line: R CMD BATCH -q --save --restore rsample-r-1.tmp rsample-r-1.tmp.out using the sample file from the r module. Running this command for each of the r segments will produce the desired output. What I haven't determined is how to modify the r module \runR command. Simply replacing the current \runR with \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} was not successful. But I'm quite unfamilier with ConTeXt at this level. As far as I can determine, the appropriate .out files are not being created, which the log file correctly indicates. The .tmp files are successfully extracted from the source file. Thanks for the help with this. Matt ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
I think some quoting is required: \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} works here, but then I am on Linux. I think eventually Mac expertise may be required. Johan 2006/7/5, Matthew Routley [EMAIL PROTECTED]: I can confirm that this works from the command line: R CMD BATCH -q --save --restore rsample-r-1.tmp rsample-r-1.tmp.out using the sample file from the r module. Running this command for each of the r segments will produce the desired output. What I haven't determined is how to modify the r module \runR command. Simply replacing the current \runR with \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} was not successful. But I'm quite unfamilier with ConTeXt at this level. As far as I can determine, the appropriate .out files are not being created, which the log file correctly indicates. The .tmp files are successfully extracted from the source file. Thanks for the help with this. Matt ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
I now discovered a side effect of using the R CMD BATCH invocation instead of the piping. With the CMD R outputs the setting of options in the first line and the result of proc.time at the end. Perhaps not a problem, but it does require three more typed lines per R block. Johan 2006/7/5, Johan Sandblom [EMAIL PROTECTED]: I think some quoting is required: \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} works here, but then I am on Linux. I think eventually Mac expertise may be required. Johan 2006/7/5, Matthew Routley [EMAIL PROTECTED]: I can confirm that this works from the command line: R CMD BATCH -q --save --restore rsample-r-1.tmp rsample-r-1.tmp.out using the sample file from the r module. Running this command for each of the r segments will produce the desired output. What I haven't determined is how to modify the r module \runR command. Simply replacing the current \runR with \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} was not successful. But I'm quite unfamilier with ConTeXt at this level. As far as I can determine, the appropriate .out files are not being created, which the log file correctly indicates. The .tmp files are successfully extracted from the source file. Thanks for the help with this. Matt ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
I get no such output, either to stdout or in the log, in fact nothing even similar. Does the ...disabled indicate that it is not run, possibly because of something TeX/ConTeXt-related? Johan 2006/7/5, Matthew Routley [EMAIL PROTECTED]: Johan Sandblom jsandblom at gmail.com writes: I think some quoting is required: \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} works here, but then I am on Linux. I think eventually Mac expertise may be required. Unfortunately, the quoting doesn't help. Closer inspection of the log file reveals lines such as: system(texmfstart --ifchanged=test-r-1.tmp --direct R CMD BATCH -q --save --restore test-r-1.tmp test-r-1.tmp.out)...disabled. with both the original \runR and new, batch mode. Matt ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Checksum mismatch for lucida
Sorry for this post = redundant .vf files !!! Renaud AUBIN a crit: Hi all, I have lucida fonts installed and the resulting pdf is ok but I obtained with texexec the following warning: DVItoMP warning: Checksum mismatch for texnansi-lbr (...or another lucida font) I assume it is a problem with .map files on my installation but... Maybe one of you has already dealt with this problem ? (I use debian testing + tetex + context in ~/texmf) Renaud ___ 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] Difficulties using the r module
On Wed, 5 Jul 2006, Matthew Routley wrote: Johan Sandblom jsandblom at gmail.com writes: I think some quoting is required: \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space --direct R CMD BATCH -q --save --restore \Rfile\space \Rfile.out}} works here, but then I am on Linux. I think eventually Mac expertise may be required. Unfortunately, the quoting doesn't help. Closer inspection of the log file reveals lines such as: system(texmfstart --ifchanged=test-r-1.tmp --direct R CMD BATCH -q --save --restore test-r-1.tmp test-r-1.tmp.out)...disabled. with both the original \runR and new, batch mode. This means that write18 is disabled on your system, so tex cannot execute any system commands. This is a security feature and most intallation disable write18 by default. You need to edit your texmf.cnf file to enable it. Search for texmf.cnf using texmfstart --locate texmf.cnf open that file in your favourite editor. Search for shell_escape and set it to true by shell_escape = t Save the file and write18 should work. Rerun texexec on your file and look at the log file. You should get system() executed. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
Aditya Mahajan adityam at umich.edu writes: This means that write18 is disabled on your system, so tex cannot execute any system commands. This is a security feature and most intallation disable write18 by default. You need to edit your texmf.cnf file to enable it. Search for texmf.cnf using texmfstart --locate texmf.cnf open that file in your favourite editor. Search for shell_escape and set it to true by shell_escape = t This worked for enabling the commands. Of course, this revealed a new problem. texmfstart was not being called correctly. Replacing texmfstart with: ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb , which is my path to texmfstart.rb, in \runR solved the problem. I had followed the Other method from the ConTeXt wiki for enabling texmfstart on my system. This works fine for calling commands from the command line, but (as suggested in the wiki) doesn't necessarily work for other methods. Once I sort out all of these OS X specific details, I'll post back to my original message with a solution. Thanks, Matt ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Tough one to debug in figure library
All, In my figure library, I had: figure filesection5figs-mpgraph.6/file labelsec5scaling5 /label copyrightCollege of the Redwoods Mathematics Department/copyright comment/comment /figure In my source, I had: \startbuffer[table] \setupTABLE[frame=off] \setupTABLE[column][each][align={middle,lohi}] \setupTABLE[row][first][topframe=on,bottomframe=on] \setupTABLE[row][last][bottomframe=on] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][2][leftframe=on] \setupTABLE[column][last][leftframe=on,rightframe=on] \bTABLE \bTR \bTD $x$ \eTD \bTD $y=f((1/2)x)$ \eTD \bTD $(x,f((1/2)x))$ \eTD \eTR \bTR \bTD $-4$ \eTD \bTD $0$ \eTD \bTD $(-4,0)$ \eTD \eTR \bTR \bTD $-2$ \eTD \bTD $2$ \eTD \bTD $(-2,2)$ \eTD \eTR \bTR \bTD $0$ \eTD \bTD $0$ \eTD \bTD $(0,0)$ \eTD \eTR \bTR \bTD $2$ \eTD \bTD $-2$ \eTD \bTD $(2,-2)$ \eTD \eTR \bTR \bTD $4$ \eTD \bTD $0$ \eTD \bTD $(4,0)$ \eTD \eTR \eTABLE \stopbuffer \startbuffer[figure] \startcombination[2*1] {\externalfigure[sec5scaling5]}{(a)} {\getbuffer[table]}{(b)} \stopcombination \stopbuffer \placefigure [][fig:scaling5] {The points in the table are points on the graph of $y=f((1/2)x)$.} {\getbuffer[figure]} I got messages that the figure sec5scaling5 could not be found. Whew! Long time trying to figure out what was wrong. Checked the usual dumb things I do, but finally, I changed: figure filesection5figs-mpgraph.6/file labelsec5scaling5 /label copyrightCollege of the Redwoods Mathematics Department/copyright comment/comment /figure to: figure filesection5figs-mpgraph.6/file labelsec5scaling5/label copyrightCollege of the Redwoods Mathematics Department/copyright comment/comment /figure See how I closed up the space? Figure now found! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost label alignment etc.
On Fri, 30 Jun 2006, Idris Samawi Hamid wrote: Hi, Mojca, Aditya, Hans, and all the MP gurus, Thank you for all the help and advice. On Fri, 30 Jun 2006 18:17:23 -0600, Mojca Miklavec [EMAIL PROTECTED] wrote: Wow... Ok, following is my present, still naive code. What I would like to be able to do is 1) In the first figure [square], control the relation of the front and back face of the cube by a single parameter. So if I use z for the front face coordinates, I can use z' for the rear face and define z' as a function of z. Then the angle of the z111--z'111 diagonal wrt the x-axis will change, and the label for that axis will have to change as well. I've been manually calculating inverse tangents to do this but can it be done automatically? angle(...). 2. In the second figure, to in addition control the distance between the 2 cubes by a single parameter without recalculating the dashed lines mapping the two. See code below. I only started yesterday but i can see that MetaPost is going to turn me into a junkie if I'm not careful :-) Any other suggestions for improving/streamlining this is greatly appreciated: I think it will make a nice example case for beginners/on the wiki when done! I do not have an ingeneous solution like Mojca. I will do this in a brute force way like you, but using loops for repetitive tasks and allowing metapost to do all the calculations for me. \setuppapersize[letter][letter] \setupcolors[state=start] \setuppagenumbering[state=stop] \def\AXIS#1#2#3{(#1) Axis #2: {\bf #3}} \forceMPTEXcheck{LABELL} \forceMPTEXcheck{LABELR} \forceMPTEXcheck{LABELM} \startMPenvironment \ssxx\setupinterlinespace \stopMPenvironment \startMPinclusions vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(% \framed[width=1.5cm,align=left,frame=off,autowidth=force,strut=on]{ s }),p) enddef ; vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(% \framed[width=1.5cm,align=right,frame=off,autowidth=force,strut=on]{ s }),p) enddef ; vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(% \framed[align=middle,frame=off,autowidth=force,strut=on]{ s }),p) enddef ; picture my_dash ; my_dash := dashpattern(on 1mm off 1mm) ; % my_dash is more verbose than p. \stopMPinclusions \startstaticMPfigure{square} numeric u ; u := 1.4cm; % Always declare the type of a variable. Helps in debugging. path p; p := unitsquare scaled 5u ; % Identify the corners z[1] = llcorner p ; z[2] = ulcorner p ; z[3] = urcorner p ; z[4] = lrcorner p ; % Identify the corners of the shifted rectangle for i = 5 upto 8: z[i] = z[i-4] shifted (2u, 1.25u) ; endfor ; % Find the intersection points z[9] = whatever[z[5],z[6]] = whatever[z[2],z[3]] ; z[10] = whatever[z[5],z[8]] = whatever[z[3],z[4]] ; % Axis location % No need to calculate these explicitly, you can as well use % label(p, 0.5[...]) ; z[11] = 0.5[z[1],z[4]] ; z[12] = 0.5[z[1],z[2]] ; z[13] = 0.5[z[1],z[5]] ; % z[13] = (1u,0.15u) ; Not sure which point you had calculated. drawoptions(withcolor .625red withpen pencircle scaled 0.4pt) ; draw p ; draw (z[6] -- z[7]) ; draw (z[7] -- z[8]) ; draw (z[6] -- z[9]) ; draw (z[10] -- z[8]) ; % draw (z[2] -- z[6]) ; % draw (z[3] -- z[7]) ; % draw (z[4] -- z[8]) ; for i = 2 upto 4 : draw(z[i] -- z[i+4]) ; endfor ; drawoptions(withcolor .625red dashed my_dash withpen pencircle scaled 0.4pt) ; % draw (z[1] -- z[5]) ; % draw (z[9] -- z[5]) ; % draw (z[5] -- z[10]) ; for i = 1,9,10 : draw(z[5] -- z[i] ) ; endfor ; drawoptions(withcolor black) ; LABELL.llft((0,0,0,0) Light Condensed Small Sans~Serif, z[1]) ; LABELL.llft((0,1,0,0) Light Extended Small Sans~Serif, z[2]) ; LABELR.lrt ((1,1,0,0) Bold Extended Small Sans~Serif, z[3]) ; LABELR.lrt ((1,0,0,0) Bold Condensed Small Sans~Serif, z[4]) ; LABELR.urt((0,0,1,0) Light Condensed Large Sans~Serif, z[5]) ; LABELR.urt((0,1,1,0) Light Extended Large Sans~Serif, z[6]) ; LABELR.urt((1,1,1,0) Bold Extended Large Sans~Serif, z[7]) ; LABELR.urt((1,0,1,0) Bold Condensed Large Sans~Serif, z[8]) ; LABELM.bot (\AXIS{x}{1}{Weight}, z[11]); picture p; p := textext(\framed[align=middle,frame=off,autowidth=force,strut=on]% {\AXIS{y}{2}{Width}}); p := p rotatedaround (z[12], 90) ; label.lft(p,z[12]); p := textext(\AXIS{z}{3}{Optical Size}); p := p rotatedaround (z[13], angle(z[5]-z[1])) ; % inv tan(1.5/2) % Let metapost calculate it for you % Ugly kludge label(p,z[13]+(0,2labeloffset)); % currentpicture := currentpicture scaled 0.9 ; % Why? Either change u, or use scaled= option in \usestaticMPfigure \stopstaticMPfigure \startstaticMPfigure{2squares} numeric u ; u := 0.7cm; path p; p := unitsquare scaled 5u ; % Identify the corners z[1] = llcorner p ; z[2] = ulcorner p ; z[3] = urcorner p ; z[4]
Re: [NTG-context] urw garamond for distribution
Hi Peter, On Tue, 4 Jul 2006, Peter Münster wrote: Hello, I've put 3 files into http://pmrb.free.fr/tmp/garamond/ : t-garamond.tex texnansi-urw-garamond.map type-ugm.tex Would you put them into the distribution? (would be nice) I support the idea of including urw-garamond in the distribution. Makes it much easier for font newbies like me to use them :) BTW, do you plan to add support for math design font for garamond? http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mathdesign-garamond Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux upgrade
On 6/23/06, Taco Hoekwater [EMAIL PROTECTED] wrote: John R. Culleton wrote: Let me start all over. Assuming a working TeX installation (either tetex or texlive 2005) what incantation must I perform to [...] After following those instructions, everything should be ok except for the new ruby script links and texmfstart's warning. For that, do the following: * make sure you have ruby installed. If not, do that first * go to the scripts/context/stubs/unix/ directory in your freshly unpacked ConTeXt distribution, make sure you have write permissions to the TeX binaries directory, and run something like the shell script that follows. [...] This script creates copies of the scripts and has to be run each time the scripts are updated. Whenever you make copies Murphy's law says the two versions will diverge. I'd suggest creating wrapper scripts, one each for perl, ruby, and java scripts in the directory with the texexec, etc. scripts as follows: - runtexmfrb #! /bin/sh # runtexmfrb -- run ruby scripts with ruby pathtexmfstart.rb .. # Author: George N. White III [EMAIL PROTECTED] # Date: 2006-06-25 # to use: link (ln -s) to the names of ConTeXt scripts in your tex bin # directory, e.g., # cd .../bin/arch # for f in texmfstart texexec pstopdf textools texutil ctxtools pdftools rlxtools texsync ; do ln -s runtexmfrb $f ; done # # requires: # ruby, sed, kpsewhich what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts texmfstart.rb` { test -n $p test -f $p; } \ || { echo \`texmfstart.rb' not found.; exit 1; } # for texmfstart just case $what in texmfstart) exec ruby $p ${1+$@} ;; *) q=`kpsewhich -format=texmfscripts $what.rb` { test -n $q test -f $q; } \ || { echo \`$what.rb' not found.; exit 1; } exec ruby $p $what.rb ${1+$@} ;; esac - end runtexmfrb -- - runtexmfjar #!/bin/sh # runtexmfjar -- run texmf Java app # Author: George N. White III [EMAIL PROTECTED] # Date: 2006-06-25 # to use: link to the names of the apps: # e.g., ln -s runtexmfjar JabRef java=/usr/java/jre1.5.0/bin/java what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.jar` { test -n $p test -f $p; } \ || { echo \`$what.jar' not found.; exit 1; } exec $java -jar $p ${1+$@} - end runtexmfjar -- - runtexmfpl #!/bin/sh # runtexmfpl -- run texmf perl script # to use: link to the names of the apps: # e.g., ln -s runtexmfpl epstopdf what=`echo $0 | sed '[EMAIL PROTECTED]/@@'` p=`kpsewhich -format=texmfscripts $what.pl` { test -n $p test -f $p; } \ || { echo \`$what.pl' not found.; exit 1; } exec perl $p ${1+$@} - end runtexmfpl -- The advantage of this approach is that you run the latest script versions after a new cont-tmf is installed without having to copy updated scripts to the bin directory. I use runtexmfjar for JabRef.jar, which lives in texmf-local/scripts. -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost label alignment etc.
Hi, Aditya, Wow, Thanks for your suggestions; I will most certainly study both yours and Mojca's approaches (I must admit I'm still struggling with mastering Mojca's approach ;-). This is a real contribtion: once I'm done studying yours and Mojca's examples and am sure I understand them I intend to post all three solutions on the wiki with some explanations (a self-pedagogical exercise as well). Thank you again. Take care and all the Best Idris On Wed, 05 Jul 2006 16:27:04 -0600, Aditya Mahajan [EMAIL PROTECTED] wrote: I do not have an ingeneous solution like Mojca. I will do this in a brute force way like you, but using loops for repetitive tasks and allowing metapost to do all the calculations for me. -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context