Hi Thomas, On Mon, 11 Jun 2007, Thomas A. Schmitz wrote:
> > On Jun 11, 2007, at 5:49 AM, Aditya Mahajan wrote: > >> Some of the difficulties that I faced with simple documents was: >> >> 1. What is the xml equivalent of || >> 2. What is the xml equivalent of ~ ( ??) >> 3. What is the xml equivalent of >> >> \abbreviation {EECS} {Electrical Engineering and Computer Science} >> and then \EECS\ and \infull{EECS}. > > Hi Aditya, > > I've just begun experimenting with xlm (because, as Duncan has > pointed out, I'm sure that every line I write is for eternity...). > Anyway, what I say here may be totally wrong, but here's how I treat > this stuff: > > 1. For || or |-|, I have defined an entity in my DTD: > > <!ENTITY conthyph "-"> > > In my environment for processing the xml files, I have > > \defineXMLentity[conthyph]{|-|} > > so I can write context&conthyph;specific and get the output I expect. > > 2. Yes, I use with these definitions: > <!ENTITY nbsp " "> > \defineXMLentity[nbsp]{~} Ah. Thanks. This was easy :) > 3. Abbreviations: does xtag-ent.tex do what you want? > > Not sure if this is what you're looking for, but it does appear to > work for me. Hmm... somehome I had missed xtag-ent.tex. I was looking at xml introductions, and did not look into ConTeXt sources. I will have a look and see how it goes. Thanks, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________