ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: indenting in XML environment
Date: Mon, 16 Jan 2006 12:09:19 +0100	[thread overview]
Message-ID: <43CB7EDF.7070200@elvenkind.com> (raw)
In-Reply-To: <43CA8F59.30608@wxs.nl>



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

      reply	other threads:[~2006-01-16 11:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-14 16:03 Christopher G D Tipper
2006-01-14 23:09 ` Taco Hoekwater
2006-01-15 12:54   ` Christopher G D Tipper
2006-01-15 18:07     ` Hans Hagen
2006-01-16 11:09       ` Taco Hoekwater [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CB7EDF.7070200@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).