[NTG-context] Table of Contents sectioning numbers in margin + oddity

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Jun 25 01:09:02 CEST 2018



> Idris Samawi Hamid ادريس سماوي حامد <mailto:Idris.Hamid at colostate.edu>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180625/672d82b7/attachment.html>


More information about the ntg-context mailing list