ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Cecil Westerhof <cldwesterhof@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setupindenting
Date: Mon, 21 Mar 2011 20:19:10 +0100	[thread overview]
Message-ID: <AANLkTi=4LykmbqKbPUntvHavYT=PCq5a+yPtT_eXH2T1@mail.gmail.com> (raw)
In-Reply-To: <5B7C4049-9FB9-4B40-AB45-3DD6CEC22FB9@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1060 bytes --]

2011/3/21 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> > I just discovered \setupindenting. I use:
> >     \setupindenting[yes, medium]
> >
> > This does not indent the first paragraph on a page. Is it possible to
> also not indent a paragraph after a blank?
>
> Not with \blank but you can create a command which does it, e.g.
>
> \def\myblank
>  {\dosingleempty\domyblank}
>
> \def\domyblank[#1]%
>  {\iffirstargument
>      \blank[#1]%
>   \else
>     \blank
>   \fi
>   \noindentation}
>
> or you use the fancybreak module:
>
> \usemodule[fancybreak]
>
> \definefancybreak[myblank][indentnext=no]
>
> \setupindenting[yes,medium]
>
> \starttext
>
> \input ward
>
> \blank
>
> \input ward
>
> \myblank
>
> \input ward
>
> \stoptext
>

I used the second method. Works. I only have one slight problem. When a
paragraph without anything between it and the previous paragraph is the
first element on a page, it gets indented. It is not a very big problem, but
it would be nicer -I think- if it was not indented. Is this possible?

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1491 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2011-03-21 19:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 18:28 \setupindenting Cecil Westerhof
2011-03-21 18:43 ` \setupindenting Wolfgang Schuster
2011-03-21 19:19   ` Cecil Westerhof [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='AANLkTi=4LykmbqKbPUntvHavYT=PCq5a+yPtT_eXH2T1@mail.gmail.com' \
    --to=cldwesterhof@gmail.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).