Re: [NTG-context] Some gardening
Hi there! Mojca Miklavec wrote: Hello, Here's some more work for you Patrick, in case you get bored. (I guess I'll soon be removed from the list as a spammer/abuser if I continue writing mails such as this one :) I do not think that will happen, but if you keep this up you might find yourself being volunteered for various tasks :-) What do the others think about it? # Source browser I don't normally use this part of the garden, because grepping the harddisk is a whole lot faster and gives more functionality, but all your remarks sound nice to me. Not being the one that has to do the programming, that's an easy thing to say :) # texshow-web I've just noticed that there's no possibility to describe single options for the commands. Take \setuplayout for example. Describing such huge collection of parameters in plain text is not clear, synoptic any more. It would be great if there would be a possibility to add descriptions for: - the command as such (already there) - every pair of braces (only one for \setuplayout), has to be visible if it is optional or not This is already there, but perhaps a bit too subtle: optional arguments are typeset using darkred braces and brackets (instead of black) - every parameter inside a single brace - every single option for that parameter (for example: width=middle means that ...), default has to be marked I believe that information is not in the XML file, but I guess it should be. Would requires quite some a bit of effort on the data- entry side (deriving the used defaults from the actual sources). Enabling the Wiki functionality (bold, italic, tables ... texcode and context) and linking it to the source browser (to the place where \def\thisspecificcommand is) would also add another dimensionality. It would probably not be 100% compatible with the pretty-much-textbased texshow program, but ... I could imagine that one day something similar as modules.pdf (texshow.pdf) could be made from that page with pretty good documentation of (all ?) ConTeXt commands. standalone texshow is on the list to be re-done anyway, so I can make it do whatever texshow-web does without much extra effort (esp. since it will also become a ruby script). The ability to add commands is already there I think (I have never tried it out yet). What about adding commands for (official and third-party) modules? It should be separated from the main page, but still offering the same functionality. This was on the todo list, IIRC. There is also metapost/metafun and LaTeX commands to consider. :) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts in Metapost
Hello all, finaly I solved my problem: I had my metapost graphic in an external file and used it with: \startuseMPgraphic{test} \input mp.mp ; \stopuseMPgraphic \useMPgraphic{test} or \startbuffer[test1] \input mp.mp \stopbuffer \processMPbuffer[test1,graphic] in both cases I get the graphic but the font switching does not work. When I copy the content of my graphic file into \startuseMPgraphic \stopuseMPgraphic or \startbuffer \stopbuffer I works. Is there an explanation for this behaviour? I thought \input would be equal to typing it directly. What is the best way to handle multiple graphics when I want to use the font switching mechanismn? Any advice? Thanks alot Wolfgang Willi Egger wrote: Hi Wolfgang, I do hope that I am not missing something. But I think, that you should say in the MPenvironment: \setupbodyfont[Cmbr,12pt] Otherwise the setupbodyfont command does not know which font to setup. Willi Wolfgang Zillig wrote: Hello, I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math). Now I want to change the font in MP as well (my text is included as label(test,(200,200));): %normal stups: \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \startMPenvironment \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \stopMPenvironment But I always get the standard CMR output. Did I miss a step somewhere? Has anyone an idea what's going wrong? Thanks for any help! Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] International characters in math
Adam Lindsay wrote: \definetypeface[somename][mm][math][euler][euler] \setupbodyfont[somename] \starttext $$\sqrt{\acute{a}+\bar{b}+\dot{c}}$$ \stoptext I don't get any accents. Am I doing something wrong? No, I am. You can verify further by adding: \loadmapfile[original-ams-base] \showmathcharacters The normal text-ish accents are not present in the eulervm fonts. I suppose the rationale is that these are never to be used for text (but it becomes questionable when you don't have an overbar or dot!) I have tried to figure out how to get them from other fonts, but am at a loss, in terms of the general case. No one has mentioned it before now, so I didn't try that hard. :) Anyone have any suggestions on what approach to take, or what they'd like to see? Apart from creating some new virtual euler font with accents I can not see any solution. Beforementioned commands (\acute ...) do not work in \mbox and \hbox in math mode (writes about '{' and '}' missing). Another strange thing. After this sequence: \usetypescript [modern-base] [t2a] % just for example \setupbodyfont [modern] \definetypeface[mytf][mm][math][euler][euler] \startbuffer $$\sqrt{\acute{a}+\bar{b}+\dot{c}}$$ \stopbuffer \starttext \getbuffer \switchtobodyfont[mytf] \getbuffer \switchtobodyfont[modern] \getbuffer \stoptext Third formula remains roman. Why so? -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] International characters in math
Mojca Miklavec wrote: To enable bold math by default write: \definetypeface[somename][mm][boldmath][latin-modern][default][rscale=1] % optional parameter rscale may be any number followed by \setupbodyfont[somename] if you want some other font, for example euler, choose one of the following lines: %\definetypeface[somename][mm][math][euler][euler] %\definetypeface[somename][mm][boldmath][euler][euler] Thanks for example. We're on the same way now ;-). But what exactly do you mean by bold math with accented characters? I meant not accented, but other alphabet (cyrillic in my case). Accented characters are composed from others, which is another case. Is there any special reason that we have to write $\hbox{\tf ...}$? Well, AFAIK in \mbox there is switch \mf (for 'math font'), which switches last font alternative even for math symbols. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts in Metapost
Hi Wolfgang, usually I compile the MetaPost fiures into a pdf. I refer to the pictures then by \externalfigure[metapost-pdf][page=1] or similar. Willi Wolfgang Zillig wrote: Hello all, finaly I solved my problem: I had my metapost graphic in an external file and used it with: \startuseMPgraphic{test} \input mp.mp ; \stopuseMPgraphic \useMPgraphic{test} or \startbuffer[test1] \input mp.mp \stopbuffer \processMPbuffer[test1,graphic] in both cases I get the graphic but the font switching does not work. When I copy the content of my graphic file into \startuseMPgraphic \stopuseMPgraphic or \startbuffer \stopbuffer I works. Is there an explanation for this behaviour? I thought \input would be equal to typing it directly. What is the best way to handle multiple graphics when I want to use the font switching mechanismn? Any advice? Thanks alot Wolfgang Willi Egger wrote: Hi Wolfgang, I do hope that I am not missing something. But I think, that you should say in the MPenvironment: \setupbodyfont[Cmbr,12pt] Otherwise the setupbodyfont command does not know which font to setup. Willi Wolfgang Zillig wrote: Hello, I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math). Now I want to change the font in MP as well (my text is included as label(test,(200,200));): %normal stups: \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \startMPenvironment \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \stopMPenvironment But I always get the standard CMR output. Did I miss a step somewhere? Has anyone an idea what's going wrong? Thanks for any help! Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Chart module problem.
I copied the first example in the Charts manual as follows: --- \setupoutput[pdftex] \usemodule[chart] \starttext \setupFLOWcharts [option=test, nx=4, ny=3, dx=2\bodyfontsize, dy=2\bodyfontsize, width=12\bodyfontsize, height=7\bodyfontsize, maxwidth=\textwidth] \startFLOWchart[grid] \stopflowchart \FLOWchart[grid] \stoptext - I get the following error messages; --- systems: begin file ped at line 3 ped-flw-1.tmp) Runaway argument? ! File ended while scanning use of \copyblockline. inserted text \par * cont-en ped.tex ? If I have made a silly mistake would someone please point it out? -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Chart module problem.
Hi John, Here your code compiles as soon as you change \stopflowchart into \stopFLOWchart! Willi John R. Culleton wrote: I copied the first example in the Charts manual as follows: --- \setupoutput[pdftex] \usemodule[chart] \starttext \setupFLOWcharts [option=test, nx=4, ny=3, dx=2\bodyfontsize, dy=2\bodyfontsize, width=12\bodyfontsize, height=7\bodyfontsize, maxwidth=\textwidth] \startFLOWchart[grid] \stopflowchart \FLOWchart[grid] \stoptext - I get the following error messages; --- systems: begin file ped at line 3 ped-flw-1.tmp) Runaway argument? ! File ended while scanning use of \copyblockline. inserted text \par * cont-en ped.tex ? If I have made a silly mistake would someone please point it out? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts in Metapost
Hi Wolfgang, I reread your mail, I am not sure, whether I understood your message correctly. therefore here what I usually do: \setupoutput[pdftex] \useMPlibrary[clp,txt] \startMPenvironment \usetypescript[palatino][texnansi] \switchtobodyfont[palatino,rm,10pt] \stopMPenvironment \startMPinclusions drawpathoptions (withpen pencircle scaled 1.5 withcolor .8white) ; drawpointoptions (withpen pencircle scaled 2.5 withcolor red) ; drawcontroloptions(withpen pencircle scaled 1 withcolor blue) ; drawlineoptions (withpen pencircle scaled 1.2 withcolor black) ; drawlabeloptions () ; swappointlabels := true ; numeric u; u := 0.5mm ; \stopMPinclusions \setupcolors[state=start] \startuniqueMPgraphic{1} mp code \stopuniqueMPgraphic \startuniqueMPgraphic{2} mp code \stopuniqueMPgraphic \startuniqueMPgraphic{2} mp code \stopuniqueMPgraphic \starttext \dorecurse{3}{% \startTEXpage \useMPgraphic{\recurselevel} \stopTEXpage} \stoptext Willi Wolfgang Zillig wrote: Hello, I have problems with changeing the font in Metapost. I defined my own typescripts somewhere and I also have a mapfile for that fonts. In normal text it workes fine (even math). Now I want to change the font in MP as well (my text is included as label(test,(200,200));): %normal stups: \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \startMPenvironment \loadmapfile[cmbright.map] %it seems that the mapfile is loaded only once \usetypescriptfile[type-cmbr] \usetypescript[Cmbr] \setupbodyfont[12pt] \stopMPenvironment But I always get the standard CMR output. Did I miss a step somewhere? Has anyone an idea what's going wrong? Thanks for any help! Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Chart module problem.
On Saturday 02 July 2005 08:20 pm, Willi Egger wrote: Hi John, Here your code compiles as soon as you change \stopflowchart into \stopFLOWchart! Willi See, I knew it was something simple staring me in the face. Or perhaps I am the thing that is simple. Anyhow, back to the (virtual) drawing board. I hope a have a more challenging question later. Thanks very much for a prompt response. -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Small logo ConTeXt
Hi, Just made (modif from another one in fact) a small logo Powered by ConTeXt for our Weekly News homepage at http://vnoss.net/bantin/. Logo: http://vnoss.net/bantin/img/powered-by-context.png -- Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context