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

2024-04-15 Thread Biblio--- via ntg-context
]   Pr=(\getmarking[Datum][previous])~   Nx=(\getmarking[Datum][next])~   Fi=(\getmarking[Datum][first])~   La=(\getmarking[Datum][last])~   Tp=(\getmarking[Datum][top])~   Bt=(\getmarking[Datum][bottom])~   Cu=(\getmarking[Datum][current])~ \stopsetups \setupheadertexts[text]   [\setup

[NTG-context] Re: Headertext

2024-03-27 Thread Thomas Meyer
s you have guessed \definetext is the way to create a custom header for the first page of your \chapter, the command has like \setupheadertexts a variable number of arguments. The third argument with the horizontal position can only be used when you use two or four arguments to set texts on the left a

[NTG-context] Re: Headertext

2024-03-26 Thread Wolfgang Schuster
apter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \setuphead[chapter][header=empty] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \stoptext end example As you have guessed \definetext is the way to create a custom header for the first page of your \chapter, the comm

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter}] This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv \startsection[title={This is my section

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
ing: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking[sectionnumber] \space - \space \getmarking[section] \stopsetups \setupheadertexts[\setup{doc:header}] \starttext \dorecurse{10}{ \startchapter[title={

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
[alternative=doublesided,location=,] \setupheadertexts[{\headnumber[section].~\getmarking[section]}---{\headnumber[chapter].~\getmarking[chapter]}] \setupfootertexts[][pagenumber][pagenumber][] \setuphead[chapter][header=high] \starttext \dorecurse{10}{ \startchapter[title={This is my chapter

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
s! I know \setupheadertexts, but do not know what shall I write here: \startsection[titel=Aufgabe, marking=?] If I write marking=Aufgabe I get Aufgabe, no number! For chapter the same. \setupheadertexts    [] [{\getmarking[chapter]} - {\getmarking[section]}] [{\getmarking[chapter]} - {\getmarki

[NTG-context] Re: Use of marking

2024-03-20 Thread Thomas Meyer
Hi Hraban, and thanks. setuphead[chapter,section][numberwidth=2em] or "fit" works! I know \setupheadertexts, but do not know what shall I write here: \startsection[titel=Aufgabe, marking=?] If I write marking=Aufgabe I get Aufgabe, no number! For chapter the same. \setuph

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
fgabe" in the header on the right. How can I automate this with marking? And how can I reduce the space between the number (1.) and the title (Kapitel or Aufgabe)? Thanks for your help Thomas Hi Thomas, do you know how to use \setupheadertexts? https://wiki.contextgarden.net/Command/setuph

[NTG-context] command line arguments

2024-03-19 Thread Hraban Ramm
=footer] \setupheadertexts[\CONTEXT\ imposition test] \showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] % Where the block of pages is placed on the sheet % (relevant if there is space left over.) \setuplayout [location=middle,marking=on] \startbuffer[Fakepage

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-17 Thread Hraban Ramm
Am 16.03.24 um 22:28 schrieb Marco Patzer: On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] I’d have guessed

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: > How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] Ma

[NTG-context] Why is header page number appearing when I define a header?

2024-03-16 Thread Joel via ntg-context
\starttext              \setupheadertexts[Name:~][Date:~__][Date:~__][Name:~]             \setupfootertexts[][pagenumber][][pagenumber]     \input knuth \stoptext I used this code to create header texts that prints Name / Date

[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context
tugboat:article:start \starttext \setups{tugboat:columns:presets} \setups{tugboat:banner:setup:\getvariable{tugboat}{type}} \setupheadertexts [\setups{tugboat:banner:text:article}] [pagenumber] \setuppagenumber [number=\getvariable{tugboat}{page

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
med \stopsetups \startsetups [footer:leftpage] \startframed [ frame=off, strut=no, height=\headerheight, offset=none, align=low, loffset=1em, ] \prefixedpagenumber \stopframed \stopsetups \setupheadertexts [] [\directsetup{header:rightpage}]

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
setupinterlinespace[line=3.2ex] \setupitemize[each][margin=yes] \setuphead[title][header=empty] \setupheader[style={\sc}] \setupfooter[style={\itxx}] \setupheadertexts[Utilisation de plusieurs langues dans un même texte avec \ConTeXt][][][{\getmarking[section]}] \setupfootertexts[][][][© J.-P. Delange

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
, " ") .. " …" > else res = t.dt[1] > end > context(res) > end > \stopluacode > \startxmlsetups xml:chapter:title:marking > \xmlfunction{#1}{getMarking} > \stopxmlsetups >

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread denis.maier
end context(res) end \stopluacode \startxmlsetups xml:chapter:title:marking \xmlfunction{#1}{getMarking} \stopxmlsetups \startxmlsetups xml:chapter:title \xmlflush{#1} \stopxmlsetups \setupheadertexts[chapter] \starttext \xmlp

[NTG-context] Re: disable header for endnotes

2023-08-16 Thread Rik Kabel
' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title

[NTG-context] disable header for endnotes

2023-08-16 Thread jbf
be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How

Re: [NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
ithcolor .625yellow) ; > draw fullcircle xscaled 1.5cm yscaled 1cm ; > \stopuseMPgraphic > > %\startnotmode[proof] > % \defineoverlay[circled][\useMPgraphic{circled}] > %\stopnotmode > > \define[1]\Circled% > {\framed > [background=circled,frame=off,offset=overlay] >

[NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
led% {\framed [background=circled,frame=off,offset=overlay] {\color[darkred]{#1}}} \setuppagenumbering[location=] \setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}] \startuniqueMPgraphic{titled} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayhei

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread jbf via ntg-context
. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [{\pagenumber \hskip1em \setup{headertext}}] [ ] My second attempt (quite crass, but it works

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread Hans Hagen via ntg-context
={Regulations}] \stopsetups \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [{\pagenumber \hskip1em \setup{headertext}}] [ ] My second attempt (quite crass, but it works!!) was to create a second \startdocument within the main \startdocument (obviously closing it towards

[NTG-context] how to change metadata halfway through document

2023-01-29 Thread jbf via ntg-context
Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts

Re: [NTG-context] How to create multi-line headers and footers?

2023-01-29 Thread Henning Hraban Ramm via ntg-context
ge in footer == I tried placing that all into a macro called "\introduction" then calling with this \setupheadertexts[\introduction] Better use setups instead of a macros, like in https://wiki.contextgarden.net/Headers_and_Footers In setups, you must use explicit space commands, sin

[NTG-context] How to create multi-line headers and footers?

2023-01-29 Thread Joel via ntg-context
uot;\introduction" then calling with this \setupheadertexts[\introduction] It seems when placing the macro inside \setupheadertexts, the text is reduced to a single line. Any code involving \frames{} doesn't seem to work normally. Its all compressed to a single line, then centered. How

Re: [NTG-context] Use section custom value in a header text.

2022-12-21 Thread Pawel Urbanski via ntg-context
> > > Hi Everyone, Thanks for the answers. I learnt something new. I ended up using the: \namedstructureuservariable{chapter}{my_custom_variable} command with \setupheadertexts. It worked well - at least for my case. While reading the wiki I started wondering what is the role of:

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Rik Kabel via ntg-context
and footers. I tried: \chapter[title={A sample title}][custom_random={custom_value}] \setupheadertexts[{Prefix: \structureuservariable{custom_random}}] ... \stopchapter I tried this code when trying to figure out the mechanism. The prefix string in placed in the header, but hte custom value

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Henning Hraban Ramm via ntg-context
and footers. I tried: \chapter[title={A sample title}][custom_random={custom_value}] \setupheadertexts[{Prefix: \structureuservariable{custom_random}}] ... \stopchapter I tried this code when trying to figure out the mechanism. The prefix string in placed in the header, but hte custom value

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Pawel Urbanski via ntg-context
}][custom_random={custom_value}] \setupheadertexts[{Prefix: \structureuservariable{custom_random}}] ... \stopchapter I tried this code when trying to figure out the mechanism. The prefix string in placed in the header, but hte custom value of the attached key is not expanded.. Evey page will contain just one

Re: [NTG-context] Use section custom value in a header text.

2022-12-20 Thread Henning Hraban Ramm via ntg-context
 such values. How can I use such a value to create a custom header in a format: Prefix: \structureuservariable{foo} I am asking for the only thing that worked when I tried was calling the: \setupheadertexts command inside a chapter environment block with some prefix. Unfortunately the value from

[NTG-context] Use section custom value in a header text.

2022-12-20 Thread Pawel Urbanski via ntg-context
in a format: Prefix: \structureuservariable{foo} I am asking for the only thing that worked when I tried was calling the: \setupheadertexts command inside a chapter environment block with some prefix. Unfortunately the value from the custom field was not expanded. It was correctly inserted

Re: [NTG-context] Structure: multi-volume products

2022-12-16 Thread Richard Mahoney | Indica et Buddhica via ntg-context
font % \showbodyfontenvironment \useexternaldocument[m001][master001][Whispering of Inscriptions, Vol.~{\sc ii}] \startfrontmatter \component tlpg000 { \setupheadtext[content=Contents of Vol.~i.] \setupheadertexts[Contents of Vol.~i.][pagenumber][pagenumber][Contents of Vol.~i.] \noheaderandfooterl

[NTG-context] \startcolumnset ... \stopcolumnset is working.

2022-09-14 Thread Jeong Dal via ntg-context
=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=off, background=screen] \define[3]\headTitle{\setupheadertexts[][\bf #1 \hfill #2 \hfill #3 \hfill ID: \hskip 2cm Name: \hskip 2cm]} \setupmathematics[autopunctuation=no, integral=nolimits] \setupbodyfont[rm,10pt

Re: [NTG-context] CLD setupheadertexts

2022-08-25 Thread Willi Egger via ntg-context
Hello! based on the answer Hans posted on my question how to correctly setup header texts in a ConTeXt Lua Document I added a section on the Wiki: https://wiki.contextgarden.net/CLD#Setting_up_Header_Texts Kind regards Willi > On 25 Aug 2022, at 19:45, Hans Hagen wrote: > > On 8/25/2022

Re: [NTG-context] CLD setupheadertexts

2022-08-25 Thread Willi Egger via ntg-context
Hans! Thank you so much for your help and quick answer. Indeed now all header texts appear as expected :-) I will wikify this of course! Kind regards Willi > On 25 Aug 2022, at 19:45, Hans Hagen wrote: > > On 8/25/2022 7:32 PM, Willi Egger via ntg-context wrote: >> Hello! >> I have a

Re: [NTG-context] CLD setupheadertexts

2022-08-25 Thread Hans Hagen via ntg-context
On 8/25/2022 7:32 PM, Willi Egger via ntg-context wrote: Hello! I have a ConTeXt Lua Document where I need to have headertexts. When running the enclosed file I get 6 pages where only page 1 and 2 have header texts and the others none. — Why is that? Thanks for hints! you use a function but

[NTG-context] CLD setupheadertexts

2022-08-25 Thread Willi Egger via ntg-context
Hello! I have a ConTeXt Lua Document where I need to have headertexts. When running the enclosed file I get 6 pages where only page 1 and 2 have header texts and the others none. — Why is that? Thanks for hints! Kind regards Willi Test-headertexts.pdf Description: Adobe PDF document

[NTG-context] ugly bug

2022-06-01 Thread Steffen Wolfrum via ntg-context
[palatino,9.5pt]\setupinterlinespace[13pt] \setuppagenumbering [alternative=doublesided,location=] \setupheader[strut=yes] \setupheadertexts[text][][\blackrule] \definepapersize[stw][width=17cm,height=24cm] \setuppapersize[stw][stw] \setuplayout [width=122mm, backspace=18mm,topspace

[NTG-context] spooky jumping headerline

2022-05-25 Thread Steffen Wolfrum via ntg-context
Hi, the \blackrule (in my real project this is the running title) on page 1 is about 1mm higher than on page 2. Why? Best, Steffen \setupbodyfont[palatino,9.5pt]\setupinterlinespace[13pt] \setuppagenumbering [alternative=doublesided,location=] \setupheader[strut=yes] \setupheadertexts[text

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
margin=\dimexpr0cm, leftmargindistance=\dimexpr0cm, rightmargindistance=\dimexpr0cm, width=middle, cutspace=\dimexpr1.5cm, backspace=\dimexpr1.5cm, topspace=\dimexpr1.5cm, header=\dimexpr4cm, height=middle, bottomspace=\dimexpr0cm, footer=\dimexpr0.5cm] \setupheadertexts[\directsetup{fheader}] \de

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
, header=\dimexpr4cm, height=middle, bottomspace=\dimexpr0cm, footer=\dimexpr0.5cm] \setupheadertexts[\setups{headertext}] \definehspace[tnumber][0.5em] \startsetups [headertable] \setupTABLE[frame=off] \setupTABLE[column][1][align=flushleft] \setupTABLE[column][2][align=flushright] \stopsetups

Re: [NTG-context] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
ult as that with the makeup: \setuppagenumbering[alternative=doublesided] \setupexternalfigures[location=default] \setupheadertexts[] \setupheadertexts[chapter][\date] \setupfootertexts[pagenumber] \starttext \startchapter [title={Chapter title}] \dorecurse{2}{\samplefile{knuth}} \placefig

Re: [NTG-context] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
pagestate=start, > align=middle, > footerstate=normal] > > \setupheadertexts[] > \setupheadertexts[chapter][\date] > \setupfootertexts[pagenumber] > > \starttext > \startchapter [title={Chapter title}] >\startpostponing[+1] > \startFloatPagemakeup >

Re: [NTG-context] Full-page Figure?

2022-03-28 Thread śrīrāma via ntg-context
ate=normal, pagestate=start, align=middle, footerstate=normal] \setupheadertexts[] \setupheadertexts[chapter][\date] \setupfootertexts[pagenumber] \starttext \startchapter [title={Chapter title}] \startpostponing[+1] \startFloatPagemakeup \placefig

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-19 Thread jbf via ntg-context
to call on, e.g \startchapter[title={My title}][author={A. uthor}]. But in the example you then gave, you made no use of either of these. My current setting is: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-19 Thread Hans Hagen via ntg-context
On 3/19/2022 10:18 AM, Henning Hraban Ramm via ntg-context wrote: BTW, I can’t remember when you need \structurevariable vs. \namedstructurevariable... the first is the current, the second a specific one ... so current can be subsubsubsubsubsection but with named you can still get the current

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-19 Thread Henning Hraban Ramm via ntg-context
is: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][] [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each chapter instead of the chapter

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
Sorry, of course I meant swap 'chapter' with \setups{contributor} J On 19/3/22 13:16, jbf wrote: Then just swap 'chapter' in \setupheadertexts, with 'contributor'? ___ If your question is of interest to others

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
setting is: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] which gives me the book title centred on verso pages, and the chapter title centred on recto pages. All I want to do is to have the chapter contributors' name for each

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread Henning Hraban Ramm via ntg-context
Am 18.03.22 um 10:13 schrieb jbf via ntg-context: Off list for the moment. Late at night where I am. I will take a look at this more closely on the morrow. Thanks. You’re welcome. BTW I answered with some German last time since I mixed up jbf and juh – the latter I know to be German.

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
Off list for the moment. Late at night where I am. I will take a look at this more closely on the morrow. Thanks. Julian On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote: \setupheadertexts[] % empty \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text

Re: [NTG-context] \setupheadertexts for chapters with different authors

2022-03-18 Thread Henning Hraban Ramm via ntg-context
Am 18.03.22 um 01:48 schrieb jbf via ntg-context: I thought this should work, since \structurelistuservariable{author} works fine to call the author name into the TOC, but the same does not work for header texts it seems: \setupheadertexts [{\hfill\getmarking[\structurelistuservariable

[NTG-context] \setupheadertexts for chapters with different authors

2022-03-17 Thread jbf via ntg-context
I thought this should work, since \structurelistuservariable{author} works fine to call the author name into the TOC, but the same does not work for header texts it seems: \setupheadertexts [{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][] [{\hfill\documentvariable

Re: [NTG-context] help with facing page image

2022-03-07 Thread Henning Hraban Ramm via ntg-context
/reihen/eka/lauf-los-buch/ : \startsetups eka:normalheader \setupheadertexts[chapter][{\feature[=normnum]\pagenumber}][{\feature[=normnum]\pagenumber}][] \stopsetups \startsetups eka:noheader \setupheadertexts[][][][] \stopsetups \startsetups eka:imagechapter \setupalign[flushleft] \doifelse

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

2022-01-14 Thread Bruce Horrocks via ntg-context
> On 14 Jan 2022, at 07:48, Hans Hagen wrote: > > Ponder this: > > [{\stylePageHeader{\structureuservariable{author}}}] > > versus this: > > [{\stylePageHeader{\namedstructureuservariable{chapter}{author}}}] > > and you can guess what happens. Thank-you for the quick response. It looks

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

2022-01-13 Thread Hans Hagen via ntg-context
On 1/14/2022 12:05 AM, Bruce Horrocks via ntg-context wrote: I've found an unexpected interaction between \setupheadertexts and the \subject command, and I'm hoping that someone can tell me what I'm doing wrong. Version: current version: 2022.01.10 08:36 I'm trying to set a book whereby

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

2022-01-13 Thread Bruce Horrocks via ntg-context
I've found an unexpected interaction between \setupheadertexts and the \subject command, and I'm hoping that someone can tell me what I'm doing wrong. Version: current version: 2022.01.10 08:36 I'm trying to set a book whereby - chapter title pages have no headers - left hand (even) pages have

Re: [NTG-context] how to place getmarking[title] in header instead of getmarking[chapter]

2022-01-04 Thread fv leung via ntg-context
can use this for the header: \setupheadertexts [text] [{\namedstructurevariable{chapter}{title}}] [] [] [{\namedstructurevariable{chapter}{title}}] juh via ntg-context 於 2022年1月5日 週三 上午12:28寫道: > Hi all, > > I know how to put the current chapter in the header. > > But how

[NTG-context] how to place getmarking[title] in header instead of getmarking[chapter]

2022-01-04 Thread juh via ntg-context
[chapter]{title headline} right before \starttitle as the source is created automatically. \setupheadertexts [text] [{\getmarking[chapter]}] [] [] [{\getmarking[chapter]}] \setupcombinedlist[content][list={chapter}] \starttext \placecontent \startchapter [title=Lorem] \startsection [title=Lorem

[NTG-context] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-16 Thread Jeong Dal via ntg-context
off, background=screen] \define[3]\headTitle{\setupheadertexts[][\bf #1 \hfill #2 \hfill #3 \hfill ID: \hskip 2cm Name: \hskip 2cm]} \setupmathematics[autopunctuation=no, integral=nolimits] \setupbodyfont[rm,10pt] \setuppagenumbering[location=footer] \setupcolors[state=start] %\setupexternalfig

[NTG-context] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context
off, background=screen] \define[3]\headTitle{\setupheadertexts[][\bf #1 \hfill #2 \hfill #3 \hfill ID: \hskip 2cm Name: \hskip 2cm]} \setupmathematics[autopunctuation=no, integral=nolimits] \setupbodyfont[rm,10pt] \setuppagenumbering[location=footer] \setupcolors[state=start] %\setupexternalfig

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-29 Thread Fabrice L via ntg-context
fineblock[Complement] \setupblock[Complement][ before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \starttext % Let's process the summar

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
\defineblock[ComplementTwo] \defineblock[ComplementThree] \setupblock[ComplementTwo,ComplementThree][ before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \startte

[NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
ber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \doifallmodes{Professor} { \keepblocks[Complement] } \starttext page 1 \beginComplement A complement

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
I attempted this: \page[right] \setupheadertexts[] \setupfootertexts[pagenumber] \setupfooter[text][after={\setupfootertexts[]\setupheadertexts[pagenumber]}] but that does not work. This definitely moves the page numbers to the footer. Gerben Wierda (LinkedIn <ht

Re: [NTG-context] undefined command in current latest

2021-10-13 Thread Marcus Vinicius Mesquita via ntg-context
1/2021 11:33 AM, mf via ntg-context wrote: > > It looks like the argument of \getmarking is not expanded, since you get > > "\it knuth" instead of an italicized "knuth" in the headers of this MWE: > > > > \definemarking[myheader] > > \set

Re: [NTG-context] undefined command in current latest

2021-10-11 Thread Hans Hagen via ntg-context
On 10/11/2021 11:33 AM, mf via ntg-context wrote: It looks like the argument of \getmarking is not expanded, since you get "\it knuth" instead of an italicized "knuth" in the headers of this MWE: \definemarking[myheader] \setupheadertexts[{\getmarking[myheader][last]}] \sta

Re: [NTG-context] undefined command in current latest

2021-10-11 Thread mf via ntg-context
It looks like the argument of \getmarking is not expanded, since you get "\it knuth" instead of an italicized "knuth" in the headers of this MWE: \definemarking[myheader] \setupheadertexts[{\getmarking[myheader][last]}] \starttext \dorecurse{10}{\samplefile{knuth}\marking

[NTG-context] undefined command in current latest

2021-10-10 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupheadertexts[{\getmarking[chapter]}] \starttext \chapter{Chapter} \stoptext It compiles perfectly fine with MkIV from 2021.10.08 20:18, but its LMTX version triggers the following error message: Undefined control sequence \??markingfilter

Re: [NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-10 Thread Hans Hagen via ntg-context
On 10/9/2021 9:53 PM, Rik Kabel via ntg-context wrote: Error with 20211008 ConTeXt: %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails \setupheadertexts [][][{\getmarking[chapter]}][] % fails %\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

Re: [NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-09 Thread Rik Kabel via ntg-context
;>  2 %\setupheadertexts [][][{\it\getmarking[chapter]}][] % fails  3 \setupheadertexts [][][{\getmarking[chapter]}][] % fails  4 %\setupheadertexts [][][\getmarking[chapter]][] % succeeds MWE to create. Note that the \it is not necessary to trigger the error, jus

[NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-09 Thread Rik Kabel via ntg-context
pwidth \bgroup \hss \page_layouts_process_element_indeed \c!rightstyle \c!rightcolor \c!rightwidth     \egroup \fi  ...     \stoptext  1 >>  2 %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails  3 \setupheadertexts [][][{\getmarking[chapter]}][]

Re: [NTG-context] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context
ow are two examples which show how the header/title placement works. start example 1 \startsetups [header]     \startframed [width=max,height=max]     First page header     \stopframed \stopsetups \startsetups [footer]     Page \userpagenumber\ of \lastuserpagenumber \stopsetups \setuph

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06: Hi, Using this (almost what I'm trying to do) without success [...] \startsetups[header] \doifelse{\totalnumberofpages}{1} {\setupheadertexts[\setups{header}]}     {} \stopsetups This stores the page check in the setups

Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Fabrice Couvreur via ntg-context
=] \setupbackgrounds [header] [text] [frame=off,bottomframe=on, framecolor=lightgray,rulethickness=1pt] \startsetups[header] \doifelse{\totalnumberofpages}{1} {\setupheadertexts[\setups{header}]} {} \stopsetups \starttext \dorecurse{5}{\samplefile{lorem}} %\dorecurse{1

Re: [NTG-context] Adjustment for header and footer

2021-08-22 Thread Wolfgang Schuster via ntg-context
to be adjusted to the width of the paper. Thanks Fabrice [...]   \setupheadertexts         [{             \startframed [headerframed] [align=flushleft,foregroundstyle=\ssx] Lycée LA SALLE\\                 Durée : \getvariable{headertext}{time}\\ \date[d=\getvariable{headertext}{day},m=\getvariable

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
]}}] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=TextStyle,align=middle] \getvariable{headertext}{location}\\ Spécialité mathématiques\\ \getvariable{headertext}{title} n\high{\tfxx

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

2021-08-07 Thread Joey McCollum via ntg-context
t;[MyPart] >[part] > > \definecharacterkerning >[mypartkerning] >[factor=0., > features=letterspacing] > > \setuphead >[MyPart] >[placehead=yes, > number=no, > page=blankpagebreak, > header=empty, > f

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

2021-08-07 Thread Wolfgang Schuster via ntg-context
D]}, after={\page[blankpagebreak]}] \setupheadertexts [\structureuservariable{booktitle}] [] [] [\structureuservariable{booktitle}] \setupfootertexts [pagenumber] [] [] [pagenumber] \setupblank [line,fixed] \starttext \startMyPart [title={Title for Title Page}] [booktitle={Title for Header}]

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

2021-08-06 Thread Joey McCollum via ntg-context
=\AfterBookTitle%add a double page break afterwards ] %Setup header and footer text: \setupheadertexts[{\structureuservariable{booktitle}}\hfill][][][\hfill {\structureuservariable{booktitle}}] %even left, even right, odd left, odd right \setupfootertexts[\pagenumber][][][\pagenumber] %even left,

Re: [NTG-context] Header for a book

2021-07-13 Thread Fabrice Couvreur
ter] >[bodypartlabel=] > > > \startsetups [header] > \labeltext{chapter} \getmarking[chapternumber] > \stopsetups > > \setupheadertexts > [] > [{\FramedText{{\cap\labeltext{chapter}\space\getmarking[chapternumber]} > \\ > \bfc\getmarking[chap

[NTG-context] Header for a book

2021-07-12 Thread Fabrice Couvreur
} \getmarking[chapternumber] \stopsetups \setupheadertexts [] [{\FramedText{{\cap\labeltext{chapter}\space\getmarking[chapternumber]} \\ \bfc\getmarking[chapter]}}] [] [\FramedText{{\cap\labeltext{chapter}\space \getmarking[chapternumber]} \\ \bfc\getmarking[chapter

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-07-02 Thread denis.maier
> improve the overall approach. I welcome suggestions. > > %--% > % Endnote apparatus adapted for parts > % > \mainlanguage  [en] > \language  [en] > \setupinteraction  [state=start] > \setuppagenumbering[alternative=doublesided] > > \setuphea

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Rik Kabel
. %--% % Endnote apparatus adapted for parts % \mainlanguage  [en] \language  [en] \setupinteraction  [state=start] \setuppagenumbering[alternative=doublesided] \setupheadertexts [{\it\getmarking[part]}][{\it\getmarking[section]}] [{\it\getmarking[chapter]}][{\it\getmarking

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread denis.maier
> Or, for more complex footers/headers you can use: > \setupfootertexts > [left on odd page] % out > [right on odd page] % in > [right on even page] % in > [left on even page] % out > > https://wiki.contextgarden.net/Command/setupheadertexts > >

Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread denis.maier
on even page] % in [left on even page] % out https://wiki.contextgarden.net/Command/setupheadertexts I'm not sure I was understanding your question. Is this what you want? Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Jan U. Hasecke > Gesendet: Fr

[NTG-context] dictionary example

2021-06-12 Thread jbf
obviously not doing things right! If someone has already set up a dictionary and has a model they could share I'd be grateful. I'm attaching a screenshot of the result from the code below. Julian -- \setuphead[subsubject][before=,after=] \definemarking[subsubject] \setupheadertexts

Re: [NTG-context] working on page refs with MP

2021-03-19 Thread Werner Hennrich
yes I had realized this already but I still don't know how to get those page numbers down into MP - they keep being strings with macro code instead is there a way the I can get \setupMPvariables[hdrPgs] in \setupheadertexts[\setups{page:header}] to be fully evaluated and stored as the page

[NTG-context] working on page refs with MP

2021-03-18 Thread Werner Hennrich
] \pagebreak[yes] \pagereference[\dummyparameter{ref}] \doassign[header][first=\dummyparameter{ref}] \doassign[header][next=\dummyparameter{next}] {\tfc\bf{#2}}\par \vskip3mm } \def\fillWithText[#1]{ \dorecurse{#1}{ \input tufte \input knuth } } \setupheadertexts

[NTG-context] Multiple Layouts

2021-03-13 Thread Jeroen
=doublesided] \setupheadertexts [] \setupfooter [style=\it] \setupfootertexts [{Footer Title} \hfill \pagenumber] \definemakeup [titlepage] [align=left] \definemakeup [copyrightpage] \setupmakeup [copyrightpage] [align={right,bottom}, top=\vfill, pagestate=stop, style

[NTG-context] (no subject)

2021-03-13 Thread Jeroen
=doublesided] \setupheadertexts [] \setupfooter [style=\it] \setupfootertexts [{Footer Title} \hfill \pagenumber] \definemakeup [titlepage] [align=left] \definemakeup [copyrightpage] \setupmakeup [copyrightpage] [align={right,bottom}, top=\vfill, pagestate=stop, style

Re: [NTG-context] \doassign variable - updates not picked up

2021-01-22 Thread Wolfgang Schuster
{setHEADER: '#1'} } \def\getHeaderVar{\headermyvar} \setupheadertexts[\setups{page:header}] \startsetups page:header HEADER: myvar=\getHeaderVar \stopsetups \starttext \setHeaderVar[initval] page: 1 \page \setHeaderVar[a] page: 2 \page \setHeaderVar

Re: [NTG-context] Missing images in Wiki?

2021-01-22 Thread Andres Conrado Montoya Acosta
plain; charset="utf-8"; Format="flowed" > > Hello everyone, > > I'm using ConTeXt (ver: 2020.09.20 23:02 LMTX) and have to have > conditional page headers based on specific content criteria. To achive > this I'd like to get some global variables in TeX

[NTG-context] \doassign variable - updates not picked up

2021-01-22 Thread Werner Hennrich
} \setupheadertexts[\setups{page:header}] \startsetups page:header HEADER: myvar=\getHeaderVar \stopsetups \starttext \setHeaderVar[initval] page: 1 \page \setHeaderVar[a] page: 2 \page \setHeaderVar[b] page: 3 \page \setHeaderVar[] page: 4 \page

Re: [NTG-context] running head for TOC

2021-01-19 Thread jbf
] \starttochead[title={Table of Contents}] \setupheader[state=start] \placecombinedlist[content] \stoptochead And I use the following to set up the headertexts for the book as a whole: \setupheadertexts [{\hfill\getmarking[chapter]\hfill}][] %recto pages [{\hfill\documentvariable

Re: [NTG-context] running head for TOC

2021-01-19 Thread Henning Hraban Ramm
\definehead > [tochead] > [title] > > \starttochead[title={Table of Contents}] > \setupheader[state=start] > \placecombinedlist[content] > \stoptochead > > And I use the following to set up the headertexts for the book as a whole: > > \setupheadertexts > [{\h

[NTG-context] running head for TOC

2021-01-18 Thread jbf
[state=start]   \placecombinedlist[content] \stoptochead And I use the following to set up the headertexts for the book as a whole: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][] %recto pages   [{\hfill\documentvariable{metadata:title}\hfill}][] %verso pages The problem is that I am

[NTG-context] markings in lmtx and luatex

2020-11-23 Thread Thomas A. Schmitz
Hi all, something has changed in the way markings are handled. Consider the following example: \definemarking[Section] \setupheadertexts[{\getmarking[Section][top]–\getmarking[Section][bottom]}] \starttext A\marking[Section]{A} B\marking[Section]{B} C\marking[Section]{C} \page D

  1   2   3   4   5   6   7   8   9   10   >