[NTG-context] indenting in XML environment

Christopher G D Tipper chris.tipper at gmail.com
Sun Jan 15 13:54:26 CET 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xml-indenting.tex
Type: application/octet-stream
Size: 678 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20060115/d7391e82/xml-indenting.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knuth.xml
Type: text/xml
Size: 1121 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20060115/d7391e82/knuth.xml
-------------- next part --------------

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
> <body>
> <p>text</p>
> <p>text</p>
> <p>text</p>
> </body>
> \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




More information about the ntg-context mailing list