From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25197 Path: news.gmane.org!not-for-mail From: Christopher G D Tipper Newsgroups: gmane.comp.tex.context Subject: Re: indenting in XML environment Date: Sun, 15 Jan 2006 12:54:26 +0000 Message-ID: References: <43C9849B.70909@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/mixed; boundary=Apple-Mail-2-108676850 X-Trace: sea.gmane.org 1137329832 16412 80.91.229.2 (15 Jan 2006 12:57:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jan 2006 12:57:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 15 13:57:08 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ey7RL-0007W2-3b for gctc-ntg-context-518@m.gmane.org; Sun, 15 Jan 2006 13:56:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEF4712857; Sun, 15 Jan 2006 13:56:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05651-02-2; Sun, 15 Jan 2006 13:56:55 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E161612851; Sun, 15 Jan 2006 13:56:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 928F31277F for ; Sun, 15 Jan 2006 13:56:54 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05651-02 for ; Sun, 15 Jan 2006 13:56:53 +0100 (CET) Original-Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.207]) by ronja.ntg.nl (Postfix) with SMTP id 1DBA212851 for ; Sun, 15 Jan 2006 13:54:29 +0100 (CET) Original-Received: by uproxy.gmail.com with SMTP id h2so338088ugf for ; Sun, 15 Jan 2006 04:54:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=rJsmf5jBDiYCTk9MhJ9tFE3g/W2Wi4HSuBTj537rQEEOY9QdlVsq+a/i8B+N8uRRQ990RXqNAgpgDmBcOCR94SSQ4qA0CLLPX9X9/JW/OcACKe89BtTGpSKgKjGK9/xH1HINnL61hX1PyFWWw/s70kTpXFgUgdxOk7R9pTBiH5I= Original-Received: by 10.67.31.13 with SMTP id i13mr2374844ugj; Sun, 15 Jan 2006 04:54:29 -0800 (PST) Original-Received: from ?192.168.0.2? ( [84.67.63.28]) by mx.gmail.com with ESMTP id j1sm3881951ugf.2006.01.15.04.54.28; Sun, 15 Jan 2006 04:54:28 -0800 (PST) In-Reply-To: <43C9849B.70909@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25197 Archived-At: --Apple-Mail-2-108676850 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --Apple-Mail-2-108676850 Content-Transfer-Encoding: quoted-printable Content-Type: application/octet-stream; x-mac-type=54455854; x-unix-mode=0644; x-mac-creator=54655873; name="xml-indenting.tex" Content-Disposition: attachment; filename=xml-indenting.tex \def\eDroppedCaps=0D=20=20=20=20{\DroppedCaps=0D=20=20=20=20=20=20=20=20= {}=20{ptmr8r}=0D=20=20=20=20=20=20=20=20{2.2\baselineskip}=20{2pt}=20= {\baselineskip}=20{2}}=0D=0A=0A\defineXMLenvironment[body]=0A=20=20= {\bgroup=0A=20=20=20\startcolumns[rule=3Don,n=3D2,tolerance=3Dstrict]=0A=20= =20=20%\startcolumnset[twocolumns]=0A=20=20=20\rm\setupwhitespace[none]=0A= =20=20=20\setupindenting[small,yes]=0A=20=20=20\noindentation=0A=20=20=20= }=0A=20=20{\stopcolumns=0A=20=20=20%\stopcolumnset=0A=20=20=20\egroup}=0A= =0A\defineXMLenvironment=20[document]=20=20=20=20=20{}=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20{}=0D=0A= \defineXMLcommand[p]=20{\par}=0A\defineXMLcommand[tex]=20\TeX\=0A= \defineXMLcommand=20=20=20=20=20[dropped-caps]=20\eDroppedCaps=0D=0A=0A= \starttext=0A\processXMLfilegrouped=20{knuth.xml}=0D\stoptext=0A=0A=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=0A= --Apple-Mail-2-108676850 Content-Transfer-Encoding: 7bit Content-Type: text/xml; x-unix-mode=0644; name="knuth.xml" Content-Disposition: attachment; filename=knuth.xml

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.

--Apple-Mail-2-108676850 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; format=flowed 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-------------------------------- =93Since light travels faster than sound, isn=92t that why some people appear bright until you hear them speak=94 =97 Steve Wright --Apple-Mail-2-108676850 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --Apple-Mail-2-108676850--