]
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
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
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
[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
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={
[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
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
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
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
=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
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
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
\starttext
\setupheadertexts[Name:~][Date:~__][Date:~__][Name:~]
\setupfootertexts[][pagenumber][][pagenumber]
\input knuth
\stoptext
I used this code to create header texts that prints Name / Date
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
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}]
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
, " ") .. " …"
> else res = t.dt[1]
> end
> context(res)
> end
> \stopluacode
> \startxmlsetups xml:chapter:title:marking
> \xmlfunction{#1}{getMarking}
> \stopxmlsetups
>
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
' 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
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
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]
>
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
.
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
={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
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
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
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
>
>
> 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:
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
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
}][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
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
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
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
=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
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
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
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
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
[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
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
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
,
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
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
pagestate=start,
> align=middle,
> footerstate=normal]
>
> \setupheadertexts[]
> \setupheadertexts[chapter][\date]
> \setupfootertexts[pagenumber]
>
> \starttext
> \startchapter [title={Chapter title}]
>\startpostponing[+1]
> \startFloatPagemakeup
>
ate=normal,
pagestate=start,
align=middle,
footerstate=normal]
\setupheadertexts[]
\setupheadertexts[chapter][\date]
\setupfootertexts[pagenumber]
\starttext
\startchapter [title={Chapter title}]
\startpostponing[+1]
\startFloatPagemakeup
\placefig
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
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
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
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
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
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.
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
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
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
/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
> 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
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
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
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
[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
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
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
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
\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
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
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
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
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
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
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
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
;>
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
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]}][]
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
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
=]
\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
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
]}}]
\startsetups [headertext]
\setupheadertexts
[{
\startframed [headerframed]
[foregroundstyle=TextStyle,align=middle]
\getvariable{headertext}{location}\\
Spécialité mathématiques\\
\getvariable{headertext}{title} n\high{\tfxx
t;[MyPart]
>[part]
>
> \definecharacterkerning
>[mypartkerning]
>[factor=0.,
> features=letterspacing]
>
> \setuphead
>[MyPart]
>[placehead=yes,
> number=no,
> page=blankpagebreak,
> header=empty,
> f
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}]
=\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,
ter]
>[bodypartlabel=]
>
>
> \startsetups [header]
> \labeltext{chapter} \getmarking[chapternumber]
> \stopsetups
>
> \setupheadertexts
> []
> [{\FramedText{{\cap\labeltext{chapter}\space\getmarking[chapternumber]}
> \\
> \bfc\getmarking[chap
} \getmarking[chapternumber]
\stopsetups
\setupheadertexts
[]
[{\FramedText{{\cap\labeltext{chapter}\space\getmarking[chapternumber]}
\\
\bfc\getmarking[chapter]}}]
[]
[\FramedText{{\cap\labeltext{chapter}\space \getmarking[chapternumber]}
\\
\bfc\getmarking[chapter
> improve the overall approach. I welcome suggestions.
>
> %--%
> % Endnote apparatus adapted for parts
> %
> \mainlanguage [en]
> \language [en]
> \setupinteraction [state=start]
> \setuppagenumbering[alternative=doublesided]
>
> \setuphea
.
%--%
% 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
> 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
>
>
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
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
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
]
\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
=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
=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
{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
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
}
\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
]
\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
\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
[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
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 - 100 of 1017 matches
Mail list logo