Visiting the Wiki currently renders this error when you try to search
anything:
Internal error
[59a41338e5823259c54868ec]
/index.php?search=setuplist&title=Special%3ASearch&go=Go Error from line
121 of /var/www/
contextgarden.net/wiki/htdocs/extensions/ConTeXtXML/includes/ConTeXtXMLCon
out yet.
>>
>> Here it is my text:
>>
>> ```
>>
>> setuplist[height=0]
>>
>> \startitemize[n]
>>
>> \item It's impossible --- don't waste my time.
>>
>> \item It's possible, but not worth doing.
>>
>> \item
Am 25.04.24 um 10:46 schrieb h...@hongfeng.ch:
thank you.
just tried, not worked out yet.
Here it is my text:
```
setuplist[height=0]
\startitemize[n]
\item It's impossible --- don't waste my time.
\item It's possible, but not worth doing.
\item I said it was a good
thank you.
just tried, not worked out yet.
Here it is my text:
```
setuplist[height=0]
\startitemize[n]
\item It's impossible --- don't waste my time.
\item It's possible, but not worth doing.
\item I said it was a good ideal all along.
\stopitemize
```
Now the distance betwe
Am 25.04.24 um 10:20 schrieb h...@hongfeng.ch:
which parameter in `\setuplist` is used for adjusting the distance
between the items of a list?
Usually it’s the general line height.
You can use "inbetween=\blank[3pt]" to insert extra space.
(Unteste
which parameter in `\setuplist` is used for adjusting the distance between the
items of a list?
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
Am 23.04.24 um 23:14 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 23.04.2024 um 21:43:
Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm:
I tried to complete https://wiki.contextgarden.net/Command/setuplist,
but I don’t understand all parameters.
Can anyone explain these please
Am 24.04.24 um 01:00 schrieb Bruce Horrocks:
In the source there is a comment relating to location:
%D Regular list entries are bound to a specific location in order to get the
right
%D pagenumber etc.\ associated. When pushing something inbetween (in mkiv) it
ends
%D up directtly in the list.
> On 23 Apr 2024, at 20:43, Henning Hraban Ramm wrote:
>
> Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm:
>> I tried to complete https://wiki.contextgarden.net/Command/setuplist, but I
>> don’t understand all parameters.
>> Can anyone explain these please:
&g
Henning Hraban Ramm schrieb am 23.04.2024 um 21:43:
Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm:
I tried to complete https://wiki.contextgarden.net/Command/setuplist,
but I don’t understand all parameters.
Can anyone explain these please:
* state (start stop): what does this en-/disable
Am 22.04.24 um 18:09 schrieb Henning Hraban Ramm:
I tried to complete https://wiki.contextgarden.net/Command/setuplist,
but I don’t understand all parameters.
Can anyone explain these please:
* state (start stop): what does this en-/disable? collecting entries?
* label (yes no none Name
Am 22.04.24 um 18:30 schrieb Duncan Hothersall:
Hi Hraban,
I can help with one - aligntitle means an unnumbered section will align
in the table of contents under the number rather than the title. So for
example if you have a TOC combining \section and \subject entries, they
would look like th
section
.. A subject
Duncan
On Mon, 22 Apr 2024 at 17:09, Henning Hraban Ramm wrote:
> I tried to complete https://wiki.contextgarden.net/Command/setuplist,
> but I don’t understand all parameters.
>
> Can anyone explain these please:
>
> * state (start stop): what doe
I tried to complete https://wiki.contextgarden.net/Command/setuplist,
but I don’t understand all parameters.
Can anyone explain these please:
* state (start stop): what does this en-/disable? collecting entries?
* label (yes no none Name): language dependent labels? as a prefix or what
[alanindex]\relax}%
\thinspace --\thinspace
\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter[alanindex]\relax}}
\setuplist[chapter][pagecommand=\ChapterListPage]
\setuplist[chapter][pagecommand=\ChapterListPage]
\showgrid
\starttext
\completecontent
\startchapter [title=Knuth
it helps: I currently have
\startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName,
itemTitle=ShortTitle,...]
\setuplist[FMTitle][state=start, alternative=startendfmpages,
criterium=all,]
(\Reference is defined at the in the preamble to input of the
file/component
[SourceTitle][page=yes,
footer={ItemData}]
\definehead[StudyTitle][chapter]
\setuphead[StudyTitle][page=yes,
footer={ItemData}]
\definetext[ItemData][footer][
{\at[\Reference]–
\at[\namedstructureuservariable{}{authorInitials}endPage]}
]
\setuplist[SourceTitle][
state=start,
textcolor=black
at 21:38 (+0200), Lutz Haseloff wrote:
> Hi Jim,
> perhaps does this work for you?
> ----
> \setuplist[chapter][headnumber=no]
> \setuphead[chapter][number=no]
> \starttext
> \completecontent
> \page
> \chapter{Chapter one}
> \input knuth
> \chapter{Chapt
Hi Jim,
perhaps does this work for you?
\setuplist[chapter][headnumber=no]
\setuphead[chapter][number=no]
\starttext
\completecontent
\page
\chapter{Chapter one}
\input knuth
\chapter{Chapter two}
\input ward
\stoptext
Greetings Lutz
Am 9. September 2023 20:11:55 MESZ schrieb
The following is a setuplist for the table of contents. Is there a way to
have the section part only go to 80% of the page width, similar to
width=0.8\textwidth
\setuplist
[chapter]
[style={\bf}]
\setuplist
[section]
[style={\tfx}]
\setuplist
[chapter,section]
[headnumber=no
* (which include some dummy content) examples.
The example below results in section entries which are listed as a
paragraph, what output do you expect here.
\setuplist[chapter][alternative=c]
\setuplist[section][alternative=d]
\starttext
\completecontent
\dorecurse{2}
{\chapter{Chapter #1
compiles (for me) in LMTX. So I tried
something different, e.g.
\definelist[chapter]
\setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank]
\definelist[section]
\setuplist[section] [textcommand=\setups{SecToc}]
\setupcombinedlist
[content]o
[list={chapter
t[terminale-environment]
>> >\startfrontmatter
>> >
>> > \setuppagenumbering
>> > [location=]
>> >
>> > \definefont
>> >[ChapterTextStyle]
>> >[SansBold*default sa 2.2]
>> >
>> >
umbering
> > [location=]
> >
> > \definefont
> >[ChapterTextStyle]
> >[SansBold*default sa 2.2]
> >
> > \setuphead
> >[title]
> > [style=ChapterTextStyle,
> > align=flushright]
>
title]
[style=ChapterTextStyle,
align=flushright]
\setuplist
[chapter]
[style=bold,
alternative=b,
width=1em]
\setuplist
[section]
[margin=1em,
width=1.75em]
\setuplist
[subsection]
[margin=2
Style]
[SansBold*default sa 2.2]
\setuphead
[title]
[style=ChapterTextStyle,
align=flushright]
\setuplist
[chapter]
[style=bold,
alternative=b,
width=1em]
\setuplist
[section]
[margin=1em,
width=1
Thank you Alan, I tried many different things but as Wolfgang pointed out I had
a mistake in the float definition!
Kind regards
WIlli
> On 31 Mar 2023, at 00:08, Alan Braslau via ntg-context
> wrote:
>
> Have you tried:
>
> \setuplist [figu
Have you tried:
\setuplist [figure] [partnumber=no]
...
\placelistoffigures [criterium=part]
Alan
On Thu, 30 Mar 2023 17:09:15 +0200
Willi Egger via ntg-context wrote:
> Hello everybody,
>
>
> I am still working on the previously mentioned project, consisting
> out of
it one has to
>>> choose the level to which it should be inserted:
>>> \writetolist[chapter]{1.}{Chapter list entry A},
>>> \writetolist[section]{1.1}{Section list entry A}, etc.”
>>>
>>> https://wiki.contextgarden.net/Command/writetolist
>&g
[section]{1.1}{Section list entry A}, etc.”
https://wiki.contextgarden.net/Command/writetolist
So maybe you need a dot?
Otherwise I don’t know.
\definehead[xsubject][section][number=no]
\setuplist[xsubject][margin=2em]
\starttext
\starttitle[title=Contents]
\placelist[chapter,xsubject
Willi
\setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix?
\setuphead[part][placehead=yes]
\starttext
\startpart[title=part one]
\starttitle[title=Contents]
\placelist[part,chapter][criterium=all]
\startsubject[title=Figures]
\placelistoffigures[criterium=all
Its worring now. I have to add \setuplist[subsection][alternative=d] after
\setupcombinedlist[content] etc. before that line it has no effect here.
\definecombinedlist[content][part,chapter,section,subsection]
\setupcombinedlist[content][alternative=c,partnumber=no,placehead=yes,color=black
Am 06.10.22 um 15:24 schrieb Horacio Suárez via ntg-context:
Not working, besides "[alternative=d]" apears on top of the first pdf page.
This works for me:
\setuppapersize[A7,landscape]
\setuplist[alternative=c]
\setuplist[subsection][alternative=d]
\starttext
\placecontent
ubsections as "alternative=d" in the same TOC?
Did you try
\setuplist[subsection][alternative=d]
?
Hraban
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist
Am 06.10.22 um 13:37 schrieb Horacio Suárez via ntg-context:
hello
it is possible to list chapters and section as "alternative=c" and
subsections as "alternative=d" in the same TOC?
Did you try
\setuplist[subsection][alte
, Hans Hagen wrote:
>
> On 9/23/2022 11:08 PM, Benjamin Buchmuller via ntg-context wrote:
>> Dear list,
>> \setuplist has the convenient option [pagenumber=realpage]
>> \setupregister has not (yet).
>> How can I get the realpagenumber instead of the userpagenumber f
On 9/23/2022 11:08 PM, Benjamin Buchmuller via ntg-context wrote:
Dear list,
\setuplist has the convenient option [pagenumber=realpage]
\setupregister has not (yet).
How can I get the realpagenumber instead of the userpagenumber for the register
indices?
I tried
\def\MyPageCommand#1
Dear list,
\setuplist has the convenient option [pagenumber=realpage]
\setupregister has not (yet).
How can I get the realpagenumber instead of the userpagenumber for the register
indices?
I tried
\def\MyPageCommand#1{\realpagenumber}
\setupregister[MyIndex][pagecommand=\MyPageCommand]
but
On 6/17/22 18:33, Wolfgang Schuster via ntg-context wrote:
> [...]
> To create separate styles for chapters within the frontmatter and
> bodymatter you have to create a new section command where you can apply
> different list settings.
Many thanks for your reply, Wolfgang.
Now I have learnt that
according to documentation.
Many thanks for your reply, Hraban.
Using current latest (from 2022.05.11 11:36) with current sample outputs
no different setup for chapters from bodypart:
\startsectionblockenvironment[bodypart]
\setuplist[chapter]
[alternative=d
n.
Many thanks for your reply, Hraban.
Using current latest (from 2022.05.11 11:36) with current sample outputs
no different setup for chapters from bodypart:
\startsectionblockenvironment[bodypart]
\setuplist[chapter]
[alternative=d]
\stopsectionblockenvironment
Am 16.06.22 um 21:19 schrieb Pablo Rodriguez via ntg-context:
\startsectionblockenvironment[bodypart]
...
\stopsectionblockenvironment
This should work according to documentation.
Hraban
___
If your que
Dear list,
sorry for the very basic question, but I cannot find the way to do it.
Imagine I have the following command:
\setuplist
[chapter]
[alternative=d]
But I only want for sectionblock bodypart (nof for frontpart, backpart
or the appendices).
I have enclosed in
\currentlistentrytitle
= Überschrift des aktuellen Listeneintrags
\currentlistentrypagenumber
= Seitenzahl des aktuellen Listeneintrags
(in German, because I copied it from my book)
If you use \setuplist[command=...], you should set
alternative=interactive, otherwise you don’t get bookmarks and links.
\define[3
\define[1]\SectionTocEntry{%
\leftaligned{#1}\par% title. \leftaligned is needed
\hskip1cm\relax\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%
}
\setuphead[chapter] of course includes number=no.
\setuplist[chapter] is currently set as:
[label=yes,distance=1.2cm,st
]
\defineenumeration [Título] [alternative=left, headcolor=darkcyan,
width=2cm, text={Título}, before=\blank, after=\blank, between=\blank]
\setuplabeltext[Exercise=Exercício~,Título=Título~]
\setuplist[Exercício][width=6em]
\starttext
\title{defineenumeration}
\subject{Lista de exercícios
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-\definelistalternative
[whatever]
[renderingsetup
ove the auxiliary file (context --purge) because the
> old (non existing) command is otherwise used in the next run which
> results then in an error message.
>
> \setuplist
>[section]
>[textcommand=\SectionTocEntry,
> after=\blank]
>
> \define[1]\Section
remove the auxiliary file (context --purge) because the
old (non existing) command is otherwise used in the next run which
results then in an error message.
\setuplist
[section]
[textcommand=\SectionTocEntry,
after=\blank]
\define[1]\SectionTocEntry
{\doifsomething{\rawstructurel
s that any note name I choose other than "thanks" does not work, and I
have no clue why. Am I missing something, or is there a more elegant way to
implement this?
As an aside, I'd rather have the footnotes below the "thanks" notes. Is
there any option that does this?
[TOCpar]
[3]
[width=\dimexpr\TOCPageLabelWidth,
align=middle]
Finally, wrap it all up in the macro
\define[3]\TOCEntry{%
\startTOC
#1 \TOCpar #2 \TOCpar #3%
\stopTOC%
}
and indicate the command to use in the setup
\setuplist
thing that bugs
me is that any note name I choose other than "thanks" does not work, and I
have no clue why. Am I missing something, or is there a more elegant way to
implement this?
As an aside, I'd rather have the footnotes below the "thanks" notes. Is
there
,
appendixlabel=,
sectionconversionset=part,
page=yes,
header=empty,
footer=empty,
placehead=yes]
\definelist[parttext]
\setuplist[parttext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\PartAbstract{\writetolist[parttext]{}{\start\itx#1\stop}}
%%%
%%% chapter is managed here
tartsetups chapter:before
\page[left]
%noheaderandfooterlines %%
\setupheader[state=empty] %%
\setupfootertexts [] [pagenumber] [pagenumber] [] %%
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
artalignment[left,nothyphenated]
> \startnarrower[4*left]
> \em \getbuffer[chapter:quote]
> \stopnarrower
> \stopalignment
> \resetsetups[quote:text]
> \page[right]
> \blank[force,2*big]
> \stopsetups
>
> \startsetups chapter:after
>
chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\blank[force,2*big]
\stopsetups
\startsetups chapter:after
\blank[3*big]
\stopsetups
\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1
\page[right]
> %\noheaderandfooterlines % I want the enumber in the footer here
> \blank[force,2*big]
> \stopsetups
>
> \startsetups chapter:after
> \blank[3*big]
> \stopsetups
>
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=
]
\stopsetups
\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}
\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian
is what I use. You want Roman numerals so maybe adapt it
> to:
> %% \define[2]\placePartTitle{\midaligned{\convertnumber[Romannumerals][#1]
> #2}}
>
> \definehead [Part] [part]
> \setuphead[Part]
> [ page=right,
>placehead=yes,
>style={\stylePartTitle}, %% this is jus
acehead=yes,
style={\stylePartTitle}, %% this is just from a \definefont
before={\setups{PartSetup}},
command=\placePartTitle,
]
With \setuplayout[location=doublesided] this then comes out on the RHS.
For the ToC, I use:
\setuplist [alternative=b]
\setuplist [Part]
[ headnumber=no,
margin=0
[location=]
\definefont
[ChapterTextStyle]
[SansBold*default sa 2.2]
\setuphead
[title]
[style=ChapterTextStyle,
align=flushright]
\setuplist
[chapter]
[style=bold,
alternative=b,
width=1em]
\setuplist
sa 2.2]
\setuphead
[title]
[style=ChapterTextStyle,
align=flushright]
\setuplist
[chapter]
[style=bold,
alternative=b,
width=1em]
\setuplist
[section]
[margin=1em,
width=1.75em]
\setuplist
[subsection
footer) to roman numbers?
Hi Sylvain,
copied from
https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC:
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pagecon
lvain,
copied from
https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC:
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\startsectionb
MTX and
> MKIV).
>
> The easy way is to create a new heading for the appendices (e.g.
> \extrachapter) and set the label you want to use in the list.
>
> \setuplist [chapter] [label=chapter]
> \setuplist [extrachapter] [label=appendix]
>
>
> A co
want to use in the list.
\setuplist [chapter] [label=chapter]
\setuplist [extrachapter] [label=appendix]
A complexer solution where you can keep \chapter in the appendices can
be achieved with a customized number type and the use of the processor
mechanism to set the
Appendix A Appendix
1 Bodypart
A Appendix
---
Based on Wolfgang's example, I am trying this MWE:
\setuplabeltext[en][chapter=Chapter~]
\setuplabeltext[en][appendix=Appendix~]
\setuplist[chapter][label=yes,width=fit,stopper=~]
\setuphead[chapter][bodypartlabel=,appendixlabel=]
\star
xt
[en]
[lecture={Lecture }]
\setupcombinedlist
[content]
[list={lecture}]
\define[3]\LectureListCommand
{\labeltext{lecture}#1\doiftext{#2}{: #2}\filler[dotfill]#3\par}
\setuplist
[lecture]
[alternative=command,
command=\LectureListCommand]
\startsetups [footer:left]
\labeltext{
\startluacode
userdata = userdata or {}
function userdata.format_lecture_title(args)
if args.title and args.title ~= '' then
context('%s %s: %s', args.label, args.number, args.title)
else
context('%s %s', args.label, args.number)
end
end
\
Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24:
Hi,
I wish to have the table of contents as the attached image. The result
is almost as expected except for the margin of the subsection.
\setuplist
[chapter,section,subsection]
[width=fit,distance=\spaceamount
Hi,
I wish to have the table of contents as the attached image. The result is
almost as expected except for the margin of the subsection.
\setuplist
[chapter,section,subsection]
[width=fit,distance=\spaceamount]
\setuplist
[chapter]
[alternative=b]
\setuplist [chapter][style=bold
This is the right test:
\setuphead[part][placehead=yes]
\setupnotations
[endnote]
[way=bypart]
\setupnotes
[endnote]
[location=list]
\starttext
\part{First Part}
asdf\endnote{asdf}
jklö\endnote{jklö}
\part{Second Part}
asdf\endnote{asdf}
jklö\endnote{jklö}
\page
\setuplist
On 6/30/2021 4:57 PM, denis.ma...@unibe.ch wrote:
Cool. Thanks. So again something to be wikified.
Two questions related to this relying on the list mechanism:
1. You use this to flush the notes
\setuplist
[part]
[after={\blank[samepage,big]\placelist[endnote][criterium=part
Would be great if that missing piece could be
> added!
> it's in the latest
Cool. Thanks. So again something to be wikified.
Two questions related to this relying on the list mechanism:
1. You use this to flush the notes
\setuplist
[part]
[after={\blank[samepage,big]\p
][placehead=yes]
\setupnotes
[endnote]
[way=bypart]
\setupnotes
[endnote]
[location=list]
\starttext
\part{First Part}
asdf\endnote{asdf}
jklö\endnote{jklö}
\part{Second Part}
asdf\endnote{asdf}
jklö\endnote{jklö}
\page
\setuplist
[part]
[after={\blank[samepage,big]\placelist[endnote
\leftaligned
\bgroup
\hskip 0.5cm
\structurelistuservariable{author}
\rightaligned
\bgroup
#3
\egroup
\egroup
}
\setuplist
[chapter]
[alternative=command,
command=\SectionToCEntry,
after=\endgraf]
\completecontent
\startchapter
[title={This is my chapter
ading dots.
\starttext
\define[3]\SectionToCEntry{
#2\crlf
\leftaligned
\bgroup
\hskip 0.5cm
\structurelistuservariable{author}
\rightaligned
\bgroup
#3
\egroup
\egroup
}
\setuplist
[chapter]
[alternative=command,
command=\SectionToCEntry,
after=\endgraf]
\completeconte
On 2/13/21 12:13 AM, Pablo Rodriguez wrote:
> Dear Hans,
>
> I’m afraid that style doesn’t work for headings in current latest
> (2021.02.12 18:49):
Hans,
it might be that the style option doesn’t work in other commands (or at
all):
\setuphead[section][style=\it]
\setuplist[se
unter:
\setuphead[subject] [incrementnumber=list]
%"width": distance between number and text in the ToC entry, "margin" : indent
of ToC entry relative to left page margin
\setuplist[section][width=1.5em]
\setuplist[subsection][width=2.5em, margin=1.5em]
\setuplist[sub
uthor}} {
\startalignment[middle]
\darkblue \tx \structurelistuservariable{author}
\stopalignment
}
\stopsetups
\setuplist[chapter][after=\setups{MySectionTocEntry}]
Julian
On 9/2/21 9:02 pm, mf wrote:
Il 09/02/21 10:49, jbf ha scritto:
I wonder if someone can assist me with the
y one
Anyway, here is an alternative:
\startsetups[MySectionTocEntry]
\doifsomething{\structurelistuservariable{author}} {
\startalignment[middle]
\darkblue \tx \structurelistuservariable{author}
\stopalignment
}
\stopsetups
\setuplist[chapter][after=\s
\setuplist[chapter], obviously):
\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}%
}
try \startalignment[middle] ... \stopalignment instead of \midaligned
My problem is that at the moment, the four
two below(also centred).
Here is my MWE for the essential bit (which is then called in as
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):
\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author
for the essential bit (which is then called in as
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):
\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}%
}
try \startalignment[middle
called in as
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):
\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}%
}
My problem is that at the moment, the four authors appear on a single
line
attached.
Thank you,
Jano
\startbuffer[doc]
text
text
\stopbuffer
\setuphead[section][expansion=yes]
\setuplist[section][alternative=command,
command=\SectionListCommand]
\define[3]\SectionListCommand{%
{\bf#1\par
title: #2\par
u
,
]
\setuplist
[chapter]
[label=yes,
alternative=command,
command=\ChapterListCommand]
Julian
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
obviously also have (e.g. for the Preface,
but I have others for Foreword, etc.):
\setuplist
[preface]
[label=preface,
alternative=command,
command=\ChapterListCommand]
(2) SECTIONTOCENTRY
\definehspace[twoem][2.5 em]
\define[1]\SectionTocEntry{%
#1\hspace[two
Lukas/ConTeXt schrieb am 23.09.2020 um 10:33:
Hello,
how do I shift unnumbered ToC entry (here: \subsubsection)? My attempt:
\setuphead[subsubsection][number=no]
\setuplist[subsubsection][distance=20mm,width=20mm]
\setuplist
[subsubsection]
[margin=5em]
Wolfgang
unnumbered ToC entry?
Hello Lukas,
you can try this:
\setuphead[subsubsection][number=no]
\setuplist[subsubsection][distance=20mm,width=20mm,textcommand=\mycmd]
\def\mycmd#1{\hskip20mm#1}
\starttext
\placecontent
\page
\section{S}
\subsection{Ss}
\subsubsection{Sss}
\stoptext
Hello Lukas,
you can try this:
\setuphead[subsubsection][number=no]
\setuplist[subsubsection][distance=20mm,width=20mm,textcommand=\mycmd]
\def\mycmd#1{\hskip20mm#1}
\starttext
\placecontent
\page
\section{S}
\subsection{Ss}
\subsubsection{Sss}
\stoptext
Best wishes,
Tomáš
Hello,
how do I shift unnumbered ToC entry (here: \subsubsection)? My attempt:
\setuphead[subsubsection][number=no]
\setuplist[subsubsection][distance=20mm,width=20mm]
\starttext
\placecontent
\page
\section{S}
\subsection{Ss}
\subsubsection{Sss}
\stoptext
I'm ge
following, using an
idea Hraban had floated:
\setupsectionblock
[bodypart]
[number=no]
\define[1]\SectionTocEntry{%
#1\crlf% title
\structurelistuservariable{author}%
}
\setuplist[section][
textcommand=\SectionTocEntry,
]
I need to adjust the \setuplist[section] so these section entries
]Chapter 1 Chapter 1
A. u. thor 3
We obviously should not be getting [foreword: --2] in our result, nor a
doubling up of Chapter 1
2. Where do I stand now with the earlier definition (I mean the
\define[3]\ChapterListCommand. Is that still used? Including its
\setu
You
can see below how I tried to avoid that, but it failed. My MWE addition
to what Wolfgang provided is:
\definehead [foreword] [chapter]
\setuphead [foreword]
\setuplist [foreword]
[label=foreword,
alternative=command,
command=\ChapterListCommand]% definition not included here. It was
id that, but it failed. My MWE addition
to what Wolfgang provided is:
\definehead [foreword] [chapter]
\setuphead [foreword]
\setuplist [foreword]
[label=foreword,
alternative=command,
command=\ChapterListCommand]% definition not included here. It was
given in an earlier response fr
st worked - but it doesn't.
(3) I also assumed that having defined foreword, preface and mysection,
they would need to be in a \setupcombinedlist.
(4) And finally, I thought I would then need a \setuplist and
\setuplabeltext for Foreword (as indeed I might for the other two as
well, but to st
'A note...' does
not have an author).
So I tried creating a TitleListCommand which copies the
ChapterListCommand. But where I run into difficulties then is with a
new lot of \setuplist to accommodate that. There are three different
labels involved (Foreword, Preface, and A note on Contr
ave
an author).
So I tried creating a TitleListCommand which copies the
ChapterListCommand. But where I run into difficulties then is with a new
lot of \setuplist to accommodate that. There are three different labels
involved (Foreword, Preface, and A note on Contributors).
And why is it that eve
#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 for these. And both have separate
1 - 100 of 909 matches
Mail list logo