]\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
ble:
>
> \define[1]\ChapterTocEntry{%
> \structurelistuservariable{author}\crlf%
> #1\crlf% title
> %\structurelistuservariable{subtitle}}%
> }
>
> \setuplist[chapter][
> textcommand=\ChapterTocEntry,
> ]
>
> So, in other words I swapped the word 'section' in your
) and an author, and added, below what I
already have in the preamble:
\define[1]\ChapterTocEntry{%
\structurelistuservariable{author}\crlf%
#1\crlf% title
%\structurelistuservariable{subtitle}}%
}
\setuplist[chapter][
textcommand=\ChapterTocEntry,
]
So, in other words I swapped the word
it up!):\definestructureconversionset[frontpart:pagenumber][][romannumerals]\definestructureconversionset[bodypart:pagenumber] [][numbers]\startsectionblockenvironment[frontpart]\setupuserpagenumber[numberconversion=romannumerals]\setuplist[chapter][pageconversionset=pagenumber]\setuppagenumber[nu
this MWE):
%--
\setuphead [subject] [incrementnumber=list]
\setuphead [title] [incrementnumber=list]
\setupcombinedlist
[content]
[list={chapter,title,section,subsection}]\switchtobodyfont[10.5pt]
\setuplist[chapter][style=normal,alternative=b, before=]
And then I
where - wiki? elsewhere? Not sure. I didn't
make it up!):
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setup
[bodypart:pagenumber] [][numbers]\startsectionblockenvironment[frontpart]\setupuserpagenumber[numberconversion=romannumerals]\setuplist[chapter][pageconversionset=pagenumber]\setuppagenumber[number=1]\stopsectionblockenvironment\startsectionblockenvironment[bodypart]\setuppagenumber[number=1
]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuplist[chapter][pageconversionset=pagenumber]
\setuppagenumber[number=1]
\stopsectionblockenvironment
\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment
The frontmatter
]
\setupuserpagenumber[numberconversion=romannumerals]
\setuplist[chapter][pageconversionset=pagenumber]
\setuppagenumber[number=1]
\stopsectionblockenvironment
\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment
The frontmatter is some 16 pages worth (ends
nset=section,
> sectionstopper=.]
>
> \setuphead
> [section]
> [sectionsegments=section,
> sectionconversionset=section,
> sectionstopper=.]
>
> \setuphead
> [title]
> [alternative=middle,
> style=WOR
style=WORD]
\setuplist
[chapter]
[label=yes,
style=bold,
width=fit,
distance=\spaceamount]
\setuplist
[section]
[margin=3em,
width=1.5em]
\starttext
\completecontent
...
\stoptext
Wolfgang
_
Hello,
I'm attempting to typeset a short book using ConTeXt (current version:
2020.08.09 22:03).
EXAMPLE:
\setuplist[content][alternative=c]
\setuphead[title][alternative=middle,style=cap]
\setuphead[chapter][number=no]
\setuphead[section][sectionsegments=section]
\setuplist[section][width
pagebreak.
>> \definepagechecker
>> [willi]
>> [method=1,before=,after=,inbetween={\page}]
>> \setuplist
>> [chapter]
>> [prefix=no,
>> sectionnumber=no,
>> headnumber=no,
>> alternative=command,
>> command=\Mychaptercommand,
&
es to be aligned:
>>>>
>>>> Preface
>>>> I XYZ
>>>>...
>>>> VIII XYZ
>>>>...
>>>>
>>>> I have tried to do my homework by playing with \setuphead, but I am
>>>>
about setting distance for \setuplist[chapter] in the sectionblock
frontpart with the desired width?
That does not seem to change the layout, unfortunately. I have tried
with `margin` and `aligntitle` as well:
\setuplist[chapter][distance=1cm,aligntitle=yes]
\startsectionblockenvironment[frontpart
reference I include a screenshot of the problematic pagebreak.
\definepagechecker
[willi]
[method=1,before=,after=,inbetween={\page}]
\setuplist
[chapter]
[prefix=no,
sectionnumber=no,
headnumber=no,
alternative=command,
command=\Mychaptercommand,
inbetween={\checkpage[willi
ith \setuphead, but I am
>> afraid I need your help on this.
>
> Sorry, but too tired to type a sample.
>
> How about setting distance for \setuplist[chapter] in the sectionblock
> frontpart with the desired width?
That does not seem to change the layout, unfortunately. I have tr
gt; I'd prefer all the titles to be aligned:
>
> Preface
>I XYZ
> ...
> VIII XYZ
> ...
>
> I have tried to do my homework by playing with \setuphead, but I am
> afraid I need your help on this.
Sorry, but too tired to type a sample.
How
Thank Pablo, Wolfgang,
I have learned more by reading your replies than by myself in the rest
of the afternoon. Just one more thing:
>>> 1. Increase the space between Roman numbers and titles in the ToC.
>>
>> distance with dimension is the key in \setuplist.
>
> Corr
is the key in \setuplist.
Correct but it's also important to set "width" to a value which is large
enough to fit the number.
2. Vertically center the ToC (wrt to the text area).
Use a makeup for the TOC (if and only if it takes a single page).
3. Suppress page numbers and headers in
between Roman numbers and titles in the ToC.
distance with dimension is the key in \setuplist.
> 2. Vertically center the ToC (wrt to the text area).
Use a makeup for the TOC (if and only if it takes a single page).
> 3. Suppress page numbers and headers in all blank pages.
Break pages
of the problematic pagebreak.
\definepagechecker
[willi]
[method=1,before=,after=,inbetween={\page}]
\setuplist
[chapter]
[prefix=no,
sectionnumber=no,
headnumber=no,
alternative=command,
command=\Mychaptercommand,
inbetween={\checkpage[willi][lines=4
Fabrice Couvreur schrieb am 11.07.2020 um 16:30:
Hi Wolfgang,
Sorry but i was wrong on what i want to get :
1 My first chapter
1.1 My first section
1.1.1 My first subsection
Set the margin values:
\setuplist [section][margin=1em]
\setuplist [subsection] [margin=2em
Fabrice Couvreur schrieb am 11.07.2020 um 15:02:
Hello,
I would like to reduce the space between the numbering and the title of
the chapters, sections and subsections.
I would also like to have this:
1 My first chapter
1.1 My first section
1.1.1 My first subsection
You can use
\setuplist
Hello,
I would like to reduce the space between the numbering and the title of the
chapters, sections and subsections.
I would also like to have this:
1 My first chapter
1.1 My first section
1.1.1 My first subsection
\setuplist
[chapter]
[style=bold,width=10mm]
\starttext
\placelist
:05:
Hi list,
I want my table of contents to look like:
Chapter 1
section 5
section 10
section 15
In other words with section items indented.
I presumed I would need to do something with \setuplist[section]. I
know how to control interline
jbf schrieb am 02.06.2020 um 03:05:
Hi list,
I want my table of contents to look like:
Chapter 1
section 5
section 10
section 15
In other words with section items indented.
I presumed I would need to do something with \setuplist[section]. I
Hi list,
I want my table of contents to look like:
Chapter 1
section 5
section 10
section 15
In other words with section items indented.
I presumed I would need to do something with \setuplist[section]. I know
how to control interline
was not present.
%%% Begin %%%
\setuppapersize [A4] [A4]
\setupinteraction [state=start]
\setuplist [chapter]
[ alternative=command, %interactive
command=\myTOCrow,
before=\myTOCbefore,
after=\myTOCafter
]
% #1 == Section number; #2 == text; #3 == page number
\define[3]\myTOCrow
[A4] [A4]
\setupinteraction [state=start]
\setuplist [chapter]
[ alternative=command, %interactive
command=\myTOCrow,
before=\myTOCbefore,
after=\myTOCafter
]
% #1 == Section number; #2 == text; #3 == page number
\define[3]\myTOCrow{\NC #2 \NC dummy \NC John Doe \NC #3 \NC\NR
without hyperlinks
>>>
>>> alternative=interactive : Custom TOC with hyperlinks
>>
>> Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist
>
> Thank-you Wolfgang for the quick reply and also Hraban for beating me to it
> on the Wiki - I
t;>> hyperlinks. Is there a simple configuration option that I have missed or do
>>> I need to create my own links somehow?
[snip]
>> alternative=command : Cutsom TOC without hyperlinks
>>
>> alternative=interactive : Custom TOC with hyperlinks
>
> Th
\hskip 1em
>> \vtop{\hsize\dimexpr\textwidth-3em\relax#2}
>> \egroup \par}
>>
>> % Comment out this next line to regain section hyperlinks in the ToC
>> \setuplist[section][alternative=command,command=\SectionListEntry]
>
> alternative
[option=bookmark]
\define[3]\SectionListEntry
{\par \leftaligned\bgroup
\hbox to 2em{#3}%
\hskip 1em
\vtop{\hsize\dimexpr\textwidth-3em\relax#2}
\egroup \par}
% Comment out this next line to regain section hyperlinks in the ToC
\setuplist[section][alternative
ut this next line to regain section hyperlinks in the ToC
> \setuplist[section][alternative=command,command=\SectionListEntry]
>
> \starttext
> Table of Contents
> \placecontent[criterium=all]
> \placebookmarks[chapter,subject]
Should be \placebookmarks[chapter,section]. Move it in f
{\par \leftaligned\bgroup
\hbox to 2em{#3}%
\hskip 1em
\vtop{\hsize\dimexpr\textwidth-3em\relax#2}
\egroup \par}
% Comment out this next line to regain section hyperlinks in the ToC
\setuplist[section][alternative=command,command=\SectionListEntry]
\starttext
Table
[content]
> [list={chapter,section,title,subject,subsection}]
> \setuplist[chapter][style=normal,alternative=b, before=]
Hi Julian,
\completecontent is similar to simply use:
\title{Contents}
\placelist[content]
If you include title in \setupcombinedlist[content], you are
t; \setupcombinedlist
> [content]
> [list={chapter,section,title,subject,subsection}]
> \setuplist[chapter][style=normal,alternative=b, before=]
>
> Grateful for any help with this,
Usually the unnnumbered headers aren’t part of any ToC, but since you include
title, you also get the T
of the page it is
appearing on, is there a way I can prevent that line from being produced
as part of the ToC? I assume it would be something I need to do in the
following setup:
\setupcombinedlist
[content]
[list={chapter,section,title,subject,subsection}]
\setuplist[chapter][style=normal
I missing something or have I hit a bug?
>
> You can show the realpage value but there is no proper interface setting
> (e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think
> it's better to do this.
Many thanks for your reply, Wolfgang.
In that case, whi
[chapter] use the realpage counter?
According to i-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).
While \setuplist inherits values from \setupcounter doesn't mean it
supports all of them and keys like "counter" work only when you create a
ne
-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).
I really need that, since the document I’m composing needs chapter and
part page numbering independent from the whole document page numbering.
Am I missing something or have I hit a bug?
Many thanks for your
multi columns text but it's a very recent addition and
> lacks some features like column balancing.
>
> begin columns
> \setuphead
>[chapter,section,subsection,subsubsection]
>[before={\blank[nowhite]},
> after={\blank[nowhite]},
> grid=no]
>
> \setupwh
]
\setuplist
[chapter,section,subsection,subsubsection]
[before={\blank[nowhite]},
after={\blank[nowhite]}]
\setupcolumns
[grid=no]
\starttext
\startcolumns
\completecontent
\chapter{Chapter}
\samplefile{knuth}
\section{Section}
\samplefile{weisman}
\subsection{Subsection
This is what I'm using at the moment:
% Tables of Contents
\setuplist[part][textstyle={\sl},pagestyle={\tf}]
\setuplist[chapter][textstyle={\sl},pagestyle={\tf},label=yes,width=fi
t,stopper=~~]
\setuplist[section][width=42pt,margin=10pt,style={\tf}]
\setuplist[subsection][width=42pt,margin
way to do this?
It’s not obvious in https://wiki.contextgarden.net/Table_of_Contents
but you need
\setuplist[subsection][margin=2cm] etc.
see
https://wiki.contextgarden.net/Command/setuplist
Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.d
On 3/16/20 7:00 PM, Wolfgang Schuster wrote:
> [...]
> A way to fix the wrong spacing here is to add a strut option to
> \setuplist (or use always the upright font to set the strut values).
Any of these ones would be great to avoid the corner cases.
Pablo
--
http://www
a strut option to
\setuplist (or use always the upright font to set the strut values).
Of course one could also tweak the ht/dp of a specific style using one
of the pseudo features.
Also possible because the larger value for the ex-height of the italic
font causes the bigger strut dimensions
, e.g.
\setuplist[strut=no]. The problem in this case is that the ex-height for
the italic font is larger than the ex-height for the upright font which
pushes the text down because add a strut at the begin and end of the
entries.
Many thanks for your reply, Wolfgang.
I don’t get \setuplist[strut
Pablo Rodriguez schrieb am 16.03.2020 um 10:01:
On 3/15/20 10:56 PM, Wolfgang Schuster wrote:
Pablo Rodriguez schrieb am 15.03.2020 um 20:32:
[...]
Everthing is fine when italic fonts aren’t used.
It can be fixed with a strut option for lists, e.g.
\setuplist[strut=no]. The problem
On 3/15/20 10:56 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 15.03.2020 um 20:32:
>> [...]
>> Everthing is fine when italic fonts aren’t used.
>
> It can be fixed with a strut option for lists, e.g.
> \setuplist[strut=no]. The problem in this ca
be fixed with a strut option for lists, e.g.
\setuplist[strut=no]. The problem in this case is that the ex-height for
the italic font is larger than the ex-height for the upright font which
pushes the text down because add a strut at the begin and end of the
entries.
Below is a minimal example
; title to my transform function.
> > \startluacode
> > userdata = userdata or {}
> > function userdata.mytransform(title)
> > --context(title) --this is just fine, but isn't very useful
> > context(string.reverse(title))
> > end
> > \stopluacode
> > \def\trans
useful
> > context(string.reverse(title))
> > end
> > \stopluacode
> > \def\transformtitle#1%
> > {\ctxlua{userdata.mytransform([==[#1]==])}}
> > \setuplist[chapter][textcommand=\transformtitle]
> > \starttext
> > \completecontent
> > \startchapter[titl
context(title) --this is just fine, but isn't very useful
> context(string.reverse(title))
> end
> \stopluacode
>
> \def\transformtitle#1%
> {\ctxlua{userdata.mytransform([==[#1]==])}}
>
> \setuplist[chapter][textcommand=\transformtitle]
>
> \starttext
&
ata or {}
function userdata.mytransform(title)
--context(title) --this is just fine, but isn't very useful
context(string.reverse(title))
end
\stopluacode
\def\transformtitle#1%
{\ctxlua{userdata.mytransform([==[#1]==])}}
\setuplist[chapter][textcommand=\transformtitle]
\startt
tle#1%
{\ctxlua{userdata.mytransform([==[#1]==])}}
\setuplist[chapter][textcommand=\transformtitle]
\starttext
\completecontent
\startchapter[title={Sample Chapter}]
\stopchapter
\stoptext
When I print the actual title that is passed to mytransform, all I get is
\currentlistentrytitle an
Jon Wong schrieb am Fr., 20. Dez. 2019, 15:18:
> Is it \setuplist[subsubject][headnumber=yes]?
>
\setuphead[...][incrementnumber=list]
Wolfgang
>
___
If your question is of interest to others as well, p
Is it \setuplist[subsubject][headnumber=yes]?
___
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
nt.0f”,(\pagenumber+1)/2}}
\setuplist
[section]
[pagecommand=\SectionTOCPagenumber]
My question is: is there a way to manipulate the pagenumber in the TOC such,
that it reflects the pagenumbers in the document?
Kind re
1,
just 1, for example).
This behaviour should apply both to the titles in the text and in the TOC..
With the code:
\definestructureresetset[default][1,0,1][1] % reset part and section,
but not chapter, from wiki
\setuphead[sectionresetset=default]
\setuphead[part]
[placehead=yes,
number=yes,]
\setup
apply both to the titles in the text and in the TOC..
With the code:
\definestructureresetset[default][1,0,1][1] % reset part and section, but not
chapter, from wiki
\setuphead[sectionresetset=default]
\setuphead[part]
[placehead=yes,
number=yes,]
\setuplist [part]
[number=yes,]
\setuphead [chapter]
Am 2019-01-10 um 15:21 schrieb Otared Kavian :
> Hi Hraban,
>
> Probably instead of
>
>> \setuplist[chapter][
>> before=,
>> after={\placecombinedlist[content][criterium=local]},]
>
> you wanted to say
>
> \setuphead[chapter][
> befor
Hi Hraban,
Probably instead of
> \setuplist[chapter][
> before=,
> after={\placecombinedlist[content][criterium=local]},]
you wanted to say
\setuphead[chapter][
before=,
after={\placecombinedlist[content][criterium=local]}]
which gives the expected result without an
Hello again,
in my current book project I need a local ToC after each chapter title.
What’s wrong with my use of "after"?
The following example leads to a "TeX capacity exceeded" error:
\setupcombinedlist[content][%
list={chapter,section},]
\setuplist[chapter]
]
%\setupuserpagenumber[numberconversion=romannumerals]
%\setuppagenumbering[alternative=doublesided]
%\setuppagenumber[number=1]
%\stopsectionblockenvironment
\setupcombinedlist[content][list={title,chapter}]%,section,subsection}]
\setuplist[chapter, title][width=5mm, style=,textstyle={\ss\bf
}]%,after={\blank
e.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD
Am 2018-09-20 um 17:26 schrieb Wolfgang Schuster
:
> \setupinteraction[state=start]
>
> \define[3]\ChapterTocEntry
> {\maxaligned{#2\hfill#3}}
>
> \setuplist
> [chapter]
> [alternative=interactive
\setupinteraction[state=start]
\define[3]\ChapterTocEntry
{\maxaligned{#2\hfill#3}}
\setuplist
[chapter]
[alternative=interactive,
before=\endgraf,
after=\endgraf,
command=\ChapterTocEntry]
\usemodule[visual]
\starttext
\placelist[chapter][criterium=all]
\dorecurse{5
oto{\currentlistentrypagenumber}[page(\currentlistentrypagenumber)]}
%%%
%\at{}[\structurelistvariable{reference}]
% #3 = \currentlistentrypagenumber
\par
}
\setuplist[chapter][%
alternative=command,
interaction=pagenumber,
textcolor=black,
before=,
inbetween=,
after=,
comm
of the font.
\setuplist[...][textstyle=...]
Secondly I would like to have the page numbers all in the same size,
irrespective from the level.
Thirdly, I would love to adapt the distance between the leader-dots to
a bigger size. How to do that?
Create your own leaders setup with the \definefiller
Dear Wolfgang,
>
> \setuplist
> [section]
> [width=10mm,
> style=,
> textstyle=\ss,
> after={\blank[preference]}]
It works perfectly.
Thank you so much.
Best regards,
Dalyoung
___
.
Is it possible to list them continuously?
Best regards,
Dalyoung
\starttext
\definepagebreak[emptyodd][yes,header, footer, odd]
\setuphead[chapter][page=emptyodd]
\setuphead[title][incrementnumber=list]
\setupcombinedlist[content][list={title,chapter,section,subsection}]
\setuplist[chapter, title
,
Dalyoung
\starttext
\definepagebreak[emptyodd][yes,header, footer, odd]
\setuphead[chapter][page=emptyodd]
\setuphead[title][incrementnumber=list]
\setupcombinedlist[content][list={title,chapter,section,subsection}]
\setuplist[chapter, title][width=5mm, style=,textcommand={\ss\bf
Am 2018-07-23 um 13:06 schrieb Henning Hraban Ramm :
> Dear wizards,
>
> in a list command (i.e. \setuplist[command=\MyCmd]) I use
> \currentlistentrypagenumber to show the page number.
> Now I’d like to make this a link, like in a normal ToC. I didn’t find a
> suitable com
Dear wizards,
in a list command (i.e. \setuplist[command=\MyCmd]) I use
\currentlistentrypagenumber to show the page number.
Now I’d like to make this a link, like in a normal ToC. I didn’t find a
suitable command. Is there one?
Greetlings, Hraban
---
https://www.fiee.net
http
t; \setupheadertexts[{\getmarking[section]}]
> [pagenumber]
> [{\getmarking[chapter]}]
> [pagenumber]
>
>
> \setuppagenumbering[alternative=,location=]
>
>
> \setuplabeltext[fr][chapter=Chapitre ]
>
> \definestructureconversionset
>
n, R, n, n, n]
\definestructureconversionset
[digits]
[n, n, n, n, n]
\setupheads[sectionconversionset=structure]
\setuplist[chapter][style=bold,width=5mm]
\starttext
\starttitle[title={\bf Sommaire}]
\placelist
[chapter,section,subsection]
[criterium=all,
alternative=c]
are valid for \setupcombinedlist.
Ah, our npp-4-context config files for calltips need updating, I have
\definecombinedlist [NAME]
[LIST]
[INHERIT: \setuplist]
but that should be
\definecombinedlist [NAME]
[LIST]
[INHERIT: \setupcombinedlist]
I have the changes only in my local files.
Ah, ok
Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
25. Juni 2018 um 21:42
On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster
wrote:
Idris Samawi Hamid ادريس سماوي حامد schrieb:
\setuphead[chapter] [conversion=R]
\setuplist[chapter][width
On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster
wrote:
Idris Samawi Hamid ادريس سماوي حامد schrieb:
\setuphead[chapter] [conversion=R]
\setuplist[chapter][width=2.8em]
\definecombinedlist
[content]
[chapter]
[level=chapter,
alternative=c,
numberalign=flushright]
Use \setuplist
Idris Samawi Hamid ادريس سماوي حامد schrieb:
\setuphead[chapter] [conversion=R]
\setuplist[chapter][width=2.8em]
\definecombinedlist
[content]
[chapter]
[level=chapter,
alternative=c,
numberalign=flushright]
Use \setuplist to change the numeralign setting, you need also a
distance value
Dear gang,
Trying to get the sectioning numerals in the left margin of the TOC to be
fushright; by default they are flushleft; see attached and below:
===
\setuphead[chapter] [conversion=R]
\setuplist[chapter][width=2.8em]
\definecombinedlist
[content]
[chapter]
[level=chapter
edlist % \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]
\sta
edlist % \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]
\sta
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
etuptyping[bodyfont=9pt, numbering=line, before=\blank, after=\blank]
\setupitemize[paragraph, packed, broad]
%
\setupcombinedlist[content][alternative=c,aligntitle=yes,interaction=pagenumber]
\setuplist[section][margin=2em,]
\setuplist[subsection][margin=5em,]
\setuplist[subsubsection][margin=8em,
below: Line 13 makes the TOC disappear entirely:
==
\setuphead[subject]
[incrementnumber=yes, % keep track of the number
number=no]% but don't show it
\starttext % Approach I
\starttitle[title={Table of Contents},reference={}]
\start
\setuplist[subject,section,subs
he TOC, but style=bold
doesn't work.
In approach II) style=bold works, but the subject heading doesn't
show up.
For each approach, how do we get both subject heading and style=bold
in the TOC?
you set up individual lists elements at another level
\setuplist[subject,section,subsection,subsubs
works, but the subject heading doesn't show
up.
For each approach, how do we get both subject heading and style=bold
in the TOC?
you set up individual lists elements at another level
\setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold]
Ok - see below.
loo
get both subject heading and style=bold in
the TOC?
you set up individual lists elements at another level
\setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold]
looks bad this:
\setupinterlinespace[line=1.4ex]
Between I) and II), which is the current recommended
he uses the apa specification)
> DON'T try this, as we do not implement it (yet)!
>
>
> For the other requests:
>
> \setupbtx [apa:list:title] [style=italic]
> (the default for apa)
>
> \setupbtx [apa:list:title:book] [style={slanted,sans}]
> (untested)
>
ons, a rendering uses the standard list mechanism,
so some of the parameters (such as pagestate) get passed on. See
\setuplist
Others, such as numbering= yes no num index tag short page
controls the numbering of the list. It is numbering=num (or yes for
default and aps) but numbering=no (for apa).
numbering=inde
{slanted,sans}]
(untested)
\setupbtx [apa:list:volume] [style=bold]
(apa default is italic)
On your other questions, a rendering uses the standard list mechanism,
so some of the parameters (such as pagestate) get passed on. See
\setuplist
Others, such as numbering= yes no num index tag short page
controls
fine[3]\SectionListCommand
{\doiftextelse{\structurelistuservariable{test}}{YES}{NO}%
\endgraf}
% \define[3]\SectionListCommand
% {\doifsomethingelse{\rawstructurelistuservariable{test}}{YES}{NO}%
%\endgraf}
\setuplist[section][alternative=command,command=\SectionListCommand]
\starttext
\pla
tureuservariable{author}\crlf
>> }%
>> #1%
>> \doifnotempty{\structurelistuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}}
>>
>> But author/subtitle still don’t show up in the ToC.
>
> You’re still using the wrong command to pr
{\crlf\structureuservariable{subtitle}}}
But author/subtitle still don’t show up in the ToC.
You’re still using the wrong command to print the variables.
\setuplist --> \structurelistuservariable
\setuphead --> \structureuservariab
}%
> #1%
>
> \doifnotempty{\structureuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}}
>
> \setuplist[chapter][textcommand=\ChapterTocEntry]
>
> \starttext
> \completelist[chapter][criterium=all]
>
> \startchapter[
> title={The Use of Typef
Now, my second issue with user variables:
"""
\define[1]\ChapterTocEntry{%
\doifnotempty{\structureuservariable{author}}{\structureuservariable{author}\crlf
}%
#1%
\doifnotempty{\structureuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}}
\setuplist[chapt
If you want to format the TOC line you have to use command=... together with
alternative=command.
\define[3]\ChapterNumber{\line{Chapter #1: #2\hfill#3}}
\setuplist
[section]
[alternative=command,
command=\ChapterNumber]
\starttext
\completecontent
\startsection[title={blabla
I don’t know if I use it wrongly, or it’s a bug in ConTeXt, but use \setuplist
with numbercommand renders wrongly
% this is not working, ``chapter’’ and chapter name overlapped
\define[2]\ChapterNumber{chapter #1: #2}
% have to add extra spaces here to avoid overlapping
% \define[2
101 - 200 of 872 matches
Mail list logo