his up), but in this default example I would
like them also to shift up one decimal place: 1.1., not 1.1.1, and so
on. I'm guessing there's an option in \part that I should be invoking,
but I don't immediately see what that is (there doesn't seem to be a
\startpart.
>
>
>
>
>
>
> *Von:* John Was
> *Gesendet:* Freitag, 4. Juli 2025 13:56
> *An:* mailing list for ConTeXt users
> *Cc:* denisma...@mailbox.org
> *Betreff:* Re: [NTG-context] Re: Bookmark hierarchy
>
>
>
> Dear Denis
>
>
>
> Thanks. The [numbe
ear Denis
>
> Thanks. The [number=no] option doesn't seem to work but I'll look into
> \startpart... \stoppart, which aren't in the (obviously outdated) reference
> manual that I was consulting.
>
> Best wishes
>
> John *🇪🇺 * Слава Україні!
> * 🇺🇦
] Re: Bookmark hierarchy
Dear Denis
Thanks. The [number=no] option doesn't seem to work but I'll look into
\startpart... \stoppart, which aren't in the (obviously outdated) reference
manual that I was consulting.
Best wishes
John 🇪🇺 Слава Україні! 🇺🇦
Dear Denis
Thanks. The [number=no] option doesn't seem to work but I'll look into
\startpart... \stoppart, which aren't in the (obviously outdated) reference
manual that I was consulting.
Best wishes
John *🇪🇺 * Слава Україні!
* 🇺🇦*
<http://www.avg.com/email-signatur
Also, \startpart is listed on this page:
https://wiki.contextgarden.net/Command/_startsection
Von: denisma...@mailbox.org
Gesendet: Freitag, 4. Juli 2025 13:12
An: 'mailing list for ConTeXt users'
Betreff: AW: [NTG-context] Bookmark hierarchy
Have you tried \setuphead[part]
an option in \part that I should be
invoking, but I don't immediately see what that is (there doesn't seem to be a
\startpart...\stoppart to allow the relatively straightforward customization
that we get with chapters and sections). Here is the example:
\setupinteraction
[state
ke them also to
shift up one decimal place: 1.1., not 1.1.1, and so on. I'm guessing
there's an option in \part that I should be invoking, but I don't
immediately see what that is (there doesn't seem to be a
\startpart...\stoppart to allow the relatively straightforward
customiz
mentvariable{date}}
\blank[line]
\stopsetups
\startdocument[title=Title,author=Author,date=Date]
\startpart[title=one]
\stoppart
\startalignment[middle]
{\sc 1. one} % there is added space as shwon when trying to emulate what I want
through regular text
\stopalignment
\startchapte
]
\stopsetups
\startdocument[title=Title,author=Author,date=Date]
\startpart[title=one]
\stoppart
\startalignment[middle]
{\sc 1. one} % there is added space as shwon when trying to emulate what I want
through regular text
\stopalignment
\startchapter[title=two]
\stopchapter
\startpart[title
\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
List of figures]
>> \startsubject[title=Figures (predefined figureenvironment)]
>>\placelistoffigures
>> \stopsubject
>>
>> \startsubject[title=Figures A]
>> \placelistofAfigures
>> \stopsubject
>>
>> \startsubject[
ject[title=Figures A]
> \placelistofAfigures
> \stopsubject
>
> \startsubject[title=Figures B]
> \placelistofBfigures
> \stopsubject
> \stoptitle
>
> \startpart[title=Part ONE]
> \startchapter[title={Chapter one in part one}] %les21
>
> \st
[title=Figures B]
\placelistofBfigures
\stopsubject
\stoptitle
\startpart[title=Part ONE]
\startchapter[title={Chapter one in part one}] %les21
\startplaceAfigure
[location=left,
reference=fig:dumA,
title={Dummy A}]
{\externalfigure[dummy][width=0.6\textwidth
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
oes not seem to work for 'part'.
Is there a way of making 'part' titles wrap the same way that 'chapter' titles
do?
% ---begin---
\define[2]\placePartTitle{\midaligned{#2}}
\definehead [Part] [part]
\setuphead[Part]
[ placehead=yes,
style={\tfd},
command=\pla
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}]
; \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
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
rt]
\setuplabeltext
[part=Section\nobreakspace]
\setuplabeltext
[chapter=Chapter\nobreakspace]
\setuphead
[chapter]
[conversion=Words]
\setuphead
[chapter]
[sectionsegments=chapter]
\setuphead
[section]
[sectionsegments=chapter:section]
\starttext
\startpart [ti
[chapter]
[conversion=Words]
\setuphead
[chapter]
[sectionsegments=chapter]
\setuphead
[section]
[sectionsegments=chapter:section]
\starttext
\startpart [title=Mypart]
\startchapter [title=Some Chapter]
\startsection [title=Some Section]
\samplefile{knuth}
\stopsection
setuplist [part]
[number=yes,]
\setuphead [chapter]
[number=yes,]
\setuplist [chapter]
[number=yes,]
\starttext
\completecontent
\startpart[title={Part1}]
\startchapter[title={Chapter3}]
\input knuth
\stopchapter
\startchapter[title={Chapter2}]
\input tufte
\stopchapter
\stoppart
\
pter]
[number=yes,]
\setuplist [chapter]
[number=yes,]
\starttext
\completecontent
\startpart[title={Part1}]
\startchapter[title={Chapter3}]
\input knuth
\stopchapter
\startchapter[title={Chapter2}]
\input tufte
\stopchapter
\stoppart
\startpart[title={Part2}]
\startchapter[title={Chapter3
]
\starttext
\startpart[title=Part One]
\startchapter[title=Chapter One]
\stopchapter
\startchapter[title=Chapter Two]
\stopchapter
\stoppart
\startpart[title=Part Two]
\startchapter[title=Chapter One]
\stopchapter
\startchapter[title=Chapter Two]
\stopchapter
/questions/406892
I wanted to disable page breaks for parts. This works on all pages,
except the first page of a
document. Why? MWE is below as always. Reproducible with TL 2017 and
latest beta.
Cheers, Henri
\setuphead
[part]
[page=no]
\starttext
\startpart[title=Part One
breaks for parts. This works on all pages, except the
first page of a
document. Why? MWE is below as always. Reproducible with TL 2017 and latest
beta.
Cheers, Henri
\setuphead
[part]
[page=no]
\starttext
\startpart[title=Part One]
\startchapter[title=Chapter One]
\stopchapter
]
[page=no]
\starttext
\startpart[title=Part One]
\startchapter[title=Chapter One]
\stopchapter
\startchapter[title=Chapter Two]
\stopchapter
\stoppart
\startpart[title=Part Two]
\startchapter[title=Chapter One]
\stopchapter
\startchapter[title=Chapter Two]
\stopchapter
\stoppart
Hello Otared!
I have it. I found an mail on the mailinglist . This works. It is:
\starttext
\placecontent
\setupuserpagenumber[numberconversion=romannumerals]
\setcounter[userpage][5]
\startpart
[title={Danksagung}]
\stoppart
\startchapter
[title={Bildbeschreibung der Cover
=part,
sectionsegments=chater:chapter]
\setuphead [section]
[sectionsegments=section:section]
\starttext
\placecontent
\startpart
[title={Danksagung}]
\startchapter
[title={Bildbeschreibung der Cover-Grafik}]
\startchapter
[title={Einle
rttext
\startbodymatter
\startpart[title={Part one}]
\startchapter[title={Fancy chapter name}]
\startsection[title={A very very very long section title},
list={Shortened somewhat}]
\input knuth
\stopsection
\stopchapter
\stoppart
\stopbodymatter
\startback
The following file used to give me numbered titles (and still gives
numbered titles in TeXLive):
\setuphead[part][
placehead=yes,
page=yes,
% number=yes
]
\setuphead[chapter][
page=yes,
% number=yes
]
\starttext
\startpart[title={Part one}]
\startchapter[title={Fancy chapter
[section]
[command=\ChapterCommand,
textstyle=\ss,
page=yes,
conversion=numbers,
sectionsegments=section:section,
number=yes]
\starttext
\startpart
[title={First Part}]
\startchapter
[title={First chapter}]
\startsection
[title={Firs
=chater:chapter]
\setuphead [section]
[sectionsegments=section:section]
\starttext
\placecontent
\startpart
[title={Repérage et calculs dans le plan}]
\startchapter
[title={Activités d'approche}]
\startsection
[title={Activité 1}]
\startsection
[title=Activ
, you might also need to add "part" to the table of contents
list.
etc.
Alan
On Sun, 30 Aug 2015 12:46:50 +0200
Otared Kavian wrote:
> Hi Eric,
>
> If you use either
> \part{This is part 1}
>
> or
>
> \startpart[title={This part 2}]
> \startchapter[titl
Hi Eric,
If you use either
\part{This is part 1}
or
\startpart[title={This part 2}]
\startchapter[title={This is chapter 1}]
\stopchapter
\stoppart
you get a title for part 1 and part 2.
Best regards: OK
> On 30 Aug 2015, at 11:42, Eric Détrez wrote:
>
> "By default \par
>\startSameCommand[black][Black]
> black is a dark color
>\stopSameCommand
>\startSameCommand[white][White]
> white is light color
>\stopSameCommand
> \stopSameCommand
>
> \stoptext
>
> ___
>
> The \startSameComm
\stopSameCommand
\stopSameCommand
\stoptext
___
The \startSameCommand finds itself out (by the nesting of the command)
if its behave
as \startpart or \startchapter or \startsection or \startsubsection or
\startsubsubsection ...
Harry
Am 28.05.2015 um 12:47 schrieb
using a setup.
>>>>
>>>> My data is coming from XML, and I'd like to avoid having a special
>>>> \startVolume for Volume 3, if I can. Although perhaps that could help.
>>>>
>>>> Are there any other ways which might be more sensible?
>&g
d[something][continue=yes] to fold the
>>> first blue title pages onto the red title pages, but even if I can do that,
>>> I think it would make things more difficult for getting the text right on
>>> those pages.
>>
>> Change your manpage headings to \chapter and test at
the red title pages, but even if I can do that,
>> I think it would make things more difficult for getting the text right on
>> those pages.
>
> Change your manpage headings to \chapter and test at the begin of each
> new volume for the number of chapters (you can
erentries}]
\setuphead[part][placehead=empty,after=\directsetup{chapterentries}]
\startsetups[chapterentries]
\determinelistcharacteristics[chapter]
\ifcase\structurelistsize
No chapter in this part.
\or
up in bookmarks (incrementnumber=no).
I have tried also a "ghost part" to use around chapters:
\definehead[ghostpart][part][placehead=no, incrementnumber=no]
but turns out it doesn't help:
\startpart[title=First]
\startchapter[title=A]
\stopchapter
\stoppart
\startghostpart
\startchapte
apter[title=Prologue]
\input knuth
\stopchapter
\stopfrontmatter
\startpart[title={Part A}]
\startchapter[title=One]
\input knuth
\stopchapter
\stoppart
\startbackmatter
\startchapter[title=Epilogue]
\input knuth
\stopchapter
\stopbackmatter
\stoptext
ConTeXt (Mk IV) generates a PDF fil
apter[title=Prologue]
\input knuth
\stopchapter
\stopfrontmatter
\startpart[title={Part A}]
\startchapter[title=One]
\input knuth
\stopchapter
\stoppart
\startbackmatter
\startchapter[title=Epilogue]
\input knuth
\stopchapter
\stopbackmatter
\stoptext
ConTeXt (Mk IV) generates a PDF fil
ter
\stopfrontmatter
\startpart[title={Part A}]
\startchapter[title=One]
\input knuth
\stopchapter
\stoppart
\startbackmatter
\startchapter[title=Epilogue]
\input knuth
\stopchapter
\stopbackmatter
\stoptext
ConTeXt (Mk IV) generates a PDF file which has only one item in the
bookmarks
is a bug or is
> this expected behaviour.
>
> For the file:
>
> \setupinteraction[state=start]
> \placebookmarks[part,chapter,section]
> \setupinteractionscreen[option=bookmark]
> \starttext
> \placecontent
>
> \startfrontmatter
> \startchapter[title=Prologue
eraction[state=start]
\placebookmarks[part,chapter,section]
\setupinteractionscreen[option=bookmark]
\starttext
\placecontent
\startfrontmatter
\startchapter[title=Prologue]
\input knuth
\stopchapter
\stopfrontmatter
\startpart[title={Part A}]
\startchapter[title=One]
\input knuth
\s
matter
> \startchapter[title=Prologue]
> \input knuth
> \stopchapter
> \stopfrontmatter
>
> \startpart[title={Part A}]
> \startchapter[title=One]
> \input knuth
> \stopchapter
> \stoppart
>
> \startbackmatter
> \startchapter[title=Epilogue]
>
contents work perfectly:
\setupinteraction[state=start]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\placecontent
\startfrontmatter
\startchapter[title=Prologue]
\input knuth
\stopchapter
\stopfrontmatter
\startpart[title={Part A}]
\startchapter[title=One]
\input knuth
false behaviour.
Below I have a MWE to show the FLAW.
MWE:
\starttext
\placecontent
%\startfrontmatter % uncomment line to show what you would expect
\startchapter[title=Prologue]
\input knuth
\stopchapter
%\stopfrontmatter % uncomment line to show what you would expect
\startpart[title={Pa
ł Goliński wrote:
>
> > Given a file:
> >
> > \setupinteraction[state=start]
> > \placebookmarks[part,chapter][part,chapter]
> >
> > \starttext
> >
> > \startchapter[title=Prologue, number=no]
> > \input knuth
> > \stopchapter
&
;
Alan
On Tue, 14 Oct 2014 13:49:36 +0200
Michał Goliński wrote:
> Given a file:
>
> \setupinteraction[state=start]
> \placebookmarks[part,chapter][part,chapter]
>
> \starttext
>
> \startchapter[title=Prologue, number=no]
> \input knuth
> \stopchapter
>
&
Given a file:
\setupinteraction[state=start]
\placebookmarks[part,chapter][part,chapter]
\starttext
\startchapter[title=Prologue, number=no]
\input knuth
\stopchapter
\startpart[title={Part A}]
\startchapter[title=One]
\input knuth
\stopchapter
\stoppart
\startchapter[title=Epilogue
ing
of the details of PDF files.
The file giving the error is:
\pdfcompresslevel=0 \pdfobjcompresslevel=0
\setupinteraction[state=start,focus=standard]
\placebookmarks[part,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
\chapter{1}
\chapter{2}
\stoppart
\startpar
,chapter][part,chapter][number=no]
\starttext
\chapter{0}
\startpart[title={A}]
\chapter{1}
\chapter{2}
\stoppart
\startpart[title={B}]
\chapter{3}
\chapter{4}
\chapter{5}
\chapter{6}
\chapter{7}
\chapter{8}
\chapter{9}
\chapter{10}
\stoppart
\completecontent[criterium=all
\chapter{0}
\startpart[title={A}]
\chapter{1}
\chapter{2}
\stoppart
\startpart[title={B}]
\chapter{3}
\chapter{4}
\chapter{5}
\chapter{6}
\chapter{7}
\chapter{8}
\chapter{9}
\chapter{10}
\stoppart
\completecontent[criterium=all]
\stoptext
ConTeXt would generate a file in which the
, bodypartlabel=part]
> >
> > \startmode[meta]
> >
> > \startfrontmatter
> >
> > \startchapter[title={Introduction}]
> >
> > % \component c_introduction
> > \stopchapte
t; >
> > \startchapter[title={Introduction}]
> >
> > % \component c_introduction
> > \stopchapter
> >
> > \completecontent[criterium=all]
> >
> > \stopfrontmatt
% \component c_introduction
\stopchapter
\completecontent[criterium=all]
\stopfrontmatter
\startbodymatter
\startpart[title={part}]
\startchapter[title={chapter1}]
\stopchapter
\stoppart
\stopbodymatter
\stopmode
\stopchapter
\completecontent[criterium=all]
\stopfrontmatter
\startbodymatter
\startpart[title={part}]
\startchapter[title={chapter1}]
\stopchapter
\stoppart
\stopbodymatter
\stopmode
\startmode[nonmeta]
\startchapter
> \chapter{Gabiddel Dswei}
>
> \input tufte
>
> \part{Bart Zwei}
>
> \chapter{Gabiddel Trei}
>
> \input tufte
>
> \stoptext
>
> I also tried \startpart[title=Something] etc. to no avail.
> If I remember correctly, part titles shouldn't
Hi together,
I wonder why I can’t seem to get my part titles visible:
%\setuphead[part]{WHAT?}
\starttext
\part{Bart Eins}
\chapter{Gabiddel Eins}
\input tufte
\chapter{Gabiddel Dswei}
\input tufte
\part{Bart Zwei}
\chapter{Gabiddel Trei}
\input tufte
\stoptext
I also tried \startpart
chapter. Below is a minimal illustration
> (nonworking as it is incomplete, only a snippet)
>
> \setupheadertexts [chapter]
>
> \starttext
>
> \startpart % lets have some structure...
>
> Some introductory text...
>
> \startchapter [title=Getting started]
>
> S
natural but does not work.
Also, what seems to be a bug, the running text does *not* get reset to
empty upon leaving the chapter. Below is a minimal illustration
(nonworking as it is incomplete, only a snippet)
\setupheadertexts [chapter]
\starttext
\startpart % lets have some structure...
Some
Here is one
> such example which does what you want (and this solution could also be
> found in the list archive):
>
> \definestructureresetset[default][0,0][1]
>
> \setuphead[part][sectionresetset=default]
>
> \setuphead[part][placehead=yes]
>
> \setuphead[chapter][sectionsegments=chapter,ownnumb
r=yes]
\starttext
\startpart[title=First part]
\startchapter[title=Chapter one]
\input tufte
\stopchapter
\startchapter[title=Chapter two]
\input tufte
\stopchapter
\stoppart
\startpart[title=Second part]
\startchapter[title=Chapter three]
\input tufte
\stopchapter
\startchapter[title=Chapter
On 23-4-2011 9:02, Reviczky, Adam wrote:
\startbodymatter
\startpart [title={Table of Contents}]
\startchapter [title={Chapter}]
\startsection [title={Section}]
some day leaving out the \stop's will backfire on you
\stopbodymatter
\stoptext
add added a fallback in the
On 23-4-2011 6:25, Reviczky, Adam wrote:
Hi
With the latest beta (2011.04.22) I cannot compile my thesis any more.
I think I've narrowed it down to this minimal example:
%%%
\starttext
\startpart[title={Table of Contents}]
\completecontent[criterium=all]
\stoptext
%%%
! LuaTeX error
%\setuplabeltext [en] [part={Part }] % no difference, Part is not shown
\setuplabeltext [en] [chapter={Chapter }]
\setuplabeltext [en] [section={Section }]
\starttext
\startfrontmatter
\completecontent [criterium=all,label=yes]
\stopfrontmatter
\startbodymatter
\startpart [title={Table of Contents}]
Hi
With the latest beta (2011.04.22) I cannot compile my thesis any more.
I think I've narrowed it down to this minimal example:
%%%
\starttext
\startpart[title={Table of Contents}]
\completecontent[criterium=all]
\stoptext
%%%
! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lu
ua:423: in
function
'analyzed'
...beta/tex/texmf-context/tex/context/base/strc-reg.lua:741: in
function
'process'
:1: in main chunk.
system > error on line 136 in file Livre.tex: LuaT
have not yet been able to get everything
that I want working. In the end, I'm sure that the solution will be quite
easy.
My point is that the use of \part (or, now, \startpart ... \stoppart) is not
as simple and obvious as it should be.
Alan
__
pter, etc. You can add more. Look at the
files t-startstop.tex and startstop.tex.
NOTE: Hans will eventually implement official support for startstops, and the
syntax will in all likelihood be different than the one used here
(\startpart[title=,ref=]).
3) Auto completion. There is a notepad++ ap
t-startstop.tex and startstop.tex.
NOTE: Hans will eventually implement official support for startstops, and
the syntax will in all likelihood be different than the one used here
(\startpart[title=,ref=]).
3) Auto completion. There is a notepad++ api file context.api, which has a
list of
76 matches
Mail list logo