Dear list,
I've got a problem. Not the first one, but the first one to contribute to the
list. ;)
system> ConTeXt ver: 2024.04.01 08:59 LMTX fmt: 2024.4.12 int:
english/english
system> 'cont-new.mkxl' loaded
%==
%==
\definehead[Datum][subsubsubject]
\startsetups[Test
for i within tt : pathpart i && endfor cycle
withshademethod "linear"
withshadedirection up
withshadecolors (red, blue) ;
\stopMPcode
}
\definehead[Myhead][section]
\setuphead[Myhead][
style=\Mystyle,
]
\startMyhead[title=sample] a sample text
withshademethod "linear"
withshadedirection up
withshadecolors (red, blue) ;
\stopMPcode
}
\definehead[Myhead][section]
\setuphead[Myhead][
style=\Mystyle,
]
\startMyhead[title=sample] a sample text \stopMyhead
\stoptext
and the code below works but does not colo
numbers I am getting only “??”. I am not sure why this is happening and
would be grateful if someone could tell me why or point me to
documentation that explains the problem and how to solve it.
Many thanks in advance.
My minimalish working example:
\definehead[SourceTitle][chapter]
\setuphead
> On 15 Sep 2023, at 13:56, Taco Hoekwater wrote:
>
> Like this?
>
> \definehead[mychapter][chapter]
> \setuphead[mychapter][page=no]
Taco beat me to it... a simple example:
\starttext
\chapter{First}
Some text
\chapter{Second}
More text
\chapter{Third}
More text
; Betreff: [NTG-context] Chapters without new page
>>> In the \startbackmatter ... \stopbackmatter section i would like to have
>>> some chapters that are not automatically placed on a new page for the next
>>> chapter. Is there an easy
for these chapters?
Thanks, Jeroen
Untried:
1. Define a new section head that clones chapter
(\definehead[NPChapter][chapter]).
2. Modify the new section head so that it does not do a break
(\setuphead[NPChapter][page=no]).
3. Use the new section head instead of \chapter or \startchapter
. Define a new section head that clones chapter
(\definehead[NPChapter][chapter]).
2. Modify the new section head so that it does not do a break
(\setuphead[NPChapter][page=no]).
3. Use the new section head instead of \chapter or \startchapter
ctions are shown in the table of content
> because by default only the numbered sections are listed.
> begin example 1
> \setuphead [title] [incrementnumber=list]
> \setuphead [subject] [incrementnumber=list]
> \setuphead [subsubject] [incrementnumber=list]
> \definehead [conte
ject] [incrementnumber=list]
\setuphead [subsubject] [incrementnumber=list]
\definehead [contentstitle] [title]
\setupcombinedlist [content]
[list={chapter,title,section,subject,subsection,subsubject}]
\starttext
\completecontent
\title{Title}
\subject{Subject}
\subsubject{Subsubject}
age, portrait]
\definehead[poem][section]
\setuphead[poem][]
\definetyping[CUSTOM]
\setuptyping[CUSTOM][escape={[[,]]}]
\starttext
\showgrid
\startpoem[title={My title}][]
\startCUSTOM[]
\stopCUSTOM
\stoppoem
\stoptext
```
Tha
Thanks Hans!
Le 4/08/23 à 23:21, Hans Hagen a écrit :
On 8/4/2023 7:42 PM, Alex Leray wrote:
Hello,
I'm trying to figure out why this is not working (whereas
\startlines\stoplines works):
```
\definehead[poem][section]
\setuphead[poem][beforesection={\starttyping},
aftersection
On 8/4/2023 7:42 PM, Alex Leray wrote:
Hello,
I'm trying to figure out why this is not working (whereas
\startlines\stoplines works):
```
\definehead[poem][section]
\setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}]
\starttext
\startpoem[title={Glijden}][]
Lorem
Hello,
I'm trying to figure out why this is not working (whereas
\startlines\stoplines works):
```
\definehead[poem][section]
\setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}]
\starttext
\startpoem[title={Glijden}][]
Lorem ipsum dolor sit amet consectetur.
\stoppoem
the
>>>> text starts at the height of the chapter-numbering and is not carrying the
>>>> given number.
>>>> Am I doing something wrong?
>>>
>>> The wiki says:
>>>
>>> “The default table of contents is combined list. To write to
[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
\bTD \structureuservariable{bio} \eTD
\eTR
\bTR
\bTD[nc=2] #1 #2 \eTD
\eTR
\eTABLE
}
\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]
\starttext
\eTR
\bTR
\bTD[nc=2] #1 #2 \eTD
\eTR
\eTABLE
}
\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]
\starttext
\startinterview[title={My Interview}][
author={Jane Doe
ce to keep the
\startstopinterview structure.
Here is my code at the moment:
%%%
\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC
\structureuservariable{bio} \NR
\stoptabulate
}
\definehead[intervie
)use the section numbering for a date (e.g. for a
> diary):
>
> -
> \definestructureconversionset[default][n,n,month,n][n]
> \definestructureseparatorset [default][-,-,-,-]
>
> \definehead[Year][chapter]
> \definehead[Month][section]
> \definehead[Day][subsection]
>
to (ab)use the section numbering for a date (e.g. for a
diary):
-
\definestructureconversionset[default][n,n,month,n][n]
\definestructureseparatorset [default][-,-,-,-]
\definehead[Year][chapter]
\definehead[Month][section]
\definehead[Day][subsection]
\define[2]\TitleCmd{#1} % number only
2. Can the \bookmark[list]{text} command be somehow used for multi-level
> > bookmarking?
> >
> > While the first question would make up for a more consistent solution,
> > the second question would do the job as well.
> >
> > I hope some of you can enlighten
Am 26.07.22 um 12:41 schrieb Bruce Horrocks via ntg-context:
If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I
can specify setups to run before and after \startChapter.
Is there any way to specify setups that are run before & after \stopChapter?
\setuphead[Cha
If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I
can specify setups to run before and after \startChapter.
Is there any way to specify setups that are run before & after \stopChapter?
My real problem is that I have a double-sided book with new chapters star
up for a more consistent solution,
the second question would do the job as well.
I hope some of you can enlighten me.
Cheers, k
%%% START of MWE
\definehead[VisiSection][section]
\setuphead[VisiSection][number=no]
\definehead[InvisiSection][VisiSection]
\setuphead[InvisiSection][placehead
as well.
I hope some of you can enlighten me.
Cheers, k
%%% START of MWE
\definehead[VisiSection][section]
\setuphead[VisiSection][number=no]
\definehead[InvisiSection][VisiSection]
\setuphead[InvisiSection][placehead=no]
\definelist[CustomBMarks]
\setupinteraction[state=start
t 'chapter'
>> titles do?
>>
>> % ---begin---
>> \define[2]\placePartTitle{\midaligned{#2}}
>>
>> \definehead [Part] [part]
>> \setuphead[Part]
>> [ placehead=yes,
>> style={\tfd},
>> command=\placePartTitle,
>> ]
>
> \setuphead
> [
; % ---begin---
> > \define[2]\placePartTitle{\midaligned{#2}}
> >
> > \definehead [Part] [part]
> > \setuphead[Part]
> >[ placehead=yes,
> > style={\tfd},
> > command=\placePartTitle,
> >]
>
> \setuphead
> [Part]
>
break at
that point. However this does 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
'.
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=\placePartTitle,
]
\starttext
\startPart[title={A very long
this:
[{\stylePageHeader{\structureuservariable{author}}}]
versus this:
[{\stylePageHeader{\namedstructureuservariable{chapter}{author}}}]
and you can guess what happens.
\definehead [Chapter] [chapter]
\setuphead[Chapter]
[ page=right,
number=no,
before={\setups{ChapterSetup}},
]
\starttext
}}]
[{\stylePageHeader{\structureuservariable{author}}}]
[{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My
Book}}]
\setupheader[state=empty]
\stopsetups
\definehead [Chapter] [chapter]
\setuphead[Chapter]
[ page=right,
number=no,
before={\setups
re so in your example):
>> \definehead[exercises][subject]
>> \definehead[answers][subject]
>> then you can simply do
>> \setupenumeration[uppgift]
>> [alternative=left,
>> width=1cm,
>> text=,
>> after={\blank[2*big]},
>> way=bysubject]
>>
On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote:
> If 'Exercises' and 'Answers to exercises' are some head structure (assuming
> unnumbered since they are so in your example):
> \definehead[exercises][subject]
> \definehead[answers][subject]
> then you can simply do
>
; 1 Answers to first exercise
>
> 2 Answers to second exercise
After all, one can do
\resetcounter[uppgift]
before 'Answers to exercises'.
If 'Exercises' and 'Answers to exercises' are some head structure (assuming
unnumbered since they are so in your example):
\definehead[exercises][subje
pe[Head 2][headcolor=blue] % pass on arguments to tabulate
>> \FL
>> \BC Absolute \BC Stock \BC Ingredient \BC Final \NR
>> \HL
>> \NC 1 \NR
>> \LL
>> \stoprecipe
>> Small question though: Is there a ConTeXt way to "\long\def" or a simple wa
e.g. to make a single
optional argument with headertitle={Some header.}?
context has no (need for) \long ... all is long (i mever saw a reason
for using it)
(1) use a proper head:
\definehead[RecipeHead][subsubsubsubsubsubject]
\setuphead [RecipeHead][style=bolditalic,after={\blank[medium]
not repeat on each page.
> >> why not just use
> >>
> >> \subsubsubject{}
> >
> > That sounds like a neat solution. I'll investigate.
> > Does that play nicely with structurelevels? I mean, let's say I'm somewhere
> higher, e.g. on cha
with structurelevels? I mean, let's say I'm somewhere
higher, e.g. on chapter, the next level would be section. If I now invoke this
subsubsubject manually, does that break the levels structure?
often it's ok as subjects are unnumbered but you can play safe:
\definehead[myownhead
,2mm) withpen pensquare scaled 1.5mm ;
>draw (0,0)--(TextWidth,0) withpen pensquare scaled 1.0mm ;
>clip currentpicture to unitsquare yscaled 1cm xscaled TextWidth
> \stopMPcode
> \stopsetups
>
> \define[2]\placePartTitle{\midaligned{#2}}
> %% The above line is w
MPcode
\stopsetups
\define[2]\placePartTitle{\midaligned{#2}}
%% The above line 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,
placehe
in the log files
to find these duplicates?
You can try this at the top:
%enabledirectives[overloadmode=warning]
\enabledirectives[overloadmode=error]
it's still sort of 'work in progress' (esp instances), so
\defineitemgroup[xxx]
\definehead[xxx]
will trigger an error (more commands will get
, and I’m unsure how I should setup the indentation.
With 'narrower' the numbered titles would be difficult.
\setuplabeltext[en][Exercise=Exercise~]
\definehead[Exercise][section]
\setuphead[Exercise][
bodypartlabel=Exercise,
number=yes,
ownnumber=yes, % ??
way=bytext, % ??
]
\starttext
Lua to format the list entries and section titles?
\definehead
[lecture]
[section]
\define[1]\LectureTextCommand
{\doiftext{#1}{: #1}}
\setuphead
[lecture]
[bodypartlabel=lecture,
distance=0pt,
textcommand=\LectureTextCommand,
style=\bfc]
\setuplabeltext
[en]
[lecture
:
```
\definehead
[lecture]
[section]
\setuphead
[lecture]
[
command=\Lecture,
style=\bfc,
]
\setuplabeltext
[lecture={Lecture}]
\define[2]\Lecture{\ctxlua{
userdata.format_lecture_title({
label = context.labeltext('lecture'),
number = [==[#1]==],
title = [==[#2
ont
>[MyPartFont]
>[Serif at 24pt]
>[line=36pt]
>
> \setuppagenumbering
>[alternative=doublesided,
> location=]
>
> \setupinterlinespace
>[line=18pt]
>
> \definepagebreak
>[blankpagebreak]
>[yes,header,footer,right]
>
> \definehead
&g
d,12pt]
\definefont
[MyPartFont]
[Serif at 24pt]
[line=36pt]
\setuppagenumbering
[alternative=doublesided,
location=]
\setupinterlinespace
[line=18pt]
\definepagebreak
[blankpagebreak]
[yes,header,footer,right]
\definehead
[MyPart]
[part]
\definecharacterkerning
[mypartkerni
{#1}%set all letters in uppercase
}
%Macro for page break after MyPart headings:
\define\AfterMyPart{%
\page[blankpagebreak]%
}
%Define a new heading at the level of a part:
\definehead[MyPart][part]
\setuphead[MyPart][
number=no,%do not add a number to this heading
page=blankpag
simplifies
each dictionary entry:
\definehead[entry][subsubject]
\setuphead [entry]
[
number=no,
textdistance=3pt,
alternative=text,
align=raggedright,
style=\bf,
before={\vskip 0.5\lineheight
:
\definehead[entry][subsubject]
\setuphead [entry]
[
number=no,
textdistance=3pt,
alternative=text,
align=raggedright,
style=\bf,
before={\vskip 0.5\lineheight}
]
2nd, note the before={\vskip 0.5
?
\definehead[mysubject][subject]
and then set up mysubject differently
\startmysubject[title={}] etc
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt
better ways to do it, but this works well.
%% RVchapter can start on recto or verso, chapter on recto only
\definehead [RVchapter][chapter]
\setuphead [RVchapter][
page=yes,
before=
]
\setuphead [chapter
> Am 19.01.2021 um 10:34 schrieb jbf :
>
> I had tried that - I tried:
>
> \definehead
> [tochead]
> [chapter]
>
> and of course combined list does not contain tochead, but chapter. But what
> happens then is that the Table of Contents disappears altogether) e
I had tried that - I tried:
\definehead
[tochead]
[chapter]
and of course combined list does not contain tochead, but chapter. But
what happens then is that the Table of Contents disappears altogether)
except for the actually head 'Table of Contents')!
On 19/1/21 8:23 pm, Henning Hraban
> Am 19.01.2021 um 05:55 schrieb jbf :
>
> I have a very long Table of Contents (runs across five pages) and the author
> would like the running head on recto pages for this to be 'Table of Contents'.
>
> I am using the following to create the TOC head:
>
>
I have a very long Table of Contents (runs across five pages) and the
author would like the running head on recto pages for this to be 'Table
of Contents'.
I am using the following to create the TOC head:
\definehead
[tochead]
[title]
\starttochead[title={Table of Contents}]
\setupheader
.
Thanks for the suggestion, but I already had \setupinteraction[state=start]
set. (Note 'interaction' - no 's')
I eventually found a previous thread on the mailing list archive.
<https://www.mail-archive.com/ntg-context@ntg.nl/msg86919.html>
From that I was able to add the follow
> On 24 Nov 2020, at 22:26, Aditya Mahajan wrote:
>
> On Tue, 24 Nov 2020, Bruce Horrocks wrote:
>
>> The following is giving me a section title with triple underbars instead of
>> single.
>>
>> \definehead [Heading] [section]
>> \setuphead
On Tue, 24 Nov 2020, Bruce Horrocks wrote:
> The following is giving me a section title with triple underbars instead of
> single.
>
> \definehead [Heading] [section]
> \setuphead [Heading] [style={\underbar}]
Change this to:
\setuphead [Heading] [textcommand={\underbar}
The following is giving me a section title with triple underbars instead of
single.
\definehead [Heading] [section]
\setuphead [Heading] [style={\underbar}]
\starttext
\Heading{First level section heading}
\underbar{This is single underlined as expected}
\stoptext
(Same with \startHeading
that someone wishes to offer.
The problem was that
\definehead
[tochead]
[title]
\starttochead[title={Contents}]
\setupheader[state=stop]
\placecombinedlist[content]
\stoptochead
was giving me headers on the second and third pages of the ToC, and my
publisher did not want those headers to appear
I notice that when I use
\definehead
[tochead]
[title]
\starttochead[title={Contents}]
\placecombinedlist[content]
\stoptochead
I am getting header and footer still (not on the first page, but on
following pages - the TOC runs into several pages). How can I prevent
that happening
that for this
item I am using:
\definehead
[foreword] [chapter]…
‘chapter' suppresses the header by default on the first page.
at a guess:
\setuphead[foreword][header=start]
Best wishes,
Taco
___
If your question
Foreword. It is important to note that for this
item I am using:
\definehead
[foreword] [chapter]…
‘chapter' suppresses the header by default on the first page.
at a guess:
\setuphead[foreword][header=start]
Best wishes,
Taco
Taco Hoekwater wrote:
>
>>
>>
>> > On 30 Sep 2020, at 11:46, jbf wrote:
>> >
>> > For some reason that I cannot work out, the recto page header is not
>> appearing in frontmatter sections like Foreword. It is important to note
>> that for this item I
work out, the recto page header is not
> appearing in frontmatter sections like Foreword. It is important to note
> that for this item I am using:
> >
> > \definehead
> > [foreword] [chapter]…
>
> ‘chapter' suppresses the header by default on the first page.
>
> a
> On 30 Sep 2020, at 11:46, jbf wrote:
>
> For some reason that I cannot work out, the recto page header is not
> appearing in frontmatter sections like Foreword. It is important to note that
> for this item I am using:
>
> \definehead
> [foreword] [chapter
For some reason that I cannot work out, the recto page header is not
appearing in frontmatter sections like Foreword. It is important to note
that for this item I am using:
\definehead
[foreword] [chapter]...
\setuphead
[foreword]
[frontpartlabel=foreword,
conversion=empty
Jairo A. del Rio schrieb am 15.09.2020 um 04:38:
Hi, list. I've adapted the following example from the mailing list. My
aim is to use endnotes for each chapter:
\mainlanguage[es]
\definehead[footnotetitle][title]
\startsetups[chapter:after]
\ifcase\rawcountervalue[footnote]\relax
\else
> Am 15.09.2020 um 04:38 schrieb Jairo A. del Rio :
>
> Hi, list. I've adapted the following example from the mailing list. My aim is
> to use endnotes for each chapter:
>
> \mainlanguage[es]
> \definehead[footnotetitle][title]
> \startsetups[chapter:after]
> \ifca
Hi, list. I've adapted the following example from the mailing list. My aim
is to use endnotes for each chapter:
\mainlanguage[es]
\definehead[footnotetitle][title]
\startsetups[chapter:after]
\ifcase\rawcountervalue[footnote]\relax
\else
\startfootnotetitle[title={Notas
not produce a numbered item -
however, it is producing the label 'Chapter' which I don't want for
these item. 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
\chapter, since it does not produce a numbered item -
however, it is producing the label 'Chapter' which I don't want for
these item. 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
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
given in an earlier response
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 from Wolfgang
at least).
MWE:
\definehead [foreword] [title]
\definehead [preface] [title]
\definehead [mysection] [section]
\setupcombinedlist[chapter,foreword,preface,mysection,section, subsection]
\define[3]\ChapterListCommand
{\hbox\bgroup
\hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
command=\TitleListCommand]
\setuplabeltext
[en]
[chapter={\bf Chapter }]
\setuplabeltext
[en]
[title={\bf ? }] %There needs to be three different labels
You need extra headings for the forward and preface
\definehead [forward] [chapter]
\definehead [preface] [chapter]
to have full control a
place the ToC using:
\definehead
[tochead]
[title]
\starttochead[title={Contents}]
\placecombinedlist[content]
\stoptochead
%-
The last bit ensures that I get the word 'Contents' as the toc title,
and avoid then getting 'contents' listed as an item with its page
,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]}]
and then setting up a mychapter as:
\definehead[mychapter][chapter]
\setuphead[mychapter][header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[.5cm]}]
That gives me the result I am after
]},after={\blank[3cm]}]
and then setting up a mychapter as:
\definehead[mychapter][chapter]
\setuphead[mychapter][header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[.5cm]}]
That gives me the result I am after as well as maintaining the style
on left/right pages.
\setuppagenumbering[alternative=doublesided]
\definehead[mychapter][chapter]
\setuphead[mychapter][page=yes]
\starttext
\chapter{Right page}
\chapter{Right page}
\mychapter{New page}
\chapter{Right page}
\stoptext
Wolfgang
).
Is there a way to interrupt the setup so the new chapter in this
case can start on the verso page?
Create a new heading for chapters which can start on left/right pages.
\setuppagenumbering[alternative=doublesided]
\definehead[mychapter][chapter]
\setuphead[mychapter][page=yes]
\starttext
the setup so the new chapter in this case
can start on the verso page?
Create a new heading for chapters which can start on left/right pages.
\setuppagenumbering[alternative=doublesided]
\definehead[mychapter][chapter]
\setuphead[mychapter][page=yes]
\starttext
\chapter{Right page}
\chapter
).
Is there a way to interrupt the setup so the new chapter in this case
can start on the verso page?
Create a new heading for chapters which can start on left/right pages.
\setuppagenumbering[alternative=doublesided]
\definehead[mychapter][chapter]
\setuphead[mychapter][page=yes]
\starttext
> On 2 May 2020, at 17:08, Wolfgang Schuster
> wrote:
[comprehensive answer snipped]
Thank-you, very helpful.
> I attached a slightly modified version of your project structure to show a
> different way to organize documents. What I would change is to use a better
> section name for each
n...@scorecrow.com schrieb am 02.05.2020 um 17:14:
I'm having trouble with \definehead behaving differently depending upon whether
I process a file that includes it via a \input statement versus a project
structure that calls it via an environment file referenced from a component
file
And the attachment (d'oh):
<>
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage :
I'm having trouble with \definehead behaving differently depending upon whether
I process a file that includes it via a \input statement versus a project
structure that calls it via an environment file referenced from a component
file.
Overall aim:
I currently produce a small circulation
requesting
that all titles are included in the TOC.
A workaround could be to create a special title command for the TOC,
such as in:
\definehead
[toctitle]
[title]
And then use the following instead of \completecontent:
\toctitle{Contents}
\placelist[content]
This should avoid the proble
oC title. (title = unnumbered chapter)
If you need chapters without numbers, use \setuphead[chapter][number=no].
If you need some titles to appear in the ToC, you can use
\definehead[MyTitle][chapter] etc.
You can also replace \completecontent with
{\externalfigure[\structureuservariable{background}][factor=max]}]
>
> \setuppapersize[S6]
> \setupbackgrounds[page][background=SlideBackground]
>
> %\setuppapersize[S6][S6,oversized]
> %\setupbackgrounds[paper][background=SlideBackground]
> %\setuplayout[locati
kgrounds[page][background=SlideBackground]
%\setuppapersize[S6][S6,oversized]
%\setupbackgrounds[paper][background=SlideBackground]
%\setuplayout[location=middle]
\definehead[Slide][chapter]
\starttext
\startSlide[title=Cow][background=cow]
\dorecurse{3}{\dontleavehmode\page}
\stopSlide
\startSlide
distance=5mm,height=270mm,
backspace=20mm,width=380mm,
]
\setupheadertexts[]
\setupfootertexts[]
\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]
\setupexternalfigures[location=default]
\setupindenting[no]
\setupwhitespace[none]
\setuplayout[grid=yes]
\definehead[MyTit][title]
ithin)?
-Sanjoy
The code:
\setupcaption[figure][way=bytext,prefixset=1:2]
\definehead[unnumberedsection][section]
\setuphead [unnumberedsection][incrementnumber=list]
\starttext
\placelist[chapter,section,unnumberedsection]
\chapter{One}
\placefigure{one}{1}
\section{Two}
\placefigure{two}{2}
\chap
On 5/16/19 6:43 PM, Pablo Rodriguez wrote:
> [...]
> What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and
> contains(@class,'hidden')]}" in beforesection?
>
> I realize that "\definehead[specialchapter][chapter]" would be a
> workaround,
, it doesn’t work inside \setuphead.
What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and
contains(@class,'hidden')]}" in beforesection?
I realize that "\definehead[specialchapter][chapter]" would be a
workaround, but I would like to find a more proper solution.
Many
pages too and just insert a styled page
by hand.
juh
I place an epigraph on verso page before a few chapters with the following:
\definehead[ChapterEpigraph][title]
\setuphead [ChapterEpigraph][
page={yes,left},
insidesection=\vfill
\definehead[mytitle][title]
\starttext
...
\mytitle{...}
\placeregister[index]
\stoptext
Wolfgang
Hans van der Meer <mailto:havdm...@ziggo.nl>
19. Juli 2018 um 13:54
The macro \completeregister[index] placed in
\startbackmatter\startappendices typesets as “I Index”.
How can I
yes ...entheadlevel ]
\fi \headparameter
\c!befo...
...
l.15\levelA{A1}
1
2 \definehead [specialpage] [chapter]
3 \definehead [levelA] [chapter]
4
5\setuphead
6 [specialpage]
y, I do know how to switch off the header only at this special
page.
I also tried \definehead[specialpage][title] but in this case the
"specialpage" is not stored in the
contents, too.
Like this?
\definehead [specialpage] [chapter]
\definehead [levelA] [chapter]
\setuphead
[speci
1 - 100 of 577 matches
Mail list logo