From: Piotr Kopszak <kopszak@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: defineindenting
Date: Fri, 26 Oct 2012 16:02:29 +0200 [thread overview]
Message-ID: <CADawwoD4nn_45-5iD1LpOYteFQMuRfSjWfeTPU+_WgtvWwLvJQ@mail.gmail.com> (raw)
In-Reply-To: <20121026154816.1b9be005@homerow>
That did the trick. Yes, I know it's weird. Technology makes strange
things happen sometimes ;)
Thanks!
Piotr
2012/10/26 Marco Patzer <homerow@lavabit.com>:
> 2012-10-26 Piotr Kopszak:
>
>> Many thanks! The wiki says it is used to "define a collection of
>> indenting settings". I used it to indent more then in the case of
>> other paragraphs the first line of the first paragraph in a chapter,
>> so your solution is unfortunately not exactly what I mean.
>
> To indent the first line you can use
>
> \setupindenting [yes, 2cm]
>
> That, however, is not configurable. And frankly I've never seen
> varying paragraph indentations in a document. If you really need it
> you can build a wrapper around this.
>
>
> \def\defineindenting
> {\dodoubleempty\dodefineindenting}
>
> \def\dodefineindenting [#1][#2]
> {\setvalue{#1}{\setupindenting[yes, #2]}}
>
> \defineindenting [first] [2cm]
> \defineindenting [second] [3cm]
>
> \starttext
> \first
> \input knuth
>
> \second
> \input knuth
> \stoptext
>
>
> Marco
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
--
http://okle.pl
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-10-26 14:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-26 11:33 defineindenting Piotr Kopszak
2012-10-26 11:53 ` defineindenting Sietse Brouwer
2012-10-26 12:04 ` defineindenting Piotr Kopszak
2012-10-26 12:11 ` defineindenting Marco Patzer
2012-10-26 12:23 ` defineindenting Piotr Kopszak
2012-10-26 13:04 ` defineindenting Marco Patzer
2012-10-26 13:28 ` defineindenting Piotr Kopszak
2012-10-26 13:30 ` defineindenting Sietse Brouwer
2012-10-26 13:48 ` defineindenting Marco Patzer
2012-10-26 14:02 ` Piotr Kopszak [this message]
2012-10-26 16:05 ` defineindenting Wolfgang Schuster
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=CADawwoD4nn_45-5iD1LpOYteFQMuRfSjWfeTPU+_WgtvWwLvJQ@mail.gmail.com \
--to=kopszak@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).