Re: [NTG-context] wrong heights in TABLE
Peter Münster wrote: TIA for any hint! Cheers, Peter This second example is a broken table specifier when no modes are enabled: it produces and empty row, which is a no-no. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong heights in TABLE
Peter Münster wrote: Where could be the problem? My guess is: when you have a row that somehow consists only of cells with multiple rowspan specifiers, the height of that row is miscalculated. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dezimalkomma
On Wednesday 10 March 2010 06:28:52 Wolfgang Schuster wrote: Am 09.03.10 22:33, schrieb Wolfgang Werners-Lucchini: Hallo, if I write $0,8$ the distance between the ',' and the '8' is too big. I can write $0,\!8$ or an other kern, but I don't see how I can write a macro to avoid the extra effort. \setupmathematics[autopunctuation=yes] Thanks! I have always used $0{,}8$ which is not very elegant. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong heights in TABLE
On Wed, Mar 10 2010, Taco Hoekwater wrote: This second example is a broken table specifier when no modes are enabled: it produces and empty row, which is a no-no. Ok, here an even better and smaller example-test-file: \starttext Problem:\blank \bTABLE \bTR \bTH 1. col\eTH \bTH 2. col \eTH \eTR \bTR \bTD 1 row in 1. col \eTD \bTD[nr=2] 2 rows in 2. col \eTD \eTR \bTR \bTD[nr=2] 2 rows in 1. col\eTD \eTR \bTR \bTD[nr=3] 3 rows in 2. col \eTD \eTR \bTR \bTD 1 row in 1. col \eTD \eTR \bTR \bTD 1 row in 1. col \eTD \eTR \eTABLE \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong heights in TABLE
On 10-3-2010 9:05, Taco Hoekwater wrote: Peter Münster wrote: TIA for any hint! Cheers, Peter This second example is a broken table specifier when no modes are enabled: it produces and empty row, which is a no-no. indeed, i played with catching it but it's too much work so that has to wait till i reimplement this mechanism for mkiv 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong heights in TABLE
On 10-3-2010 9:08, Taco Hoekwater wrote: Peter Münster wrote: Where could be the problem? My guess is: when you have a row that somehow consists only of cells with multiple rowspan specifiers, the height of that row is miscalculated. that's indeed the case and finding a solutions is non trivial as it can break other things; i'm playing with it but don't have that much time now 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Transliterator module, 2nd revision
Hi again, the transliteration module has been reworked following sunday's discussion on the list. The table groups now come in separate files and are loaded / created only on demand. The module now provides a \[start|stop]transliterate environment, credits for it go to Wolfgang. The most valuable suggestion came from Thomas: the former substitution functions that were using string.gsub() have been entirely replaced by LPeg, which proves to be surprisingly fast. (Under some circumstances, it is faster than not transliterating at all.) I have opened a bitbucket account in order to not to clutter the mailing list with archives. The tip revision can be found here: http://bitbucket.org/phg/transliterator/get/2fc2b5fbbd46.gz and the precompiled manual over here: http://bitbucket.org/phg/transliterator/downloads/transliterator.pdf Happy TeXing! Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgp7QDe8qiQy1.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] xml content and tweaked pdf output
Hi, very carefully I am trying to make first steps towards XML and ConTeXt (with MkIV). Thus, I have enjoyed reading Thomas' MyWay Getting Web Content and pdf-Output from One Source: I only kept wondering, how to keep control over the pdf-Output in terms of fine-tuning the actual typesetting? A quick search in the archive gave me the answer that is attached below: by using XMLentities. But coming back to Thomas' issue Getting Web Content and pdf-Output from One Source: What about the other branch, getting web content? Doesn't the XML source gets spoiled by these inserted XMLentities that only make sense when following the pdf-Output branch? Or will these XMLentities be silently ignored when feeding the XML source in a CMS system or processing further to web content? Apologies for asking such basic questions... Any help or tips to deal with this hybrid will be greatly appreciated Steffen Am 13.04.2008 um 11:54 schrieb Taco Hoekwater: Thomas A. Schmitz wrote: Hi gang, speaking of xml... I have two easy questions, but can't find an answer. It's about tweaking the pdf-output I get: 1. How do you add an additional hyphenation to a word? How would I enter the equivalent of super\-duper in an xml-file? I tried superaddhyphen;duper with this definition: \defineXMLentity[addhyphen]{\-} in my environment, but this doesn't seem to work. Needs an example file, because \defineXMLentity[addhyphen]{\-} \starttext \hsize 1in \startXMLdata I tried superaddhyphen;duper \stopXMLdata \stoptext works in both mkii and mkiv. 2. Similar question: how to prevent an unwanted ligature, esp. in German? In TeX, I write Kauf{}laden. What would be a good way to do this in xml? I was thinking of Kaufnolig;laden and \defineXMLentity[nolig]{\kern0pt} That should work, but probably better is: \defineXMLentity[nolig]{\prewordbreak\kern0pt\postwordbreak} because the \kern will disable hyphenation, otherwise. In mkii, just \defineXMLentity[nolig]{{}} also works (but not in mkiv, and that is a feature). 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Italic correction is missing.
Hi If you run \starttext \startformula V) V\exists F\exists \stopformula \stoptext the space between V and ) for example is not correct. (luatex .50) MO ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml content and tweaked pdf output
On Mar 10, 2010, at 10:58 AM, Steffen Wolfrum wrote: Hi, very carefully I am trying to make first steps towards XML and ConTeXt (with MkIV). Thus, I have enjoyed reading Thomas' MyWay Getting Web Content and pdf-Output from One Source: I only kept wondering, how to keep control over the pdf-Output in terms of fine-tuning the actual typesetting? A quick search in the archive gave me the answer that is attached below: by using XMLentities. But coming back to Thomas' issue Getting Web Content and pdf-Output from One Source: What about the other branch, getting web content? Doesn't the XML source gets spoiled by these inserted XMLentities that only make sense when following the pdf-Output branch? Or will these XMLentities be silently ignored when feeding the XML source in a CMS system or processing further to web content? Apologies for asking such basic questions... I'm not really that advanced in this area myself, but from what I think I understood, you have to distinguish several aspects: 1. The MyWay addressed xhtml and mapping that to ConTeXt output. In html, you have a list of predefined entities (http://www.w3schools.com/tags/ref_entities.asp) and I don't think that you can simply define your own entities in html - this simply is not the way this is meant to work. So in this case, the answer to your question would be: you're using the wrong tool. 2. In xml, on the other hand, there are almost no predefined entities, you can and must define entities yourself. But xml in itself cannot be shown as web content; you will need a xsl file which translates your xml to some sort of html. This will allow you to define most anything you want, and you can indeed add all these typographical niceties. You can then either use a tool such as xsltproc or saxon to produce a clean html version yourself or you can leave it to the browser. So: if you're primarily thinking of web content that should also be typeset, use html and be aware that you probably won't be able to use all the power of ConTeXt. If you're thinking of content that will be typeset but which you also want to use in other forms (web content being just one of them), use xml. In that case, you will have to learn at least some xslt as well... Btw, the thread you quoted refers to mkii entities, you know that the deinitions in mkiv are somewhat different, right? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Italic correction is missing.
Mehdi Omidali wrote: Hi If you run \starttext \startformula V) V\exists F\exists \stopformula \stoptext the space between V and ) for example is not correct. (luatex .50) The reason why there is no italic correction is because luatex sees a simple list of mathords, and it does not apply italic corrections between those when a 'new math font' is being used. (if it did, operators like sin would come out badly). Instead, it relies on ordinary inter-glyph kerning. I am not at all sure what the best solution for this is, as I have no idea how MS Word differentiates between the formula above and 'multi-letter identifiers'. Perhaps luatex should look at the \catcode of the characters in question? Or perhaps these inter-char kerns actually exist in Cambria? Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml content and tweaked pdf output
On Wed, Mar 10, 2010 at 11:38 AM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: 2. In xml, on the other hand, there are almost no predefined entities, you can and must define entities yourself. But xml in itself cannot be shown as web content; you will need a xsl file which translates your xml to some sort of html. This will allow you to define most anything you want, and you can indeed add all these typographical niceties. You can then either use a tool such as xsltproc or saxon to produce a clean html version yourself or you can leave it to the browser. You can also use css to show a xml http://www.w3schools.com/Xml/xml_display.asp but xslt is the main way. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] clds and nesting
Hi all, how do I get proper nesting with clds? Consider this: --8-- context.placefigure( none, function() context.framed( { frame=on, align=middle }, function() context.input(knuth) end ) end ) context.par() function text () context.framed( { frame=on, align=middle }, function() context.input(knuth) end ) end context.placefigure( none, function () text() end ) --8-- in both cases the text is displayed but framed() doesn't seem to be evaluated. What did I miss? Thanks for any hints, and big thanks to Hans for creating the cld interface. Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpd8quWOfx3p.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Math setups
Hello Wolfgand and other ConTeXties, You are welcome to watch and expand new wiki page http://wiki.contextgarden.net/Math_setups Vyatcheslav \setupmathematics[autopunctuation=yes] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml content and tweaked pdf output
Am 10.03.2010 um 11:38 schrieb Thomas A. Schmitz: On Mar 10, 2010, at 10:58 AM, Steffen Wolfrum wrote: Hi, very carefully I am trying to make first steps towards XML and ConTeXt (with MkIV). Thus, I have enjoyed reading Thomas' MyWay Getting Web Content and pdf-Output from One Source: I only kept wondering, how to keep control over the pdf-Output in terms of fine-tuning the actual typesetting? A quick search in the archive gave me the answer that is attached below: by using XMLentities. But coming back to Thomas' issue Getting Web Content and pdf-Output from One Source: What about the other branch, getting web content? Doesn't the XML source gets spoiled by these inserted XMLentities that only make sense when following the pdf-Output branch? Or will these XMLentities be silently ignored when feeding the XML source in a CMS system or processing further to web content? Apologies for asking such basic questions... I'm not really that advanced in this area myself, but from what I think I understood, you have to distinguish several aspects: 1. The MyWay addressed xhtml and mapping that to ConTeXt output. In html, you have a list of predefined entities (http://www.w3schools.com/tags/ref_entities.asp) and I don't think that you can simply define your own entities in html - this simply is not the way this is meant to work. So in this case, the answer to your question would be: you're using the wrong tool. Sorry for being confused: In your MyWay you talk about xml and show an xhtml example. It seems I mixed this. 2. In xml, on the other hand, there are almost no predefined entities, you can and must define entities yourself. But xml in itself cannot be shown as web content; you will need a xsl file which translates your xml to some sort of html. This will allow you to define most anything you want, and you can indeed add all these typographical niceties. You can then either use a tool such as xsltproc or saxon to produce a clean html version yourself or you can leave it to the browser. Exactly, this is what I meant: Wouldn't those typesetting orientated entities cause problems here? If I follow Luigis link to ... http://www.w3schools.com/Xml/tryxslt.asp?xmlfile=simplexsltfile=simple ... and naively insert the mentioned below entity addhyphen ... two of our famous Belgianaddhyphen;Waffles with plenty of real maple syrup ... the xslt process get's disturbed: XML Parsing Error: undefined entity Location: http://www.w3schools.com/xsl/tryxslt_result.asp Line Number 7, Column 41: So: if you're primarily thinking of web content that should also be typeset, use html and be aware that you probably won't be able to use all the power of ConTeXt. If you're thinking of content that will be typeset but which you also want to use in other forms (web content being just one of them), use xml. In that case, you will have to learn at least some xslt as well... Btw, the thread you quoted refers to mkii entities, you know that the deinitions in mkiv are somewhat different, right? When reading Taco's reply to that thread ... Needs an example file, because \defineXMLentity[addhyphen]{\-} \starttext \hsize 1in \startXMLdata I tried superaddhyphen;duper \stopXMLdata \stoptext works in both mkii and mkiv. ... I assumed it's the same in mkii and mkiv? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setups
2010/3/10 Vyatcheslav Yatskovsky yatskov...@gmail.com: Hello Wolfgand and other ConTeXties, You are welcome to watch and expand new wiki page http://wiki.contextgarden.net/Math_setups Vyatcheslav \setupmathematics[autopunctuation=yes] It would be cool if this macro could also allow changing maths font between sans and serif. Regards, -- Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] About Thomas Schmitz My Way
Dear Thomas, Many thanks for your My Way about « Getting Web Content and pdf-Output from One Source »: first of all I must say that you are « un grand pédagogue »! Thanks to you, I dared to begin to learn how to use the same file on the web and as a ConTeXt source, and had a look to the manual written by Hans, xml-mkiv.pdf, which is indeed great, like all other manuals written by him. (By the way, without participating to the thread on ConTeXt documentation, when I was reading Hans' manual on xml-mkiv, I noticed that only on my computer there are more than 80 different manuals, ranging from manuals for beginners to high level documentation for experts... For all everyday matters these manuals contain what I, or an ordinary user, may need). Regarding the tutorial you have written, although the typo may be corrected by any cautious reader, I think that, on page 2, lines 5 and 6 of your My Way it should be /body /html I don't know whether the following observation is correct or not: I had to add at the beginning of the file « ourenvironment.tex » which must contain the xml setups, the command \startenvironment ourenvironment and at the end of that file: \stopenvironment before being able to get what you describe. The curious thing is that even when I didn't add \startenvironment ourenvironment but I did add \stopenvironment the xml file was processed by ConTeXt. For beginners like me, I think this should be said clearly somewhere. Also, in order to have a better PDF in your examples, at some point I understood that in order to have appropriate white space between paragraphs and tables one could, or should, add the tag for preformatted text: pre /pre and transform it into \blank by ConTeXt. To this end one has to add the tag pre to \xmlsetup: \xmlsetsetup{\xmldocument}{html|body|h1|h2|p|em|q|b|table|tr|th|td|pre}{xml:*} and then \startxmlsetups xml:pre \xmlflush{#1}\blank[big] \stopxmlsetups to the environment. Finally a qusetion: is there a way to obtain an xml file from a rather simple TeX source, written with ConTeXt commands? Here by simple I mean something which contains text and math formulas, such as a list of problems and exercises. Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml content and tweaked pdf output
On Mar 10, 2010, at 12:49 PM, Steffen Wolfrum wrote: Sorry for being confused: In your MyWay you talk about xml and show an xhtml example. It seems I mixed this. xhtml is a subset of xml, AFAIK. But maybe I should add a paragraph explaining this. Exactly, this is what I meant: Wouldn't those typesetting orientated entities cause problems here? If I follow Luigis link to ... http://www.w3schools.com/Xml/tryxslt.asp?xmlfile=simplexsltfile=simple ... and naively insert the mentioned below entity addhyphen ... two of our famous Belgianaddhyphen;Waffles with plenty of real maple syrup ... the xslt process get's disturbed: XML Parsing Error: undefined entity Location: http://www.w3schools.com/xsl/tryxslt_result.asp Line Number 7, Column 41: Yes, as I said: you have to define your entities, e.g. in the DOCTYPE declaration. That's something I discussed with Hans a few weeks ago: in the case you mention, you would have two different definitions of the entity addhyphen; One in the DOCTYPE, which will be followed by the xslt processor: !ENTITY addhyphen (i.e. do nothing about it) and one in the ConTeXt environment file: \xmlsetentity{addhyphen}{\-} which will add the discretionary hyphen. And that's exactly what you wanted: typographical niceties for pdf output which will not disturb viewing the file on the web. When reading Taco's reply to that thread ... .. ... I assumed it's the same in mkii and mkiv? Rule of thumb: mkii setups use uppercase XML, mkiv uses lowercase xml (Introduction of xml-mkiv.pdf). The main difference between the two is [Hans, is this right? correct me if I'm wrong]: mkii basically uses a streaming model, i.e., it translates one part of the xml file after the other. Reusing nodes and elements that have already been processed is possible, but difficult. mkiv loads the entire xml tree into memory; you can access any element at any time. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] smaller-bigger fontsize
ConTeXt fontsizing has \tx to make the current font style one step smaller, then another \txx does that again. For makeing the size bigger I cannot see anything other than the series \tfa \tfb \tfc \tfd. It would however be nice to also have a similar cumulative effect here. Can there be something like \tsmall available to reduce the font size one step (to a certain minimum, not just \tx\tx = \txx)? And similar \tbig to enlarge the font size one step? It will make the equivalent of HTML's small and big tags easy to implement for typesetting my xml data. Or are there already such things? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] About Thomas Schmitz My Way
Hi Otared, thanks for the feedback and the kind words! On Mar 10, 2010, at 12:54 PM, Otared Kavian wrote: Regarding the tutorial you have written, although the typo may be corrected by any cautious reader, I think that, on page 2, lines 5 and 6 of your My Way it should be /body /html Of course! Thanks for spotting this. I don't know whether the following observation is correct or not: I had to add at the beginning of the file « ourenvironment.tex » which must contain the xml setups, the command \startenvironment ourenvironment and at the end of that file: \stopenvironment before being able to get what you describe. The curious thing is that even when I didn't add \startenvironment ourenvironment but I did add \stopenvironment the xml file was processed by ConTeXt. For beginners like me, I think this should be said clearly somewhere. Really? No, I don't think you need to have this. When I process context --environment=ourenvironment ourfile.xml it gets processed even without the \start \stop pair you describe. Also, in order to have a better PDF in your examples, at some point I understood that in order to have appropriate white space between paragraphs and tables one could, or should, add the tag for preformatted text: pre /pre and transform it into \blank by ConTeXt. To this end one has to add the tag pre to \xmlsetup: \xmlsetsetup{\xmldocument}{html|body|h1|h2|p|em|q|b|table|tr|th|td|pre}{xml:*} and then \startxmlsetups xml:pre \xmlflush{#1}\blank[big] \stopxmlsetups to the environment. Yes, I was bothered by the lack of whitespace too, but I wanted to keep it simple. adding pre would be one way; another way would be to add something like \blank[line]\par at the end of the setup commands. But I wasn't sure what would be more confusing to beginners: the somewhat ugly output or these additions. Finally a qusetion: is there a way to obtain an xml file from a rather simple TeX source, written with ConTeXt commands? Here by simple I mean something which contains text and math formulas, such as a list of problems and exercises. That's a very interesting question. Hans has this intriguing paragraph in the older manual, example.pdf: In ConTEXt we use a strange but charming way to handle this conversion: we simply typeset xml. The typeset document (with lots of angle brackets) is then converted into raw text. A complication is math, but given that you can embed MathML in your document, this can be passed on directly. The question how this can be done has been asked several time on the list, but so far, I haven't seen an answer. Maybe you need to buy Hans lots of beer at the next ConTeXt meeting, and he will finally fess up! Thanks, and best wishes Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibtex problems
Here's where I'm at: 1. I Loaded bibdemo.tex on my machine and ran it. The output looked good. 2. I Interspersed the commands from bibdemo into my document at what I thought were the proper places. That created a bibliography of one item--the one in xampl. 3. I want to create my own database of references to be used in my documents, but have a couple of questions: Q1. Do I create my database by creating MyReferences.tex with my text editor? Q2. Is MyReferences.bbl supposed to be created by \setupbibtex when it appears in a document? Q3. I am confused by the \cite[article-full] command in the example. I thought the specific publication to be cited would be reference by key or some other unique identifier and have no idea how article-full identifies the publication to be cited. I didn't used to be this stupid, but the decades have taken a toll. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey -Original Message- From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Taco Hoekwater Sent: Wednesday, March 10, 2010 2:52 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] bibtex problems Tom wrote: I am now trying to create a bibliography database and have, I think, followed the documentation but to no good result. Myfile.tex contains the following: \setupbibtex[database=myfile] \starttex \startpublication ... \stoppublication \stoptext texexec --once myfile processes myfile then returns no ctx file found and ends with nothing to process What am I missing? It looks like you misunderstood the documentation quite a bit. Perhaps the wiki page helps? http://wiki.contextgarden.net/Bibliography Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] underbar/underbars interchanged?
In the (old) ConTeXT manual one finds for \underbar{} an example giving underlining of its whole argument. In contrast \underbars{} should not underline the spaces, as demonstrated by the example given.However, the actual behaviour seems just the opposite. Or has the role of these macros changed in the meantime? The wording (singular versus plural) indicates to me the opposite of the behaviour shown.By the way, quoting breaks the underline flow!A minimal example:\starttext\underbar{These words are done with \quote{underbar}}\crlf\underbars{These words are done with \quote{underbars}}\crlf\stoptextresult: test.pdf Description: Adobe PDF document ConTeXt ver: 2010.03.02 12:34 MKIV fmt: 2010.3.8 int: english/englishHans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] smaller-bigger fontsize
Am 10.03.10 13:39, schrieb Hans van der Meer: ConTeXt fontsizing has \tx to make the current font style one step smaller, then another \txx does that again. For makeing the size bigger I cannot see anything other than the series \tfa \tfb \tfc \tfd. It would however be nice to also have a similar cumulative effect here. Can there be something like \tsmall available to reduce the font size one step (to a certain minimum, not just \tx\tx = \txx)? And similar \tbig to enlarge the font size one step? It will make the equivalent of HTML's small and big tags easy to implement for typesetting my xml data. Or are there already such things? \startxmlsetups big \bgroup \switchtobodyfont[\the\dimexpr\bodyfontsize+2pt\relax] \xmlflush{#1} \egroup \stopxmlsetups \startxmlsetups small \bgroup \switchtobodyfont[\the\dimexpr\bodyfontsize-2pt\relax] \xmlflush{#1} \egroup \stopxmlsetups 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml content and tweaked pdf output
On 10-3-2010 13:35, Thomas A. Schmitz wrote: The main difference between the two is [Hans, is this right? correct me if I'm wrong]: mkii basically uses a streaming model, i.e., it translates one part of the xml file after the other. Reusing nodes and elements that have already been processed is possible, but difficult. mkiv loads the entire xml tree into memory; you can access any element at any time. indeed - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setups
On Wed, 10 Mar 2010, Vedran Miletić wrote: 2010/3/10 Vyatcheslav Yatskovsky yatskov...@gmail.com: Hello Wolfgand and other ConTeXties, You are welcome to watch and expand new wiki page http://wiki.contextgarden.net/Math_setups Vyatcheslav \setupmathematics[autopunctuation=yes] It would be cool if this macro could also allow changing maths font between sans and serif. That should be doable, just like we change from italic greek to upright greek. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with „kpathsearch510.dl l“
Hello, I'm using contextminimals with win7 64bit. Since a few days i get the following two messages when I try to update or to do a new install of contextminimals. The message (error report) for two times is: pdftex.exe – Einsprungpunkt nicht gefunden Der Prozedureinsprungpunkt „sfseek64“ wurde in der DLL „kpathsearch510.dll“ nicht gefunden. Sorry, I'm not able to translate this. Context (mkiv) is working ; texexec (mkii) is broken. What can I do? Thanks, Helmut helmut.schwertner(at)gmx.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Transliterator module, 2nd revision
Am 10.03.10 10:47, schrieb Philipp Gesang: Hi again, the transliteration module has been reworked following sunday's discussion on the list. The table groups now come in separate files and are loaded / created only on demand. The module now provides a \[start|stop]transliterate environment, credits for it go to Wolfgang. The most valuable suggestion came from Thomas: the former substitution functions that were using string.gsub() have been entirely replaced by LPeg, which proves to be surprisingly fast. (Under some circumstances, it is faster than not transliterating at all.) I have opened a bitbucket account in order to not to clutter the mailing list with archives. The tip revision can be found here: http://bitbucket.org/phg/transliterator/get/2fc2b5fbbd46.gz and the precompiled manual over here: http://bitbucket.org/phg/transliterator/downloads/transliterator.pdf Can you also add the module to the module section [1] on the wiki, for inclusion in the minimals ask Mojca. [1] http://modules.contextgarden.net/ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] smaller-bigger fontsize
Thanks Wolfgang. This works. See below for some refinements I find usefull. On 10 mrt 2010, at 15:40, Wolfgang Schuster wrote: Am 10.03.10 13:39, schrieb Hans van der Meer: ConTeXt fontsizing has \tx to make the current font style one step smaller, then another \txx does that again. For makeing the size bigger I cannot see anything other than the series \tfa \tfb \tfc \tfd. It would however be nice to also have a similar cumulative effect here. Can there be something like \tsmall available to reduce the font size one step (to a certain minimum, not just \tx\tx = \txx)? And similar \tbig to enlarge the font size one step? It will make the equivalent of HTML's small and big tags easy to implement for typesetting my xml data. Or are there already such things? \startxmlsetups big \bgroup \switchtobodyfont[\the\dimexpr\bodyfontsize+2pt\relax] \switchtobodyfont[\the\dimexpr\bodyfontsize+\xmlattdef{#1}{step}{2pt} \relax] \xmlflush{#1} \egroup \stopxmlsetups \startxmlsetups small \bgroup \switchtobodyfont[\the\dimexpr\bodyfontsize-2pt\relax] \scratchdimen=\the\dimexpr\bodyfontsize\relax \advance\scratchdimen-\xmlattdef{#1}{step}{2pt}\relax \ifdim\scratchdimen\xmlattdef{#1}{min}{4pt}\relax\scratchdimen= \xmlattdef{#1}{min}{4pt}\fi \switchtobodyfont[\the\scratchdimen] \xmlflush{#1} \egroup \stopxmlsetups 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with „kpathsearch510.dl l“
On Wed, Mar 10, 2010 at 17:00, Helmut Schwertner wrote: Hello, I'm using contextminimals with win7 64bit. Since a few days i get the following two messages when I try to update or to do a new install of contextminimals. The message (error report) for two times is: pdftex.exe – Einsprungpunkt nicht gefunden Der Prozedureinsprungpunkt „sfseek64“ wurde in der DLL „kpathsearch510.dll“ nicht gefunden. Sorry, I'm not able to translate this. Context (mkiv) is working ; texexec (mkii) is broken. What can I do? I need to ask Akira - I suspect that there are two incompatible versions of the library with the same name. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] smaller-bigger fontsize
Am 10.03.10 17:10, schrieb Hans van der Meer: \scratchdimen=\the\dimexpr\bodyfontsize\relax \advance\scratchdimen-\xmlattdef{#1}{step}{2pt}\relax \ifdim\scratchdimen\xmlattdef{#1}{min}{4pt}\relax\scratchdimen=\xmlattdef{#1}{min}{4pt}\fi \scratchdimen\ifdim\bodyfontsize\xmlattdef{#1}{min}{4pt}\relax \xmlattdef{#1}{min}{4pt} \else \bodyfontsize-\xmlattdef{#1}{step}{2pt} \fi \switchtobodyfont[\the\scratchdimen] or \switchtobodyfont [\the\dimexpr\ifdim\bodyfontsize\xmlattdef{#1}{min}{4pt}\relax \xmlattdef{#1}{min}{4pt} \else \bodyfontsize-\xmlattdef{#1}{step}{2pt} \fi\relax] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibtex problems
On Wed, Mar 10, 2010 at 10:02 AM, Tom t...@tuxedo-press.com wrote: Here's where I'm at: 1. I Loaded bibdemo.tex on my machine and ran it. The output looked good. 2. I Interspersed the commands from bibdemo into my document at what I thought were the proper places. That created a bibliography of one item--the one in xampl. 3. I want to create my own database of references to be used in my documents, but have a couple of questions: Tom, I have more experience with LaTeX than with ConTeXt as related to bibliographies, so take my answers with the usual grain of salt :) Q1. Do I create my database by creating MyReferences.tex with my text editor? You can certainly use a text editor. I personally use Jabref (a Java GUI application, check http://jabref.sf.net), as it simplifies my life quite a bit (fills in records from online databases such as PubMed, CiteSeer, etc. so I don't have to type at all!) I'm used to name the bibtex bibliography files ending in .bib, as that is what the LaTeX packages would expect ... don't know about ConTeXt, but in this thread and in the wiki, someone mentioned using the xampl.bib file that comes with the texlive distribution ... so probably ConTeXt will use it without asking. Q2. Is MyReferences.bbl supposed to be created by \setupbibtex when it appears in a document? At least in LaTeX, the .bbl file is generated after processing the \cite commands within the main .tex file. Q3. I am confused by the \cite[article-full] command in the example. I thought the specific publication to be cited would be reference by key or some other unique identifier and have no idea how article-full identifies the publication to be cited. 'article-full' _is_ the key or unique identifier for the corresponding article in the xampl.bib file. In my texlive distribution (Ubuntu) it is located in /usr/share/texmf-texlive/bibtex/bib/base/xampl.bib This is the corresponding entry: @ARTICLE{article-full, author = {L[eslie] A. Aamport}, title = {The Gnats and Gnus Document Preparation System}, journal = {\mbox{G-Animal's} Journal}, year = 1986, volume = 41, number = 7, pages = 73+, month = jul, note = This is a full ARTICLE entry, } At your unix shell prompt, typing 'locate xampl.bib' would probably reveal the location in your system. I didn't used to be this stupid, but the decades have taken a toll. Tom Benjey Don't worry we're here to help! -- fernan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with mp-form.mp while updating minimals
On Wed, Mar 10, 2010 at 12:25 AM, luigi scarso luigi.sca...@gmail.com wrote: On Tue, Mar 9, 2010 at 4:06 PM, Jelle Huisman je...@jhnet.nl wrote: Hi all, I'm updating my ConTeXt (minimals) installation (on Linux-64) and get this error: (/home/jelle/context/tex/texmf-context/metapost/context/base/mp-form.mp ! I can't find file `string'. l.81 input string Please type another input file name: Eventually I did Ctrl-C, but both ConTeXt and MetaPost seem to work, so... (I also installed the minimals from scratch, but get the same error.) Here too the same problem with last minimals: (/opt/luatex/minimals-beta-felltypes/tex/texmf-context/metapost/context/base/mp-form.mp ! I can't find file `string'. l.81 input string and ! I can't find file `plain.tex'. l.134 \normalinput plain.tex \let\normalfmtversion\fmtversion After source setuptex, I have done $ luatools --generate $ context --make and all seems ok -- luigi but today (2010-03-10) minimals seems already ok -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with mp-form.mp while updating minimals
On 10/03/2010 16:46, luigi scarso wrote: but today (2010-03-10) minimals seems already ok Same here. Jelle ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] About Thomas Schmitz My Way
On 10-3-2010 13:50, Thomas A. Schmitz wrote: That's a very interesting question. Hans has this intriguing paragraph in the older manual, example.pdf: In ConTEXt we use a strange but charming way to handle this conversion: we simply typeset xml. The typeset document (with lots of angle brackets) is then converted into raw text. A complication is math, but given that you can embed MathML in your document, this can be passed on directly. The question how this can be done has been asked several time on the list, but so far, I haven't seen an answer. Maybe you need to buy Hans lots of beer at the next ConTeXt meeting, and he will finally fess up! \def\chapter#1{\parh1#1/h1\par} \def\bTABLE{\partable\crlf} \def\eTABLE{/table\par} \def\bTR{tr} \def\eTR{/tr\crlf} \def\bTD{td} \def\eTD{/td} \prependtoks htmlbody\to\everystarttext \prependtoks/bodyhtml\to\everystoptext \setupwhitespace[line] \setuplayout[page] \setupbodyfont [tt] % 1pt \starttext \chapter{First} \input tufte \chapter{Second} \input tufte \bTABLE \bTR \bTD test \eTD \eTR \eTABLE \stoptext and then pdftotext on the result but it's sort of a joke (some day i will cook up a nice mkiv variant which does not demand redefinitions) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] About Thomas Schmitz My Way
On Wed, 10 Mar 2010 18:21:13 +0100 Hans Hagen pra...@wxs.nl scribit: [...] \prependtoks htmlbody\to\everystarttext \prependtoks/bodyhtml\to\everystoptext \prependtoks/body/html\to\everystoptext \setupwhitespace[line] [...] (some day i will cook up a nice mkiv variant which does not demand redefinitions) Hans Hm, I did not follow the thread. Where can I read My Way ... - I am interested in Context - HTML | PDF. - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong heights in TABLE
On 10-3-2010 9:32, Peter Münster wrote: On Wed, Mar 10 2010, Taco Hoekwater wrote: This second example is a broken table specifier when no modes are enabled: it produces and empty row, which is a no-no. Ok, here an even better and smaller example-test-file: \starttext Problem:\blank \bTABLE \bTR \bTH 1. col\eTH \bTH 2. col \eTH \eTR \bTR \bTD 1 row in 1. col \eTD \bTD[nr=2] 2 rows in 2. col \eTD \eTR \bTR \bTD[nr=2] 2 rows in 1. col\eTD \eTR \bTR \bTD[nr=3] 3 rows in 2. col \eTD \eTR \bTR \bTD 1 row in 1. col \eTD \eTR \bTR \bTD 1 row in 1. col \eTD \eTR \eTABLE \stoptext actually it's a feature ... took me a while to figure out that there is a check that takes care of it so, i will not change the code but provide a flag (to be used at your own risk) test: \starttext \startbuffer \bTABLE \bTR[height=20pt] \bTH 1. col\eTH \bTH 2. col \eTH \eTR \bTR[height=20pt] \bTD 1 row in 1. col \eTD \bTD[nr=2] 2 rows in 2. col \eTD \eTR \bTR[height=20pt] \bTD[nr=2] 2 rows in 1. col\eTD \eTR \bTR[height=20pt] \bTD[nr=3] 3 rows in 2. col \eTD \eTR \bTR[height=20pt] \bTD 1 row in 1. col \eTD \eTR \bTR[height=20pt] \bTD 1 row in 1. col \eTD \eTR \eTABLE \bTABLE \bTR[height=20pt] \bTH 2. col \eTH \bTH 1. col \eTH \eTR \bTR[height=20pt] \bTD[nr=2] 2 rows in 2. col \eTD \bTD 1 row in 1. col \eTD \eTR \bTR[height=20pt] \bTD[nr=2] 2 rows in 1. col\eTD \eTR \bTR[height=20pt] \bTD[nr=3] 3 rows in 2. col \eTD \eTR \bTR[height=20pt] \bTD 1 row in 1. col \eTD \eTR \bTR[height=20pt] \bTD 1 row in 1. col \eTD \eTR \eTABLE \stopbuffer \start \getbuffer \tightTBLrowspanfalse \getbuffer \stop \stoptext will be in next beta - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dezimalkomma
On 10-3-2010 9:28, Alan BRASLAU wrote: On Wednesday 10 March 2010 06:28:52 Wolfgang Schuster wrote: Am 09.03.10 22:33, schrieb Wolfgang Werners-Lucchini: Hallo, if I write $0,8$ the distance between the ',' and the '8' is too big. I can write $0,\!8$ or an other kern, but I don't see how I can write a macro to avoid the extra effort. nasty error prone catcode changes is an alternative \setupmathematics[autopunctuation=yes] Thanks! I have always used $0{,}8$ which is not very elegant. indeed, and as we often need coordinates in schoolbook math the automatic features is there now (there will and can be more such math goodies so don't hesitate to collect them) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setups
On 10-3-2010 12:51, Vedran Miletić wrote: 2010/3/10 Vyatcheslav Yatskovskyyatskov...@gmail.com: Hello Wolfgand and other ConTeXties, You are welcome to watch and expand new wiki page http://wiki.contextgarden.net/Math_setups Vyatcheslav \setupmathematics[autopunctuation=yes] It would be cool if this macro could also allow changing maths font between sans and serif. why is that needed? some field of math? - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] About Thomas Schmitz My Way
On Wed, Mar 10, 2010 at 2:36 PM, R. Bastian rbast...@free.fr wrote: Hm, I did not follow the thread. Where can I read My Way ... - I am interested in Context - HTML | PDF. http://dl.contextgarden.net/myway/tas/xhtml.pdf -- fernan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math setups
Datuma 10. ožujka 2010. 18:59 Hans Hagen pra...@wxs.nl je napisao/la: why is that needed? some field of math? It would improve simpleslides a lot. -- Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dezimalkomma
Dnia Wed, Mar 10, 2010 at 06:56:32PM +0100, Hans Hagen napisa#322;(a): (there will and can be more such math goodies so don't hesitate to collect them) Hans I wrote about it some time ago, but I have deleted that email, so here is the thing again. In the Polish typesetting package for LaTeX, there are defined a few commands like \tg and \ctg, since in Poland we write tg and not tan, and ctg and not cot. (There are also a few more commands, like \arcssin generating arc\,sin etc. according to Polish customs.) I know that this is controversial, but it would be nice to have a switch so that \tan also produces tg etc. The reason behind it is that if we treat TeX as a markup language and not a typesetting one (as is often the case with mathematical formulae), we want to be able to adapt to local typesetting traditions without changing the code. Also, cutting and pasting formulae between Polish and English texts (and I need it from time to time, for example) would be easier that way. I agree that this need not be the default, but having it as an option would be handy (although not really indispensable). Would such a switch be possible (without too much work, of course)? And BTW: Hans, your post in the topic about docs for ConTeXt was *very* interesting. I am going to put the link to this thread in the archive onto my personal blog. Regards -- Marcin Borkowski (http://mbork.pl) Stłumiony głos w końcu wypowie słowo prawdy - otworzą się usta! Prawda - choćby zdeptana - zawsze pozostanie prawdą! Żadna przemoc, chamstwo, kłamstwo nie uczynią z niej ofiary! (Izaiash) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] underbar/underbars interchanged?
On 10-3-2010 14:39, Hans van der Meer wrote: In the (old) ConTeXT manual one finds for \underbar{} an example giving underlining of its whole argument. In contrast \underbars{} should not underline the spaces, as demonstrated by the example given. However, the actual behaviour seems just the opposite. Or has the role of these macros changed in the meantime? The wording (singular versus plural) indicates to me the opposite of the behaviour shown. By the way, quoting breaks the underline flow! A minimal example: \starttext \underbar{These words are done with \quote{underbar}}\crlf \underbars{These words are done with \quote{underbars}}\crlf \stoptext will be fixed in next beta - 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] clds and nesting
On 10-3-2010 11:50, Philipp Gesang wrote: Hi all, how do I get proper nesting with clds? Consider this: --8-- context.placefigure( none, function() context.framed( { frame=on, align=middle }, function() context.input(knuth) end ) end ) context.par() function text () context.framed( { frame=on, align=middle }, function() context.input(knuth) end ) end context.placefigure( none, function () text() end ) --8-- in both cases the text is displayed but framed() doesn't seem to be evaluated. What did I miss? Thanks for any hints, and big thanks to Hans for creating the cld interface. I changed the implementation so that nesting is better supported ... can you test the beta? (I probably need to fix some other things now) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Transliterator module, 2nd revision
On Wed, Mar 10, 2010 at 17:01, Wolfgang Schuster wrote: Am 10.03.10 10:47, schrieb Philipp Gesang: I have opened a bitbucket account in order to not to clutter the mailing list with archives. The tip revision can be found here: http://bitbucket.org/phg/transliterator/get/2fc2b5fbbd46.gz and the precompiled manual over here: http://bitbucket.org/phg/transliterator/downloads/transliterator.pdf Can you also add the module to the module section [1] on the wiki, We urgently need to have some git server or something similar on the garden for modules. Maybe SVN would also do for a while. The current approach is very clumsy to use. for inclusion in the minimals ask Mojca. Once it's added to the modules of course. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dezimalkomma
On 10-3-2010 21:43, Marcin Borkowski wrote: Dnia Wed, Mar 10, 2010 at 06:56:32PM +0100, Hans Hagen napisa#322;(a): (there will and can be more such math goodies so don't hesitate to collect them) Hans I wrote about it some time ago, but I have deleted that email, so here is the thing again. In the Polish typesetting package for LaTeX, there are defined a few commands like \tg and \ctg, since in Poland we write tg and not tan, and ctg and not cot. (There are also a few more commands, like \arcssin generating arc\,sin etc. according to Polish customs.) I know that this is controversial, but it would be nice to have a switch so that \tan also produces tg etc. The reason behind it is that if we treat TeX as a markup language and not a typesetting one (as is often the case with mathematical formulae), we want to be able to adapt to local typesetting traditions without changing the code. Also, cutting and pasting formulae between Polish and English texts (and I need it from time to time, for example) would be easier that way. I agree that this need not be the default, but having it as an option would be handy (although not really indispensable). Would such a switch be possible (without too much work, of course)? some things are easy (and can be written in parallel to watching a movie) ... in the beta ... \starttext $\tan{x} + \cos{x}$ \mainlanguage[pl] $\tan{x} + \cos{x}$ \mainlanguage[nl] $\tan{x} + \cos{x}$ \stoptext currently no special switch for math so it goes with mainlanguage (but one can overload \mathlabellanguage) see math-lan.mkiv ... up to you (and others) to complete it 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dezimalkomma
On Wed, 10 Mar 2010, Hans Hagen wrote: On 10-3-2010 21:43, Marcin Borkowski wrote: Dnia Wed, Mar 10, 2010 at 06:56:32PM +0100, Hans Hagen napisa#322;(a): (there will and can be more such math goodies so don't hesitate to collect them) Hans I wrote about it some time ago, but I have deleted that email, so here is the thing again. In the Polish typesetting package for LaTeX, there are defined a few commands like \tg and \ctg, since in Poland we write tg and not tan, and ctg and not cot. (There are also a few more commands, like \arcssin generating arc\,sin etc. according to Polish customs.) I know that this is controversial, but it would be nice to have a switch so that \tan also produces tg etc. The reason behind it is that if we treat TeX as a markup language and not a typesetting one (as is often the case with mathematical formulae), we want to be able to adapt to local typesetting traditions without changing the code. Also, cutting and pasting formulae between Polish and English texts (and I need it from time to time, for example) would be easier that way. I agree that this need not be the default, but having it as an option would be handy (although not really indispensable). Would such a switch be possible (without too much work, of course)? some things are easy (and can be written in parallel to watching a movie) ... in the beta ... \starttext $\tan{x} + \cos{x}$ \mainlanguage[pl] $\tan{x} + \cos{x}$ \mainlanguage[nl] $\tan{x} + \cos{x}$ \stoptext currently no special switch for math so it goes with mainlanguage (but one can overload \mathlabellanguage) Is there some sort of a standard for the abbreviations of such functions? Does the standard just depend on your main language, or does it also depend on a particular field? Depending on that, we should either switch the labels based on the main language, or using a \setupmathematics switch. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dezimalkomma
On 11 mars 2010, at 01:23, Aditya Mahajan wrote: […] Is there some sort of a standard for the abbreviations of such functions? Does the standard just depend on your main language, or does it also depend on a particular field? Depending on that, we should either switch the labels based on the main language, or using a \setupmathematics switch. Aditya Hi, The matter of abbreviations for mathematical functions depends on countries, or maybe on languages: in French, somewhat like in Polish, the trigonometric functions tangent, cotangent are denoted as \tg, \cotg, and \arcsin is printed rather as arc{\,}sin. So the solution pointed out by Hans works fine (it is something like \quote{} which yields different quotation marks depending on how \mainlanguage[] is set). I just tested the example given by Hans with the latest beta… (indeed only in mkiv, since mkii is frozen). Eventually maybe the best solution would be to have \setupmathematics[mainlanguage=pl] Best regards: OK___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mtxrun.lua:2167: stack overflow
Hi all, I use ConTeXt MkIV version: 2010.03.10 23:47 withTeXworks,it doesn't work. the error message:E:\context\tex\texmf-mswin\bin\mtxrun.lua:2167: stack overflow tools configuration: name=ConTeXt MkIV program=mtxrun arguments=--autogenerate, --script, context, $synctexoption, $fullname showPdf=true ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with lilypond module
Hi Mojca, Christopher, Hraban, Wolfgang, since a couple of days the lilypond module doesn't work anymore. Testfile: \usemodule[lilypond] \starttext There are some notes \lower 8.2pt\hbox{\lilypond[fragment=true]{\relative c' {c d e fis}}} embedded in this line. \stoptext Context creates a file 1 with 0 Byte and a file lilypond-1 in the current directory. In the log i find: !LilyPond ERROR : File 'lily1-lilypond-1.tmp' was not written! Processing file lilypond-1 directly with lilypond works. Greetings Lutz ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] stack overflow
Thank you, Taco. I'm still going over the font docs. Today: \starttext test \stoptext results in: mtxrun.lua:2167: stack overflow It worked yesterday. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] RCS/git server (was: Transliterator module, 2nd revision)
Am 2010-03-10 um 23:09 schrieb Mojca Miklavec: On Wed, Mar 10, 2010 at 17:01, Wolfgang Schuster wrote: Am 10.03.10 10:47, schrieb Philipp Gesang: I have opened a bitbucket account in order to not to clutter the mailing list with archives. The tip revision can be found here: http://bitbucket.org/phg/transliterator/get/2fc2b5fbbd46.gz and the precompiled manual over here: http://bitbucket.org/phg/transliterator/downloads/transliterator.pdf Can you also add the module to the module section [1] on the wiki, We urgently need to have some git server or something similar on the garden for modules. Maybe SVN would also do for a while. The current approach is very clumsy to use. see http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#public-repositories If the web server running supports WebDAV, we could use that: http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt Otherwise you'd need to run git daemon (usually on port 9418): http://www.kernel.org/pub/software/scm/git/docs/git-daemon.html For my non-public projects I just access the repos on my webserver via ssh, but that wouldn't be enough for ConTeXt modules - or perhaps it would, if everyone gets his/her own user account and you/Patrick can link that into the module store. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___