ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: styling individual parts of ToC entry
Date: Sat, 5 Sep 2020 10:30:42 +0200	[thread overview]
Message-ID: <21BCC9A3-27F0-45C9-AFCB-9238A454D99E@fiee.net> (raw)
In-Reply-To: <b7f42ead-ab57-78ce-f17c-202b5edc7d46@gmail.com>


> Am 05.09.2020 um 03:35 schrieb jbf <roma83537@gmail.com>:
> 
> (1) the author's names lined up vertically throughout the ToC, and 

That would require to typeset the ToC as a table/tabulate; I remember that was hard to do, and I can’t remember in which product I used it, so I can’t look it up.

Maybe an \inframed of your desired width would be a solution?

e.g.
\inframed[width=5cm,frame=off,style=boldface,align=flushleft]{#1}%
\hskip 1cm%
\inframed[width=5cm,frame=off,align=flushleft]{\structurelistuservariable{author}}

(Untested)

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

If you need different styles within your textcommand (\TitleTocEntry), just set them there, i.e. \bold{#1} or {\bf #1}. Or as options of \inframed, as above.


Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-09-05  8:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-05  1:35 jbf
2020-09-05  8:30 ` Henning Hraban Ramm [this message]
2020-09-05  9:16 ` Wolfgang Schuster
2020-09-06  0:03   ` jbf
2020-09-06  7:36     ` Wolfgang Schuster
2020-09-06 23:31       ` jbf
2020-09-07  6:57         ` Wolfgang Schuster
2020-09-09  6:04           ` jbf
2020-09-09  7:10             ` Wolfgang Schuster
2020-09-09  9:39               ` jbf

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=21BCC9A3-27F0-45C9-AFCB-9238A454D99E@fiee.net \
    --to=texml@fiee.net \
    --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).