Re: [NTG-context] A font problem with the stand-alone Windows distribution
Try the next two lines instead of those three lines: \usetypescript[postscript][\defaultencoding] \setupbodyfont[postscript,11pt] Thank you, thank you, thank you! The problem was not the difference between pos and postscript (they seem to be synonyms, both work) but the magic row: \usetypescript[adobekb][\defaultencoding] This one seems to instruct ConTeXt to use the real Adobe fonts. I tried almost every other combination but did not remove the row which says Adobe. Stupid me. However, the magic row with adobekb is present in almost all examples I've seen. And yet very few people have the real Adobe fonts. So, possibly this should be noted somewhere. (Anyway, what is the \usetypescript[adobekb] supposed to do?) - Ville ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
sjoerd siebinga wrote: Hi� Hans, On 19 Jan 2006, at 00:26, Hans Hagen wrote: did you try: \defineunicodefont [MySwitch] [MyOwnFont] % [command=\insertunicodeglyph] \definefontsynonym [MyOwnFontRegular] [Sans] \definefontsynonym [MyOwnFontItalic] [SansItalic] \MySwitch \uchar... \it ... Yes, but still no bold or italics. Maybe there is something wrong with my definitions. [code] \defineunicodefont [MySwitch] [mylinostar] % [command=\insertunicodeglyph] \loadmapfile[palatinolinostar_01xx-starling-linostar] \definefontsynonym [mylinostarRegular01] [palatinolinostar_01xx-PalatinoLinoStar] \definefontsynonym [mylinostarBold01] [palatinolinostar_01xx-PalatinoLinoStarBold] \definefontsynonym [mylinostarItalic01] [palatinolinostar_01xx-PalatinoLinoStarItalic] \starttext {\MySwitch \uchar{1}{1}} \\� {\MySwitch \it \uchar{1}{1}} \\ {\MySwitch \bf \uchar{1}{1}}� \\ \stoptext [/code] I have installed the font without errors with TeXfont.� can you test with: \unexpanded\def\unicodeglyph#1#2% watch the double mapping {\begingroup \getvalue{@@\currentucharmapping\strippedcsname\uchar}{#1}{#2}% \bodyfontsize\unicodescale\bodyfontsize \font\unicodefont=\truefontname{\unicodestyle\unicodeone} at \currentfontscale\bodyfontsize \unicodestrut \unicodefont\unicodecharcommand{\char\unicodetwo\relax}% \endgroup} i'll change the handlers in not applying a strut by default Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A font problem with the stand-alone Windows distribution
Ville Voipio wrote: However, the magic row with adobekb is present in almost all examples I've seen. And yet very few people have the real Adobe fonts. So, possibly this should be noted somewhere. The problem *should* go away after the next update of the context distribution. (I have no problems with that extra line here. But then, I do not use mswincontext.zip and always have the very latest release) (Anyway, what is the \usetypescript[adobekb] supposed to do?) It is (was, actually) supposed to switch from texfont-generated metric files (ec-utmr8t) to fontinst-generated metrics (ptmr8t). Since that is the default nowadays the command has become obsolete. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
Hi Hans,On 19 Jan 2006, at 10:43, Hans Hagen wrote:can you test with: \unexpanded\def\unicodeglyph#1#2% watch the double mapping {\begingroup \getvalue{@@\currentucharmapping\strippedcsname\uchar}{#1}{#2}% \bodyfontsize\unicodescale\bodyfontsize \font\unicodefont=\truefontname{\unicodestyle\unicodeone} at \currentfontscale\bodyfontsize \unicodestrut \unicodefont\unicodecharcommand{\char\unicodetwo\relax}% \endgroup} i'll change the handlers in not applying a strut by default This seems to do the trick. The bold glyphs look fine. There is however one oddity in italics with the circumflex and caron on capitals and the macron in general. They are so vague that they are hardly visible.Sjoerd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
sjoerd siebinga wrote: Hi Hans, On 19 Jan 2006, at 10:43, Hans Hagen wrote: can you test with: \unexpanded\def\unicodeglyph#1#2% watch the double mapping �{\begingroup � \getvalue{@@\currentucharmapping\strippedcsname\uchar}{#1}{#2}% � \bodyfontsize\unicodescale\bodyfontsize � \font\unicodefont=\truefontname{\unicodestyle\unicodeone} � � at \currentfontscale\bodyfontsize � \unicodestrut �\unicodefont\unicodecharcommand{\char\unicodetwo\relax}% � \endgroup} i'll change the handlers in not applying a strut by default This seems to do the trick. The bold glyphs look fine. There is however one oddity �in italics�with the circumflex and caron on capitals and the macron in general. They are so vague that they are hardly visible. that's a font characteristic Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] formula in itemlist
I want to place a math formula in the item of an itemlist, but I keep getting overfull hboxes. A minimal example follows: \starttext \startitemize \item dit is een \item dit is een formule \placeformula[-] \startformula n= 0% this is line 7 \stopformula \stopitemize \stoptext in the log it says: Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7 [][] \hbox(10.41603+4.05064)x0.0 .\glue(\leftskip) 17.62474 .\hbox(0.0+0.0)x0.0 .\hbox(10.41603+4.05064)x0.0 ..\rule(10.41603+4.05064)x0.0 ..\glue 0.0 plus 1.0fil minus 1.0fil .\penalty 1 .\glue(\parfillskip) 0.0 plus 1.0fil .etc. Removing the \placeformula makes no difference. Although a fallback to $$ n = 0 $$ makes the overfull hbox go away, it does not seem the ConTeXt way of doing. Is this something in formula about not changing a hbox-width inside the itemize? yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptabulate
On Jan 18, 2006, at 22:14, Henning Hraban Ramm wrote: Am 2006-01-18 um 12:32 schrieb Hans van der Meer: What is with tabulation? I use it because I find it handy, but the setuptabulate seems not working. This gives NO alignment and NO rule. Is something wrong? I'm surprised that tabulates should have align and rule at all, but texshow states so. Why don't you use some sort of table? The answer is simple: because I like the tabulation construct. yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Stand alone Context editing environment
Am 2006-01-19 um 09:35 schrieb Ville Voipio: Can someone explain to me what this is? If it is downloaded and unzipped, is it ready to go? Is there documentation of this particular zip? Is there an editor in this zip configured and ready to go? Here is a step by step of how it should go (i.e. what I did with success): Thank you, I'm wikifying that. see http://wiki.contextgarden.net/Windows_Installation Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Stand alone Context editing environment
Henning Hraban Ramm wrote: Thank you, I'm wikifying that. see http://wiki.contextgarden.net/Windows_Installation Oh, great if you do it (then I don't need to). Thanks. Greetlings from Lake Constance! Greetings from slightly cool (-22 'C at the moment) Finland. - Ville ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
Hello Sjoerd! I found this thread rather interesting, even if my font problems are probably in another realm. Could you document your problem solution in the wiki? I just tried to get my hands at the font: http://starling.rinet.ru/downl.php?lan=en#soft But the EXEs aren't self extracting ZIPs as I expected, but real installers (or something else), and I don't have access to a Windows machine at the moment. BTW if the fonts really are named Palatino something there may be trouble ahead, because Palatino is a trademark (that's why URW++ names their version Palladio). Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problems with Unicode and i-Installer
Hello, after installing the new ConTeXt package (same problem for 1/16 and 1/19 beta), the installation procedure reported some missing 'unic-ext.tex' file; compiling any files that used \enableregime[utf] didn't work anymore. Replacing 'unic-ext' by 'unic-exp' in the file context.tex and doing another configuration run in i-installer got rid of the error messages both during installation and compilation. So I'd like to know if there might be something wrong with my installation or if it really should say 'unic-exp.tex' in context.tex. In case (i), is there anything I could do besides rerunning the installation routines to fix my tex setup? Best regards, Sebastian ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptabulate
Hans van der Meer wrote: What is with tabulation? I use it because I find it handy, but the setuptabulate seems not working. \starttext \setuptabulate[align=middle,rulethickness=1pt] \starttabulate[|c|c|] \NC abc \NC xyz \NC\NR \NC def \NC uvw \NC\NR \stoptabulate \stoptext This gives NO alignment and NO rule. Is something wrong? Ran at the wiki live-ConTeXt and got the same negative result. this kind of alignments only influences the p entries \starttext \setuptabulate[align=left] \starttabulate \NC test \NC \input tufte \NC \NR \stoptabulate \setuptabulate[align=right] \starttabulate \NC test \NC \input tufte \NC \NR \stoptabulate \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptabulate
Am 2006-01-19 um 11:53 schrieb Hans van der Meer: What is with tabulation? I use it because I find it handy, but the setuptabulate seems not working. This gives NO alignment and NO rule. Is something wrong? I'm surprised that tabulates should have align and rule at all, but texshow states so. Why don't you use some sort of table? The answer is simple: because I like the tabulation construct. If you need rules, you must use some kind of table. It's no big change: \setuptables[rulethickness=1pt] \starttable[|c|c|] \NC abc \VL xyz \NC\AR \NC def \VL uvw \NC\AR \stoptable And you must use \VL for a vertical line instead of \NC Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] placefloat
(1) My intention was to place some material into the left margin on the page, but did not succeed. Using \startmarginblock ... \stopmarginblock resulted in placement in the margin to the right, could not get it to the left. The I experimented with the placeffloat mechanism and didn't succeed either. Tested with the following example: \starttext \definefloat[sidenote][sidenotes] This is the text before in the body of the document. \placesidenote[inleft]{abc}{margintext} This is the text after in the body of the document. \page on page two. \stoptext Summary of the results for the [position] parameter with the values given in the ConTeXt manual Table 12.1. (a) in most cases the caption just appears in the middle of the page, not below the float. (b) some values seem to work ok, these are here, top, bottom, page, opposite (appears 2 pages later), always, force. (c) some values do not work or even give a TeX error: -- left margintext appears on the right side of the page (same as leftaligned?) -- right idem on the left side -- inleft the margintext and the caption seem to disappear completely -- inright the caption is not seen, margintext appears on the right side -- inmargin gives error undefined \doinmarginnormal -- margin gives error too many }'s (2) Second question. Is there a mechanism whereby one can force the float to at least the next page when there is no room for it below the current point on the page? This is useful for example when a figure belongs to the text of which only a few lines are on the current page. The figure is then better placed on the next page then somewhere on the current one. yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptabulate
Henning Hraban Ramm wrote: Am 2006-01-19 um 11:53 schrieb Hans van der Meer: What is with tabulation? I use it because I find it handy, but the setuptabulate seems not working. This gives NO alignment and NO rule. Is something wrong? I'm surprised that tabulates should have align and rule at all, but texshow states so. Why don't you use some sort of table? The answer is simple: because I like the tabulation construct. If you need rules, you must use some kind of table. It's no big change: \setuptables[rulethickness=1pt] \starttable[|c|c|] \NC abc \VL xyz \NC\AR \NC def \VL uvw \NC\AR \stoptable And you must use \VL for a vertical line instead of \NC To put this another way, the | symbol only separates the column templates, it does not imply a vertical line. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] formula in itemlist
Hans van der Meer wrote: I want to place a math formula in the item of an itemlist, but I keep getting overfull hboxes. A minimal example follows: \starttext \startitemize \item dit is een \item dit is een formule \placeformula[-] \startformula n= 0% this is line 7 \stopformula \stopitemize \stoptext in the log it says: Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7 [][] \hbox(10.41603+4.05064)x0.0 .\glue(\leftskip) 17.62474 .\hbox(0.0+0.0)x0.0 .\hbox(10.41603+4.05064)x0.0 ..\rule(10.41603+4.05064)x0.0 ..\glue 0.0 plus 1.0fil minus 1.0fil .\penalty 1 .\glue(\parfillskip) 0.0 plus 1.0fil .etc. Removing the \placeformula makes no difference. Although a fallback to $$ n = 0 $$ makes the overfull hbox go away, it does not seem the ConTeXt way of doing. Is this something in formula about not changing a hbox-width inside the itemize? not so much tested: \def\setdisplaydimensions {\displayindent\leftdisplayskip \advance\displayindent\leftdisplaymargin \displaywidth\hsize \ifdim\hangindent\zeropoint \advance\displayindent\hangindent \else \advance\displaywidth\hangindent \fi \advance\displaywidth-\displayindent \advance\displaywidth-\rightdisplayskip \advance\displaywidth-\rightdisplaymargin \hsize\displaywidth} i'll also add an option to center at the page level and not locally Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] table oddities
After Hans vdM's question I'm trying to enhance the table documentation in the wiki. I found the following a bit strange: \starttable[|l|l|] \HL \NC Command \VL Meaning \SR % or \NC\AR \HL \NC \tex{NC}\VL next column \AR \NC \tex{HL}\VL horizontal line \AR \NC \tex{VL}\VL vertical line \AR \NC \tex{NR}\VL next row\LR \HL \NC \tex{SR}\VL single row \AR \NC \tex{FR}\VL first row \AR \NC \tex{MR}\VL middle row \AR \NC \tex{LR}\VL last row \LR % or \NC\AR \HL \NC \tex{AR}\VL automatic row \SR % or \NC\AR \HL \stoptable - You can leave out the \NC before the row command, - but not with \AR in a last or single row. - If you use \AR in this case, you get a missing column error. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with Unicode and i-Installer
Hello, after installing the new ConTeXt package (same problem for 1/16 and 1/19 beta), the installation procedure reported some missing 'unic-ext.tex' file; compiling any files that used \enableregime[utf] didn't work anymore. Replacing 'unic-ext' by 'unic-exp' in the file context.tex and doing another configuration run in i-installer got rid of the error messages both during installation and compilation. So I'd like to know if there might be something wrong with my installation or if it really should say 'unic-exp.tex' in context.tex. In case (i), is there anything I could do besides rerunning the installation routines to fix my tex setup? Hans, Taco, I can confirm this. I missed this error ocurring when I checked the automatically updated i-Package. Can we have a quick fix for this? The 1.16 and 1.19beta are already out there and I am away from my desk so I cannot block people from installing it. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] type backslash brace oddity
Still documenting tables: \type{\{} or \tex{{} doesn't work, I get the * prompt of the TeX interpreter instead of typing \{ I used {\tt \backslash\{}, but that's not quite the same. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] type backslash brace oddity
Henning Hraban Ramm wrote: Still documenting tables: \type{\{} or \tex{{} doesn't work, I get the * prompt of the TeX interpreter instead of typing \{ FYI: There is a seemingly related bug mentioned in the collector. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with Unicode and i-Installer
Gerben Wierda wrote: Hello, after installing the new ConTeXt package (same problem for 1/16 and 1/19 beta), the installation procedure reported some missing 'unic-ext.tex' file; compiling any files that used \enableregime[utf] didn't work anymore. Replacing 'unic-ext' by 'unic-exp' in the file context.tex and doing another configuration run in i-installer got rid of the error messages both during installation and compilation. So I'd like to know if there might be something wrong with my installation or if it really should say 'unic-exp.tex' in context.tex. In case (i), is there anything I could do besides rerunning the installation routines to fix my tex setup? Hans, Taco, I can confirm this. I missed this error ocurring when I checked the automatically updated i-Package. Can we have a quick fix for this? The 1.16 and 1.19beta are already out there and I am away from my desk so I cannot block people from installing it. removing the line \input unic-ext from context.tex i fixed the beta and when i get no complaints i'll promote it to current Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Java Applets
Matthias Weber wrote: Hello all, does anybody know whether i) one can embed Java applets in a PDF file, only if you write a plug in ; only javascript is supported ii) generate the PDF with ConTeXt, iii) so that it works on a Mac? see s-pre-* files for examples Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuptabulate
Thanks. I did not realize that the alignment had to do with the paragraphs inside the columns. Centering of a tabulation I now realize with: \starttext \midaligned{\vbox{\starttabulate[|c|c|] \NC a \NC bcd \NC\NR \NC xy \NC finally \NC\NR \stoptabulate}} \stoptext yours sincerely, dr. H. van der Meer On Jan 19, 2006, at 14:24, Hans Hagen wrote: Hans van der Meer wrote: What is with tabulation? I use it because I find it handy, but the setuptabulate seems not working. \starttext \setuptabulate[align=middle,rulethickness=1pt] \starttabulate[|c|c|] \NC abc \NC xyz \NC\NR \NC def \NC uvw \NC\NR \stoptabulate \stoptext This gives NO alignment and NO rule. Is something wrong? Ran at the wiki live-ConTeXt and got the same negative result. this kind of alignments only influences the p entries \starttext \setuptabulate[align=left] \starttabulate \NC test \NC \input tufte \NC \NR \stoptabulate \setuptabulate[align=right] \starttabulate \NC test \NC \input tufte \NC \NR \stoptabulate \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] xml and buffers
Hello gurus, I'm a bit into trouble wih buffers and xml parsing. Here is my problem: I've got a .xhtml with the following lines: [...] meta name=course_name content=Génie Logiciel / meta name=date content=23 décembre 2005 / [...] titleAuction: document d'analyse/title [...] I'm trying to store the content of the meta tag in a buffer, one per meta tag, (ie Génie Logiciel in buffer course_name, 23 décembre 2005 in buffer date) to use these buffers when I meet the title tag: \XMLifequalelse{meta}{name}{course_name} {\startbuffer[course_name]\XMLpar{meta}{content}{}\stopbuffer}{} \XMLifequalelse{meta}{name}{date} {\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{} \defineXMLenvironment [title] {\startstandardmakeup \getbuffer[course_name] \getbuffer[date]}{\stopstandardmakeup} But it does not print anything else than the title. Any idea? Thanks a lot for you help! -AJ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
Hello Hraban, On 19 Jan 2006, at 14:17, Henning Hraban Ramm wrote: Hello Sjoerd! I found this thread rather interesting, even if my font problems are probably in another realm. Could you document your problem solution in the wiki? Of course. But I am wrapped up in work coming three weeks. So if afterwards is fine could you tell me the best way to prepare a document for the wiki? I just tried to get my hands at the font: http://starling.rinet.ru/downl.php?lan=en#soft But the EXEs aren't self extracting ZIPs as I expected, but real installers (or something else), and I don't have access to a Windows machine at the moment. I had the same problem on mac os x. I can send you the ttf files off- list if you are interested. BTW if the fonts really are named Palatino something there may be trouble ahead, because Palatino is a trademark (that's why URW++ names their version Palladio). I think the font is called Palatino Linostar. But I let the russians deal with the trademark problems. Sjoerd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: type backslash brace oddity
Hi Henning, \type{\{} or \tex{{} doesn't work, I get the * prompt of the TeX interpreter instead of typing \{ \type|\{| works fine here. Patrick (...answering your other mail tonight) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] marginblock placement
Encountered some annoying behaviour in placing sidenotes in the margin with \startmarginblock (1) In a previous email I said I could get the notes in the right margin only. That was incorrect. \setupmarginblocks governs the placement and of course the last call gets precedence when several are placed on one page. I would like to be able to place the notes individually to the left or to the right, but startmarginblock has no [location=left/right] parameter]. It should in principle not be a problem to place floating notes left and right into the margin independently? (2) In doublesided layout startmarginblock places the notes on the right side neatly centered in the margin. But on the left it does not, there they are pressed against the left edge of the page. In both the doublesided as in the singlesided setup i gave \setuplayout[margin=30mm]. yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] xml and buffers
Junod Antoine wrote: Hello gurus, I'm a bit into trouble wih buffers and xml parsing. Here is my problem: I've got a .xhtml with the following lines: [...] meta name=course_name content=G�nie Logiciel / meta name=date content=23 d�cembre 2005 / [...] titleAuction: document d'analyse/title [...] I'm trying to store the content of the meta tag in a buffer, one per meta tag, (ie G�nie Logiciel in buffer course_name, 23 d�cembre 2005 in buffer date) to use these buffers when I meet the title tag: \XMLifequalelse{meta}{name}{course_name} {\startbuffer[course_name]\XMLpar{meta}{content}{}\stopbuffer}{} \XMLifequalelse{meta}{name}{date} {\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{} \defineXMLenvironment [title] {\startstandardmakeup \getbuffer[course_name] \getbuffer[date]}{\stopstandardmakeup} But it does not print anything else than the title. buffers serve a different purpose and are part if a text flow \starttext \defineXMLsingular [meta] [name=,content=] {\setevariables[document:meta][\XMLop{name}=\XMLop{content}]} \defineXMLenvironment [title] {} {\startstandardmakeup \getvariable{document:meta}{course_name} \endgraf \getvariable{document:meta}{date} \endgraf \stopstandardmakeup} \startXMLdata meta name=course_name content=Genie Logiciel / meta name=datecontent=23 decembre 2005 / title/ \stopXMLdata With a little extension (i'll add it) we can prevent unwanted expansion: \unprotected \def\setvalueXMLpar#1#2#3% [EMAIL PROTECTED]@EA\endcsname \csname\ifcsname\@@XMLvariable:#2:#3\endcsname \@@XMLvariable:#2:#3\else\s!empty\fi\endcsname} \defineXMLsingular [meta] [name=,content=] {\setvalueXMLpar{document:meta:\XMLop{name}}{meta}{content}} \defineXMLenvironment [title] {} {\startstandardmakeup \getvalue{document:meta:course_name} \endgraf \getvalue{document:meta:date} \endgraf \stopstandardmakeup} \startXMLdata meta name=course_name content=Genie Logiciel / meta name=datecontent=23 decembre 2005 / title/ \stopXMLdata \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] placefloat
Hans van der Meer wrote: (1) My intention was to place some material into the left margin on the page, but did not succeed. Added to the collector. I'm positive that there is at least a little bug somewhere in your list of problems, but I have no time right now to do research. (2) Second question. Is there a mechanism whereby one can force the float to at least the next page when there is no room for it below the current point on the page? There is: \startpostponing stuff with postponed floats \stoppostponing I believe it is mentioned in a manual somewhere, but don't recall off-hand which one. However, I'm not confident that that mechanism does precisey what you want, and it is definately not automatic. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
Am 2006-01-19 um 17:35 schrieb sjoerd siebinga: I found this thread rather interesting, even if my font problems are probably in another realm. Could you document your problem solution in the wiki? Of course. But I am wrapped up in work coming three weeks. So if afterwards is fine could you tell me the best way to prepare a document for the wiki? Take your time. Either you do it yourself: create an account, make up some name for the page, try to access it and enter your text; if you don't want to dive into Wiki syntax, we'll care for the markup. Or you just post it to this list, and I'll pick it up (if I've some time). I just tried to get my hands at the font: http://starling.rinet.ru/downl.php?lan=en#soft But the EXEs aren't self extracting ZIPs as I expected, but real installers (or something else), and I don't have access to a Windows machine at the moment. I had the same problem on mac os x. I can send you the ttf files off-list if you are interested. I'd appreciate that, please. BTW if the fonts really are named Palatino something there may be trouble ahead, because Palatino is a trademark (that's why URW+ + names their version Palladio). I think the font is called Palatino Linostar. But I let the russians deal with the trademark problems. Of course it's not your problem, but Hans is right: If you'd call a car Daimler Bums it would be a trademark infringement nevertheless... And I suspect they even took the code from the original Palatino fonts... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
Henning Hraban Ramm wrote: Of course it's not your problem, but Hans is right: If you'd call a car Daimler Bums it would be a trademark infringement nevertheless... And I suspect they even took the code from the original Palatino fonts... so that font should be on the black list and an alternative should be used Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Force indent
All, What's the proper way to force an indent at the However below? Now, suppose that we're asked to shade all real numbers in the set $\ {x:\,x3\}$. Because this requires that we shade every real number that is greater than 3 (to the right of 3), we use the shading shown in \infigure[fig:realline3] to represent the set $\{x:\,x3\}$. \placefigure [][fig:realline3] {Shading all real numbers greater than 3.} {\externalfigure[realline3]} However, ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Font memory issues ?
David Wooten wrote: Any more clues, patient ones?: texexec --pdf file.tex How about: texexec --passon=-recorder --pdf file.tex That will give you a file named file.fls listing all used files including their path, and then you can easily check which fmt file is actually used. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Font memory issues ?
Oh, d**mn. I just had a brainwave. From Web2c's tex.ch comes the following: @!inf_font_mem_size = 2; @!sup_font_mem_size = 200; So font_memory cannot be set larger than 200 and not smaller than 2. Out-of-bounds sizes are silently folded back in line, but that happens after the variable expansion is complete. That's why the debug switch still reports the values from texmf.cnf. So the actual problem here is the web2c runtime code inside TeX. You can recompile with a larger sup_font_mem_size, I guess. But otherwise you are out of luck. Cheers, Taco David Wooten wrote: Any more clues, patient ones?: texexec --pdf file.tex Here is how much of TeX's memory you used: 1449181 words of font info for 262 fonts, out of 200 for 2000 pdfetex --kpathsea-debug=65535 --ini --progname=context plain kdebug:hash_lookup(font_mem_size.context) = 300 kdebug:variable: font_mem_size = 300 Many thanks, David ___ 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] SciTE Setup in Windows and .rb scripts
Hi I am new to ConTeXt. Once I saw the showcase, I thought that this is even much better than LaTeX which I have been using for 3 years. I have MikTeX installed on my WinXP machine and according to the advice tried to setup SciTE to write some practice documents. Still I have problems. I have done everything in SCiTE in ConTeXt manual, but I can't still compile my files. I have to go to command line and do it manually. Should I install Ruby on my machine? What is Ruby for anyway? Where should I get those .rb scripts and where should I put them? Keep up the good work, Cheers, Hooman ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] SciTE Setup in Windows and .rb scripts
Hooman Javidnia wrote: Should I install Ruby on my machine? Yes, you'll need both Ruby and Perl. Both are scripting languages. You must have missed the discussion about this earlier today, but no problem, it got wikified: http://wiki.contextgarden.net/Windows_Installation#Stand-alone_ConTeXt_distribution If you like to use command interface and unix type command line tools, you can install cygwin on your Windows and with Cygwin you get perl and ruby. Cygwin is available at http://www.cygwin.com/ - the Install or update now link is made for us Windows dummies, it'll tell you what to do. So: Either follow the nine-step program given in the wiki (link above) or install cygwin and continue the nine-step program from step 3 (although, judging by your question and my own experience with the same issue, the only things you miss at this point are Ruby and possibly Perl). Whichever way, somehow you need to make sure you have Ruby and Perl on your machine before things start to work. Hope this helps, Mari ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \uchar and italics question
On 19 Jan 2006, at 20:44, Hans Hagen wrote: Henning Hraban Ramm wrote: Of course it's not your problem, but Hans is right: If you'd call a car Daimler Bums it would be a trademark infringement nevertheless... And I suspect they even took the code from the original Palatino fonts... so that font should be on the black list and an alternative should be used Hans I am not very familiar with these things. Is there a way in which I can find out if there is reason that this font should be blacklisted. I have a version of fontlab on my computer. I have never before had reason to suspect the heritage of this font since it was also used in a web-based project by the Santa Fe institute of advanced studies. Sjoerd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Font memory issues ?
Any more clues, patient ones?: texexec --pdf file.tex Here is how much of TeX's memory you used: 1449181 words of font info for 262 fonts, out of 200 for 2000 pdfetex --kpathsea-debug=65535 --ini --progname=context plain kdebug:hash_lookup(font_mem_size.context) = 300 kdebug:variable: font_mem_size = 300 Many thanks, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] SciTE Setup in Windows and .rb scripts
It would of course help if I learned to read - I didn't exactly answer your question fully and I'm sorry about that. I cannot quite answer to all parts of your questions, but here's a bit more: Yes, you need to have working installations of Ruby and Perl on your computer. If you can make them tell you their version (see the wiki Windows installation page), you can assume the installations work. Then you also need to find the appropriate *.properties files the mscite.pdf manual explains about. I must admit that I have no idea whether they are included in MikTex, but the Windows search will tell you pretty fast if you have them or not. It may be useful to know that the file SciTEUser.properties doesn't exist until you put something in there, so instruction copy context.properties where your SciTEUser.properties file is doesn't necessarily make make much sense. In the Scite I downloaded today on my Windows 2000, the user properties file went into my C:\Documents and Settings\Username folder, I think it'll do the same in XP - so put the context.properties into equivalent folder on your computer. I get this far. Having copied the properties files and restarted Scite, the menu looks good, I have the build and compile commands and the test file is now recognized as tex/context. But that's it then for tonight, something is still missing either in my Windows path or somewhere else. And it's time for me to go to bed. But yes, I'd like to know, too, how this is done. Will need to reinstall a computer soonish and that means reinstalling (upgrading) context into a brand new XP. It would be nice to try MikTeX for a change... Mari ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Font memory issues ?
Taco Hoekwater wrote: Oh, d**mn. I just had a brainwave. From Web2c's tex.ch comes the following: @!inf_font_mem_size = 2; @!sup_font_mem_size = 200; So font_memory cannot be set larger than 200 and not smaller than 2. Out-of-bounds sizes are silently folded back in line, but that happens after the variable expansion is complete. That's why the debug switch still reports the values from texmf.cnf. So the actual problem here is the web2c runtime code inside TeX. You can recompile with a larger sup_font_mem_size, I guess. But otherwise you are out of luck. so, is it possible to increase the upper limit in the code? hz seems to need it for the moment a way out is to limit hz to the regular font shape, i.e. don't use it for bold, italic, slanted etc another option is to limit the number of instances (steps) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ggd
A very insignificant observation. But in my opinion Hans Hagen is a perfectionist, therefore I dare to throw this bone to him. In Dutch the greatest common divisor is not abbreviated as gcd but as ggd. It is of course a simple matter to redefine this locally with: \definemathcommand [gcd] [limop] {\mfunction{ggd}} But the perfectionist would likely expect this to happen automagically on \language[nl]. Just mentioned this for fun, don't bother too much. yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ggd
Hans van der Meer wrote: A very insignificant observation. But in my opinion Hans Hagen is a perfectionist, therefore I dare to throw this bone to him. In Dutch the greatest common divisor is not abbreviated as gcd but as ggd. It is of course a simple matter to redefine this locally with: \definemathcommand [gcd] [limop] {\mfunction{ggd}} But the perfectionist would likely expect this to happen automagically on \language[nl]. Just mentioned this for fun, don't bother too much. localizing math is indeed an interesting topic. \startlanguagespecifics[nl] \definemathcommand [gcd] [limop] {\mfunction{ggd}} \stoplanguagespecifics but ... then we need to be complete Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Force indent
David Arnold wrote: All, What's the proper way to force an indent at the However below? Now, suppose that we're asked to shade all real numbers in the set $\ {x:\,x3\}$. Because this requires that we shade every real number that is greater than 3 (to the right of 3), we use the shading shown in \infigure[fig:realline3] to represent the set $\{x:\,x3\}$. \placefigure [][fig:realline3] {Shading all real numbers greater than 3.} {\externalfigure[realline3]} I would do: \indent However, Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Font memory issues ?
Hans Hagen wrote: Taco Hoekwater wrote: Oh, d**mn. I just had a brainwave. From Web2c's tex.ch comes the following: @!inf_font_mem_size = 2; @!sup_font_mem_size = 200; So font_memory cannot be set larger than 200 and not smaller than 2. Out-of-bounds sizes are silently folded back in line, but that happens after the variable expansion is complete. That's why the debug switch still reports the values from texmf.cnf. So the actual problem here is the web2c runtime code inside TeX. You can recompile with a larger sup_font_mem_size, I guess. But otherwise you are out of luck. so, is it possible to increase the upper limit in the code? I guess so. I don't see any special reason for 2mln upper limit. font mem pointers are integers with rather straightforward usage, AFAIK. (CC to the tex-k list) Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Font memory issues ?
Well, it is certainly very good to know that I'm not crazy (this time round). Thanks very much for tracking this down. Hans' suggestion works very well---the typescript file is pretty big for this font family, so there were quite a few fonts set up with hz that have no need for them. Many thanks, and if the chance arises (perhaps in San Francisco), many beers. David On Jan 19, 2006, at 1:44 PM, Hans Hagen wrote: Taco Hoekwater wrote: Oh, d**mn. I just had a brainwave. From Web2c's tex.ch comes the following: @!inf_font_mem_size = 2; @!sup_font_mem_size = 200; So font_memory cannot be set larger than 200 and not smaller than 2. Out-of-bounds sizes are silently folded back in line, but that happens after the variable expansion is complete. That's why the debug switch still reports the values from texmf.cnf. So the actual problem here is the web2c runtime code inside TeX. You can recompile with a larger sup_font_mem_size, I guess. But otherwise you are out of luck. so, is it possible to increase the upper limit in the code? hz seems to need it for the moment a way out is to limit hz to the regular font shape, i.e. don't use it for bold, italic, slanted etc another option is to limit the number of instances (steps) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Figures in a table?
All, Has anyone put figures in a table? I'd like to have a 4 row, 3 column table, where the first column contains number lines with intervals of real numbers shaded. The second column would contain the setbuilder notation for the shaded interval, and the third column would contain the interval notation for the shaded interval. Ideas? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \getbuffer question
All, If you do something like: \startbuffer \setupYadaYada . . . . \stopbuffer Then you do: \getbuffer will the setup be in a group, and only pertain to the stuff set with \getbuffer? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Figures in a table?
All, I've almost answered my own question with: \startbuffer[table] \setupTABLE[c][1][width=0.6\textwidth] \setupTABLE[c][2][width=0.2\textwidth] \setupTABLE[c][3][width=0.2\textwidth] \bTABLE[align={middle,lohi}] \bTR \bTH Number line \eTH \bTH Set-builder notation \eTH \bTH Interval notation \eTH \eTR \bTR \bTD \externalfigure[realline4] \eTD \bTD $\{x:\,x3\}$ \eTD \bTD $(3,\infty)$ \eTD \eTR \bTR \bTD \externalfigure[realline5] \eTD \bTD $\{x:\,x3\}$ \eTD \bTD $(-\infty,3)$ \eTD \eTR \bTR \bTD \externalfigure[realline6] \eTD \bTD $\{x:\,x\ge3\}$ \eTD \bTD $[3,\infty)$ \eTD \eTR \bTR \bTD \externalfigure[realline7] \eTD \bTD $\{x:\,x\le3\}$ \eTD \bTD $(-\infty,3]$ \eTD \eTR \eTABLE \stopbuffer \placefigure[][tbl:numlines] {Table} {\getbuffer[table]} However, two things: 1. My figures are not centered in their first column. 2. I'd like to add a little height to the last four rows. Suggestions? On Jan 19, 2006, at 5:19 PM, David Arnold wrote: All, Has anyone put figures in a table? I'd like to have a 4 row, 3 column table, where the first column contains number lines with intervals of real numbers shaded. The second column would contain the setbuilder notation for the shaded interval, and the third column would contain the interval notation for the shaded interval. Ideas? ___ 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] SciTE Setup in Windows and .rb scripts
Thanks Mari for the very valuable advice. With your help, now I have something that works (kind of): Here is what I did: 1. I installed Ruby. I have no idea why it should be installed on a system so that ConTeXt works. 2. I downloaded texmfstart.exe and put in the texmf bin folder (I have MikTeX 2.4 on Win XP). 3. As you had nicely suggested the SciTE user profile wasn't in the SciTE's working directory. It was in C:/Documents and Settings/My Username. I copied the context.properties to the same directory and added the line import context to it. 4. I wasn't sure whether I should copy the other ConTeXt properties files to this directory or leave them in SciTE's main folder. I left them to be in the SciTE's main folder. 5. After restarting as you have said I have a working version of SCiTE. Under the Tools menu I have these Items: Compile Ctrl-F7 Build F7 Go F5 Check TeX File Ctrl+0 ... When I issue the Compile command I receive the following message: texmfstart concheck.rb myfile.tex unknown file type: texmfscripts ... It seems that SciTE can't still detect type of the file that I want to compile or build. I get the same message when I Build myfile.tex too, although Build process finishes without any errors. 6. I have all Latin Modern fonts (open type) on my computer. Still I can't configure SciTE to work correctly with these fonts. Actully after I added context.properties it messed up the origianl font scheme of SciTE. Any ideas on this? 7. When I choose Open from file menu, tex is not among the file types. Should I add something to the properties files to solve this? I think I am getting ready to make my move to ConTeXt. I know that I will be bugging this mailing list with more question, but setting up my editor is the first step. Thanks again. hooman ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Venn diagram
All, I have: \startMPpage %figure library name: intersection %initialize scale numeric u; 10u=3in; %ellipses path A, B; A:=fullcircle xyscaled (4u,3u); B:=A shifted (2u,0); draw A withcolor red; label.ulft(btex $A$ etex, point 3 of A) withcolor red; draw B withcolor blue; label.urt(btex $B$ etex, point 1 of B) withcolor blue; %bounding box draw bbox currentpicture enlarged (0.5u,0.5u); \stopMPpage I need an easy way of shading these areas: 1. A intersect B 2. A union B 3. A intersect (complement of B) 4. (complement of A) intersect B Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Venn diagram
--- On Jan 19, David Arnold wrote --- All, I have: \startMPpage %figure library name: intersection %initialize scale numeric u; 10u=3in; %ellipses path A, B; A:=fullcircle xyscaled (4u,3u); B:=A shifted (2u,0); draw A withcolor red; label.ulft(btex $A$ etex, point 3 of A) withcolor red; draw B withcolor blue; label.urt(btex $B$ etex, point 1 of B) withcolor blue; %bounding box draw bbox currentpicture enlarged (0.5u,0.5u); \stopMPpage I need an easy way of shading these areas: 1. A intersect B 2. A union B 3. A intersect (complement of B) 4. (complement of A) intersect B There is venn.mp on ctan. Using it you can do basic shading of intersection, union etc for 0,1,2 or 3 sets very quickly. Read the documentation in source for details. For example \startMPinclusions input venn; pair A,B,T[]; A = (.4venn_width-.5venn_circle_diameter,.5venn_height); B = (.6venn_width+.5venn_circle_diameter,.5venn_height); T1 = (.5venn_width , 0); T2 = (.5venn_width,.5venn_height-.5venn_circle_diameter); vardef venn_shade = red; \stopMPinclusions \startMPpage draw_venn_two(false,true,true,true); label.lft(btex $A$ etex,A); label.rt(btex $B$ etex,B); label.bot(btex $A\cup B$ etex,T2); \stopMPpage \startMPpage draw_venn_two(false,false,true,false); label.lft(btex $A$ etex,A); label.rt(btex $B$ etex,B); label.bot(btex $A\cap B$ etex,T2); \stopMPpage \startMPpage draw_venn_two(true,false,false,false); label.lft(btex $A$ etex,A); label.rt(btex $B$ etex,B); label.bot(btex $A'\cap B'$ etex,T2); \stopMPpage Perhaps one can combine the transparent color functionality of metapost with venn.mp to get really nice colors for intersections etc. Another related question, does anyone know of a good way to hash (hatch) a set (in general, any mp closed curve). I know that there is hatching.mp but I was wondering if there are better solutions. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Text wrapping in SciTE
Hi, I was wondering what is the correct way of wrapping text while typing in SciTE. SciTE can wrap the text, but it is basically a virtual wrap, it is a long line tailored to the view of your editing window. On the other hand you can wrap the lines yourself by pressing enter wherever you think it is necessary. Which one of these methods is better? Or maybe there are better alternatives? Cheers, Hooman ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] xml and buffers
Thanks a lot!!! -AJ On Thu, Jan 19, 2006 at 05:55:22PM +0100, Hans Hagen wrote: Junod Antoine wrote: Hello gurus, I'm a bit into trouble wih buffers and xml parsing. Here is my problem: I've got a .xhtml with the following lines: [...] meta name=course_name content=G�nie Logiciel / meta name=date content=23 d�cembre 2005 / [...] titleAuction: document d'analyse/title [...] I'm trying to store the content of the meta tag in a buffer, one per meta tag, (ie G�nie Logiciel in buffer course_name, 23 d�cembre 2005 in buffer date) to use these buffers when I meet the title tag: \XMLifequalelse{meta}{name}{course_name} {\startbuffer[course_name]\XMLpar{meta}{content}{}\stopbuffer}{} \XMLifequalelse{meta}{name}{date} {\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{} \defineXMLenvironment [title] {\startstandardmakeup \getbuffer[course_name] \getbuffer[date]}{\stopstandardmakeup} But it does not print anything else than the title. buffers serve a different purpose and are part if a text flow \starttext \defineXMLsingular [meta] [name=,content=] {\setevariables[document:meta][\XMLop{name}=\XMLop{content}]} \defineXMLenvironment [title] {} {\startstandardmakeup \getvariable{document:meta}{course_name} \endgraf \getvariable{document:meta}{date} \endgraf \stopstandardmakeup} \startXMLdata meta name=course_name content=Genie Logiciel / meta name=datecontent=23 decembre 2005 / title/ \stopXMLdata With a little extension (i'll add it) we can prevent unwanted expansion: \unprotected \def\setvalueXMLpar#1#2#3% [EMAIL PROTECTED]@EA\endcsname \csname\ifcsname\@@XMLvariable:#2:#3\endcsname \@@XMLvariable:#2:#3\else\s!empty\fi\endcsname} \defineXMLsingular [meta] [name=,content=] {\setvalueXMLpar{document:meta:\XMLop{name}}{meta}{content}} \defineXMLenvironment [title] {} {\startstandardmakeup \getvalue{document:meta:course_name} \endgraf \getvalue{document:meta:date} \endgraf \stopstandardmakeup} \startXMLdata meta name=course_name content=Genie Logiciel / meta name=datecontent=23 decembre 2005 / title/ \stopXMLdata \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \getbuffer question
David Arnold wrote: Then you do: \getbuffer will the setup be in a group, and only pertain to the stuff set with \getbuffer? No, normally they will live on (buffers often contain definitions). But you can use \setupbuffer[before=\begingroup,after=\endgroup] Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context