[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 ___
[NTG-context] Embedded fonts question
Greetings all, A sad story: My context-typeset dissertation was printed/distributed by a POD publisher with aweful typographical errors (like all commas in the main font being replaced by an ff ligature). Obviously the printer didn't check their results. The file reads fine both for me and the publisher, but the printer let us know that the file is unprintable due to problems with fonts not being embedded (why they originally printed an unprintable file I'll never know). Now as far as I can tell, fonts are embedded. It was made with context MKII, using hz and hanging punctuation, etc. When I look at the document in Adobe Acrobat, and check the document/font details, it gives a list of embedded fonts only. I'm not certain that the printer is in the right, but how can I tell? Is it possible that the pdf was altered when transferred from me to the publisher then to the printer? That compression of the pdf (zip) had any impact? Any other possibilities? What do you need to know to offer advice? ---I can send the file or a part of it if it is needed. Best, 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] Embedded fonts question
On Oct 25, 2008, at 11:18 AM, Pablo Rodríguez wrote: David Wooten wrote: Greetings all, A sad story: My context-typeset dissertation was printed/ distributed by a POD publisher with aweful typographical errors (like all commas in the main font being replaced by an ff ligature). Obviously the printer didn't check their results. The file /reads/ fine both for me and the publisher, but the printer let us know that the file is unprintable due to problems with fonts not being embedded (why they originally printed an unprintable file I'll never know). Now as far as I can tell, fonts /are /embedded. It was made with context MKII, using hz and hanging punctuation, etc. When I look at the document in Adobe Acrobat, and check the document/font details, it gives a list of embedded fonts only. I'm not certain that the printer is in the right, but how can I tell? Is it possible that the pdf was altered when transferred from me to the publisher then to the printer? That compression of the pdf (zip) had any impact? Any other possibilities? What do you need to know to offer advice? ---I can send the file or a part of it if it is needed. Hi David, if the printer didn't alter the file and the fonts were embedded in the original PDF document, they didn't vanished. The zip compression doesn't alter those things (AFAIK). A way to check whether the fonts are embedded or not, you can download ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl2-dos6.zip (if you are using Windows) and run from the command-line pdffonts dissertation-filename.pdf Replace dissertation-filename.pdf with the actual file name and pdffonts will display all font information. If this is too complicated for you, send me the original file in a private reply and I will post the results. I hope it helps, Pablo Thanks, Pablo and Luigi, I was able to run pdffonts and check my file, it agrees with adobe acrobat in saying that all fonts are embedded. SoI'm going to send the publisher the current file and see what happens. I'm only 98% sure that it's exactly the same as the original file I sent, so I am slightly hopeful that it will work out better. Thanks again for your quick responses, 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 ___
Re: [NTG-context] mtxrun:1741: attempt to index a nil value
On Fri, Aug 8, 2008 at 4:15 AM, Henning Hraban Ramm [EMAIL PROTECTED] wrote: For I had some problems with my installation I tried to start from scratch. But I'm stuck with an error in mtxrun: Welcome to Darwin! user$ cd /usr/local/ConTeXt/ /usr/local/ConTeXt user$ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . first-setup.sh sent 115 bytes received 1757 bytes 1248.00 bytes/sec total size is 1638 speedup is 0.88 /usr/local/ConTeXt user$ ./first-setup.sh receiving file list ... done bin/ bin/mtx-update-old.lua bin/mtx-update.lua bin/mtxrun bin/texlua sent 186 bytes received 6127742 bytes 331239.35 bytes/sec total size is 6126659 speedup is 1.00 MtxRun | version 1.1.0 - 2007+ - PRAGMA ADE / CONTEXT MtxRun | variable SELFAUTOLOC set to /usr/local/ConTeXt/bin MtxRun | variable SELFAUTODIR set to /usr/local/ConTeXt MtxRun | variable SELFAUTOPARENT set to /usr/local MtxRun | variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c} MtxRun | no cnf files found (TEXMFCNF may not be set/known) MtxRun | using script: bin/mtx-update.lua state | loaded update | start /usr/local/ConTeXt/bin/mtxrun:1741: attempt to index a nil value And that's it. Line 1741 of mtxrun contains a popen command to execute a system command; but even if I change that (e.g. printing the accessed variable before), the error stays at that line, so the message is probably wrong. Please help? I had the same problem. I then gave the command as: sudo ./first-setup.sh That succeeded, and the resulting ConTeXt installation seems to run correctly - but I'm not smart enough to know why this worked or why it should be necessary. 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] cont-enp.pdf on lulu
On Sat, 26 Jul 2008 04:38:42 +0200, Gerben Wierda wrote: My expectation is that the situation with respect to user documentation is not going to improve soon. I don't know one way or the other about this. I do know that there are only a few people (fewer than ten) who can even think of fixing it. I can write clearly, but if I were to try to write documentation for ConTeXt, I would have to waste all my time asking stupid questions of that same tiny group of people. From my own selfish point of view, the solution is simple. A freeze on all code, not even allowing bug fixes, until there's a comprehensive and unified document written by Hans and Taco (plus whoever else) that explains how to use all the features of ConTeXt, covering absolutely all possibilities including any features that are currently half-finished. Unless a new bug is introduced tomorrow that makes all ConTeXt projects come out completely blank, the nonexistent documentation makes all other bugs insignificant. (In fact, many apparent bugs turn out to have secret workarounds anyway, and those would obviously be in the documentation.) I know that such a project is viewed by Hans and Taco co. as a waste of their time, and as something that should be done only after the current burst of development is finished. - It's already proven that development isn't going to finish, but evolve. - No one else can document ConTeXt without bothering the same people every five minutes anyway, so what's the difference? - Documentation *could* be maintained and updated by someone outside of the small group, *IF* there was a reasonably up-to-date base of correct and complete documentation for them to start from. Currently, there is no such thing. Perhaps a reasonable compromise would be to publicly set a date in the near future (sometime before the end of 2008) as code-freeze day, when development comes to a complete stop and the documentation project begins. Bringing a writer from outside and getting him up to speed has obviously become completely impractical. Sincerely 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] inter-word spacing (initials)
On Thu, 17 Jul 2008 07:46:21 -0400, Alan Bowen wrote: Thanks, David. I tried \starttext A. E. Samuel\crlf A.\ E.\ Samuel\crlf A.~E.~Samuel \stoptext and can see no difference (ConTeXt ver: 2008.07.14 18:07 MKII). The tilde is not really a good way for me to go. The problem is that I publish a journal in which the bibliography is punctuated mainly by “.” Introducing tildes (which make spaces non-breaking) would affect the line-breaking negatively. Oh - sorry about that. What happens if you use your preferred way, but add the command \fixedspaces somewhere previously in the document? I've discovered that this command is now required to get either the \ . or the ~. to have any effect for me. The problem is, I don't know how to turn it off afterwards. :-) 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] inter-word spacing (initials)
On Thu, 17 Jul 2008 16:01:17 +0200, Wolfgang Schuster wrote: 2008/7/17 David [EMAIL PROTECTED]: On Thu, 17 Jul 2008 07:46:21 -0400, Alan Bowen wrote: Thanks, David. I tried \starttext A. E. Samuel\crlf A.\ E.\ Samuel\crlf A.~E.~Samuel \stoptext and can see no difference (ConTeXt ver: 2008.07.14 18:07 MKII). The tilde is not really a good way for me to go. The problem is that I publish a journal in which the bibliography is punctuated mainly by . Introducing tildes (which make spaces non-breaking) would affect the line-breaking negatively. Oh - sorry about that. What happens if you use your preferred way, but add the command \fixedspaces somewhere previously in the document? I've discovered that this command is now required to get either the \ . or the ~. to have any effect for me. The problem is, I don't know how to turn it off afterwards. :-) You can't, there is no command to reset it but this should do it. \def\variablespaces {\letcatcodecommand \ctxcatcodes `\~ \nonbreakablespace} Thanks Wolfgang. I prefer to have this behaviour available all the time, and I don't understand why anyone would want it turned off - just wanted to apologize for giving incomplete information. (Any idea why \fixedspaces has been changed from default to optional?) 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 ___
Re: [NTG-context] inter-word spacing (initials)
On Thu, 17 Jul 2008 11:13:15 -0400, Alan Bowen wrote: Thanks, David. I had not realized that there was a command \fixedspaces. Is it documented somewhere? It's in cont-eni on page 72. However, I have not needed the command until recently - I have used the tilde to create narrower spaces many times without using \fixedspaces in my old files, but lately it seems this step has become necessary (again?). I don't know when the change took place. 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] inter-word spacing (initials)
On Tue, 15 Jul 2008 17:30:19 -0400, Alan Bowen wrote: I have the latest ConTeXt and am using mkii. One used to be able to reduce the spacing after an initial by by typing “.\space”, but this no longer seems to work. Compare the inter-word spacing in \starttext A. E. Samuel\crlf A.\ E.\ Samuel \stoptext If the is a difference here, I am having trouble seeing it; and on a typeset page, the gaps after the initials just seem too big. In general, I find that the spacing after certain characters ---e.g., “)”---has been increased of late. Is this in fact the case? Or should I go back to my old glasses? Have you tried: \starttext A. E. Samuel\crlf A.~E.~Samuel \stoptext ? Last time I tried, this one worked for me. 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] Word-to-LaTex on linux?
On Mon, Jul 07, 2008 at 11:31:19AM +0200, Piotr Kopszak wrote: Has anyone had any success running Word-to-Latex converter, mentioned on contextgarden, on linux? In theory it should be possible using wine and winetricks. I have converted from Word to LaTeX a lot! -- book length documents. I usually find it easier to manually do the conversion: 1) adding commands and inter-paragraph spacing in the word file where I can still see the visual formatting; 2) cut and paste the text from the Word file into WinEdt or EMACS, and 3) use the text editor's global replace feature to convert en-dashes into --, smart quotes into `` and '', etc. I have occasionally whipped together a small editor macro to do repetitive tasks during the conversion. I find that this approach takes less time (or at least less mental anguish) than learning a conversion program and then fixing its output. If have always thought that I might find a conversion program useful if my documents included much math (they don't) -- until someone else in this thread suggested that the conversion program didn't work so well for the math. My approach noted above is in the context having used a couple of different conversion programs in the past -- one freeware and one commercial. Of course, I have been writing, debugging, and rewriting computer programs for decades, so tweaking things with a text editor feels like a pretty natural approach to me. ___ 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] Generating a list of items
Hi all I'm teaching some classes this summer, and want to make myself a template for lesson planning. One of the things that I'd like to be able to include, if it works easily, is an automatically-created list of the materials I need to remember to bring. My intention is that I will only have to type the name of my materials once, while composing the plan itself, and have ConTeXt extract all the names and place them in a list in the same document. I expect this means I would define something like \Materials , and then while typing the main text of my plan be able to type \Materials{Photographs} or \Materials{Sound Recording} and then have ConTeXt generate a list of all the items like this ... Materials: 1. Photographs 2. Sound Recording ... near the top of the page. I've tried using \placeregister, but it seems to insist on printing a page number for each item and alphabetical headings as in an index. I would like to get a simple, numbered list of items. Can I tweak the \register commands to do this, or perhaps is there something else I should try? 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 ___
Re: [NTG-context] Generating a list of items
On Sat, 5 Jul 2008 23:27:00 -0400 (EDT), Aditya Mahajan wrote: On Sat, 5 Jul 2008, David wrote: Hi all I'm teaching some classes this summer, and want to make myself a template for lesson planning. One of the things that I'd like to be able to include, if it works easily, is an automatically-created list of the materials I need to remember to bring. My intention is that I will only have to type the name of my materials once, while composing the plan itself, and have ConTeXt extract all the names and place them in a list in the same document. I expect this means I would define something like \Materials , and then while typing the main text of my plan be able to type \Materials{Photographs} or \Materials{Sound Recording} and then have ConTeXt generate a list of all the items like this ... Materials: 1. Photographs 2. Sound Recording ... near the top of the page. I've tried using \placeregister, but it seems to insist on printing a page number for each item and alphabetical headings as in an index. I would like to get a simple, numbered list of items. Can I tweak the \register commands to do this, or perhaps is there something else I should try? Have you looked at lists (like table of contents, list of figures etc.). I think that the main manual explains how to create new lists. I thought I had looked there, but I was wrong. A list similar to a table of contents seems like exactly what I need. I'll reply to this thread if I encounter any problems with it. Thank you Aditya. 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] 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] Generating a list of items
Hi all I'm teaching some classes and want to make a template for lesson planning. One of the things that I'd like to be able to include, if it works easily, is an automatically-created list of the materials I need to remember to bring. I expect this means I would define something like \Materials , and then while typing the main text of my plan be able to type \Materials{Photographs} or \Materials{Sound Recording} and then have ConTeXt generate Materials: 1. Photographs 2. Sound Recording near the top of the page. I've tried \placeregister, but it seems to insist on printing page numbers and alphabetical headings. I just want a numbered list of items. Can I tweak the \register commands to do this, or perhaps is there something else I should try? 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 ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
On Thu, 26 Jun 2008 14:00:10 +0200, Andrea Valle wrote: Hi to all, Ok, I'm going for minimals (hurray!) cd /path/to/some/folder rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh Perfect. Under Applications now I have a ConTeXtMinimals folder containg relevant stuff (tex+bin folders, a .lua and the .sh file). Alternatively, you may use cd /path/to/some/folder . setuptex I'd prefer to go with this, locally. So in terminal I did: cd /Applications/ConTeXtMinimals/ . setuptex ahem, - what have I to do now? andrea:/Applications/ConTeXtMinimals andreavalle$ context -bash: context: command not found Open a new terminal window and do . /context/tex/setuptex /Applications/ConTeXtMinimals/tex Then you can use ConTeXt, in that window only. You have to do this step every time. OR, you can add the same line into your .profile ; then setuptex will be performed automatically every time you open a new terminal window. (If you plan to use another TeX installation very often, the .profile method might not be convenient. For me it works fine.) 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] Setting up minimals (saw: Re: distro info)
On Thu, 26 Jun 2008 20:30:19 +0200, Andrea Valle wrote: and do . /context/tex/setuptex /Applications/ConTeXtMinimals/tex andrea:~ andreavalle$ . /context/tex/setuptex /Applications/ConTeXtMinimals/tex -bash: /context/tex/setuptex: No such file or directory Doesn't work here (If you plan to use another TeX installation very often, the .profile method might not be convenient. For me it works fine.) Yes, I'd prefer changing ech time I'm an idiot, sorry. Try using this line instead: . /Applications/ConTeXtMinimals/tex/setuptex /Applications/ConTeXtMinimals/tex I hope I'm not still an idiot. :-) 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] Setting up minimals (saw: Re: distro info)
You might also need to add /Applications/ConTeXtMinimals/bin to your PATH That can be done by adding the following two lines to your .profile: PATH=/Applications/ConTeXtMinimals/bin:${PATH} export PATH 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] Translaing ConTeXt interface to Arabic
On Fri, 20 Jun 2008 20:55:34 +0300, Khaled Hosny wrote: Also I didn't translate Intermezzo since I don't have the slightest idea what it is supposed to be, ... An intermezzo (as far as I can tell) is a framed paragraph that interrupts the normal text, usually highlighting an important idea from within that text. I have often seen the technique used in magazines, where they use intermezzos in large type or in colour to break up a long article. (In a short article it would make no sense.) I have also seen intermezzos used in textbooks as a means of adding some interesting information. ___ 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 manual question
At 07:23 AM 6/11/2008, Hans wrote: hm, more recent manuals tend to use even more color ... And it is useful for people who view the pages on the screen or want to print a given page in color. (When I print a big manual, I use my laser printer which does not have color rather than my inkjet printer which does have color.) ___ 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] distro info
On Tue, 10 Jun 2008 19:37:11 +0200, Hans Hagen wrote: David wrote: On Tue, 10 Jun 2008 17:34:15 +0200, Hans Hagen wrote: Andrea Valle wrote: Hmm, with Luatex I can use system fonts like in XeTeX. Am I right? yes, if you set up OSFONTDIR I would like to set up OSFONTDIR, but I don't know how or where or when to do so. I've tried setting it in my bash profile, and that seems to have no effect. What is the correct procedure? (I'm on a Mac, if it matters.) we can consider setting it up automatically but that can only be done when it's a stable location Well, that would be excellent from my point of view, of course. But my question is much more simple: I only want to know, where and when do I type OSFONTDIR=...? I've read many times that in order to use it I need to set it up, but I actually don't know what set it up means in this situation. 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 ___
Re: [NTG-context] distro info
On Tue, 10 Jun 2008 17:34:15 +0200, Hans Hagen wrote: Andrea Valle wrote: Hmm, with Luatex I can use system fonts like in XeTeX. Am I right? yes, if you set up OSFONTDIR I would like to set up OSFONTDIR, but I don't know how or where or when to do so. I've tried setting it in my bash profile, and that seems to have no effect. What is the correct procedure? (I'm on a Mac, if it matters.) 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 ___
Re: [NTG-context] bibl-apa.tex wrong?
On Tue, 27 May 2008 08:36:57 +0200, Taco Hoekwater wrote: Matej Baric( wrote: Hello, This (http://www.liu.edu/cwis/cwp/library/workshop/citapa.htm) and just about any other site I look at specifies publisher info as city, state: publisher name, whereas bibl-apa.tex specifies it as publisher name, city, state. Why is the file called bibl-apa.tex if it doesn't follow APA rules? Am I missing something Originally (years ago already), I reverse-engineered apalike from latex. It is quite possible I made a error there (or even that apalike had it wrong) but if no-one reports a bug it is not noticed. Also, I've had quite a few incorrect bug reports about the styles, so I am no longer all that eager to change them at a single bug report. Two questions: do you have a definitive source somewhere? and are there any other problems you see in bibl-apa.tex? The 5th edition of the APA Publication Manual is unambiguous on this point. Section 4.14, page 230, states: (note, I have transcribed their table of examples into plain text for easier reading in email) 4.14 Publication Information: Nonperiodicals (table of examples) Location, ST: Publisher. (example) Hillsdale, NJ: Erlbaum Location, Province, Country: Publisher. (example) Toronto, Ontario, Canada: University of Toronto Press. Location, Country: Publisher. (example) Oxford, England: Basil Blackwell. Major City: Publisher. (example) Amsterdam: Elsevier. (end table of examples) - Give the city and, if the city is not well known for publishing (see section 4.03) or could be confused with another location, the state or province (and/or country) where the publisher is located as noted on the title page of the book. Use U.S. Postal Service abbreviations for states (see Table 4.1). Use a colon after the location. - If the publisher is a university and the name of the state or province is included in the name of the university, do not repeat the state or province in the publisher location. - Give the name of the publisher in as brief a form as is intelligible. Write out the names of associations, corporations, and university presses, but omit superfluous terms, such as Publishers, Co., or INC., which are not required to identify the publisher. Retain the words Books and Press. - If two or more publisher locations are given, give the location listed first in the book or, if specified, the location of the publisher's home office. - Finish the element with a period. ___ 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] American-style letters with t-letter?
On Fri, May 16, 2008 at 12:12 AM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Thu, May 15, 2008 at 11:02 PM, David Rogers [EMAIL PROTECTED] wrote: Hi all (but especially Wolfgang Schuster): I'd like to use Wolfgang's t-letter module to set up a very basic American-style letter. I see (by looking into t-letter.tex) that there are at least plans for this to be possible. Is there a little example anywhere of how to get started? (Really, for my purposes, the basic DIN example as given in lm.pdf is pretty good - just wondering what the other possibility looks like.) Hi David, I planned to provide a few american letter styles and you saw my comments in t-letter but I'm interested to know if want the element structure like normal block, semiblock etc. [1] formats where the position from every element depends on the last element or if it is acceptable to write styles where the positions for the insideaddress, the date and all other elements is fixed [2,page 4] like in my current styles and only the body text, the subject etc. depends on the page layout. This is important to know for me both if have to use two different systems for both solutions and the first requires more work because I have to take care to allow you to switch between all styles. Thanks Wolfgang. I don't know the correct answer to this, so I'll wait for someone who does. 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] 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 ___
Re: [NTG-context] Minimals - how to use?
On Tue, 22 Apr 2008 09:15:42 +0200, Mojca Miklavec wrote: On Tue, Apr 22, 2008 at 6:08 AM, David wrote: Now my stupid question: How do I actually *use* the minimal ConTeXt installation? Hello David, I have the following line in my .bash_profile (but you can issue that manually if you want to use LaTeX from the other distribution as well): . context/tex/setuptex context/tex Mojca PS: I will add that instruction at the end of first-setup.sh Thank you - this was indeed the step I was missing, and now it works. For my purposes (my requirements are not large, I'm not in a hurry, and I don't want to waste time learning multiple ways of doing things), I have decided to do everything strictly in mkiv - no mkii and no latex. I want to learn the future habits and methods now, and drop the old ones right away. For me, is the command texexec --lua myfile.tex the best way to work, or is there something else I should switch to? (e.g. mtxrun or something) 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 ___
Re: [NTG-context] Minimals - how to use?
On Tue, 22 Apr 2008 18:53:10 -0400 (EDT), Aditya Mahajan wrote: For my purposes (my requirements are not large, I'm not in a hurry, and I don't want to waste time learning multiple ways of doing things), I have decided to do everything strictly in mkiv - no mkii and no latex. I want to learn the future habits and methods now, and drop the old ones right away. For me, is the command texexec --lua myfile.tex the best way to work, or is there something else I should switch to? (e.g. mtxrun or something) context filename context is a stub present in texmf-context/scripts/context/stub/unix and says #!/bin/sh mtxrun --script context $@ Thanks to Aditya and Mojca for your 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 ___
[NTG-context] Minimals - how to use?
Hi all (and thanks for the help lately with tables etc.) I have been running mkiv on a mac (powerpc, OS 10.4) with no problems, in conjunction with a TeXLive installation. I have updated this setup several times, by downloading the latest luatex and latest context from their respective sites, and following instructions previously sent to this list regarding making files executable and creating a couple of links. Lately, it seems that minimals from the contextgarden wiki are becoming the accepted standard, so I decided to switch. I downloaded the first-run script, ran it, it successfully downloaded all the components to a directory. Now my stupid question: How do I actually *use* the minimal ConTeXt installation? 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] 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] page numbering question
Hi, I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example. Thanks, Dave -- home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168 email address: [EMAIL PROTECTED]; website(s): http://www.walden-family.com/ ___ 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] page numbering question
I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty? I want even numbered last pages of chapters which have no text or images on them to be completely empty. I tried various versions of the code for Truly empty page breaks at http://wiki.contextgarden.net/Titles that Jörg's message about \definepagebreak led me to, and I tried various versions of the additional discussion about Again: How to make empty pages by default empty? from November 2003 in the NTG-context archives. I couldn't make any of that work within the last half hour or so. Thus, I have now changed my macro which begins chapters so it turns off page numbering before the \chapter call and turns page numbering back on after some text has been place on the first page of the chapter and that now does what I want. So, that's kind of a brute force approach to getting these completely blank pages automatically. Thanks everyone for your suggestions. -Dave ___ 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] page numbering question
Does this do what you want (at least in this test case) \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \chapter {testA} \dorecurse{10}{\input tufte } \chapter {testB} \dorecurse{10}{\input tufte } \chapter {testC} \dorecurse{10}{\input tufte } \stoptext I thought I tried that on my book and it didn't work. My actual situation is more complicated with declarations of front matter, depositing of \completecontent, etc. However, I have now done it with the test case expanded to mimic my real situation and it does seem to work. I'll try it in my real file (again?). ___ 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] problem using protrusion and hz
Hi, Adytia pointed me to some examples at http://wiki.contextgarden.net/Protrusion I tried the following code with a couple of page test page, - \definepapersize[specialbook][width=5.5in,height=8.5in] \setuppapersize[specialbook][specialbook] \setuplayout[height=7.5in,width=4.5in,backspace=40pt,location=middle] %\usetypescript[serif][hz][quality] %line 1 %\setupalign[hanging,hz] %line 2 \usetypescript[serif,sans,mono][hanging][pure] %line 3 \setupalign[hanging] %line 4 \usetypescript[modern-base][texnansi] %line 5 \setupbodyfont[reset] %line 6 \setupbodyfont[modern]%line 7 %\setupbodyfont[serif,11pt] \setupwhitespace[4.5pt] \setupcolors[state=start] \setupexternalfigures[directory={../marsh-slideshow}] \setupindenting[none] \setuphead[chapter][number=no] \setupheader[state=none] % Enable colors and activate hyperlinks \setupcolors [state=start] \setupinteraction [state=start, color=blue] \definecolor [darkRed][r=.5,g=.0,b=.0] \useURL[TPJ][{http://www.tug.org/pracjourn}][][{\it Prac\TeX{} Journal}] \useURL[mywebsite][{http://www.walden-family.com/dave}][][www.walden-family.com] \starttext ... \stoptext and I get slightly different results if lines 1 and 2 versus 3 and 4 are in or out, or if both pairs of lines are commented out. If, however, I try this with the real 215 page book I am compiling rather than a smaller example, pdfTeX halts 200 or so pages in with a fatal error saying it has run out of space and saying something more about a hash table. If I comment out lines 5-7, I don't get the fatal error but also I don't think I see protrusion and font expansion happening. The real book doesn't have very much body text but is does have 215 images with code like \placefigure{none}{\externalfigure[#1.jpg][width=\textwidth]} where #1 comes from a macro call. Any thoughts? (I suppose I can split my source file in half and find a ConTeXt command to start the page numbering for the second half a 107 or so and then combine the two PDFs with Acrobat.) Best regards, Dave -- home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168 email address: [EMAIL PROTECTED]; website(s): http://www.walden-family.com/ ___ 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] several details (maybe bugs)
On Sat, 5 Apr 2008 16:03:44 +0200, Henning Hraban Ramm wrote: (3) \startitemize[n] Numbered itemizations suddenly(?) start with 0 - as this may be suitable for programmers, but it's, ehm, a bit unusual in every other context. I don't have the final answer on this, but I have run into this starts with zero problem when my corresponding \stopitemize is missing or not in the correct place. 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] New Member Introductory Rant
On Sun, 30 Mar 2008 16:50:59 +0200, Mojca Miklavec wrote: I don't know the English version of it (there must be one - if anyone knows it, I would be glad to hear it), but we have a nice saying, literally translated as: Farrier's own mare is always barefoot. (In English it's almost exactly the same, except we usually use the shoemaker's children instead of the farrier's mare.) 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] Natural tables, offsets
On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote: On Fri, 28 Mar 2008 14:02:55 -0700 David [EMAIL PROTECTED] wrote: Hi all I'm using the natural table environment, and would like the text in each cell to have some horizontal offset from the cell boundaries - but I don't want to change the vertical offset. Is there a way to do this? \starttext \startsetups table:margins \rightskip=1cm\relax \leftskip=1cm\relax \stopsetups \setupTABLE [setups=table:margins] \bTABLE \bTR \bTD \input ward\par \eTD \bTD \input ward\par \eTD \eTR \bTR \bTD \input ward\par \eTD \bTD \input ward\par \eTD \eTR \eTABLE \stoptext _ Thank you, Wolfgang. For my purposes, this setup is perfect. 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] Natural tables, offsets
Hi all I'm using the natural table environment, and would like the text in each cell to have some horizontal offset from the cell boundaries - but I don't want to change the vertical offset. Is there a way to do 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] Minor error in code, core-tab.tex
Hi I was reading core-tab.tex on http://source.contextgarden.net/core-tab.tex (trying to learn a little...) Sorry I have no line numbers, but about two-thirds of the way down that file, by chance I think I found an error: \bgroup \catcode`\|=\@@other \gdef\@@otherbar {|} \catcode`\quot;=\@@other \gdef\@@otherquite {} \catcode`\|=\@@active \gdef\@@useotherbar {\let|\@@otherbar} \catcode`\quot;=\@@active \gdef\@@useotherquote{\let\@@otherquote} \egroup The second \catcode line contains \gdef\@@otherquite, which I'm almost positive should be \gdef\@@otherquote . I hope this helps. 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] Missing ligatures, smallcaps, etc.
Thanks for the response, Mojca. I installed a few adobe opentype fonts some years back, using the TeXFont script. The file a_zqd2tu.enc (referenced in the map files) is not found in my tex trees (nor in a Google search). There's a decent chance it could be found in a backup from that time, I'll see what I can do about that. It's likely that that is the issue? Following is the font definition [1] and the map file [2]. Best, David [1] \loadmapfile [texnansi-LIGA-KERN-LNUM-TNUM-SMCP-adobe-minionpro.map] \loadmapfile [texnansi-LIGA-KERN-ONUM-PNUM-adobe-minionpro.map] \starttypescript [serif] [MinionPro] [texnansi] \definefontsynonym[SerifCaption][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Capt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifText][texnansi-LIGA-KERN-ONUM-PNUM-MinionPro- Regular][encoding=texnansi,handling=minionpro-hz] \definefontsynonym[SerifSubhead][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Subh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifDisplay][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Disp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifItalicCaption][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-ItCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifItalicText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-It][encoding=texnansi,handling=minionpro-hz] \definefontsynonym[SerifItalicSubhead][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-ItSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifItalicDisplay][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-ItDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldCaption][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Bold][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldSubhead][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldDisplay][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicCaption][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-BoldItCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldIt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicSubhead][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-BoldItSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicDisplay][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-BoldItDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldCaption][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Semibold][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldSubhead][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldDisplay][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicCaption][texnansi-LIGA-KERN- ONUM-PNUM-MinionPro-SemiboldItCapt] [encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicText][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldIt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicSubhead][texnansi-LIGA-KERN- ONUM-PNUM-MinionPro-SemiboldItSubh] [encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicDisplay][texnansi-LIGA-KERN- ONUM-PNUM-MinionPro-SemiboldItDisp] [encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsCaption][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-Capt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsText][texnansi-LIGA-KERN-LNUM-TNUM-SMCP- MinionPro-Regular][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsSubhead][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-Subh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsDisplay][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-Disp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicCaption][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-ItCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicText][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-It][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicSubhead][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-ItSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicDisplay][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-ItDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsBoldCaption][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-BoldCapt][encoding=texnansi
Re: [NTG-context] Missing ligatures, smallcaps, etc.
Found it, and problem resolved. Sorry for the noise. David On Mar 15, 2008, at 10:05 AM, David Wooten wrote: Thanks for the response, Mojca. I installed a few adobe opentype fonts some years back, using the TeXFont script. The file a_zqd2tu.enc (referenced in the map files) is not found in my tex trees (nor in a Google search). There's a decent chance it could be found in a backup from that time, I'll see what I can do about that. It's likely that that is the issue? Following is the font definition [1] and the map file [2]. Best, David [1] \loadmapfile [texnansi-LIGA-KERN-LNUM-TNUM-SMCP-adobe- minionpro.map] \loadmapfile [texnansi-LIGA-KERN-ONUM-PNUM-adobe-minionpro.map] \starttypescript [serif] [MinionPro] [texnansi] \definefontsynonym[SerifCaption][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Capt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifText][texnansi-LIGA-KERN-ONUM-PNUM-MinionPro- Regular][encoding=texnansi,handling=minionpro-hz] \definefontsynonym[SerifSubhead][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Subh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifDisplay][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Disp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifItalicCaption][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-ItCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifItalicText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-It][encoding=texnansi,handling=minionpro-hz] \definefontsynonym[SerifItalicSubhead][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-ItSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifItalicDisplay][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-ItDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldCaption][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Bold][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldSubhead][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldDisplay][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicCaption][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-BoldItCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-BoldIt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicSubhead][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-BoldItSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifBoldItalicDisplay][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-BoldItDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldCaption][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldText][texnansi-LIGA-KERN-ONUM-PNUM- MinionPro-Semibold][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldSubhead][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldDisplay][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldDisp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicCaption][texnansi-LIGA-KERN- ONUM-PNUM-MinionPro-SemiboldItCapt] [encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicText][texnansi-LIGA-KERN-ONUM- PNUM-MinionPro-SemiboldIt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicSubhead][texnansi-LIGA-KERN- ONUM-PNUM-MinionPro-SemiboldItSubh] [encoding=texnansi,handling=minionpro] \definefontsynonym[SerifSemiboldItalicDisplay][texnansi-LIGA-KERN- ONUM-PNUM-MinionPro-SemiboldItDisp] [encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsCaption][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-Capt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsText][texnansi-LIGA-KERN-LNUM-TNUM-SMCP- MinionPro-Regular][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsSubhead][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-Subh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsDisplay][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-Disp][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicCaption][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-ItCapt][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicText][texnansi-LIGA-KERN-LNUM-TNUM- SMCP-MinionPro-It][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicSubhead][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-ItSubh][encoding=texnansi,handling=minionpro] \definefontsynonym[SerifCapsItalicDisplay][texnansi-LIGA-KERN-LNUM- TNUM-SMCP-MinionPro-ItDisp][encoding=texnansi,handling=minionpro
[NTG-context] Missing ligatures, smallcaps, etc.
Greetings all, I've just tried to retypeset a file with very recent conTeXt/pdfTeX minimals (as of a few days ago). The file is only a year or so old... but it was originally typeset with a combination of TeX installations. It goes almost okay, except that it doesn't show any ligatures (e.g. Th), and won't do the small capitals which the original handled fine. I'm not sure where to start looking though there is this error in the log: pdfTeX warning: pdftex (file a_zqd2tu.enc): cannot open encoding file for reading Any ideas where to start? Best, 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] hz and protrusion
Hans, This is great news, thanks a million. Where should I keep an eye out for the interface extensions? Dave On Feb 15, 2008, at 10:08 AM, Hans Hagen wrote: Hi, The latest luatex beta + mkiv support hz and protruding. The user interface will be extended a bit, but for the moment it goes as follows: % engine=luatex % \setupfontexpansion [quality][stretch=2.5,shrink=2.5,step=. 5,factor=1] \setupfontexpansion[oeps][a=1,b=2] \setuptolerance[verytolerant,stretch] \showframe \starttext \definefontfeature[demo][default] [mode=node,expansion=quality,protrusion=pure] \start \definedfont[Serif*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par %\definedfont[name:optimanova*demo at 12pt] \enableadjusting \enableprotruding \input tufte \par \stop \stoptext (or the usual \setupalign options) As you may deduce from this example, handling is gone in mkiv. This not only safes some 40K format file, but the new mechanism also runs faster (some 10% overhead on 300 pages of pure text, which is rare). At some point we need to extend the hz/protruding vectors in mkiv to cover non latin scripts as well (currently they default to factors of 1). As with mkiv, latin glyphs fall back to their shape parent. Under some circumstances hz may not work as expected. Fixing this is on the agenda for the next luatex beta release. 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] t-lilypond, placement of oversized lines.
Greetings all, In tinkering around with the lilypond module, oversized lines of notation do not get adjusted into the left margin as this bit of code seems to be trying to achieve: --- %D %D TODO: Get the relevant dimension directly from lilypond, %D to place the instrument name into the left margin for %D short snippets as well. %D If we are not in the middle of some text, we have to check %D whether lilypond created an image that is wider than requested: %D It places the instrument names in the left margin. %D \ifvmode \getfiguredimensions[\lily!filename.pdf]% \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi \externalfigure[\lily!img]% \egroup% }% --- This includes lines which have an instrument name, as mentioned in the comments, and also includes piano notation, which has a special bracket on the left joining the two staffs. Can anyone help me out here? Best, 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 ___
Re: [NTG-context] Windows installer updated
Mojca Miklavec [EMAIL PROTECTED] writes: On Jan 8, 2008 1:43 PM, David Roderick wrote: Mojca Miklavec [EMAIL PROTECTED] writes: On Jan 7, 2008 9:47 PM, David Roderick wrote: pop-up texlua.exe Application Error The application failed to initialize properly (0xc022) Hello, First: thanks a lot for reporting. (I have no windows here, but I had so many problems with rsync on windows ... that I might be willing to torture you until it works, just as I have tortured the windows machine I have been working on a while back :) I'm clueless about this (apart from the fact that it might be a rsync problem). Which windows are you using (XP or Vista)? (Not that I know if it's relevant at all.) Can you please try to dowload this: http://minimals.contextgarden.net/setup/context-setup-mswin.zip and try to run texlua.exe first? Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. 2001 Microsoft Corp. C:\cygwin\home\David\download\lua\context\binset CYGWIN=nontsec set CYGWIN=nontsec C:\cygwin\home\David\download\lua\context\bin rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe . rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe . receiving file list ... done texlua.exe sent 150 bytes received 143 bytes 34.47 bytes/sec total size is 2560 speedup is 8.74 C:\cygwin\home\David\download\lua\context\bintexlua texlua Missing script file Great. This means that rsync works OK (otherwise you would be getting the same error report as last time: The application failed to initialize properly). What makes mo wonder now is: why doesn't the installer work? Perhaps the environmental variables aren't set up properly? You may try one more thing: can you try to set CYGWIN=nontsec globally (I have no windows here to tell you the exact procedure - if you don't know how to do that, please ask again; it's somewhere in System-Advanced-Environmental variables-...). and then rum the installer again? But it really makes mo wonder where it goes wrong. done no reboot C:\cygwin\home\David\download\lua\context\bintexlua texlua C:\cygwin\home\David\download\lua\context\binls ls cygwin1.dll kpathsea356.dll luatex.dll mtx-update.lua mtxrun.cmd mtxrun.lua rsync.exe texlua.exe C:\cygwin\home\David\download\lua\context\bintexlua.exe texlua.exe C:\cygwin\home\David\download\lua\context\binrsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe receiving file list ... done -rwxr-xr-x2560 2007/09/08 02:06:20 texlua.exe sent 116 bytes received 85 bytes 36.55 bytes/sec total size is 2560 speedup is 12.74 C:\cygwin\home\David\download\lua\context\bin C:\cygwin\home\David\download\lua\context\binrsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ receiving file list ... done drwxr-xr-x4096 2007/11/12 15:26:19 . -rw-r--r-- 68096 2007/12/23 13:31:00 kpathsea356.dll -rw-r--r-- 2997248 2007/12/18 12:24:18 luatex.dll -rw-r--r-- 10373 2008/01/02 21:26:29 mtx-update.lua -rwxr-xr-x 79 2007/06/26 08:47:33 mtxrun.cmd -rwxr-xr-x 250716 2007/12/29 21:33:01 mtxrun.lua -rwxr-xr-x2560 2007/09/08 02:06:20 texlua.exe sent 138 bytes received 211 bytes 63.45 bytes/sec total size is 3329072 speedup is 9538.89 C:\cygwin\home\David\download\lua\context\bin I had a winows machine yesterday, but apparently the network had rsync port closed, so rsync didn't work at all (and installer reported: installed successfully). Then, please try to run the following (from command and cd path-to-unzipped-stuff\bin): set CYGWIN=nontsec rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe . and then see if texlua still has any problems. If not, Yes it still has problems therefore I did not do the following. That report is not a problem (only wrong usage, or missing argument), but texlua could have been more informative about that error, yes. Last time when you reported the error texlua apparently didn't work at all. try to run (single line, it will probably be broken in this mail): rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ . I tried this step before with global variable as CYGWIN=nontsec C:\cygwin\home\David\download\lua\context\bin rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ . rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ . receiving file list ... done ./ kpathsea356.dll luatex.dll mtx-update.lua mtxrun.cmd mtxrun.lua sent 13490 bytes received 9259 bytes 3033.20
Re: [NTG-context] Windows installer updated
Mojca Miklavec [EMAIL PROTECTED] writes: On Jan 7, 2008 9:47 PM, David Roderick wrote: pop-up texlua.exe Application Error The application failed to initialize properly (0xc022) Hello, First: thanks a lot for reporting. (I have no windows here, but I had so many problems with rsync on windows ... that I might be willing to torture you until it works, just as I have tortured the windows machine I have been working on a while back :) I'm clueless about this (apart from the fact that it might be a rsync problem). Which windows are you using (XP or Vista)? (Not that I know if it's relevant at all.) Can you please try to dowload this: http://minimals.contextgarden.net/setup/context-setup-mswin.zip and try to run texlua.exe first? Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. 2001 Microsoft Corp. C:\cygwin\home\David\download\lua\context\binset CYGWIN=nontsec set CYGWIN=nontsec C:\cygwin\home\David\download\lua\context\bin rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe . rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe . receiving file list ... done texlua.exe sent 150 bytes received 143 bytes 34.47 bytes/sec total size is 2560 speedup is 8.74 C:\cygwin\home\David\download\lua\context\bintexlua texlua Missing script file Then, please try to run the following (from command and cd path-to-unzipped-stuff\bin): set CYGWIN=nontsec rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe . and then see if texlua still has any problems. If not, Yes it still has problems therefore I did not do the following. try to run (single line, it will probably be broken in this mail): rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ . Alternatively, you can try to run first-setup.bat (from command line as well) and see if your machine has problems with that. Big thing happens. However a problem sent 29442 bytes received 6010615 bytes 48514.51 bytes/sec total size is 21964526 speedup is 3.64 Cannot open C:/cygwin/home/David/download/lua/context/tex/texmf-local/ls-R to write. mktexlsr: Updating C:/cygwin/home/David/download/lua/context/tex/texmf-mswin/ls-R... mktexlsr: Updated C:/cygwin/home/David/download/lua/context/tex/texmf-mswin/ls-R. Cannot open C:/cygwin/home/David/download/lua/context/tex/texmf-project/ls-R to write. Cannot open C:/cygwin/home/David/download/lua/context/tex/texmf-fonts/ls-R to write. mktexlsr: Updating C:/cygwin/home/David/download/lua/context/tex/texmf-context/ls-R... mktexlsr: Updated C:/cygwin/home/David/download/lua/context/tex/texmf-context/ls-R. Cannot open C:/cygwin/home/David/download/lua/context/tex/texmf-extra/ls-R to write. mktexlsr: Updating C:/cygwin/home/David/download/lua/context/tex/texmf/ls-R... mktexlsr: Updated C:/cygwin/home/David/download/lua/context/tex/texmf/ls-R. mktexlsr: Done. LuaTools | skipping C:/cygwin/home/David/download/lua/context/tex/texmf-local/web2c/texmf.cnf LuaTools | skipping C:/cygwin/home/David/download/lua/context/tex/texmf-context/web2c/texmf.cnf LuaTools | skipping C:/cygwin/home/David/download/lua/context/tex/texmf/web2c/texmf.cnf LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf-local LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf-mswin LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf-project LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf-fonts LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf-context LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf-extra LuaTools | locating list of C:/cygwin/home/David/download/lua/context/tex/texmf LuaTools | scanning path C:/cygwin/home/David/download/lua/context/tex/texmf-mswin LuaTools | 105 files found on 8 directories with 1 uppercase remappings LuaTools | scanning path C:/cygwin/home/David/download/lua/context/tex/texmf-context LuaTools | 1298 files found on 125 directories with 0 uppercase remappings LuaTools | scanning path C:/cygwin/home/David/download/lua/context/tex/texmf LuaTools | 2185 files found on 68 directories with 56 uppercase remappings LuaTools | preparing files in C:/cygwin/home/David/download/lua/context/tex/texmf-cache/luatex-cache/context/5f8b142e8ab6872a8c62f7e46179684b/trees/10f5048df22ac601f2e2e6ae9c3f97f4.tma LuaTools | saving files in C:/cygwin/home/David/download/lua/context/tex/texmf-cache/luatex-cache/context/5f8b142e8ab6872a8c62f7e46179684b/trees/10f5048df22ac601f2e2e6ae9c3f97f4.tma LuaTools | compiling files to C:/cygwin/home/David/download/lua/context/tex/texmf-cache/luatex-cache/context/5f8b142e8ab6872a8c62f7e46179684b/trees/10f5048df22ac601f2e2e6ae9c3f97f4.tmc LuaTools | preparing files in C:/cygwin/home/David/download/lua/context/tex/texmf-cache/luatex-cache
Re: [NTG-context] ConTeXt meeting: preliminary registrations opennow
San Francisco, California ;) Dave On Jan. 9, 2008, at Jan 9, 8:02 AM, Santy, Michael wrote: Make that 3. I'm in beautiful northern Alabama. Cheers, Mike From: [EMAIL PROTECTED] on behalf of Roger Mason Sent: Wed 1/9/2008 5:52 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] ConTeXt meeting: preliminary registrations opennow Jeff Smith [EMAIL PROTECTED] writes: On appearances it sometimes feels like I'm the only North American user of ConTeXt (which is surely not true, though)! You are not alone! I'm in St John's, Newfoundland. So n = 2. Cheers, Roger ___ 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 ___ ___ 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] Windows installer updated
pop-up texlua.exe Application Error The application failed to initialize properly (0xc022) -- from David Roderick ___ 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] LuaTeX/MKIV on OS X 10.5 Leopard
Greetings all, I'm curious whether anyone using MKIV on a Mac has upgraded to 10.5? Any problems after doing so? Regards, 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] help needed
On Fri, 07 Sep 2007 18:53:49 +0200, Hans Hagen wrote: Francis Derive wrote: Bonjour Mesdames, Mesdemoiselles, et Messieurs, That means I need your help. I feel quite an idiot, but I don't know what to do with - say the cont-tmf folder I downloaded for ma Mac Os X Tiger : looking inside, I don't see any application... I suggest you try an application called TeXShop. It is a nice OS X application that allows you to use ConTeXt. You can find it here: http://www.uoregon.edu/~koch/texshop/texshop.html 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, hz, hanging punctuation
On Aug. 27, 2007, at Aug 27, 11:47 PM, Hans Hagen wrote: David Wooten wrote: Greetings all, Can someone say when typographic extras like hz hanging punctuation will be available in LuaTeX/MKIV for OpenType fonts? --- or are they already available? I thought I'd read a comment on this from Hans, but cannot for the life of me find it. the pdftex hz code is there and should work to some extend but i didn't test it; hz needs a clean up (esp all the font related codes, global in pdftex) Hans Hmm, okay. How would one call hz protrusion with mkiv? Something like this? (My experiments have produced no good results). \starttypescript[sans] [minion] \definefontsynonym [MinionPro] [name:MinionPro-Regular] [features=default,handling=quality] \stoptypescript ... othertypescript stuff ... \setupalign [hz,hanging] 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, hz, hanging punctuation
Can someone say when typographic extras like hz hanging punctuation will be available in LuaTeX/MKIV for OpenType fonts? --- or are they already available? I thought I'd read a comment on this from Hans, but cannot for the life of me find it. the pdftex hz code is there and should work to some extend but i didn't test it; hz needs a clean up (esp all the font related codes, global in pdftex) Hmm, okay. How would one call hz protrusion with mkiv? Something like this? (My experiments have produced no good results). \starttypescript [sans] [minion] \definefontsynonym [MinionPro] [name:MinionPro-Regular] [features=default,handling=quality] \stoptypescript othertypescript stuff ... \setupalign [hz,hanging] i didn't test hz with luatex; i will look into it when we are dealing with that (esp the font related tables) because that info will be organized differently Great, thanks for the info. Best, 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] Lilypond MKIV, pstopdf, sysctl errors?
I narrowed it down to my editor, in fact. Strange! The command line call for TextMate (mate) gives me the errors. I was compiling via the ConTeXt TextMate bundle and it must call mate for some reason at that point. pstopdf is off the hook ;) Dave On Aug. 27, 2007, at Aug 27, 3:54 AM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: On Aug. 26, 2007, at Aug 26, 6:44 PM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** According to google this seems to be mac-specific problem, and the first think that comes to my mind are problems with GhostScript during conversion. (http://developer.apple.com/documentation/MacOSX/ Conceptual/universal_binary/universal_binary.pdf) How did you install GhostScript? Try which gs, gs --version and gs alone to check some more details about the version. It seems most likely that I installed GhostScript via Gerben's i- installer. From apple's Terminal.app: *** ~ $ which gs /usr/local/bin/gs ~ $ gs --version 8.57 ~ $ gs GPL Ghostscript 8.57 (2007-05-11) Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Hello, I use fink's ghostscript. I'm almost sure that the problem lies in GS; that report cannot come from ConTeXt (unless pstopdf does some nasty things with eps documents which then confuse gs - it does delete some portions from ps files, but I doubt that that could be the problem). I have no idea whom to report anything. (Gerben said he had stopped with user support, and he probably cannot reproduce the error if it's really inconsistent behaviour - that it works one time and not the other time.) Do you have fink already installed? (If yes, try to install ghostscript from there.) I would suggest you to try running pstopdf on some random postscript document once you spot the error, and see what happens. Perhaps you can try running pstopdf on that document after an unsuccesfull ConTeXt run ... Unless others have any better ideas ... 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 ___
[NTG-context] MKIV, hz, hanging punctuation
Greetings all, Can someone say when typographic extras like hz hanging punctuation will be available in LuaTeX/MKIV for OpenType fonts? --- or are they already available? I thought I'd read a comment on this from Hans, but cannot for the life of me find it. Best, 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] Lilypond MKIV, pstopdf, sysctl errors?
Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** This is from near the bottom of the log file (included below). These errors do not always appear, but once they start, they don't go away. Furthermore, I receive the message: 2007-08-26 16:36:16.584 open[2988] No such file: /Users/wooten/ Desktop/Test/LilyLua-lilypond-1.pdf When it does actually exist, and I have to run texmfstart again to get a changed PDF. I can't find much on the sysctl errors. Anyone see a possible connection? Best, David *** texmfstart texexec --pass=\'-halt-on-error -file-line-error\' LilyLua.tex TeXExec | processing document 'LilyLua.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file LilyLua.top TeXExec | using randomseed 1137 TeXExec | tex engine: luatex TeXExec | tex format: cont-en This is luaTeX, Version 3.141592-beta-0.10.1-2007072304 (Web2C 7.5.6) (./LilyLua.texMissing script file ConTeXt ver: 2007.08.26 21:41 MKIV fmt: 2007.8.26 int: english/ english language: language en is active system : cont-new loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont- new.mkiv) (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/ cont-mtx.tex)) system : cont-old loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/user/cont-sys.tex) bodyfont: 12pt rm is loaded language: patterns nl-default:default-1-2:3 fr- default:default-2-2:3 de-default:default-3-2:3 it- default:default-4-2:3 pt-default:default-5-2:3 hr- default:default-6-2:3 pl-default:default-7-2:3 cz- default:default-8-2:3 sk-default:default-9-2:3 sl- default:default-10-2:3 ru-default:default-12-2:3 en- default:default-13-2:3 uk-default:default-14-2:3 us- default:default-[13]-2:3 agr-default:default-15-2:3 da- default:default-16-2:3 sv-default:default-17-2:3 af- default:default-[1]-2:3 no-default:default-18-2:3 deo- default:default-19-2:3 es-default:default-20-2:3 ca- default:default-21-2:3 la-default:default-22-2:3 ro- default:default-23-2:3 tr-default:default-24-2:3 fi- default:default-26-2:3 hu-default:default-27-2:3 loaded specials: tex,postscript,rokicki loaded system : LilyLua.top loaded (./LilyLua.top specials: loading definition file tpd (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-fdf.tex (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-fdf.mkiv)) specials: fdf loaded ) specials: fdf,tpd loaded ) system : module lilypond loaded (/Users/wooten/conTeXt/tex/texmf-local/tex/context/third/t- lilypond.tex) (./LilyLua.tuo) (./LilyLua.tuo) systems : begin file LilyLua at line 5 (/Users/wooten/conTeXt/tex/texmf-local/tex/context/sample/knuth.tex){/ Users/wooten/conTeXt/tex/texmf-local/fonts/map/pdftex/context/ original-empty.map}{/Users/wooten/conTeXt/tex/texmf/fonts/map/dvips/ lm/lm-texnansi.map}{/Users/wooten/conTeXt/tex/texmf-local/fonts/map/ pdftex/context/original-base.map}{/Users/wooten/conTeXt/tex/texmf/ fonts/map/dvips/lm/lm-ec.map}{/Users/wooten/conTeXt/tex/texmf/fonts/ map/dvips/lm/lm-math.map}{/Users/wooten/conTeXt/tex/texmf/fonts/map/ dvips/lm/lm-rm.map}{/Users/wooten/conTeXt/tex/texmf-local/fonts/map/ pdftex/context/original-ams-base.map}{/Users/wooten/conTeXt/tex/texmf- local/fonts/map/pdftex/context/original-ams-euler.map}{/Users/wooten/ conTeXt/tex/texmf-local/fonts/map/pdftex/context/original-public- lm.map} ./LilyLua-lilypond-1.pdf figures : dimensions of LilyLua-lilypond-1.pdf loaded from figurefile itself Overfull \hbox (6.83257pt too wide) in paragraph at lines 16--17 [][][] lua : input load time - 0.040 seconds lua : fonts load time - 1.030 seconds lua : mps conversion time - 0.000 seconds lua : node processing time - 0.000 seconds lua : attribute processing time - 0.010 seconds lua : used config path - /Users/wooten/conTeXt/tex/texmf{- local,}/web2c lua : used cache path - /Users/wooten/.conTeXt-temp/ luatex-cache/context/613f059707fe40567271dc8baeac0123 lua : modules/dumps
Re: [NTG-context] Lilypond MKIV, pstopdf, sysctl errors?
On Aug. 26, 2007, at Aug 26, 6:44 PM, Mojca Miklavec wrote: On 8/27/07, David Wooten wrote: Greetings all, In trying to run Mojca's latest Lilypond extension with MKIV (on an Intel Mac), I've been receiving the errors after pstopdf is run, which I've never seen before: *** sysctlbyname_with_pid: sysctl failed:Operation not permitted is_pid_native: sysctlbyname_with_pid failed:Operation not permitted *** According to google this seems to be mac-specific problem, and the first think that comes to my mind are problems with GhostScript during conversion. (http://developer.apple.com/documentation/MacOSX/ Conceptual/universal_binary/universal_binary.pdf) How did you install GhostScript? Try which gs, gs --version and gs alone to check some more details about the version. It seems most likely that I installed GhostScript via Gerben's i- installer. From apple's Terminal.app: *** ~ $ which gs /usr/local/bin/gs ~ $ gs --version 8.57 ~ $ gs GPL Ghostscript 8.57 (2007-05-11) Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. *** Best, 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] Buffers (gone) in MK IV (was: MK IV Lilypond)
Greetings, Did we end up with a working solution for t-lilypond? I've tinkered a bit Hans' response, too, but without luck. Dave On Aug. 21, 2007, at Aug 21, 3:53 PM, Mojca Miklavec wrote: On 8/21/07, Hans Hagen wrote: Mojca Miklavec wrote: On 8/21/07, David Wooten wrote: Greetings all, Has anyone had any luck getting the lilypond module to work with mkiv/ luatex engine? It fails for me (works fine with mkii/pdftex). I can send along some log info if others have found it to work. Hans has mentioned several times that buffers are not going to be written to files with luaTeX any more. This has a weird consequence on many modules which relied exactly on that trick. Short example of what goes wrong: \starttext \startbuffer[a] Hello world! \stopbuffer \typebuffer[a] %\executesystemcommand{dosomethingwith \jobname-a.tmp} \stoptext The problem is that MK II created a file \jobname-a.tmp and lilypond module processed exactly that file further. In MK IV, that file is not created any more (you can check that by running the above example with --lua first and then with pdfTeX again. Only in the second case a file [whateverthefilename]-a.tmp is created.) Lilypond module relied on that feature (I would rather call it dirty-but-very-useful-trick). Hans, what's the current general recipe for this kind of [mis]use of buffers? I'll add savebuffer to core-buf.* Thanks a lot for that one! % engine=luatex \startluacode if not buffers.save then function buffers.save(name) if not name or name == then name = tex.jobname end local b, f = buffers.data[name], string.format(%s-%s.tmp,tex.jobname,name) b = (b and type(b) == table and table.join(b)) or b or io.savedata(f,b) end end \stopluacode \def\savebuffer{\dosingleempty\dosavebuffer} \def\dosavebuffer[#1]{\ctxlua{buffers.save(#1)}} \starttext \startbuffer[oeps] oeps \stopbuffer \startbuffer oepsoeps \stopbuffer \savebuffer[oeps] \savebuffer \stoptext I now tried to add the following three lines to t-lilypond.tex: \def\PDF{texmfstart --ifchanged=\lily!filename.eps pstopdf \lily! filename.eps} \beginLUATEX \savebuffer[lilypond-\the\lily!figures]% \endLUATEX \ifeof18 \installprogram{\LP}% etc. But luaTeX now reports the following to console: system (LUATEX) : [line 32] \savebuffer [lilypond-\the \lily!figures ]\endLUATEX \ifeof 18 \installprogram {\LP }\doif \jobsuffix {pdf}{\installprogram {\PDF }}\else \executesystemcommand {\LP }\doif \jobsuffix {pdf}{\executesystemcommand {\PDF }}\fi \doifelse \jobsuffix {pdf} {\edef \lily!img {\lily!filename .pdf}}{\edef \lily!img {\lily!filename .eps}}\ifvmode \getfiguredimensions [\lily!filename .pdf]\leavevmode \newdimen \FigWidth \FigWidth =\figurewidth \ifdim \FigWidth \localhsize \!!dimena =\localhsize \advance \!!dimena by-\FigWidth \noindent \hskip \!!dimena \fi \fi \externalfigure [\lily!img ]\egroup and then systems : end file li at line 34 ) (\end occurred inside a group at level 1) ### simple group (level 1) entered at line 32 ({) ### bottom level ... No pages of output. Transcript written on li.log. It seems like a problem with grouping, but I have no idea how to prevent luaTeX from parsing the input further from what it's supposed to read. 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 ___
[NTG-context] MK IV Lilypond
Greetings all, Has anyone had any luck getting the lilypond module to work with mkiv/ luatex engine? It fails for me (works fine with mkii/pdftex). I can send along some log info if others have found it to work. Regards, 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] 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 ___