[NTG-context] Custom function
Hello, I'm rather new to ConTeXt and would like to simplify my document, in order to simplify processing of documents. I have this: \defineparagraphs[infos][n=1] \setupparagraphs[infos][1][ style={\switchtobodyfont[6pt]}, %command=, ] \starttext \startinfos \smash{\lower22pt\hbox{ \margintext[left]{ Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonka }}} \stopinfos \input tufte \stoptext I would like to avoid putting \inmargin and \smash{\lower22pt\hbox{... by hand and add it directly to the setupparagraphs. Can I do such a thing? Thanks for help! Stéphanie -- stdin Stéphanie Vilayphiou http://stdin.fr/ +32 (0)4 89 00 88 59 ___ 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] entity-relation diagram
2011/6/4 Cecil Westerhof cldwester...@gmail.com: Is it possible to make an entity-relation diagram with ConTeXt, or can I better look for another tool? -- Cecil Westerhof MetaPost has expressg package (not sure if it works with ConTeXt), and there is also TikZ-based solution: http://www.texample.net/tikz/examples/entity-relationship-diagram/ Vedran ___ 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] testing TeX Live 2011
Hello, apart from a pending fix for TeX Live installer (shell script install-tl) which writes out a proper texmfcnf.lua based on what user enters as his/her preferences for locations of TEXMFHOME etc. (if you don't touch any settings, this is not too important and if you do, you can manually fix the file) and some yet-to-be-made decision about when to run 'mtxrun --generate (which you can also ignore and simply run mtxrun --generate by hand), ConTeXt in TeX Live 2011 should work now, thanks to all the effort that Taco in particular has put into this. If anyone is willing to help to work on man pages, please feel free to volunteer (context man page has already been committed, mtxrun not, but both of them need more input). The following is the list of modules. If you miss any, it is now the best time to ask. (TikZ is also there; I need to test it, but it should work.) depend context-account depend context-algorithmic depend context-bnf depend context-chromato depend context-construction-plan depend context-degrade depend context-filter depend context-fixme depend context-french depend context-fullpage depend context-games depend context-gnuplot depend context-letter depend context-lettrine depend context-lilypond depend context-mathsets depend context-notes-zh-cn depend context-rst depend context-ruby depend context-simplefonts depend context-simpleslides depend context-top-ten depend context-typearea depend context-typescripts depend context-vim 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] Custom function
Am 03.06.2011 um 16:50 schrieb Stéphanie Vilayphiou: Hello, I'm rather new to ConTeXt and would like to simplify my document, in order to simplify processing of documents. I have this: \defineparagraphs[infos][n=1] \setupparagraphs[infos][1][ style={\switchtobodyfont[6pt]}, %command=, ] \starttext \startinfos \smash{\lower22pt\hbox{ \margintext[left]{ Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonka }}} \stopinfos \input tufte \stoptext I would like to avoid putting \inmargin and \smash{\lower22pt\hbox{... by hand and add it directly to the setupparagraphs. Can I do such a thing? \definedescription [infos] [location=margin, command=\groupedcommand{\switchtobodyfont[6pt]}{\endgraf}] \starttext \startinfos{Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonka} \input tufte \stopinfos \stoptext 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] testing TeX Live 2011
Hi, For those of you who are not 'in the loop', so to say: instructions for running the texlive 2011 pretest are here: http://tug.org/texlive/pretest.html 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] DocBook in ConTeXt - any new ideas?
Op 3 jun 2011, om 18:28 heeft Hans Hagen het volgende geschreven: On 3-6-2011 5:43, R. Ermers wrote: I tried typesetting docbook with Context, it can be done, I but got stuck on the cals tables and some other things. Cals tables can be processed, albeit as separate documents only - not as part of the docbook file - and then imported as pdf files. This was too cumbersome for me, and does not agree with the tex philosophy. I therefore gave up. we process docs with cals tables here Yes, you surely do. Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. With help from Aditya I managed to typeset a document which contains merely a cals table. I then thought this was going to be the first step to processing my xml file which contains a number of tables. But alas ... The tables in my document were skipped like any other unknown xml tag. I must have done something wrong. But what? There were no replies to my postings. In the end I felt silly for daring to posing a problem other people apparently had no problems with whatsoever. So, if you should embark on this track, be aware that typesetting xml is more complicated than a ConTeXt document, that the knowledge about it is not widespread yet, that you rely on the happy few who do know, and it may take a lot of time to find out things yourself. Robert For some reason finetuning of, for example, the positioning of graphics, and headers as widows is more difficult than in a context document, at least I got this impression. the same renderer is used so it should be the same Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 ___ ___ 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] undefined control sequence bug with German umlaut in bibliography
Thank you everybody for your answers. Writing Tr{\a}ger as Thomas suggested works well, but unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it encodes the special characters. @Mojca: Indeed, it also fails if I just write Träger in UTF-8 encoding (however, Schräger works just fine. All combinations where the ä is at the third place of the word seem to fail.). The error message is similar but slightly different now. The log file shows the following: --- system begin file test.tex at line 3 publications loading database from test.bbl (test.bbl ! String contains an invalid utf-8 sequence. l.1 \setuppublicationlist[samplesize={Tr Ã06},totalnumber=1] A funny symbol that I can't read has just been (re)read. Just continue, I'll change it to 0xFFFD. ! String contains an invalid utf-8 sequence. l.5 n=1,s=Tr Ã06] A funny symbol that I can't read has just been (re)read. Just continue, I'll change it to 0xFFFD. ! String contains an invalid utf-8 sequence. \doifassignmentelse ...gnmentelse \detokenize {#1} =@@\@end@ \expandafter \se... \dostartpublication ... -\doifassignmentelse {#1} {\getparameters [\??pb ][k... l.9 \stoppublication A funny symbol that I can't read has just been (re)read. Just continue, I'll change it to 0xFFFD. ) --- Julian 2011/6/4 Pontus Lurcock p...@talvi.net On Fri 03 Jun 2011, Thomas A. Schmitz wrote: But I admit it's not easy to know that, bibtex documentation is a real mess Patience please! ‘This document will be expanded when BibTEX version 1.00 comes out’ -- BIBTEXing, February 8, 1988. :-) Pont ___ 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 ___ -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. ___ 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] testing TeX Live 2011
2011/6/4 Taco Hoekwater t...@elvenkind.com: Hi, For those of you who are not 'in the loop', so to say: instructions for running the texlive 2011 pretest are here: http://tug.org/texlive/pretest.html Best wishes, Taco Awesome. Vedran ___ 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] DocBook in ConTeXt - any new ideas?
On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup With help from Aditya I managed to typeset a document which contains merely a cals table. I then thought this was going to be the first step to processing my xml file which contains a number of tables. But alas The tables in my document were skipped like any other unknown xml tag. I must have done something wrong. But what? There were no replies to my postings. In the end I felt silly for daring to posing a problem other people apparently had no problems with whatsoever. well, providing solutions for specific user cases depends on available time etc ... even making a simple example ... So, if you should embark on this track, be aware that typesetting xml is more complicated than a ConTeXt document, that the knowledge about it is not widespread yet, that you rely on the happy few who do know, and it may take a lot of time to find out things yourself. sure, and eventually it will be covered by manuals (or test files in the test suite -- actually there are some xml ones in there) ... there's only so much you can expect for a free system so some patience is needed ps. although a lot of help can be gotten from this list, the wiki etc, users who want to do complex things (or workflows) cannot expect all their problems to be solved here as we all have jobs to fulfill ... it might help to make wiki pages and let others fill in the gaps Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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] undefined control sequence bug with German umlaut in bibliography
I can also add that in the first case with the author name Träger, the generated bbl-file looks messed up and (Notepad++ doesn't recognize the encoding as UTF8. Changing the encoding to UTF8 manually shows the complete names Träger correctly, but the abbreviations (what should have been Trä06) seem to be messed up. I'm not familiar with the intricacies and details of UTF8 encoding, but is it possible that there is a byte missing from the ä which has been cut off during the abbreviation process? The abbreviated Trä06 seems to be incorrectly encoded (in hexadecimal) as: 54 C3 A4 30 36, while it should be: 54 72 C3 A4 30 36. So in the abbreviation process, the encoding of some characters over several bytes seems to be neglected. I attached the bbl-files for both cases to this e-mail, since I don't know, what would happen to the encoding, if I just pasted them as plain text here. Julian 2011/6/4 Julian Becker becker.jul...@gmail.com Thank you everybody for your answers. Writing Tr{\a}ger as Thomas suggested works well, but unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it encodes the special characters. @Mojca: Indeed, it also fails if I just write Träger in UTF-8 encoding (however, Schräger works just fine. All combinations where the ä is at the third place of the word seem to fail.). The error message is similar but slightly different now. The log file shows the following: --- system begin file test.tex at line 3 publications loading database from test.bbl (test.bbl ! String contains an invalid utf-8 sequence. l.1 \setuppublicationlist[samplesize={Tr Ã06},totalnumber=1] A funny symbol that I can't read has just been (re)read. Just continue, I'll change it to 0xFFFD. ! String contains an invalid utf-8 sequence. l.5 n=1,s=Tr Ã06] A funny symbol that I can't read has just been (re)read. Just continue, I'll change it to 0xFFFD. ! String contains an invalid utf-8 sequence. \doifassignmentelse ...gnmentelse \detokenize {#1} =@@\@end@ \expandafter \se... \dostartpublication ... -\doifassignmentelse {#1} {\getparameters [\??pb ][k... l.9 \stoppublication A funny symbol that I can't read has just been (re)read. Just continue, I'll change it to 0xFFFD. ) --- Julian 2011/6/4 Pontus Lurcock p...@talvi.net On Fri 03 Jun 2011, Thomas A. Schmitz wrote: But I admit it's not easy to know that, bibtex documentation is a real mess Patience please! ‘This document will be expanded when BibTEX version 1.00 comes out’ -- BIBTEXing, February 8, 1988. :-) Pont ___ 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 ___ -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. testA.bbl Description: Binary data testB.bbl Description: Binary data ___ 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] undefined control sequence bug with German umlaut in bibliography
On 06/04/2011 11:23 AM, Julian Becker wrote: Thank you everybody for your answers. Writing Tr{\a}ger as Thomas suggested works well, but unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it encodes the special characters. Find a different program, then. Bibtex does *not* deal with UTF-8 correctly, period. (complaints to Oren Patashnik please ;)) 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] DocBook in ConTeXt - any new ideas?
Op 4 jun 2011, om 11:06 heeft Hans Hagen het volgende geschreven: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup With help from Aditya I managed to typeset a document which contains merely a cals table. I then thought this was going to be the first step to processing my xml file which contains a number of tables. But alas The tables in my document were skipped like any other unknown xml tag. I must have done something wrong. But what? There were no replies to my postings. In the end I felt silly for daring to posing a problem other people apparently had no problems with whatsoever. well, providing solutions for specific user cases depends on available time etc ... even making a simple example ... So, if you should embark on this track, be aware that typesetting xml is more complicated than a ConTeXt document, that the knowledge about it is not widespread yet, that you rely on the happy few who do know, and it may take a lot of time to find out things yourself. sure, and eventually it will be covered by manuals (or test files in the test suite -- actually there are some xml ones in there) ... there's only so much you can expect for a free system so some patience is needed ps. although a lot of help can be gotten from this list, the wiki etc, users who want to do complex things (or workflows) cannot expect all their problems to be solved here as we all have jobs to fulfill ... it might help to make wiki pages and let others fill in the gaps Of course, I agree that typesetting a xml docbook in itself is a complex matter. And yes, I read every single letter of the complex xml manuals. I also agree that people no doubt have many other things to do, including myself. Anybody working with Context and TeX must bear in mind that his problems will not be solved immediately, that knowledgeable people will voluntarily look into questions and problems, depending on their time and their interest in specific problems. However, on the other hand since docbook is a very well known and therefore attractive standard, and most problems in xml can be described quite straightforward. As a result the problem of typesetting cals tables cannot be depicted as a 'specific user case'. After all, there is a module cals tables, and it is expected to work. The problem was: how can I typeset a cals table with a minimal installation? Comparable to: how do I typeset a header? What settings are needed apart from the module? This should not be a 'complex' problem. My conclusion remains that the knowledge on xml is not widespread, that those who possess the knowledge do not always have time to help, and as a result my problem was not solved. For the record: note that my problem was not of the type: how to discard the nth line of a cals table? How to color the header of a cals table? Or how to only typeset cals tables with id=abc. Robert - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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] undefined control sequence bug with German umlaut in bibliography
On Sat 04 Jun 2011, Julian Becker wrote: I'm not familiar with the intricacies and details of UTF8 encoding, but is it possible that there is a byte missing from the ä which has been cut off during the abbreviation process? Well, there *is* more than one way to represent ä in UTF-8, but it's my understanding that anything beyond ASCII is simply not supported by BibTeX. You can get away with it in fields that just get pasted verbatim into the output (usually), but the first three letters of the first author's name are used to construct the key (which is why ‘Schräger’ worked) so there's no way around using the officially sanctioned {\a} form. unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it encodes the special characters. This is one reason why I still use plain emacs as a bibliography manager -- sooner or later you need a hack, and that's harder when the raw BibTeX is hidden or generated. In this case you may need to put the hack between Mendeley and BibTeX: pipe the file through ‘sed -e 's/ä/{\\a}/g'’ or something similar. And/or ask in the Mendeley support forums, since this is a fairly well-known BibTeX ‘feature’ so perhaps someone else has had to deal with it there. Hope this helps, Pont ___ 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] marginal material in Arabic, tei/xml context mkiv
On 4-6-2011 1:41, Jon Crump wrote: \def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT} \def\ArabicParDir{\textdir TRT\pardir TRT} \def\ArabicTextDir {\textdir TRT} \def\LatinParDir {\textdir TLT\pardir TLT} \def\LatinTextDir{\textdir TLT} \def\LatinGlobalDir {\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT} Start by staying away from pagedir and bodydir (I thought that I'd disabled them). Also consider using \setupalign[r2l] (and \lefttoright etc). We're working on a proper directional layout model but it take while (maybe Idris can comment on that). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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] undefined control sequence bug with German umlaut in bibliography
I think I'll go for the piping option then, which seems to be the easiest way out. Thanks for the insights, I didn't actually know much about the interplay of context and bibtex until this little problem occured to me... Julian 2011/6/4 Pontus Lurcock p...@talvi.net On Sat 04 Jun 2011, Julian Becker wrote: I'm not familiar with the intricacies and details of UTF8 encoding, but is it possible that there is a byte missing from the ä which has been cut off during the abbreviation process? Well, there *is* more than one way to represent ä in UTF-8, but it's my understanding that anything beyond ASCII is simply not supported by BibTeX. You can get away with it in fields that just get pasted verbatim into the output (usually), but the first three letters of the first author's name are used to construct the key (which is why ‘Schräger’ worked) so there's no way around using the officially sanctioned {\a} form. unfortunately, I'm using Mendeley Desktop for the management of my bibtex file and I can't seem to be able to influence the way in which it encodes the special characters. This is one reason why I still use plain emacs as a bibliography manager -- sooner or later you need a hack, and that's harder when the raw BibTeX is hidden or generated. In this case you may need to put the hack between Mendeley and BibTeX: pipe the file through ‘sed -e 's/ä/{\\a}/g'’ or something similar. And/or ask in the Mendeley support forums, since this is a fairly well-known BibTeX ‘feature’ so perhaps someone else has had to deal with it there. Hope this helps, Pont ___ 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 ___ -- Julian Becker Institut für Angewandte Physik, R.123 Westfälische Wilhelms-Universität Münster Corrensstr. 2/4 48149 Münster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_bec...@uni-muenster.de Keep thy heart with all diligence; for it is the wellspring of life. ___ 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] DocBook in ConTeXt - any new ideas?
On Jun 4, 2011, at 5:06 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup IIRC, the namespace was hardcoded in the parser (or the call to the parser). Robert's trouble with the cals table could have been resolved if there were a user option to set (or disable) the cals namespace. 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] No chapter prefixes in section numbers
Am 03.06.2011 um 21:43 schrieb Mathieu DUPONT: Is there an exhaustive list of all the parameters the \setuphead function can take ? Neither the 2011 ConTeXt Commands Manual nor the Wiki Command Reference page mention this one (sectionsegments). Where can I find all the parameters one ConTeXt command can take ? I’m working on a update for the command reference but it will still take some time unless i have looked in all source files. Even when i have the list it won’t always help you because the reference is only a list with all valid keys and values but it doesn’t explain the meaning of them and how they need to be combined to have a certain output. 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] DocBook in ConTeXt - any new ideas?
Op 4 jun 2011, om 14:24 heeft Aditya Mahajan het volgende geschreven: On Jun 4, 2011, at 5:06 AM, Hans Hagen pra...@wxs.nl wrote: On 4-6-2011 10:21, R. Ermers wrote: Adding the prefix cals: to the tag names (thus making the file invalid, which is contrary to the docbook philosophy), using the cals table module and the directives is not enough, at least the cals tables in my valid xml docbook document were never typeset. can be any prefix (namespace) ... the code that implements it uses a namespace in order to avoid a mixup IIRC, the namespace was hardcoded in the parser (or the call to the parser). Robert's trouble with the cals table could have been resolved if there were a user option to set (or disable) the cals namespace. Well, I added cals: to all tags for ConteXt purposes (tbody, entry become cals:tbody, cals:entry, etc.). I examined what Hans' example tables look like. After the changes, the structure was still that of a cals table, the word cals had been added to each tag, but after this adapation to some particular ConTeXt requirements, the tables in fact could not be called cals tables anymore. The file did no longer comply with the docbook dtd. I didn't mind that much. Predictably, though, my docbook editing software started complaining. The tables were not rendered in the preview anymore. This was a relatively minor problem. I don't know whether Aditya's suggestion would have helped. Robert 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 ___ ___ 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] Chapter name in new line
How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Marco ___ 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] Chapter name in new line
Am 04.06.2011 um 16:24 schrieb Marco: How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \define[2]\MyChapter {\framed[frame=off,width=broad,align=flushleft]{#1\\#2}} 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] Chapter name in new line
On Sat, Jun 4, 2011 at 4:24 PM, Marco net...@lavabit.com wrote: How can I get the chapter name in a new line, like: Chapter 1 Foo Bar The following yields to “Chapter1Foo Bar”. \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{#1\blank#2} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Marco If you don't want to use framedtext (cfr wolfgang) \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{\vbox{#1\blank#2}} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 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 installing minimals on PowerMac G4
On Fri, Jun 3, 2011 20:27:56 +0200 Mojca Miklavec wrote Please send a complete log. The saved Terminal output of an installation of the minimals which I tried this morning can be downloaded here: http://web.me.com/blackstone.robert/filechute/RB-Install_minimals_04-06-11-Saved_Terminal_Output.txt The process stopped 3 times (see lines 6612, 7698 and 7718.) but eventually finished. The result is that ConTeXt mkii works, but mkiv does not. When I try to process a file with mkiv, the log says: The argument /Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex is not a valid TEXROOT path. (There is no file /Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex/texmf/tex/plain/base/plain.tex) provide a proper tex root (like '. setuptex /something/tex') MtxRun | error unable to identify cnf file MtxRun | error unable to identify cnf file MtxRun | no cnf files found (TEXMFCNF may not be set/known) MtxRun | unknown script: context Incidentally, when I run the same tex-file with mkiv on my G4 PowerBook, also installed today, the first two sentences of the log are the same. However, it does not ask me to provide a proper tex root and the file is processed normally. I would be grateful for any help but please don't spend too much time on it. I can live with the installation as it is now. Fortunately I have this other Mac on which the minimals work without problems. Kind regards, Robert Blackstone ___ 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] Chapter name in new line
If you don't want to use framedtext (cfr wolfgang) \setuplabeltext [en] [chapter=Chapter~] \def\MyChapter#1#2{\vbox{#1\blank#2}} \setuphead [chapter] [command=\MyChapter] \starttext \chapter{Foo Bar} \stoptext Thanks to both of you. Added to the wiki. Marco ___ 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] Custom function
On Sat, Jun 04 2011, Wolfgang Schuster wrote: Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonka Should be: Édition (common error in French) -- Peter ___ 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 syntax for \externalfigure
On Jun 4, 2011, at 12:14 AM, Peter Münster wrote: \startluacode function my_externalfigure(file, t) local args_present for k, v in pairs(t) do if v == then t[k] = nil else args_present = true end end context.externalfigure({file}, args_present and t) end \stopluacode \startxmlsetups xml:externalfigure \ctxlua{my_externalfigure(\xmlatt{#1}{resource}, {width = \xmlatt{#1}{width}, height = \xmlatt{#1}{height}})} \stopxmlsetups My first idea was \expanded{\externalfigure[...][\doif...]} but it does not work... Thanks a lot Peter, i will have to play with this tomorrow (just came home from a short trip). 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] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.
Dear ConTeXt folks, I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} \starttext $\lvert 2 \rvert$ $\abs{2}$ \stoptext This does not work though. $ context abs […] This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (abs.tex ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.5.27 int: english/english […] ! Missing $ inserted. system tex error on line 1 in file abs.tex: Missing $ inserted ... 1 \define\abs[1]{\lvert #1 \rvert} 2 \starttext 3 $\lvert 2 \rvert$ 4 5 $\abs{2}$ 6 \stoptext 7 inserted text $ to be read again \Udelimiter \lvert -\Udelimiter 4 0 7C l.1 \define\abs[1]{\lvert #1 \rvert} ? How should I do that correctly? I took that example from the user’s guide of the amsmath package (`texdoc amsldoc`). Thanks, Paul \define\abs[1]{\lvert #1 \rvert} \starttext $\lvert 2 \rvert$ $\abs{2}$ \stoptext signature.asc Description: This is a digitally signed message part ___ 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: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.
On Sat, Jun 04 2011, Paul Menzel wrote: I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} Don't ask me why \define doesn't work (certainly related to expansion), but \def does the job: \def\abs#1{\lvert #1 \rvert} -- Peter ___ 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: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.
Hi I think the error comes from your way of using \define: you use \define\abs[1]{\lvert #1 \rvert} instead of \define[1]\abs{\lvert#1\rvert} the following works fine for me: \starttext %\define[1]\abs{|#1|} % this works \define[1]\abs{\lvert#1\rvert} % this works too $\abs{-1} = 1$ \stoptext Best regards: OK On 4 juin 2011, at 22:40, Paul Menzel wrote: Dear ConTeXt folks, I want to define `\abs` as the command for the absolute value. The following minimal example is also attached. \define\abs[1]{\lvert #1 \rvert} \starttext $\lvert 2 \rvert$ $\abs{2}$ \stoptext This does not work though. $ context abs […] This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (abs.tex ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.5.27 int: english/english […] ! Missing $ inserted. system tex error on line 1 in file abs.tex: Missing $ inserted ... 1 \define\abs[1]{\lvert #1 \rvert} 2 \starttext 3 $\lvert 2 \rvert$ 4 5 $\abs{2}$ 6 \stoptext 7 inserted text $ to be read again \Udelimiter \lvert -\Udelimiter 4 0 7C l.1 \define\abs[1]{\lvert #1 \rvert} ? How should I do that correctly? I took that example from the user’s guide of the amsmath package (`texdoc amsldoc`). Thanks, Paul abs.tex___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : 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 installing minimals on PowerMac G4
On Sat, Jun 4, 2011 at 16:40, Robert Blackstone wrote: When I try to process a file with mkiv, the log says: The argument /Users/robertblackstone/Dropbox/C-tests/Titles-interline_spacing_of/Titles-interline_spacing_of-test1PM.tex is not a valid TEXROOT path. How exactly do you run MKIV? 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 ___