From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108631 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jbf Newsgroups: gmane.comp.tex.context Subject: styling individual parts of ToC entry Date: Sat, 5 Sep 2020 11:35:53 +1000 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5231335969066310452==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 05 03:36:50 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEN8L-00063L-Tm for gctc-ntg-context-518@m.gmane-mx.org; Sat, 05 Sep 2020 03:36:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3B1EB1A8A8A; Sat, 5 Sep 2020 03:36:09 +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 hphpYj9TBv3j; Sat, 5 Sep 2020 03:36:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6D2AE1A8ADC; Sat, 5 Sep 2020 03:36:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F32441A8A8A for ; Sat, 5 Sep 2020 03:36:05 +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 DwRZmX5ytN5Q for ; Sat, 5 Sep 2020 03:36:05 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.176; helo=mail-pl1-f176.google.com; envelope-from=roma83537@gmail.com; receiver= Original-Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2A5131A8A10 for ; Sat, 5 Sep 2020 03:36:05 +0200 (CEST) Original-Received: by mail-pl1-f176.google.com with SMTP id h2so1952689plr.0 for ; Fri, 04 Sep 2020 18:36:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=/vDmncwhoWhX8N2lKcCWQcR7nmmgxlp32R1T/1jdtgI=; b=l2YkuW8TA1ECRnJj3GOkMIfhslXB3sIH2xbomteeAQgh3Btgk3+4PTY0xSwuIqjS+l 3lU5XWusbXBEIFs4PcnuqdIxsstEzqOL+X6qthIJZ74viAJA8hsn0n92l2mn8iFpRJ2Z T9OSe6ATnAjzaqjhXI1Vels4rCp7rnWnIEL1DrxKhLuJnGaoQSzkmJ7076jcuRSCxYxf AWlXctFsR5GaoZM2czD7k0zMqIpDmmQ1SNpGelWCXVY8v0QO+7I2On533dZMX6qng/ET jJdd9SCN/EdDPG/a3MlxSQhW/0Nc34PgArCltxm3T+riJhAkJmNgBiY46KDlb4KNI/nb CWDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=/vDmncwhoWhX8N2lKcCWQcR7nmmgxlp32R1T/1jdtgI=; b=JbxDVnwewnGoWgTw6rLcopJ/GZDJxuDGFgscbs4xbEdVn5bWndrB8EC0tGTfek2Ob9 cF01sopP0l/CnVxflvuSCld4pXW+mv0wQrl5SwvI+rIsFmg2Wwh5w+irgBgX2cblkQ57 EoR9EQ5lWlXl5U0AcYmZpRv/n1TyiXlDHnB7Bv7W7anFjZDeni6LH1tsn3Vsg8imYjys xm6lqwQa6PUlbV7lCGfFnwbe+KPGurXeaYJFag/Lqb99qvbdkYTT9BAYikO3KSqun3Zz UmbZigcRfgckZ8w4w6wj11IviF4/vbTK/+KLWP1bGB2rxw/2FNgz+ZnYhovTG7P7kFxr RqdQ== X-Gm-Message-State: AOAM5313Sv6MszbNGppHrwugGLUXYcJdyZCBPcYQFowV2NTYhFlxdXuH k1M+0uQ/DlK69LhcAEWYCzNEy3kPQpAFag== X-Google-Smtp-Source: ABdhPJx+1LFjcN8okQiSEoPlGu8rFuoQ+EInxo56pGL4GZXPKz/5b8bODBd75vt5s+QE+yuog7nQqg== X-Received: by 2002:a17:90a:d703:: with SMTP id y3mr10775372pju.183.1599269758074; Fri, 04 Sep 2020 18:35:58 -0700 (PDT) Original-Received: from [192.168.0.100] ([120.21.220.27]) by smtp.gmail.com with ESMTPSA id z23sm6543136pgv.57.2020.09.04.18.35.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Sep 2020 18:35:57 -0700 (PDT) Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:108631 Archived-At: This is a multi-part message in MIME format. --===============5231335969066310452== Content-Type: multipart/alternative; boundary="------------214CFF0E7A3E4BC9945D5248" Content-Language: en-US This is a multi-part message in MIME format. --------------214CFF0E7A3E4BC9945D5248 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Now that with Hraban's invaluable assistance I am able to include title, subtitle, author as and when necessary in the ToC and put them on the same line if I need to, I have two questions that I have not found a satisfactory solution to after playing around with various possibilities. I need: (1) the author's names lined up vertically throughout the ToC, and (2) the first part of the entry (e.g. Foreword) to be bold, but the author name to be regular text. An adjusted version of Hraban's setup can show what I have tried by way of example: %---------------- \define[1]\TitleTocEntry{%   #1\hskip 1cm% title    \structurelistuservariable{author}%   } \setuplist[title][textstyle=bold,   textcommand=\TitleTocEntry, ] %--------------- /Question 1:/ /How to get the two author names to line up vertically./ Given that I have both a Foreword and a Preface, I am using \title for these. And both have separate authors. The titles will be simply 'Foreword' and 'Preface', obviously. *Foreword     Author name* *Preface    Author name* I am using \hskip 1cm to separate the authors' names from either of those two words. But this does not give me the kind of exact positioning I need to get the two author names directly underneath each other in the list. I have tried various alternatives to \hskip, but none of them can give me the correct proportional distance. The distance is obviously being controlled by the fact that 'Foreword' is 8 characters and 'Preface' is 7. Is what I want only obtainable with a table setup? The issue might or might not be more complicated when I get to main chapters, where the author names need to line up with the Foreword and Preface author names as well. There will be, e.g. Chapter One  Title                        Author name // /Question 2:/ /How to independently get Foreword and Preface to be bold, but the authors' names to be regular./ \setuplist offers me options like textstyle, pagestyle, numberstyle, but they apply to everything (both Foreword/Preface and Authors' name are bold). I thought perhaps I could control it from within the document, e.g. \starttitle[title={\ss\bf Foreword}][author={A. Uthor}] But that does the same - both Foreword and A. Uthor end up bold. And besides, I also want to style the ToC independently of the heads if I can. The wiki and various manuals do offer various tips on modifying the ToC, but I cannot find anything regarding the two questions above - not yet, anyway. If someone knows where, please point me to it. Julian --------------214CFF0E7A3E4BC9945D5248 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Now that with Hraban's invaluable assistance I am able to include title, subtitle, author as and when necessary in the ToC and put them on the same line if I need to, I have two questions that I have not found a satisfactory solution to after playing around with various possibilities.

I need:

(1) the author's names lined up vertically throughout the ToC, and

(2) the first part of the entry (e.g. Foreword) to be bold, but the author name to be regular text.

An adjusted version of Hraban's setup can show what I have tried by way of example:

%----------------

\define[1]\TitleTocEntry{%
  #1\hskip 1cm% title
   \structurelistuservariable{author}% 
  }

\setuplist[title][textstyle=bold,
  textcommand=\TitleTocEntry,
]

%---------------

Question 1: How to get the two author names to line up vertically. Given that I have both a Foreword and a Preface, I am using \title for these. And both have separate authors. The titles will be simply 'Foreword' and 'Preface', obviously.

Foreword     Author name

Preface    Author name

I am using \hskip 1cm to separate the authors' names from either of those two words. But this does not give me the kind of exact positioning I need to get the two author names directly underneath each other in the list. I have tried various alternatives to \hskip, but none of them can give me the correct proportional distance. The distance is obviously being controlled by the fact that 'Foreword' is 8 characters and 'Preface' is 7. Is what I want only obtainable with a table setup?

The issue might or might not be more complicated when I get to main chapters, where the author names need to line up with the Foreword and Preface author names as well. There will be, e.g.

Chapter One  Title

                       Author name

Question 2: How to independently get Foreword and Preface to be bold, but the authors' names to be regular. \setuplist offers me options like textstyle, pagestyle, numberstyle, but they apply to everything (both Foreword/Preface and Authors' name are bold). I thought perhaps I could control it from within the document, e.g.

\starttitle[title={\ss\bf Foreword}][author={A. Uthor}]

But that does the same - both Foreword and A. Uthor end up bold. And besides, I also want to style the ToC independently of the heads if I can.

The wiki and various manuals do offer various tips on modifying the ToC, but I cannot find anything regarding the two questions above - not yet, anyway. If someone knows where, please point me to it.

Julian

--------------214CFF0E7A3E4BC9945D5248-- --===============5231335969066310452== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5231335969066310452==--