From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101088 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Table of Contents sectioning numbers in margin + oddity Date: Mon, 25 Jun 2018 09:07:56 +0200 Message-ID: <5B3094CC.9080106@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1803191040249921862==" X-Trace: blaine.gmane.org 1529910388 28967 195.159.176.226 (25 Jun 2018 07:06:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2018 07:06:28 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 25 09:06:24 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXLZv-0007PE-JM for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jun 2018 09:06:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4AD0A3A1AA; Mon, 25 Jun 2018 09:08:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3k7eUlVK3h22; Mon, 25 Jun 2018 09:08:12 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1DE6E3A1AE; Mon, 25 Jun 2018 09:08:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 742203A1AC for ; Mon, 25 Jun 2018 09:08:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dGs01TI-xyMU for ; Mon, 25 Jun 2018 09:08:11 +0200 (CEST) Original-Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F1CE53A1AA for ; Mon, 25 Jun 2018 09:08:00 +0200 (CEST) Original-Received: by mail-wr0-f170.google.com with SMTP id e18-v6so12447264wrs.5 for ; Mon, 25 Jun 2018 00:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=C91yZ+J5kDopUo5WjHUaL6cHxpIQ7y5r4airBGSi/CQ=; b=dtYtsVuKlB04d4ModRt/xdKTi76dBGx3IejByDS9ZRiqd/kjAtwy8Kg23JTeCLNGtz e8Dhw27LeeL/1VYYOLsQQ+aebrQrQQ1ZhD6PIRlNKJuOXTUOqnh3mI5xPr46o0I/VHFu SPAnzERwJFFqqt3IyH5goz62d1rH7sjKrPRkWinNiWdTMo1Qky2v/LBjyA8/J1zoRoxL Bnvmx1cs8Bw1wYWIaPi+SuhGb10wDl9VYaeyXIsGklfbvcwIeX7Fy5hKxNComBpwT/3N 3btkIFWr6qOLaCkG5djNsNWLUDN7pHxxvsIgtLjzuONXFDydvOcKnymGQo1pU5obxXmv ttyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=C91yZ+J5kDopUo5WjHUaL6cHxpIQ7y5r4airBGSi/CQ=; b=OoCuLLVwdnhy/oS+NVtvy/FoOYMElMOVxIBsEDfqhgUhk0/Ff3veksfMrIhpoQRKcO bGtXHAX1LAjbHREn20iggvxJdRMshcHIq6pFuP9DpRFfaACFxgvBsYFf+HYooCw5FxtH 22UZAgUocTfhKFzFMhSFixKERfMu5Id6FbNx4p8qbzH0H5Ee2tkIQz+RFQbT51NnGr3Y TRjR9s9aa+p9KFmlfgD2WA3y78XFjdzZIyn5UU8zsMTD8cEJ+5C68RnkhjCw6z+w3LDd ppTJi9zM0f+Ay3B3A1vYxD+oAOIYTt1D19AUPv8lpA/J+4/f20KHBGPKGlS+L7mbIqUf 9yag== X-Gm-Message-State: APt69E0K5ey8+TKJQTstjHiq/1J2X+UE+IFLoN7vCrcuclNRpc1jHIKO Wt/GI1ar9mPcACFfXt9aU0CHZd9x X-Google-Smtp-Source: AAOMgpcdcqFhFshxQfdG6ZRv3n6cwib9FPEvsSg7YsAiolwsjUZWjiIbB0Avbj89s1n+ynDEKQ/gHA== X-Received: by 2002:adf:f181:: with SMTP id h1-v6mr9627543wro.214.1529910480360; Mon, 25 Jun 2018 00:08:00 -0700 (PDT) Original-Received: from [192.168.1.12] (x5ce30e85.dyn.telefonica.de. [92.227.14.133]) by smtp.gmail.com with ESMTPSA id s2-v6sm16550376wrn.75.2018.06.25.00.07.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 00:07:59 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:101088 Archived-At: This is a multi-part message in MIME format. --===============1803191040249921862== Content-Type: multipart/alternative; boundary="------------060509010602070804090005" This is a multi-part message in MIME format. --------------060509010602070804090005 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Idris Samawi Hamid ادريس سماوي حامد > 25. Juni 2018 um 00:46 > Dear gang, > > mtx-context | current version: 2018.06.24 18:28 > > In the attached and below, we want sectioning numbers placed and > naturally aligned in the margin: > > ======= > \definecombinedlist % \setuplist[] > [content] > [section] > [level=section, > alternative=c, > criterium=local] > > \setuphead[section][alternative=inmargin] > \setupitemize[1][inmargin][stopper=] > > \placecontent > > \starttext > \startsection[title= First] > \input ward > \stopsection > \startsection[title= Second] > \startitemize[r] > \startitem[] \input ward \stopitem > \startitem[] \input ward \stopitem > \stopitemize > \stopsection > \stoptext > ======= > > 1. What is the most straightforward way to to the section numerals > generated by \placecontent placed and aligned inmargin? \define[1]\SectionlistNumbercommand {\llap{#1\hskip\leftmargindistance}} \setuplist [section] [alternative=c, criterium=local, width=0pt, distance=0pt, numbercommand=\SectionlistNumbercommand] Wolfgang --------------060509010602070804090005 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Dear gang,

mtx-context     | current version: 2018.06.24 18:28

In the attached and below, we want sectioning numbers placed and naturally aligned in the margin:

=======
\definecombinedlist % \setuplist[]
[content]
[section]
[level=section,
alternative=c,
criterium=local]

\setuphead[section][alternative=inmargin]
\setupitemize[1][inmargin][stopper=]

\placecontent

\starttext
\startsection[title= First]
\input ward
\stopsection
\startsection[title= Second]
\startitemize[r]
\startitem[] \input ward \stopitem
\startitem[] \input ward \stopitem
\stopitemize
\stopsection
\stoptext
=======

1. What is the most straightforward way to to the section numerals generated by \placecontent placed and aligned inmargin?

\define[1]\SectionlistNumbercommand
  {\llap{#1\hskip\leftmargindistance}}

\setuplist
  [section]
  [alternative=c,
   criterium=local,
   width=0pt,
   distance=0pt,
   numbercommand=\SectionlistNumbercommand]


Wolfgang
--------------060509010602070804090005-- --===============1803191040249921862== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1803191040249921862==--