* Table of Contents sectioning numbers in margin + oddity
@ 2018-06-24 22:46 Idris Samawi Hamid ادريس سماوي حامد
2018-06-24 23:09 ` Wolfgang Schuster
2018-06-25 7:07 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-24 22:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 954 bytes --]
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
[-- Attachment #2: test-content.pdf --]
[-- Type: application/pdf, Size: 14276 bytes --]
[-- Attachment #3: test-content.tex --]
[-- Type: application/x-tex, Size: 442 bytes --]
[-- Attachment #4: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Table of Contents sectioning numbers in margin + oddity
2018-06-24 22:46 Table of Contents sectioning numbers in margin + oddity Idris Samawi Hamid ادريس سماوي حامد
@ 2018-06-24 23:09 ` Wolfgang Schuster
2018-06-24 23:17 ` Idris Samawi Hamid ادريس سماوي حامد
2018-06-25 7:07 ` Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2018-06-24 23:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1211 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 2281 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Table of Contents sectioning numbers in margin + oddity
2018-06-24 23:09 ` Wolfgang Schuster
@ 2018-06-24 23:17 ` Idris Samawi Hamid ادريس سماوي حامد
2018-06-25 7:10 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-24 23:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster
<schuster.wolfgang@gmail.com> 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.
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Table of Contents sectioning numbers in margin + oddity
2018-06-24 23:17 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2018-06-25 7:10 ` Wolfgang Schuster
2018-06-25 12:39 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2018-06-25 7:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 670 bytes --]
> 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
> <schuster.wolfgang@gmail.com> 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
[-- Attachment #1.2: Type: text/html, Size: 1836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Table of Contents sectioning numbers in margin + oddity
2018-06-25 7:10 ` Wolfgang Schuster
@ 2018-06-25 12:39 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 0 replies; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-06-25 12:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 25 Jun 2018 01:10:18 -0600, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
>
>> 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
>> <schuster.wolfgang@gmail.com> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Table of Contents sectioning numbers in margin + oddity
2018-06-24 22:46 Table of Contents sectioning numbers in margin + oddity Idris Samawi Hamid ادريس سماوي حامد
2018-06-24 23:09 ` Wolfgang Schuster
@ 2018-06-25 7:07 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2018-06-25 7:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1129 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 2232 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-25 12:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-24 22:46 Table of Contents sectioning numbers in margin + oddity Idris Samawi Hamid ادريس سماوي حامد
2018-06-24 23:09 ` Wolfgang Schuster
2018-06-24 23:17 ` Idris Samawi Hamid ادريس سماوي حامد
2018-06-25 7:10 ` Wolfgang Schuster
2018-06-25 12:39 ` Idris Samawi Hamid ادريس سماوي حامد
2018-06-25 7:07 ` Wolfgang Schuster
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).