From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88514 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: itemize: how to get the first level items indented? Date: Wed, 20 Aug 2014 19:56:04 +0200 Message-ID: References: <883CFE2A-BD8F-41DA-819A-CF7576B4AAD6@gmail.com> <8EFCDEF6-063A-421F-B4C2-946E6E346F78@rna.nl> <6289A58D-454C-4280-9E88-4C8ACBF97C60@gmail.com> <826A12A9-5038-4F88-8921-3374F73490EF@rna.nl> <1A3EEE98-AE32-44DA-9F2C-7AF642BEDC0E@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============1589792862==" X-Trace: ger.gmane.org 1408557402 8415 80.91.229.3 (20 Aug 2014 17:56:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 17:56:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 20 19:56:36 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKA7Z-0008FE-L2 for gctc-ntg-context-518@m.gmane.org; Wed, 20 Aug 2014 19:56:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 005171021F for ; Wed, 20 Aug 2014 19:56:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2aZKQWcb4zs8 for ; Wed, 20 Aug 2014 19:56:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2662310220 for ; Wed, 20 Aug 2014 19:56:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56D9B101E3 for ; Wed, 20 Aug 2014 19:56:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id apkQdMicYG+f for ; Wed, 20 Aug 2014 19:56:14 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 401E7101E1 for ; Wed, 20 Aug 2014 19:56:14 +0200 (CEST) Original-Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7KIMdeX009121 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 20 Aug 2014 20:22:39 +0200 Original-Received: by mail-wg0-f46.google.com with SMTP id m15so8050757wgh.17 for ; Wed, 20 Aug 2014 10:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=jr/oL9QmYoUvINCgOzUl6BNTb8w7SHLNUGd+B3RgViE=; b=PmKGRD5VVAIMv3iJIlBHb8dHDHFITBzKzpfoL0b4QACQz6G7kYDKPUBhGrthjeM/8G I0DaW7222d1oe9k/PI8Wv09JZzASW0dqlj4UZhOdrfWw9JEznB1dFpcFh2w5behW7mA7 aRrAhYxEdNWMOptWGUanHUKi1Mjo6PNLerVwkvKCq/MBIie5URB7Dy1nHzdzl9WUx0yy OVedMig4hpLuQOeKGb9t8/p3VC2U5xc5uwl5GulfP9gLqYqRS3/fHo6UEFk0j1+wbycN pqxL522yHuhRZUUGVyqipUPp8krXILKzqI1+XIGYZB1bhcuafdYgJbDzfDpH8ZvBR4gh l+4g== X-Received: by 10.180.108.147 with SMTP id hk19mr9194083wib.4.1408557369248; Wed, 20 Aug 2014 10:56:09 -0700 (PDT) Original-Received: from keima.localdomain (x2f23767.dyn.telefonica.de. [2.242.55.103]) by mx.google.com with ESMTPSA id ex2sm60200644wjd.30.2014.08.20.10.56.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 10:56:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MF6mD8n - b85aa47dc90f - 20140820 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88514 Archived-At: --===============1589792862== Content-Type: multipart/alternative; boundary="Apple-Mail=_09AE7801-8B90-4651-A1E4-F0ABC7A4D0B1" --Apple-Mail=_09AE7801-8B90-4651-A1E4-F0ABC7A4D0B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 20.08.2014 um 19:01 schrieb Gerben Wierda : > Works ok at first level. Second level doesn't exactly align. But there = is some startstopnarrower in play too. I'l try to create a minimal = example. The narrower environment does also use font dependent values for the = left and right margins. A good method to set a global value for all environments is to set the = dimension with the \definemeasure command and access it with the \measure command. % engine=3Dpdftex \definemeasure[myindent][12pt] \setupindenting[yes,\measure{myindent}] \setupnarrower [ left=3D\measure{myindent}, right=3D\measure{myindent}, middle=3D\measure{myindent}] = \setupitemize[each][margin=3D\measure{myindent}]%,width=3D\measure{myinden= t}] \starttext \input knuth \startitemize \item \input ward \stopitemize \startnarrower \input zapf \stopnarrower \stoptext Wolfgang= --Apple-Mail=_09AE7801-8B90-4651-A1E4-F0ABC7A4D0B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
Am 20.08.2014 um 19:01 schrieb Gerben = Wierda <gerben.wierda@rna.nl>:
Works ok at first level. = Second level doesn't exactly align. But there is some startstopnarrower = in play too. I'l try to create a minimal = example.

The narrower environment = does also use font dependent values for the left and right = margins.

A good method to set a global value = for all environments is to set the dimension with = the
\definemeasure command and access it with the \measure = command.

% = engine=3Dpdftex

\definemeasure[myindent][12pt]

\setupindenting[yes,\measure{myindent}]
<= br>
\setupnarrower
  [ =  left=3D\measure{myindent},
    = right=3D\measure{myindent},
  =  middle=3D\measure{myindent}]

\setupitemize[= each][margin=3D\measure{myindent}]%,width=3D\measure{myindent}]
=
\starttext

\input = knuth

\startitemize
\item \input = ward
\stopitemize

\startnarrower
<= div>\input = zapf
\stopnarrower

\stoptext

Wolfgang
= --Apple-Mail=_09AE7801-8B90-4651-A1E4-F0ABC7A4D0B1-- --===============1589792862== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1589792862==--