Re: [NTG-context] XML and title page rule
Hi, titleSomething emdash; or iSomething else/i/title 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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and title page rule
Jano Kula wrote: Hi, titleSomething emdash; or iSomething else/i/title 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and title page rule
titleSomething emdash; or iSomething else/i/title 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 amp; entity did work (yes, I know it has a special meaning in XML, so it is probably predefined). Jano ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and title page rule
Johannes Graumann wrote: Hello, I'm trying to make the following work: 1) XML: titlepage authors=Autor Autor title=Something emdash; or iSomething else/i 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 (i)? If the above isn't feasible: how would I write an import rule for something like: titlepage authorsAutor Autor/authors titleSomething emdash; or iSomething else/i/title subtitleMuch Fun/subtitle publisherSomebody/publisher /titlepage 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 titlepage 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 titlepage authorsAutor Autor 2/authors titleSomething emdash; or iSomething else/i/title subtitleMuch Fun/subtitle publisherSomebody/publisher /titlepage \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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XML and title page rule
Thank you Soo much Hans! Joh Hans Hagen wrote: Johannes Graumann wrote: Hello, I'm trying to make the following work: 1) XML: titlepage authors=Autor Autor title=Something emdash; or iSomething else/i 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 (i)? If the above isn't feasible: how would I write an import rule for something like: titlepage authorsAutor Autor/authors titleSomething emdash; or iSomething else/i/title subtitleMuch Fun/subtitle publisherSomebody/publisher /titlepage 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 titlepage 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 titlepage authorsAutor Autor 2/authors titleSomething emdash; or iSomething else/i/title subtitleMuch Fun/subtitle publisherSomebody/publisher /titlepage \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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context