[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
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

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
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

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
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

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
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

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Bruce Horrocks
> 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

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater
; 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

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
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

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
. 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

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Jim
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

[NTG-context] Re: Table of contents of unnumbered titles

2023-09-09 Thread Wolfgang Schuster
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}

[NTG-context] Typing with text wrapping

2023-08-05 Thread Alex Leray
age, portrait] \definehead[poem][section] \setuphead[poem][] \definetyping[CUSTOM] \setuptyping[CUSTOM][escape={[[,]]}] \starttext \showgrid \startpoem[title={My title}][] \startCUSTOM[] \stopCUSTOM \stoppoem \stoptext ``` Tha

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray
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

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen
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

[NTG-context] Using

2023-08-04 Thread Alex Leray
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

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Willi Egger via ntg-context
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

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Hans Hagen via ntg-context
[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

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
\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

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
\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

[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
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

Re: [NTG-context] numbering questions

2022-12-31 Thread Duncan Hothersall via ntg-context
)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] >

[NTG-context] numbering questions

2022-12-31 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-29 Thread cryo shock via ntg-context
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

Re: [NTG-context] Any way to configure \setuphead to run a setups on the stop command?

2022-07-26 Thread Henning Hraban Ramm via ntg-context
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

[NTG-context] Any way to configure \setuphead to run a setups on the stop command?

2022-07-26 Thread 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? My real problem is that I have a double-sided book with new chapters star

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-25 Thread Hans Hagen via ntg-context
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

[NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-24 Thread cryo shock via ntg-context
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

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Bruce Horrocks via ntg-context
t 'chapter' >> titles do? >> >> % ---begin--- >> \define[2]\placePartTitle{\midaligned{#2}} >> >> \definehead [Part] [part] >> \setuphead[Part] >> [ placehead=yes, >> style={\tfd}, >> command=\placePartTitle, >> ] > > \setuphead > [

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Aditya Mahajan via ntg-context
; % ---begin--- > > \define[2]\placePartTitle{\midaligned{#2}} > > > > \definehead [Part] [part] > > \setuphead[Part] > >[ placehead=yes, > > style={\tfd}, > > command=\placePartTitle, > >] > > \setuphead >   [Part] >

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Bruce Horrocks via ntg-context
'. 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

Re: [NTG-context] \setupheadertexts not working when text contains \subject

2022-01-13 Thread Hans Hagen via ntg-context
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

[NTG-context] \setupheadertexts not working when text contains \subject

2022-01-13 Thread Bruce Horrocks via ntg-context
}}] [{\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: [NTG-context] Resetcounter in custom enumeration environment

2022-01-04 Thread Jan-Erik Hägglöf via ntg-context
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] >>

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
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 >

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
; 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

Re: [NTG-context] Title for tabulate

2021-12-16 Thread Benjamin Buchmuller via ntg-context
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

Re: [NTG-context] Title for tabulate

2021-12-14 Thread Hans Hagen via ntg-context
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]

Re: [NTG-context] Title for tabulate

2021-11-30 Thread Denis Maier via ntg-context
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

Re: [NTG-context] Title for tabulate

2021-11-28 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
,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

Re: [NTG-context] A book with sections

2021-10-23 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] improve bad habits deduplicate redundant defined values

2021-09-15 Thread Hans Hagen via ntg-context
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

[NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
, 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

Re: [NTG-context] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
: ``` \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

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Joey McCollum via ntg-context
ont >[MyPartFont] >[Serif at 24pt] >[line=36pt] > > \setuppagenumbering >[alternative=doublesided, > location=] > > \setupinterlinespace >[line=18pt] > > \definepagebreak >[blankpagebreak] >[yes,header,footer,right] > > \definehead &g

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Joey McCollum via ntg-context
{#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

Re: [NTG-context] dictionary example

2021-06-13 Thread Hans Hagen
simplifies each dictionary entry: \definehead[entry][subsubject] \setuphead [entry]    [ number=no, textdistance=3pt, alternative=text, align=raggedright, style=\bf, before={\vskip 0.5\lineheight

Re: [NTG-context] dictionary example

2021-06-13 Thread jbf
: \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

Re: [NTG-context] dictionary example

2021-06-13 Thread Hans Hagen
? \definehead[mysubject][subject] and then set up mysubject differently \startmysubject[title={}] etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] One chapter with different heading settings

2021-05-23 Thread Rik Kabel
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

Re: [NTG-context] running head for TOC

2021-01-19 Thread Henning Hraban Ramm
> 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

Re: [NTG-context] running head for TOC

2021-01-19 Thread 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) except for the actually head 'Table of Contents')! On 19/1/21 8:23 pm, Henning Hraban

Re: [NTG-context] running head for TOC

2021-01-19 Thread Henning Hraban Ramm
> 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: > >

[NTG-context] running head for TOC

2021-01-18 Thread 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: \definehead   [tochead]   [title] \starttochead[title={Table of Contents}] \setupheader

Re: [NTG-context] Placing extra bookmarks?

2020-12-01 Thread Bruce Horrocks
. 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

Re: [NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Bruce Horrocks
> 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

Re: [NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Aditya Mahajan
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}

[NTG-context] Unexpected underbar behaviour in sections

2020-11-24 Thread Bruce Horrocks
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

[NTG-context] solution to suppressing header in ToC

2020-10-06 Thread jbf
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

[NTG-context] header/footer in toc

2020-10-05 Thread jbf
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

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
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

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
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

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread Alan Bowen
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

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread Alan Bowen
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

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread Taco Hoekwater
> 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

[NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
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

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Wolfgang Schuster
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

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Henning Hraban Ramm
> 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

[NTG-context] Footnote font size equal to main text font size

2020-09-14 Thread 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] \ifcase\rawcountervalue[footnote]\relax \else \startfootnotetitle[title={Notas

[NTG-context] Fwd: Re: styling individual parts of ToC entry

2020-09-09 Thread jbf
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

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
\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

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread Wolfgang Schuster
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

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
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

[NTG-context] Fwd: Re: styling individual parts of ToC entry

2020-09-07 Thread jbf
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

Re: [NTG-context] styling individual parts of ToC entry

2020-09-07 Thread Wolfgang Schuster
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

[NTG-context] author in ToC and other design complications

2020-09-03 Thread jbf
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

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster
,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

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
]},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

Re: [NTG-context] how to interrupt doublesided in particular instance

2020-05-06 Thread jbf
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

Re: [NTG-context] how to interrupt doublesided in particular instance

2020-05-06 Thread Rik Kabel
). 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

Re: [NTG-context] how to interrupt doublesided in particular instance

2020-05-05 Thread jbf
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

Re: [NTG-context] how to interrupt doublesided in particular instance

2020-05-05 Thread Wolfgang Schuster
). 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

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
> 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

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread Wolfgang Schuster
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

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
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 :

[NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
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

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Pablo Rodriguez
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

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Henning Hraban Ramm
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

Re: [NTG-context] Repeat backgrounds on slides

2020-02-15 Thread Jan U. Hasecke
{\externalfigure[\structureuservariable{background}][factor=max]}] > > \setuppapersize[S6] > \setupbackgrounds[page][background=SlideBackground] > > %\setuppapersize[S6][S6,oversized] > %\setupbackgrounds[paper][background=SlideBackground] > %\setuplayout[locati

Re: [NTG-context] Repeat backgrounds on slides

2020-02-14 Thread Wolfgang Schuster
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

[NTG-context] Column sets (span) & unwanted vertical gap

2019-10-01 Thread Procházka Lukáš Ing .
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]

[NTG-context] chapter-number prefixes on figure, etc, numbers, even in unnumbered section appearing in TOC

2019-05-31 Thread Sanjoy Mahajan
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

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
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,

[NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
, 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

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Rik Kabel
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

Re: [NTG-context] title of index

2018-07-19 Thread Wolfgang Schuster
\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

Re: [NTG-context] Question to sectioning

2018-04-23 Thread Tomas Hala
yes ...entheadlevel ] \fi \headparameter \c!befo... ... l.15\levelA{A1} 1 2 \definehead [specialpage] [chapter] 3 \definehead [levelA]  [chapter] 4 5\setuphead 6  [specialpage]

Re: [NTG-context] Question to sectioning

2018-04-18 Thread Wolfgang Schuster
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   2   3   4   5   6   >