From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101085 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 01:09:02 +0200 Message-ID: <5B30248E.8080208@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="===============0586416606843268559==" X-Trace: blaine.gmane.org 1529881644 28596 195.159.176.226 (24 Jun 2018 23:07:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2018 23:07:24 +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 01:07:20 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 1fXE6J-0007LJ-NT for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jun 2018 01:07:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6365339EFA; Mon, 25 Jun 2018 01:09:17 +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 90fAZ7KTTXfR; Mon, 25 Jun 2018 01:09:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BF8A539EFB; Mon, 25 Jun 2018 01:09:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F227F39EF8 for ; Mon, 25 Jun 2018 01:09:15 +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 anZuowit_NrR for ; Mon, 25 Jun 2018 01:09:15 +0200 (CEST) Original-Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (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 6BD4E39EF7 for ; Mon, 25 Jun 2018 01:09:05 +0200 (CEST) Original-Received: by mail-wm0-f43.google.com with SMTP id r125-v6so7946490wmg.2 for ; Sun, 24 Jun 2018 16:09:05 -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=yFRUwcZ5gUP+iKlF7AKGZhaGdcDD5vrBLm9St64Cldw=; b=kKRM7PnwwezYeFR26Me5N1kCZPaKcbOfPD8ksLnzPHb3EEc3GHJ3qs5CtJJwsnhX7W max2jASBMm1Yl2Mr9FCbuRE3AUKll8cGzug9zvD25r/qbZeCZVwgToCm3jFv87+TZaKP aDncBohdWkd01lteeKIl29uNBc8ZNyhTjg4d04yVjJeGUdwMCkT6xcvt92G6ELx282zv S203ui//49NhWzuu/wrB8RVMs/NUTqHxs/rbh9TiFzjsxy0XuwABGnQtsJksFr4EAGyv vinrWEWLumJwBlH4IX/NoQjSd9cFxKuy07fHB9bON3Xg9TpPIHYeHf9Qx1nFucFHEwgz WYIA== 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=yFRUwcZ5gUP+iKlF7AKGZhaGdcDD5vrBLm9St64Cldw=; b=WC2pJhFcHZ2p+6wMD+/tOGx2VMlEtlrJJI0ofyOi6rAtx/GsSvI+WeUOQQZuetc4+8 7BMLlag1/Fu/4FN19aggyobJSYhU6RXE5VwxsZ3ruSBszU56M9Q4qTfqprsHD6CxYbzK XBRCFAqxAE/5v8Vkrxzd5Zom05OcrQwiDvyYOLetzzHatkuiRIw+JTScF4IrcKXaEBD1 MR1s93Vw1fuwTUtUwogXUyWX6n7ScziRrweUEUj7WPleUTC9vYOxgQCVwHTG9FLbpNjE MZf0V0wRo4+bcjMl4z5yCdFHSTTmeaZSAEI22H2NqQffBSWYP6qvf99mE+sDBZxM46nD kd2g== X-Gm-Message-State: APt69E0Dk/G1eCQyBdyJNnfH80LgeKqmh8vSwErdygHMQRH5qrjklSM2 kCkP+lMpPDcXGs4qZOIl5kjtxX4X X-Google-Smtp-Source: ADUXVKJyKANnfAp7TgCXoOigmUx8AqTMHp+C9OAtwChdmt8kbU7QcB2zeWutHgBLkzAEPr+yn/iSmA== X-Received: by 2002:a1c:1808:: with SMTP id 8-v6mr8221357wmy.113.1529881744814; Sun, 24 Jun 2018 16:09:04 -0700 (PDT) Original-Received: from [192.168.1.12] (x590f3c48.dyn.telefonica.de. [89.15.60.72]) by smtp.gmail.com with ESMTPSA id n16-v6sm8145887wrq.43.2018.06.24.16.09.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 16:09:04 -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:101085 Archived-At: This is a multi-part message in MIME format. --===============0586416606843268559== Content-Type: multipart/alternative; boundary="------------030803000101010902000100" This is a multi-part message in MIME format. --------------030803000101010902000100 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? > > 2. Oddity: Why does the TOC in the attached example default to a > monospaced font? You put \placecontent before \starttext but the default fonts are loaded after \starttext. When you now put text in a box before \starttext a monospaced font is loaded as replacement for the missing text font. Wolfgang --------------030803000101010902000100 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?

2. Oddity: Why does the TOC in the attached example default to a monospaced font?

You put \placecontent before \starttext but the default fonts are loaded after \starttext.

When you now put text in a box before \starttext a monospaced font is loaded as replacement for the missing text font.

Wolfgang
--------------030803000101010902000100-- --===============0586416606843268559== 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 --===============0586416606843268559==--