eader can be used to create
additional toc entries on the chapter level.
begin example
\definehead
[chapternote]
[chapter]
[page=no,
number=no,
placehead=no]
\setuplist
[chapternote]
[margin=2em,
pagenumber=no]
\startdocument
\completecontent[list={chapter,chapte
umber
\stopsectionblockenvironment
\starttext
\startfrontmatter
\completecontent
\dorecurse{4}
{\chapter{Chapter #1}
\dorecurse{\numexpr#1*2\relax}{\samplefile{lorem}}}
\stopfrontmatter
\startbodymatter
\dorecurse{4}
{\chapter{Chapter #1}
\dorecurse{\numexpr#1*2\relax}{\samplefile{
l you want.
\setuplabeltext
[en]
[chapter=Chapter ,
appendix=Appendix ,
hraban=Hraban ]
%\setuplist[chapter][label=hraban,width=3cm]
\setuplist[chapter][label=yes,width=3cm]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter{First chapter}
\chapter{Seco
[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
eating a custom list and use \writetolist immediately
> before each \stopchapter command?
>
> \definelist[LastPages][criterium=all]
> \starttext
> \completecontent
> \page
> \completelist[LastPages]
> \page
> \dorecurse{10}{
> \startchapter[title={This is my ch
mmand?
\definelist[LastPages][criterium=all]
\starttext
\completecontent
\page
\completelist[LastPages]
\page
\dorecurse{10}{
\startchapter[title={This is my chapter}]
This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv
\writetolist[LastPages]{3.}{\namedstructurevariable{ch
/context/base/mkxl/context.mkxl
>> mtx-context | current version: 2024.01.24 22:39
>> --
>> Stripped down MWE:
>> \setuppapersize[A4] [A4]
>> \starttext
>> \completecontent[criterium=all]
>> % ToC
>> \page
>> \chapter{CHAP 1}
>> TEXT
&g
-context | main context file:
/Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2024.01.24 22:39
--
Stripped down MWE:
\setuppapersize[A4] [A4]
\starttext
\completecontent[criterium=all]
% ToC
\page
\chapter{CHAP 1}
TEXT
/context/base/mkiv/context.mkiv
>> mtx-context | current version: 2024.01.24 22:39
>> mtx-context | main context file:
>> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
>> mtx-context | current version: 2024.01.24 2
text.mkxl
> mtx-context | current version: 2024.01.24 22:39
> --
>
> Stripped down MWE:
>
> \setuppapersize[A4] [A4]
> \starttext
> \completecontent[criterium=all]
> % ToC
> \page
> \chapter{CHAP 1}
> TEXT
> \startbackmatter
>
/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2024.01.24 22:39
--
Stripped down MWE:
\setuppapersize[A4] [A4]
\starttext
\completecontent[criterium=all]
% ToC
\page
\chapter{CHAP 1}
TEXT
\startbackmatter
\startchapter[title=Literature
gt; In PDF terms (simplified), fit to page destinations are /Fit
> destinations and placed destinations are /XYZ destinations.
>
> This sample shows what might be the root issue here:
>
> \setupinteraction[state=start, page=name, focus=standard]
> \starttext
> \completecontent
tupinteraction[state=start, page=name, focus=standard]
\starttext
\completecontent
\chapter{Chapter}
a\footnote{b}
\stoptext
ConTeXt handles internally links in categories. For some reason unknown
to me, "page=name" triggers that special operation links contain /Fit
instead /XYZ d
rtada]
\setuppagenumbering[location=]
\input{03_portadaEval.tex}%this is my title page
\stopsectionblock
\startfrontmatter[]
\start
\setuplayout[reset]
\setupinterlinespace[.8ex]
\completecontent
\stop
\stopfrontmatter
\startbodymatter[]
\
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
s.
>> The above wiki reference says "the following might do that trick" but I
>> think "might" is the keyword, since even the wiki doesn't show the "No
>> number" entry in the \completecontent.
>> I find it hard to imagine that I am the onl
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
t" is the keyword, since even the wiki doesn't show the "No
number" entry in the \completecontent.
I find it hard to imagine that I am the only Context user who wants to do
this. Can anyone point me in the direction of a working example?
And am I misinterpreting the wiki, or is t
the wiki doesn't show the "No
number" entry in the \completecontent.
I find it hard to imagine that I am the only Context user who wants to do
this. Can anyone point me in the direction of a working example?
And am I misinterpreting the wiki, or is the wiki page broken?
Tha
* (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
\usebtxdefinitions[aps]
>
> % el text
>
> \starttext
>
> \startfrontmatter
> \input ng-pre-portada.conTeXt
> \input ng-pre-llicencia.conTeXt
> \input ng-pre-informacio-document.conTeXt
> \completecontent
> \stopfrontmatter
>
>
> \startbodymatter
>
> \
btxdataset[default][ng-bibliografia.bib]
\setupbtx[dataset=default]
\usebtxdefinitions[aps]
% el text
\starttext
\startfrontmatter
\input ng-pre-portada.conTeXt
\input ng-pre-llicencia.conTeXt
\input ng-pre-informacio-document.conTeXt
\completecontent
\stopfrontmatter
\startbodymatter
\start
\completecontent
\dorecurse{5}
{a\footnote{}}
\stoptext
LuaTeX generates fine hyperlinks for footnotes.
My guess is that the issue is in the LuaMetaTeX binary.
Could anyone confirm this issue?
i'll upload a fix later today (some sensitivity to an extra return value
of a helper)
\completecontent
\dorecurse{5}
{a\footnote{}}
\stoptext
LuaTeX generates fine hyperlinks for footnotes.
My guess is that the issue is in the LuaMetaTeX binary.
Could anyone confirm this issue?
i'll check it but (maybe side effect of some ref things Alan and I are
working on). The engin
Dear list,
in the following sample, hyperlinks for footnotest don’t work with
current latest (2023.05.28 18:57) with current LMTX (20230528):
\setupinteraction
[state=start,
focus=standard]
\starttext
\completecontent
\dorecurse{5}
{a\footnote{}}
\stoptext
LuaTeX
Try:
\completecontent [criterium=all]
Alan
On Tue, 18 Apr 2023 01:06:02 +0200
Kalouguine Andre via ntg-context wrote:
> Hi,
>
> I was trying to have my "Acknowledgements" section/chapter before the
> table of contents but be contained within it.
>
> Is
Hi,
I was trying to have my "Acknowledgements" section/chapter before the
table of contents but be contained within it.
Is it normal that the table of contents is empty if there is a chapter
that begins before it?
```
\starttext
\chapter{Acknowledgements}
Thank you
\compl
\crlf.
I would even say that I read it somewhere in ConTeXt’s source.
The result of \\ depends on the environment/command.
\starttext
\completecontent
\chapter{space or\\newline?}
\stoptext
Wolfgang
___
If your
Dear list,
I have the following sample:
\setupinteraction[state=start, focus=standard]
\starttext
\completecontent
\dorecurse{25}
{\section{Section}
a\footnote{b}}
\stoptext
Using current latest (from 2023.01.26 18:34), destinations for TOC are
pages (/D [ 7 0 R /Fit ]) and
oterlines
\completecontent
\PY
\PB
}
{
\setupheadtext[tables=Tables of Vol.~i.]
\setupheadertexts[Tables of Vol.~i.][pagenumber][pagenumber][Tables
of Vol.~i.]
\noheaderandfooterlines
\completelistoftables
\PY
\PB
}
{
\setupheadtext[figures=Figures of Vol.~i.]
\setupheadertexts[Figures
On 10/14/22 23:24, Pablo Rodriguez via ntg-context wrote:
> Hi Hans,
>
> I have the following sample:
>
> \setupinteraction[state=start,
> focus=standard]
> \starttext
> \completecontent
> \section{section}
> a\footnote{\contextversion}
> \stoptext
Hi Hans,
I have the following sample:
\setupinteraction[state=start,
focus=standard]
\starttext
\completecontent
\section{section}
a\footnote{\contextversion}
\stoptext
With version from 2022.09.11 20:44, the link from the TOC reads in the
PDF file:
4 0 obj
<<
/D [
.
Here’s a working example of my code:
\setupcombinedlist[content][alternative=c]
\starttext
\completecontent
\chapter[title={First chapter}]
\chapter[title={Second, longer chapter}]
\chapter[title={Third chapter}]
\stoptext
Any help is greatly appreciated.
Thanks and best wishes,
Roman
Hi!
Le 14/10/2022 à 16:24, Pablo Rodriguez via ntg-context a écrit :
Dear list,
I have the following sample:
\setuppapersize[A7]
\setupinteraction[state=start,
color=darkred,
contrastcolor=darkred,
focus=standard]
\starttext
\completecontent
\startsection[title
Dear list,
I have the following sample:
\setuppapersize[A7]
\setupinteraction[state=start,
color=darkred,
contrastcolor=darkred,
focus=standard]
\starttext
\completecontent
\startsection[title={sec}, list=(before \&\ now), reference=a]
\page
\in[a] (after 2022.10.1
h links here:
>
> \setupinteraction[state=start,
> color=darkred,
> contrastcolor=darkred,
> focus=standard]
> \starttext
> \completecontent
> \section[a]{b}
> \about[a]
> \stoptext
>
> And this is a regression. I think it was introduced in
mpare both links here:
\setupinteraction[state=start,
color=darkred,
contrastcolor=darkred,
focus=standard]
\starttext
\completecontent
\section[a]{b}
\about[a]
\stoptext
And this is a regression. I think it was introduced in latest from
2022.07.06 21:42, since latest from
Thanks for the pointers, but unfortunately I cannot reproduce the second
fix with either the system pdf viewer or the browser one.
\usemodule[ipsum]
\setupinteraction[state=start,focus=standard]
\starttext
\completecontent
\section{s1}\ipsum
\section{s2}\ipsum
> On 28 Sep 2022, at 09:18, Sylvain Hubert via ntg-context
> wrote:
>
> Dear list,
>
> \usemodule[ipsum]
> \setupinteraction[state=start]
>
> \starttext
> \completecontent
> \section{s1}\ipsum
> \section{s2}\ipsum
> \sec
Dear list,
\usemodule[ipsum]
\setupinteraction[state=start]
\starttext
\completecontent
\section{s1}\ipsum
\section{s2}\ipsum
\section{s3}\ipsum
\section{s4}\ipsum
\section{s5}\ipsum
\section{s6}\ipsum
\stoptext
In the table of contents, s1 and s2 (at
you have to create a new section command where you can apply
different list settings.
\starttext
\completecontent
You're now placing \completecontent (and the associated \title) outside
of any sectionblock.
Wol
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
On Sun, 12 Jun 2022, Joel via ntg-context wrote:
> I need to display a table of contents, but only displaying chapters.
>
> Here is my minimum working example:
You need to add "criterium=all" to both placelist and completecontent. See
below:
> \starttext
&
I need to display a table of contents, but only displaying chapters.
Here is my minimum working example:
\starttext
\startfrontmatter
\startchapter[title={Contents}]
\placelist[chapter]
\stopchapter
\completecontent
\stopfrontmatter
\startbodymatter
Hi Joel,
I think you can achieve what you want by using \placelist[chapter,section]
instead of \completecontent. Then you can start the TOC by
\startchapter[Content] \placelist…. \stopchapter. The same approach can be used
for other lists/indexes.
Kind regards
Willli
> On 8 May 2022, at
lt;-- the article begins about how to keep fish
>> -
>>
>> \definefontsize[a]%
>> \definefontsize[b]%
>> \definefontsize[c]%
>> \definefontsize[l]%
>> \setupbodyfontenvironment[default]%
>>[%
>>a=1.200,
>>b=1.440,
>
c=1.728,
> l=8.916
> ]%
> %
>
> \setuplabeltext[chapter=\strut]
> \setuphead[chapter][style=\ssc,placehead=yes,expansion=yes,page=yes,
> numbercommand=\groupedcommand{}{\blank[1cm]},
> alternative=middle,
> numberstyle=ssl,
> numbercolor=green,
> strut=yes]
>
tyle=\ssc,placehead=yes,expansion=yes,page=yes,
numbercommand=\groupedcommand{}{\blank[1cm]},
alternative=middle,
numberstyle=ssl,
numbercolor=green,
strut=yes]
\starttext
\completecontent
\chapter{Test}
\input knuth
\chapter{Test}
\input knuth
\stoptext
The problem I
k[1cm]},
alternative=middle,
numberstyle=ssl,
numbercolor=green,
strut=yes]
\starttext
\completecontent
\chapter{Test}
\input knuth
\chapter{Test}
\input knuth
\stoptext
The problem I'm facing, is anytime a chapter title is called, such as "Content"
c=1.728,
l=8.916
]%
%
\setuplabeltext[chapter=\strut]
\setuphead[chapter][style=\ssc,placehead=yes,expansion=yes,page=yes,
numbercommand=\groupedcommand{}{\blank[1cm]},
alternative=middle,
numberstyle=ssl,
numbercolor=green,
strut=yes]
\starttext
\completecontent
\
blown away by after
using LaTeX godawful tables for years, it’s soo good).
After digging into the documentation (again, wow, it’s soo detailed and
approachable after LaTeX😂), I found out that \completecontent doesn't provide
such extreme level of customization. Therefore I need reimpleme
]
\setupcombinedlist [content] [list={part,parttext,chapter,chaptertext}]
\starttext
\startfrontmatter
\completecontent
\SectionPrequote{If you think good architecture is expensive, try bad
architecture\crlf
{\tf Brian Foote and Joseph Yoder}}
\startchapter[title={One}]
\dorecurse{7}{\input tufte \par \input
On 10/23/21 6:09 PM, Gerben Wierda wrote:
> [...]
Replying a private to the list, since it could be useful for (future?)
reference.
> This works, except:
> - Parts are not mentioned in the table of contents. If I use
> \completecontent, I do not get the abstracts
Wel
sectionsegments=chapter]
\setuphead[section][sectionsegments=chapter:section]
\starttext
\completecontent
\dorecurse{25}{\part{Part}
\chapter{Chapter}
\section{Section}
\section{Section}}
\stoptext
Pablo
--
http://www.ousia.tk
__
Don't reset the counter for parts and chapters
\defineresetset [default] [0,0] [1]
\starttext
\completecontent
\dorecurse{4}
{\expanded{\part{Part \recurselevel}}
\dorecurse{5}{\expanded{\chapter{Chapter \recurselevel
\stoptext
EXpage\externalfigure[#1][width=\printpaperwidth,height=\printpaperheight]\stopTEXpage\incrementpagenumber}
% tried page=yes/no/right/odd
\setuphead
[part]
[placehead=yes,
page=right,
before={\nowhitespace}, % ???
]
\starttext
\completecontent
\FullScreen{cow}
\startpart[title={A nice part}]
table or \placefigure
>
> to control the Table of Figure Title appearing in:
>
> \completelistoftables and \completelistoffigures
>
>
> At the moment one can do this for the output of:
>
> \completecontent
>
> with something such as the following:
>
> \start
conversionset [bodypart:chapternumber] [] [bodypartnumber->n]
> \defineconversionset [appendix:chapternumber] [] [appendixnumber->A]
>
> \setuphead
>[chapter]
>[sectionconversionset=chapternumber]
>
> \startsectionblockenvironment [frontpart]
>
>
number]
\startsectionblockenvironment [frontpart]
\defineprocessor [bodypartnumber] [left=Chapter~]
\defineprocessor [appendixnumber] [left=Appendix~]
\stopsectionblockenvironment
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter{Bodypart}
\stopbody
ome syntax that one can use in:
>
> \placetable or \placefigure
>
> to control the Table of Figure Title appearing in:
>
> \completelistoftables and \completelistoffigures
>
>
> At the moment one can do this for the output of:
>
> \completecontent
>
>
List,
I've been wondering if there is some syntax that one can use in:
\placetable or \placefigure
to control the Table of Figure Title appearing in:
\completelistoftables and \completelistoffigures
At the moment one can do this for the output of:
\completecontent
with something su
ttext
\startfrontmatter
\completecontent[label=section]
\stopfrontmatter
\startbodymatter
\chapter{Bodypart}
\stopbodymatter
\startappendices
\chapter{Appendix}
\stopappendices
\stoptext
But that does not show the labels in the TOC (trying it with LMTX and MKIV).
I must be doing something wrong.
Any
lecture} \getmarking[lecturenumber]
\doiftext{\getmarking[lecture]}{: \getmarking[lecture]}
\stopsetups
\setupfootertexts
[\directsetup{footer:left}] []
\starttext
\completecontent
\startlecture [title={Foo}]
Foo bar baz
\stoplecture
\page
\startlecture
Foo bar baz
\stoplecture
stopluacode
\setupcombinedlist
[content]
[list={lecture}]
\setuplist
[lecture]
[
alternative=c,
command=\Lecture, % this seems to have no effect?
]
\starttext
\completecontent
% Both title and left footer should be 'Lecture 1: Foo'
\startlecture [title={Foo}]
Foo bar b
On 8/5/21 11:58 PM, Hans Hagen via ntg-context wrote:
> On 8/5/2021 4:34 PM, Pablo Rodriguez via ntg-context wrote:
>> \starttext
>>\completecontent
>>\chapter{Chapter Title\footnote{With footnote}}
>>\stoptext
>
> fixed in next beta (different escapi
On 8/5/2021 4:34 PM, Pablo Rodriguez via ntg-context wrote:
\starttext
\completecontent
\chapter{Chapter Title\footnote{With footnote}}
\stoptext
fixed in next beta (different escaping
Dear list,
compiling the following sample with current latest (2021.08.04 17:51):
\starttext
\completecontent
\chapter{Chapter Title\footnote{With footnote}}
\stoptext
The entry in the TOC for the chapter seems to have problems with the
footnote command (backslash seems to be
; \startchapter [title=Notes]
> \setupheadertexts[{\it\getmarking[part]}][\setups{noteHeadingsText}]
> [\setups{noteHeadingsText}][{\it\getmarking[part]}]
> \placenotes [endnote]
> \page
> \setupheadertexts[{\it\getmarking[part]}][{\it\getmarking[section]}]
>
%--%
\starttext
\completecontent
\startpart[title=Part 1]
\dorecurse{3}{
\startchapter[title=Chapter #1]
If a man wants to read good books, he must make a point of
avoiding bad ones; for life is short, and time and energy
limited.
\startfootnote
T.\,Baily Saunders
lor=blue
> ]
>
>
> \starttext
> \completecontent
> \section{Section A}
> \subsection{SubSection A.A}
> \pagebreak[yes]
> \section {Section B — on another page}
> \subsection {SubSection B.A — on another page}
> \stoptext
>
> When I format it with ConTeXt (ConTeXt ver: 2
I'm trying to make all the hyperlinks in my document blue. Here's my
example:
\setupinteraction
[state=start,
color=blue,
contrastcolor=blue
]
\starttext
\completecontent
\section{Section A}
\subsection{SubSection A.A}
\pagebreak[yes]
\section {Section B — on another page}
\
the
same behaviour: the leading dots are not aligned.
Compiling the same document with MkIV leads to correct alignment of the filler
dots in both instances. Here is an MWE:
\setuplistalternative[c][width=2em]
\starttext
\completecontent[alternative=c]
\chapter{Short title}
Lorem ipsum
aligned.
Compiling the same document with MkIV leads to correct alignment of the filler
dots in both instances. Here is an MWE:
\setuplistalternative[c][width=2em]
\starttext
\completecontent[alternative=c]
\chapter{Short title}
Lorem ipsum \hskip.5em\gleaders\hbox to
.5\emwidth{\hss.\hss
\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
er
> \startchapter[reference=moreover,title=oof]
> \stopchapter
>
> and --pages=whatever,moreover will give you the info you need to call
> context --extra=copy or whatever with the right arguments
Hans,
real-world needs may be complex, such as in the following sample:
\startte
proper refs for chapters
you can use the reported values and feed them into whatever
i could add something to the select style but i guess then there is no
uniformity in how users do this
Many thanks for the new stuff, Hans.
This could be an approach:
\starttext
\completecontent
\dorecurse
> you can use the reported values and feed them into whatever
>
> i could add something to the select style but i guess then there is no
> uniformity in how users do this
Many thanks for the new stuff, Hans.
This could be an approach:
\starttext
\completecontent
\dorecurse{10}
{*chapter}{{\bf #1}}{#1}}
\setupinteraction[state=start]
\placebookmarks[chapter,title]
\starttext
\startchapter[title={This \SPECIAL{and} That}]
\input knuth
\stopchapter
\startchapter[title={Something \SPECIAL{Other}}]
\input tufte
\stopchapter
\completecontent[criterium=all]
\stoptext
\setupcaption[lefthangingfigure][width=\textwidth,align=figure]
60 \setupheadtext[content=Inhalt]
61 %\traceexternalfilters
62 \enabletrackers[export.*]
63
64 \starttext
65 \startstandardmakeup
66 \title{Programmiertechnik 2}
67 \subsubject{Dr. Chri
ction][style=\it]
\starttext
\completecontent
\section{Section}
\input zapf
\stoptext
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add
rkers
would be quite pointless.)
"focus=standard" in \setupinteraction.
With a minimal sample:
\setupinteraction[state=start, focus=standard]
\enabledirectives[references.bookmarks.preroll]
\placebookmarks[chapter]
\starttext
\completecontent
\chapter{The concept of {\em
te markers
would be quite pointless.)
"focus=standard" in \setupinteraction.
With a minimal sample:
\setupinteraction[state=start, focus=standard]
\enabledirectives[references.bookmarks.preroll]
\placebookmarks[chapter]
\starttext
\completecontent
\chapter{The concept of {\
tless.)
"focus=standard" in \setupinteraction.
With a minimal sample:
\setupinteraction[state=start, focus=standard]
\enabledirectives[references.bookmarks.preroll]
\placebookmarks[chapter]
\starttext
\completecontent
\chapter{The concept
>Thanks in advance for any hint.
# >
# >Best wishes,
# >
# >Tomáš
# >
# >MWE (TL2020):
# >\starttext
# >\define\name{aa} \startsection[title=\name,list=\name] \stopsection
# >\define\name{bb} \startsection[title=\name,list=\name] \stopsection
# >\completecontent
placelist[section] % this doesn’t work
\def\name{aa}
\placelist[section]
\startsection[title=\name, list=\expanded\name] \stopsection
\def\name{bb}
\startsection[title=\name, list=\expanded\name] \stopsection
\completecontent
\stoptext
list=\name] \stopsection
\completecontent
\stoptext
Variant 1:
\setuphead[section][expansion=yes]
\starttext
\defineexpandable\name{aa}
\startsection[title=\name,list=\name] \stopsection
\defineexpandable\name{bb}
\startsection[title=\name,list=\name] \stopsection
\completecontent
\stoptext
how to
send the text "aa" to the content in this case.
Thanks in advance for any hint.
Best wishes,
Tomáš
MWE (TL2020):
\starttext
\define\name{aa} \startsection[title=\name,list=\name] \stopsection
\define\name{bb} \startsection[title=\name,list=\name] \stopsection
\completecontent
ative=command,
command=\ChapterListCommand]
\setuplabeltext
[en]
[chapter=Chapter ]
\setuplist
[foreword]
[label=foreword,
alternative=command,
command=\TitleListCommand]
\setuplabeltext
[en]
[title=Foreword ]
\starttext
\completecontent
\starttitle [title={Foreword
ervariable{author}}}%
\hfill\currentlistentrypagenumber % pagenumber
\egroup
\egroup}
\setuplist
[chapter]
[label=chapter,
alternative=command,
command=\ChapterListCommand]
\setuplabeltext
[en]
[chapter=Chapter ]
\starttext
\completecontent
\startchapter [title={Chapt
doifsomething{\rawstructurelistuservariable{year}}
{\crlf{\bf\structurelistuservariable{author}}}%
\hfill\currentlistentrypagenumber % pagenumber
\egroup
\egroup}
\setuplist
[chapter]
[label=chapter,
alternative=command,
command=\ChapterListCommand]
\setuplabeltext
nconversionset=section,
> sectionstopper=.]
>
> \setuphead
> [section]
> [sectionsegments=section,
> sectionconversionset=section,
> sectionstopper=.]
>
> \setuphead
> [title]
> [alternative=middle,
>
,
style=WORD]
\setuplist
[chapter]
[label=yes,
style=bold,
width=fit,
distance=\spaceamount]
\setuplist
[section]
[margin=3em,
width=1.5em]
\starttext
\completecontent
...
\stoptext
Wolfgang
ealignedbox{1cm}{flushleft}{#1}}}
\setuplist
[chapter]
[distance=0cm,
width=0cm,
margin=1cm,
numbercommand=\ChapterListNumbercommand]
\starttext
\startfrontmatter
\completecontent
\chapter{Preface}
\stopfrontmatter
\startbodymatter
\chapter{Introduction}
\chapter{Workflow}
]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\starttext
\startfrontmatter
\page[even]
\startalignment[bottom,flushright]
Copyright © 2020 Author
\stopalignment
\start
\setuphead[chapter][after={}]
\completecontent
\stop
\page[odd]
\startchapter[title={Preface}]\input{knuth}\stopchapter
anks in advance.
James
\define\mytitle{\getvariable{myvar}{title}\crlf{\tfx\getvariable{myvar}{date}\hfill\getvariable{myvar}{ref}}}
\define\mylist{\getvariable{myvar}{list}---{\bf \getvariable{myvar}{date}}}
\starttext
\completecontent
\setvariables[myvar][
title={What I would like},
date
sense for ConTeXt's community to use it as a "new" or
an "updated" french interface, I may try to produce a 40~50 pages
documentation for the basics commands (during 2020 S2):
• \starttext
• \startchapter, \startsection, \starttitle, \startsubject,
\setuphead, \co
,
but it doesn't seem to. You might also want a space after the word
Chapter.
It works the same way but it's used for a different purpose.
The \setupheadtext command is used to change the default titles for
\completecontent, \completeindex etc.
begin example
\setupheadtext[e
used for a different purpose.
The \setupheadtext command is used to change the default titles for
\completecontent, \completeindex etc.
begin example
\setupheadtext[en][content=Table of Contents]
\starttext
\completecontent
\stoptext
end example
On 4/22/20 2:44 AM, jbf wrote:
> A simple question, but I have not found an answer to it as yet:
>
> \completecontent does everything it is supposed to, including providing
> the title 'Contents' on the ToC page, but it also gives me as the first
> line in the ToC:
>
&
1 - 100 of 949 matches
Mail list logo