From graumann@caltech.edu Fri Mar 24 05:37:09 2006 From: Johannes Graumann To: ntg-context@ntg.nl Subject: [NTG-context] XML and title page rule Date: Thu, 23 Mar 2006 20:36:42 -0800 Message-ID: <200603232036.43104.graumann@caltech.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3026510152008469080==" --===============3026510152008469080== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, I'm trying to make the following work: 1) XML: 2) ConTeXt translation rule: \defineXMLargument[titlepage]{% \startstandardmakeup \vfil \bfd \setupinterlinespace Whatever \par \bfb \setupinterlinespace You Want \par \vfil \vfil \stopstandardmakeup } I was intending to feed the variables in through '\XMLvar', but can't get the start working (see 2).). I would be grateful if someone could nudge me into the right direction ... Is it even possible to have XML nodes in the variables evaluated ("")? If the above isn't feasible: how would I write an import rule for something like: Autor Autor Something &emdash; or <i>Something else</i> Much Fun Somebody Thanks for any hints - need sleep now ... Joh -- +----------------------------------------------------------------------+ | Johannes Graumann, Dipl. Biol. | | | | Graduate Student Tel.: ++1 (626) 395 6602 | | Deshaies Lab Fax.: ++1 (626) 395 5739 | | Department of Biology | | CALTECH, M/C 156-29 | | 1200 E. California Blvd. | | Pasadena, CA 91125 | | USA | +----------------------------------------------------------------------+ --===============3026510152008469080== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.sig" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC4yLjIgKEdO VS9MaW51eCkKCmlRSVZBd1VBUkNOM1dqOCtCSlpLZXExOUFRcnRDaEFBdk5MaFI0TDlnaXduaXFv aVdBSitkVExPbHkvL3M3a3IKdnl0QVhaYjN4MllyQXMxNFVENnFPVFBINWt2VWs2YUQxalFSd3BW cDZvNjNISDNyVmdTQzlyV29CanVtMVJFYwpCbm9aVElWWVZlcnFTb2dQV0ZKOFZhRmZna3VPYldM U2dKcS9FSHBiOU4rbDdnWVZnWFZIQ0cxeDBnbUNUVW9uClNGN3c0V2pZZjRXNFQxMVdVOHJ1c3lU Nk5BSHFhd0tqblJOekhiMmFna2draU9EbjdCeHNZd3FrRnFZUHE5VTcKOGd0VG0zVmpwVDJORFBN YzhiQS9ub1RPYzVOcnVVVFEwUXRWTHVnekNORWpvMmRYK09PNmh6Wi9XNkNJVE5XZwp3N3owQWxx SWFIdWNJVGlEQkZsWm5RYXoxZXR5c0VjMEpRL3M5VmhrbXkzckFLUXZscnA3SmVNTVlSL2VyQ3JE ClN5L2drZld0N2hXYnFvWWVaNXZjaGJ4V1lCcTFKKzhxN2gvRU5IL1Q1UWFFTTYvUThBcFVPWkhx VUtkcTNQR0IKelRVZ003ZFRTQzY2Y01QZWIydU5BT3JuU0NsZHllNVF2R0ZNV0JzRlJSQ2lkUWI3 QkowczNjTDd4czUrWElzUQpVY1VPMC9Bcng0K1RjK21Sd0ZJcHJiT3RDbUFPb09hSEwzQ3VHYXJP NzZNaytudjRtcXAxTXg2dEYwZ1JaRU4zCkVZaitmS0ttMEI4S2U4NlFrZVk4aHp5TXJpWEM5eDRp QmlUK25TL0M0QlJ3MmlXeHYrck5GcWV5dW1hYzdvOE8KZTBUMlZPcjAzejdxU3FSajlodGhzOTNW UWV6eFpxUnZBaVN4dTJsVGwxSkxsVGtHaE1BaUd5amF0WnBYTkdvZApXNjhzcTI0M0NZND0KPWgz dncKLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCg== --===============3026510152008469080==-- From pragma@wxs.nl Fri Mar 24 10:12:19 2006 From: Hans Hagen To: ntg-context@ntg.nl Subject: Re: [NTG-context] XML and title page rule Date: Fri, 24 Mar 2006 10:12:16 +0100 Message-ID: <4423B7F0.6050700@wxs.nl> In-Reply-To: <200603232036.43104.graumann@caltech.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7321336757491068359==" --===============7321336757491068359== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Johannes Graumann wrote: > Hello, > > I'm trying to make the following work: > 1) XML: > authors=3D"Autor Autor" > title=3D"Something &emdash; or Something else" > subtitle=3D"Much Fun" > publisher=3D"Somebody" > /> > 2) ConTeXt translation rule: > \defineXMLargument[titlepage]{% > \startstandardmakeup > \vfil > \bfd \setupinterlinespace Whatever \par > \bfb \setupinterlinespace You Want \par > \vfil > \vfil > \stopstandardmakeup > } > > I was intending to feed the variables in through '\XMLvar', but can't get t= he=20 > start working (see 2).). I would be grateful if someone could nudge me into= =20 > the right direction ... > Is it even possible to have XML nodes in the variables evaluated ("")? > If the above isn't feasible: how would I write an import rule for something= =20 > like: > > Autor Autor > Something &emdash; or <i>Something else</i> > Much Fun > Somebody > > > Thanks for any hints - need sleep now ... > =20 \starttext \defineXMLgrouped [i] {\em} {} \defineXMLcommand [titlepage] {\startstandardmakeup \vfil \bfd \setupinterlinespace \XMLop{title} \par \bfb \setupinterlinespace \XMLop{authors} \par \vfil \vfil \stopstandardmakeup} \startXMLdata \stopXMLdata \defineXMLenvironment [titlepage] {\defineXMLsave[authors] \defineXMLsave[title] \defineXMLsave[subtitle] \defineXMLsave[publisher] \startXMLignore} % ignore undefined elements {\stopXMLignore \startstandardmakeup \vfil \bfd \setupinterlinespace \XMLflush{title} \par \bfb \setupinterlinespace \XMLflush{authors} \par \vfil \vfil \stopstandardmakeup} \startXMLdata Autor Autor 2 Something &emdash; or <i>Something else</i> Much Fun Somebody \stopXMLdata \stoptext Here is the hint - needs to be wikified now ... -)=20 Hans=20 ----------------------------------------------------------------- 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 ----------------------------------------------------------------- --===============7321336757491068359==-- From johannes_graumann@web.de Fri Mar 24 20:11:01 2006 From: Johannes Graumann To: ntg-context@ntg.nl Subject: Re: [NTG-context] XML and title page rule Date: Fri, 24 Mar 2006 10:04:52 -0800 Message-ID: In-Reply-To: <4423B7F0.6050700@wxs.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6488274439481562567==" --===============6488274439481562567== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Thank you Soooooo much Hans! Joh Hans Hagen wrote: > Johannes Graumann wrote: >> Hello, >> >> I'm trying to make the following work: >> 1) XML: >> > authors="Autor Autor" >> title="Something &emdash; or Something else" >> subtitle="Much Fun" >> publisher="Somebody" >> /> >> 2) ConTeXt translation rule: >> \defineXMLargument[titlepage]{% >> \startstandardmakeup >> \vfil >> \bfd \setupinterlinespace Whatever \par >> \bfb \setupinterlinespace You Want \par >> \vfil >> \vfil >> \stopstandardmakeup >> } >> >> I was intending to feed the variables in through '\XMLvar', but can't get >> the start working (see 2).). I would be grateful if someone could nudge >> me into the right direction ... >> Is it even possible to have XML nodes in the variables evaluated ("")? >> If the above isn't feasible: how would I write an import rule for >> something like: >> >> Autor Autor >> Something &emdash; or <i>Something else</i> >> Much Fun >> Somebody >> >> >> Thanks for any hints - need sleep now ... >> > \starttext > > \defineXMLgrouped [i] {\em} {} > > \defineXMLcommand > [titlepage] > {\startstandardmakeup > \vfil > \bfd \setupinterlinespace \XMLop{title} \par > \bfb \setupinterlinespace \XMLop{authors} \par > \vfil > \vfil > \stopstandardmakeup} > > \startXMLdata > authors="Autor Autor 1" > title="Something &emdash; or Something else" > subtitle="Much Fun" > publisher="Somebody" > /> > \stopXMLdata > > \defineXMLenvironment > [titlepage] > {\defineXMLsave[authors] > \defineXMLsave[title] > \defineXMLsave[subtitle] > \defineXMLsave[publisher] > \startXMLignore} % ignore undefined elements > {\stopXMLignore > \startstandardmakeup > \vfil > \bfd \setupinterlinespace \XMLflush{title} \par > \bfb \setupinterlinespace \XMLflush{authors} \par > \vfil > \vfil > \stopstandardmakeup} > > \startXMLdata > > Autor Autor 2 > Something &emdash; or <i>Something else</i> > Much Fun > Somebody > > \stopXMLdata > > \stoptext > > Here is the hint - needs to be wikified 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 > ----------------------------------------------------------------- --===============6488274439481562567==-- From jano.kula@tiscali.cz Tue Mar 28 18:30:51 2006 From: Jano Kula To: ntg-context@ntg.nl Subject: Re: [NTG-context] XML and title page rule Date: Tue, 28 Mar 2006 18:12:30 +0200 Message-ID: In-Reply-To: <4423B7F0.6050700@wxs.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6110911182006790251==" --===============6110911182006790251== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, > Something &emdash; or <i>Something else</i> can somebody explain to a complete newbie why entity &emdash; isn't expanded out of the box? (I use texexec -pdf document.tex for processing.) > Here is the hint - needs to be wikified now ... -) I can't resist to do so (that's why I need an explanation), cause as a newbie I see the only weakness of the ConTeXt in the lack of documentation. Well, there is a lot of it, maybe there is too much of it spread all over the different places (that's why wiki is here), maybe I'm not familiar enough with ConTeXt yet, but as a long term user of LaTeX I'm still quite confused after a week or so of browsing through the documentation, trying to find out how the things work and how they are related. Well, it took some time to understand LaTeX, too. I would buy the book mentioned here immediatelly. These are not complaints, just another hint how to smooth starting with ConTeXt. As I see the possibilities I become addicted ;) and I do understand the developers have a lot of work with developing. Would anybody who suggests the wikifying mind the proper place to put it in the wiki, if known? Or I shouldn't care and the administators tide it up occasionally. As a newbie I might not to think of writing to wiki, but better something than nothing, right? As the new one here, I can add some small examples as I learn and test the things, what would be nice for the newcomers, if somebody experienced would add to wiki an explanation of the documentations in terms of user experience 1. "must read" 2. how the things work (texexec, etc.) 3. simple topics 4. advanced features If I see the all-manuals page (http://www.pragma-ade.com/show-man.pdf) I really don't know where to start. All the titles look so interesting! Such overview could postpone the temptation to seek for advanced topic and subsequently get lost, as in my case. (Might be only my fault.) Sorry for the desperade bigginer's notes, hope they help. To finish it why I can't get these two (advanced) pages? http://www.pragma-ade.com/makeres.html http://www.pragma-ade.com/general/manuals/xcorresp.pdf_Serial_Letters Looking forward to use ConTeXt, Jano --===============6110911182006790251==-- From pragma@wxs.nl Tue Mar 28 18:40:14 2006 From: Hans Hagen To: ntg-context@ntg.nl Subject: Re: [NTG-context] XML and title page rule Date: Tue, 28 Mar 2006 18:40:13 +0200 Message-ID: <442966ED.4000007@wxs.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9184741777051398326==" --===============9184741777051398326== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Jano Kula wrote: > Hi, > > >> Something &emdash; or <i>Something else</i> >> > > can somebody explain to a complete newbie why entity &emdash; isn't > expanded out of the box? > > (I use texexec -pdf document.tex for processing.) > > did you define the entity? 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 ----------------------------------------------------------------- --===============9184741777051398326==-- From jano.kula@tiscali.cz Tue Mar 28 19:38:31 2006 From: Jano Kula To: ntg-context@ntg.nl Subject: Re: [NTG-context] XML and title page rule Date: Tue, 28 Mar 2006 19:38:04 +0200 Message-ID: In-Reply-To: <442966ED.4000007@wxs.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1584407371390508365==" --===============1584407371390508365== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit >>> Something &emdash; or <i>Something else</i> >>> >> can somebody explain to a complete newbie why entity &emdash; isn't >> expanded out of the box? >> >> (I use texexec -pdf document.tex for processing.) >> >> > did you define the entity? Thanks. No I expected the example to be a minimal example, where everything else should work. And & entity did work (yes, I know it has a special meaning in XML, so it is probably predefined). Jano --===============1584407371390508365==-- From stappers@stappers.nl Wed Mar 29 16:15:42 2006 From: stappers@stappers.nl To: ntg-context@ntg.nl Subject: Re: [NTG-context] documents to (print and) read Date: Wed, 29 Mar 2006 16:15:32 +0200 Message-ID: <20060329141532.GW28764@gpm.stappers.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8289770437295242041==" --===============8289770437295242041== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tue, Mar 28, 2006 at 06:12:30PM +0200, Jano Kula wrote: > [ "&emdash;" expected to be defined ] > > > Here is the hint - needs to be wikified now ... -) > > I can't resist to do so (that's why I need an explanation), cause as a > newbie I see the only weakness of the ConTeXt in the lack of documentation. > > Well, there is a lot of it, maybe there is too much of it spread all > over the different places (that's why wiki is here), maybe I'm not > familiar enough with ConTeXt yet, but as a long term user of LaTeX I'm > still quite confused after a week or so of browsing through the > documentation, trying to find out how the things work and how they are > related. Well, it took some time to understand LaTeX, too. I would buy > the book mentioned here immediatelly. > > These are not complaints, just another hint how to smooth starting with > ConTeXt. As I see the possibilities I become addicted ;) and I do > understand the developers have a lot of work with developing. > > Would anybody who suggests the wikifying mind the proper place to put it > in the wiki, if known? Or I shouldn't care and the administators tide it > up occasionally. As a newbie I might not to think of writing to wiki, > but better something than nothing, right? > > As the new one here, I can add some small examples as I learn and test > the things, what would be nice for the newcomers, if somebody > experienced would add to wiki an explanation of the documentations in > terms of user experience > > 1. "must read" > 2. how the things work (texexec, etc.) > 3. simple topics > 4. advanced features > > If I see the all-manuals page (http://www.pragma-ade.com/show-man.pdf) I > really don't know where to start. All the titles look so interesting! > Such overview could postpone the temptation to seek for advanced topic > and subsequently get lost, as in my case. (Might be only my fault.) Here the very same situation. My question boils down to Which document should I print, book bundle and read. (Reading the "wrong" manual is only "lost time", printing the wrong manual is waste of time AND materiaals ... ) > > Sorry for the desperade bigginer's notes, hope they help. To finish it > why I can't get these two (advanced) pages? > > http://www.pragma-ade.com/makeres.html > http://www.pragma-ade.com/general/manuals/xcorresp.pdf_Serial_Letters On which page were to broken links (404s) encountered? > > Looking forward to use ConTeXt, > > Jano Geert --===============8289770437295242041== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi40IChHTlUv TGludXgpCgppRDhEQlFGRUtwYUVPU0lOYmd3YS83c1JBcmFOQUo5RjZRWmViKzFxYVByeThjd21l MFVqL1pLNlRBQ2d0dHBQCmNVMWZuQ0tVRkorYU1hV1d1dDBjR1VzPQo9bUVJTwotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============8289770437295242041==-- From taco@elvenkind.com Thu Mar 30 10:38:42 2006 From: Taco Hoekwater To: ntg-context@ntg.nl Subject: Re: [NTG-context] documents to (print and) read Date: Thu, 30 Mar 2006 10:38:38 +0200 Message-ID: <442B990E.2050804@elvenkind.com> In-Reply-To: <20060329141532.GW28764@gpm.stappers.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1944232863175611880==" --===============1944232863175611880== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, > Here the very same situation. My question boils down to > > Which document should I print, book bundle and read. In my opinion, you should definately read: "Context, an excursion" http://www.pragma-ade.com/show-man-1.htm "TeXExec manual" http://www.pragma-ade.com/show-man-4.htm "Fonts Explained" http://www.pragma-ade.com/show-man-6.htm And I heartily recommend the not-yet-finished but very beautiful: "Typographic Programming" http://www.pragma-ade.com/show-man-39.htm Cheers, taco --===============1944232863175611880==-- From jano.kula@tiscali.cz Mon Apr 3 19:43:37 2006 From: Jano Kula To: ntg-context@ntg.nl Subject: Re: [NTG-context] documents to (print and) read Date: Mon, 03 Apr 2006 19:43:07 +0200 Message-ID: In-Reply-To: <442B990E.2050804@elvenkind.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1646633701651775199==" --===============1646633701651775199== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > In my opinion, you should definately read: > > "Context, an excursion" http://www.pragma-ade.com/show-man-1.htm > "TeXExec manual" http://www.pragma-ade.com/show-man-4.htm > "Fonts Explained" http://www.pragma-ade.com/show-man-6.htm > > And I heartily recommend the not-yet-finished but very beautiful: > > "Typographic Programming" http://www.pragma-ade.com/show-man-39.htm Thanks, I've put this selection to the special section on the wiki documentation page. Jano --===============1646633701651775199==--