Table of Contents sectioning numbers in margin + oddity
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? Thanks in advance. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512
Idris Samawi Hamid ادريس سماوي حامد mailto:Idris.Hamid@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
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster
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.
Ah, new protocol... many thanks. Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512
Idris Samawi Hamid ادريس سماوي حامد mailto:Idris.Hamid@colostate.edu 25. Juni 2018 um 01:17 On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster
wrote: 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.
Ah, new protocol... many thanks.
Putting \placecontent or any other text creating command before \starttext was always wrong. Wolfgang
On Mon, 25 Jun 2018 01:10:18 -0600, Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد mailto:Idris.Hamid@colostate.edu 25. Juni 2018 um 01:17 On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster
wrote: 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.
Ah, new protocol... many thanks.
Putting \placecontent or any other text creating command before \starttext was always wrong.
Of course, was referring to the use of fixed-width for default font in such an event.. -) Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512
Idris Samawi Hamid ادريس سماوي حامد mailto:Idris.Hamid@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?
\define[1]\SectionlistNumbercommand {\llap{#1\hskip\leftmargindistance}} \setuplist [section] [alternative=c, criterium=local, width=0pt, distance=0pt, numbercommand=\SectionlistNumbercommand] Wolfgang
participants (2)
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Wolfgang Schuster