Re: [NTG-context] indenting in XML environment
Hans Hagen wrote: Christopher G D Tipper wrote: Hi Taco, I've found the miscreant. In my stylesheet I have \def\eDroppedCaps {\DroppedCaps {} {ptmr8r} {2.2\baselineskip} {2pt} {\baselineskip} {2}} and in my XML I have: \defineXMLcommand [dropped-caps] \eDroppedCaps and for some reason this screws up all paragraph indenting. Has this changed recently, because it used to work? well, indenting has been extended (and a bit fixed) My guess is this patch to supp-fun is needed (untested): \def\DroppedCaps#1#2#3#4#5#6#7% does not yet handle accented chars {\convertargument#7\to\asciia \convertcommand \DroppedString\to\asciib \ExpandBothAfter\doifinstringelse\asciia\asciib - {\noindenting + {\noindentation \dontleavehmode %\ifhmode\hskip-\parindent\fi % sensitive for context mechanism Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting in XML environment
Christopher G D Tipper wrote: Hi Taco, I've found the miscreant. In my stylesheet I have \def\eDroppedCaps {\DroppedCaps {} {ptmr8r} {2.2\baselineskip} {2pt} {\baselineskip} {2}} and in my XML I have: \defineXMLcommand [dropped-caps] \eDroppedCaps and for some reason this screws up all paragraph indenting. Has this changed recently, because it used to work? well, indenting has been extended (and a bit fixed) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting in XML environment
Hi Taco, I've found the miscreant. In my stylesheet I have \def\eDroppedCaps {\DroppedCaps {} {ptmr8r} {2.2\baselineskip} {2pt} {\baselineskip} {2}} and in my XML I have: \defineXMLcommand [dropped-caps] \eDroppedCaps and for some reason this screws up all paragraph indenting. Has this changed recently, because it used to work? Christopher xml-indenting.tex Description: Binary data Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large-scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. On 14 Jan 2006, at 23:09, Taco Hoekwater wrote: I've created a test file with this appended to your definition: \defineXMLenvironment[p]{}{\par} \starttext \startXMLdata text text text \stopXMLdata \stoptext And it nicely indents the second and third paragraph. I would use \noindentation } instead of {\noindening} } but both possibilities work out fine here. o00o “Since light travels faster than sound, isn’t that why some people appear bright until you hear them speak” — Steve Wright ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] indenting in XML environment
Christopher G D Tipper wrote: Ok, after taking deep breath I'll try this issue again. I got indenting to work after putting \noindenting inside its own environment. However, the following code block stopped working recently and I don't know why: \defineXMLenvironment[body] {\bgroup \rm\setupwhitespace[none] \setupindenting[small,yes] \startcolumns[rule=on,n=2,tolerance=strict] {\noindenting} } {\stopcolumns \egroup} It just doesn't indent anything, That's odd, because it looks fine to me. I've created a test file with this appended to your definition: \defineXMLenvironment[p]{}{\par} \starttext \startXMLdata text text text \stopXMLdata \stoptext And it nicely indents the second and third paragraph. I would use \noindentation } instead of {\noindening} } but both possibilities work out fine here. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] indenting in XML environment
Ok, after taking deep breath I'll try this issue again. I got indenting to work after putting \noindenting inside its own environment. However, the following code block stopped working recently and I don't know why: \defineXMLenvironment[body] {\bgroup \rm\setupwhitespace[none] \setupindenting[small,yes] \startcolumns[rule=on,n=2,tolerance=strict] {\noindenting} } {\stopcolumns \egroup} It just doesn't indent anything, even after removing the {\noindenting} environment. Christopher o00o “Since light travels faster than sound, isn’t that why some people appear bright until you hear them speak” — Steve Wright ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context