ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nikolai Weibull <mailing-lists.context-users@rawuncut.elitemail.org>
Subject: Re: How to indent the first paragraph in Chinese	processing ?
Date: Wed, 15 Jun 2005 15:04:24 +0200	[thread overview]
Message-ID: <20050615130424.GA5046@puritan.pnetwork> (raw)
In-Reply-To: <42AF8D55.50808@sibs.ac.cn>

Xiao Jianfeng wrote:

> Nikolai Weibull wrote:

> > Xiao Jianfeng wrote:

> > >Could someone give me some hints about how to indent the first
> > >paragraph in Chinese processing ?

> > Is this about setting the indentnext option to no perhaps?

> Normally, all paragraphs are indented in Chinese documents. But when I 
> use "\setupindenting[first,medium]" to setup indentation for every 
> paragraph, it has no effect on the first paragraph at all. I can't 
> change the indentation even I put "indenting[...]" before the first 
> paragraph.

Yes, I get the same results.  \indent doesn't work either.

I took a look on the code dealing with \setupindenting and it seems as
if first is being processed correctly.  The problem seems to be in
\presetindentation, and redefining it slightly seems to help:

\setupindenting
  [first,medium]
\def\presetindentation
  {\ifindentfirstparagraph\doindentation\else\noindentation\fi}
\starttext
\chapter{First}
\input tufte
\stoptext

I don't in any way guarantee that this is the right way to solve it, but it
works,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

  reply	other threads:[~2005-06-15 13:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-14 14:50 Xiao Jianfeng
2005-06-14 15:37 ` Nikolai Weibull
2005-06-15  2:07   ` Xiao Jianfeng
2005-06-15 13:04     ` Nikolai Weibull [this message]
2005-06-16  3:15       ` Xiao Jianfeng

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=20050615130424.GA5046@puritan.pnetwork \
    --to=mailing-lists.context-users@rawuncut.elitemail.org \
    --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).