ottomspace\relax,
]}
\space
\labeltext{chapter} \getmarking[chapternumber]
\stopsetups
\startsetups [header:rightpage]
\getmarking[chapter]
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
dept
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\labeltext{chapter} \getmarking[chapternumber]
\stopsetups
\startsetups [header:rightpage]
\getmarking[chapter
0pt]
\usesymbols[mvs]
\setupsymbolset [martinvogel 2]
\def\ornament{\darkred\symbol[Radioactivity]}
\starttexdefinition Ornamentation #1
\framed[frame=on] {\ornament\ {#1}\ \ornament}
\stoptexdefinition
\starttexdefinition OrdinalDate #1
\Ornamentation{\tfb\getmarking[chapter]\space\ordinalnumber{#1}
nded {\syst_helpers_process_comma_item #1}\ignorearguments
\ignorearguments \ignorearguments \popmacro \commalistcommand
\page_layouts_process_element_single
...content {\detokenize {#1}}\ifcsname \??layouttextspecial
\m_page_layouts_element_content \endcsname \lastnamedcs \else \doifelsemarking
\
makes sense to use setups, e.g.
1 \setuppagenumbering[alternative=doublesided] % doppelseitig
2 \setupheadertexts[] % leeren
3 \setupheadertexts[\setups{text rechts}][][][\setups{text links}]
4 \startsetups[text rechts]
5 \rlap{\pagenumber}
6 \hfill % horizontal füllen
7 \getmarking[chapter] % Ka
ering[alternative=doublesided] % doppelseitig
2 \setupheadertexts[] % leeren
3 \setupheadertexts[\setups{text rechts}][][][\setups{text links}]
4 \startsetups[text rechts]
5 \rlap{\pagenumber}
6 \hfill % horizontal füllen
7 \getmarking[chapter] % Kapitel-Titel abrufen
8 \hfill
9 \llap{Un Nom}
10 \stops
ow. If it helps, I am calling in that
metadata:title in the header in the usual way, e.g.:
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
[] [ {\pagenumber \hskip1em \documentvariable{metadata:title}}]
But that should not be a problem.
The \hskip is a problem because th
is issue before, so while it looks like 'p' is the
problem (it can hardly be the Psalms!), it is possibly something else,
but what, I would not know. If it helps, I am calling in that
metadata:title in the header in the usual way, e.g.:
\setupheadertexts
[ ] [{\getmarking[
oks like 'p' is the
problem (it can hardly be the Psalms!), it is possibly something else,
but what, I would not know. If it helps, I am calling in that
metadata:title in the header in the usual way, e.g.:
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
[] [ {\p
\hfill
\labeltext{chapter} \getmarking[chapternumber] \getmarking[chapter]
\stopsetups
\startsetups [header:rightpage]
\getmarking[sectionnumber]
\space
\getmarking[section]
\hfill
\ACFRAMERIGHT{}
\stopsetups
\setupheadertexts
[\directsetup{head
Am 29.06.24 um 11:33 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 29.06.2024 um 10:10:
Am 29.06.24 um 06:49 schrieb jbf:
But if I change to \setuppagenumbering[location= ], and choose, for
example:
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber
choose, for
example:
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
[{\pagenumber \hskip1em
\documentvariable{metadata:title}}] [ ]
I get my header texts with page numbers in arabic numerals in
frontmatter. I have tried various \setupheadertexts
Thanks for this... though the later indication from Wolfgang is clearly
the easiest.
On 29/6/24 18:10, Henning Hraban Ramm wrote:
Am 29.06.24 um 06:49 schrieb jbf:
But if I change to \setuppagenumbering[location= ], and choose, for
example:
\setupheadertexts
[ ] [{\getmarking
Henning Hraban Ramm schrieb am 29.06.2024 um 10:10:
Am 29.06.24 um 06:49 schrieb jbf:
But if I change to \setuppagenumbering[location= ], and choose, for
example:
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
[{\pagenumber \hskip1em
Am 29.06.24 um 06:49 schrieb jbf:
But if I change to \setuppagenumbering[location= ], and choose, for example:
\setupheadertexts
[ ][{\getmarking[chapter]\hskip1em \pagenumber}]
[{\pagenumber \hskip1em \documentvariable{metadata:title}}][ ]
I get my header texts with
[ ][{\getmarking[chapter]\hskip1em \pagenumber}]
[{\pagenumber \hskip1em \documentvariable{metadata:title}}][ ]
I get my header texts with page numbers in arabic numerals in
frontmatter. I have tried various \setupheadertexts options, but I still
get arabic numerals in frontmatter. The
firstsectionpage{chapter}{}{\getmarking[chapter]}]
> [\doifelsefirstsectionpage{chapter}{}{\userpagenumber}]
Thank you for your suggestion. Along with your suggestion and that of Wolfgang
I get what I need. I thought I was sending to the list but I copied and pasted
from an email and didn’t realise th
[{\getmarking[chapter]}][pagenumber]
Please send a complete working example next time.
Can anyone show me code to achieve this?
1. You use \setupheadertexts to set the header for all pages.
2. You use \definetext to create a custom header for the chapter page
and apply it with the header-key in
\setuppagenumbering[location=,alternative=doublesided]
>
> \setupheadertexts[chapter][][pagenumber]
> \setupheadertexts[{\getmarking[chapter]}][pagenumber]
>
> Can anyone show me code to achieve this?
>
> Thanks,
> Charlie
I notice that you addressed Wolfgang, but you also sent to the list
the following pages. I
have made various attempts but can’t manage it.
I have
\setuplayout[location=doublesided]
\setuppagenumbering[location=,alternative=doublesided]
\setupheadertexts[chapter][][pagenumber]
\setupheadertexts[{\getmarking[chapter]}][pagenumber]
Can anyone show me code to
tartsetups[Test]
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[
Hi Pablo and Bruce,
thank you very much for your two solutions. That helps me enormously now.
Greetings
Thomas
Am 21.03.24 um 16:34 schrieb Bruce Horrocks:
\startsetups[doc:header]
\getmarking[chapternumber] \space - \space \getmarking[chapter]
\space :: \space
\getmarking
> On 20 Mar 2024, at 18:45, Andres Conrado Montoya
> wrote:
>
> 2. As far as I have found, including the chapter/section number in the
> marking is not really a trivial task. I usually hack something using
> \headnumber and \getmarking, like so:
You can do the follow
= on markings (you can call them with \getmarking) and
listing= in the table of contents.
2. As far as I have found, including the chapter/section number in the
marking is *not really a trivial task*. I usually hack something using
\headnumber and \getmarking, like so:
\setuppagenumbering
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.
\setupheadertexts
[] [{\getmarking[chapter]} - {\getmarking[section]}]
[{\getmarking[chapter]} - {\get
eadertexts
[] [{\getmarking[chapter]} - {\getmarking[section]}]
[{\getmarking[chapter]} - {\getmarking[section]}] []
> Kapitel - Aufgabe
Thanks in advance
Greetings
Thomas
Am 20.03.24 um 09:09 schrieb Hraban Ramm:
Am 20.03.24 um 08:18 schrieb Thomas Meyer:
HI folks,
yesterday
eadertexts
I guess you're using the section level for "Aufgabe"?
Then something like {\getmarking{chapter} – \getmarking{section}} might
fit your request.
The formatting should be possible with
\setuphead[chapter,section][numberwidt
s [header:rightpage]
\startframed [
frame=off,
strut=no,
height=\headerheight,
offset=none,
align=low,
roffset=1em,
]
\getmarking[subject]
\stopframed
\stopsetups
\startsetups [header:leftpage]
\startframed [
frame=off,
strut=no,
h
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
res = table.concat(resWords, " ") .. " …"
> else res = t.dt[1]
> end
> context(res)
> end
> \stopluacode
> \startxmlsetups xml:chapter:title:marking
> \xmlfun
end
context(res)
end
\stopluacode
\startxmlsetups xml:chapter:title:marking
\xmlfunction{#1}{getMarking}
\stopxmlsetups
\startxmlsetups xml:chapter:title
\xmlflush{#1}
\stopxmlsetups
\setupheadertexts[chapter]
\startt
Notes' 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{meta
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}\hfill}][]
[\setups{middl
.
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!!) was to
={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
[ ] [{\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 the end but before the main \stopdocument), this
gt; Hi Willi,
>
> You could also access the number by using the
> \getmarking[chapternumber][current].
> I think you have used a similar approach in the
> https://wiki.contextgarden.net/Thumb_index.
>
> Adam
>
> On Tue, Mar 22, 2022 at 11:15 PM Willi Egger via ntg-con
Hi Willi,
You could also access the number by using the
\getmarking[chapternumber][current].
I think you have used a similar approach in the
https://wiki.contextgarden.net/Thumb_index.
Adam
On Tue, Mar 22, 2022 at 11:15 PM Willi Egger via ntg-context <
ntg-context@ntg.nl> wrote:
> H
-11)/11 ;
else:
skip := TextHeight * (curr_chap-21)/11 ;
fi;
Chap := textext("\bfa\textcolor\getmarking[chapter]") ;
StartPage ;
chap_frame := lcircle xscaled (2*RightMarginWidth) yscaled
(1.5*RightMarginWidth) ;
a := ulcorner chap_frame ;
Thanks for the bits and pieces to the puzzle. I'll do my best to make
sense of them and solve the problem.
Julian
On 19/3/22 20:18, Henning Hraban Ramm via ntg-context wrote:
Hi Julian,
you’re right, the example didn’t do what you wanted, and it didn’t
intend to.
Using \getmarking yo
Hi Julian,
you’re right, the example didn’t do what you wanted, and it didn’t
intend to.
Using \getmarking you can get a section title (or another “mark”), you
can’t combine it with the variable commands, and you don’t need it for
your case.
https://wiki.contextgarden.net/Command
My current 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'
right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups
\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups
___
If your question is
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
erif at 10pt]
\startsetups ChapterSetup
\setupheadertexts
[{\stylePageHeader {My Book}}]
[{\stylePageHeader{\structureuservariable{author}}}]
[{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My
Book}}]
\setupheader[state=em
[{\stylePageHeader {My Book}}]
[{\stylePageHeader{\structureuservariable{author}}}]
[{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My
Book}}]
\setupheader[state=empty]
\stopsetups
\definehead [Chapter] [chapter]
\setuphead[Chapter]
[ page=right,
I also put the value of \starttitle in the header.
>
> In this mwe the \starttitle command does not modify the header.
>
> Is it possible to do something like:
>
> \getmarking[chapter or title]
>
> I cannot include
> \setmarking[chapter]{title headline}
> righ
Hi all,
I know how to put the current chapter in the header.
But how can I also put the value of \starttitle in the header.
In this mwe the \starttitle command does not modify the header.
Is it possible to do something like:
\getmarking[chapter or title]
I cannot include
\setmarking
MANUEL GONZALEZ SUAREZ via ntg-context schrieb am 16.12.2021 um 20:15:
Hi all:
In the example below:
[...]
\newdimen\Margin
\Margin=2cm
\newdimen\MarginRaise
\MarginRaise=56ex
[...]
\startsetups[text a]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
\startalignment[right]
\getmarking[chapter
]
\startsetups[text a]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
\startalignment[right]
\getmarking[chapter]
\stopalignment
}}
\stopsetups
\startsetups[text b]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
\startalignment[left]
\getmarking[section]
\stopalignment
}}
\stopsetups
I noticed the same problem reported by Massi, since a lua function I use in
a project as an argument of \getmarking does not get expanded anymore with
the new marking code.
Marcus Vinicius
On Mon, Oct 11, 2021 at 8:33 AM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:
> On 10/1
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
Indeed I can report similar issues with \getmarking after updating to the
latest version of Context. Did something change regarding its definition / use
recently?
context -version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
/Users
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]}][]
xt
[en]
[lecture={Lecture }]
\setupcombinedlist
[content]
[list={lecture}]
\define[3]\LectureListCommand
{\labeltext{lecture}#1\doiftext{#2}{: #2}\filler[dotfill]#3\par}
\setuplist
[lecture]
[alternative=command,
command=\LectureListCommand]
\startsetups [footer:left]
\labeltext{
You were nearly there. Use:
>
> \unexpanded\def\processheadnumber#1%
>{\getmarking[chapternumber][current]}
>
> —
> Bruce Horrocks
> Hampshire, UK
>
>
> ___
> If your question is of inter
7;t understand why the first chapter is not numbered while the second is
> with number 1 etc.
> Thanks.
> Fabrice
You were nearly there. Use:
\unexpanded\def\processheadnumber#1%
{\getmarking[chapternumber][curr
eadTitle#1#2%
{
\FramedText{{\cap\labeltext{chapter}}\space#1
\\
\bfc#2}
}
\unexpanded\def\processheadnumber#1%
{\getmarking[chapternumber]}
\setuphead
[chapter]
[style=\bfd,
align={flushleft,broad},
numbercommand=\processheadnumber,
command=
anded\def\processheadnumber#1%
{\getmarking[chapternumber]}
\setuphead
[chapter]
[style=\bfd,
align={flushleft,broad},
numbercommand=\processheadnumber,
command=\HeadTitle]
\starttext
\startchapter [title={La récurrence}]
\startsection[title={Le principe de récur
apter} \getmarking[chapternumber]
\stopsetups
\setupheadertexts
[]
[{\FramedText{{\cap\labeltext{chapter}\space\getmarking[chapternumber]}
\\
\bfc\getmarking[chapter]}}]
[]
[\FramedText{{\cap\labeltext{chapter}\space \getmarking[chapternumber]}
\\
\bfc\getmarking[ch
quot; ;
> > on the odd pages at the bottom and on the right : the title of the
> > chapter, a line vertical and page number.
> > Thanks for your help.
> > Fabrice
> >
> > \setupfootertexts
> > [{\getmarking[chapter]}]
> > [{\pagenumber}]
tle of the
chapter, a line vertical and page number.
Thanks for your help.
Fabrice
\setupfootertexts
[{\getmarking[chapter]}]
[{\pagenumber}]
[{\pagenumber}]
[Chapter\space\pagenumber]
\starttext
\startchapter
[title=First chapter]
\dorecurse{10}{\input knuth}
\s
Thanks for your help.
Fabrice
\setupfootertexts
[{\getmarking[chapter]}]
[{\pagenumber}]
[{\pagenumber}]
[Chapter\space\pagenumber]
\starttext
\startchapter
[title=First chapter]
\dorecurse{10}{\input knuth}
\stopchapter
\startchapter
[title=Second chapter]
\dorecurse{10}{\i
; and
> improve the overall approach. I welcome suggestions.
>
> %--%
> % Endnote apparatus adapted for parts
> %
> \mainlanguage [en]
> \language [en]
> \setupinteraction [state=start]
> \setuppagenumbering[alternative=doublesided]
>
> \setupheader
.
%--%
% 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
>> "align".
>>
>> juh
>> ____
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg
Am 25.06.21 um 12:36 schrieb denis.ma...@unibe.ch:
but you'll perhaps have to put the stuff inside a hbox first
\definehbox[pagenumber][12.5mm]
\setupfootertexts
[] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]
[\hboxpagenumber{\pagenumber\hfill}{\getma
denis.ma...@unibe.ch schrieb am 25.06.2021 um 12:36:
but you'll perhaps have to put the stuff inside a hbox first
\definehbox[pagenumber][12.5mm]
\setupfootertexts
[] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]
[\hboxpagenumber{\pagenumber\hfill}{\getma
but you'll perhaps have to put the stuff inside a hbox first
\definehbox[pagenumber][12.5mm]
\setupfootertexts
[] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]
[\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][]
> -Ursprüngliche N
kind without using heads that automatically have
spaces before and after (which is what I tried to get rid of with my
before=, after= keys). Could I, for example, use \getmarking with
specifically designed paragraphs?
BTW, I can do exactly what I need to do in LaTeX (have already produced
a
etupheadertexts
[{\getmarking[subsubject][top]–\getmarking[subsubject][bottom]}][][{\getmarking[subsubject][top]–\getmarking[subsubject][bottom]}][]
\setupcolumns[n=2,align=raggedright,balance=no,tolerance={verytolerant,stretch}]
\definedescription[des][headstyle=bold,style=normal,alternative=serr
estions/134474/context-part-chapter-section-and-subsection-names>
> ?
>
> \starttext
> \startchapter[title={First chapter}]
> \structurenumber\ - \structuretitle
> \stopchapter
> \stoptext
>
> Although getmarking is probably what you're really after:
> \ge
Hi Hans,
Does this help:
https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names
?
\starttext
\startchapter[title={First chapter}]
\structurenumber\ - \structuretitle
\stopchapter
\stoptext
Although getmarking is probably what you're really
chapternumber
\setupfootertexts
[chapternumber]
[\pagenumber]
\starttext
\input{tufte}
\stoptext
Use \getmarking to access the title and number for the chapter.
\setupfootertexts
[{\getmarking[chapternumber]\ -- \getmarking[chapter]}]
[pagenumber]
\starttext
\chapter{Tufte}
\input
[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
[{\hfill\getmarking[chapter]\hfill}][] %recto pages
[{\hf
gt;
> \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
&
etupheader[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
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
> Am 07.10.2020 um 14:30 schrieb Tomas Hala :
>
> Hi Hraban,
>
> \setupheadertexts
> [{\getmarking[sectionnumber]\getmarking[section]}]
> [{\pagenumber}]
> [{\pagenumber}]
> [{\getmarking[chapternumber]\getmarking[chapter]}]
Thank you! I could have
Hi Hraban,
\setupheadertexts
[{\getmarking[sectionnumber]\getmarking[section]}]
[{\pagenumber}]
[{\pagenumber}]
[{\getmarking[chapternumber]\getmarking[chapter]}]
Best wishes,
Tomáš
Wed, Oct 07, 2020 ve 01:45:46PM +0200 Henning Hraban Ramm napsal(a):
# This should be simple, but I
This should be simple, but I can’t find it:
I need not only the chapter title, but also the chapter number in my headertext.
ATM I have (minus formatting):
\setupheadertexts
[{\getmarking[section]}]
[{\pagenumber}]
[{\pagenumber}]
[{\getmarking[chapter]}]
Hraban
starting this section in the main body with
\startforeword...\stopforeword.
As 'foreword' is based on chapter, I thought it would all work correctly
given that I already have:
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
And I
from the
previous numbered chapter).
At the moment the only thing I have in the preamble is the expected set
of commands for the numbered chapters:
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
I thought that might work for the unnumbered
not
have the proper chapter header (they pick up the header from the
previous numbered chapter).
At the moment the only thing I have in the preamble is the expected set
of commands for the numbered chapters:
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\
> > have the proper chapter header (they pick up the header from the
> > > previous numbered chapter).
> > >
> > > At the moment the only thing I have in the preamble is the expected set
> > > of commands for the numbered chapters:
> > >
>
s the expected set
of commands for the numbered chapters:
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
I thought that might work for the unnumbered ones (\title), thinking
that maybe \title inherits from \chapter, but it doesn't. But no
eadertexts[\setups{header}]
\startsetups header
\getmarking[chapter]
\stopsetups
and referencing it in the \chapter or \title items, was able to achieve
the desired result in every way, including that missing header on one page.
Thank you.
J
On 13/8/20 3:36 pm, Aditya Mahajan wrote:
On T
der from the
previous numbered chapter).
At the moment the only thing I have in the preamble is the expected set
of commands for the numbered chapters:
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
I thought that might work for the unnumbered ones
the expected set
> of commands for the numbered chapters:
>
> [{\hfill\getmarking[chapter]\hfill}][]
> [{\hfill\documentvariable{metadata:title}\hfill}][]
>
> I thought that might work for the unnumbered ones (\title), thinking
> that maybe \title inherits from \chapt
d chapters:
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
I thought that might work for the unnumbered ones (\title), thinking
that maybe \title inherits from \chapter, but it doesn't. But no amount
of variations on the above commands (repeating the
:
\setupheadertexts
[{\hfill\getmarking[chapter]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
then everything works as it should: Chapter title as header on recto
pages and book title as header on verso pages. And as chapters change so
does the header on the recto page.
But this
I am using \title within frontmatter for an introduction. The
\setupheadertexts for title (recto and verso pages) is:
\setupheadertexts
[{\hfill\getmarking[title]\hfill}][]
[{\hfill\documentvariable{metadata:title}\hfill}][]
Now, that setup (this time for [chapter]) works correctly for
,
conversion=Romannumerals,
numbercommand=\groupedcommand{\blank[20mm]}{\blank[10mm]},
after={\blank[3cm]},
]
\setupheadtext[content=]
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][][\setups{text b}]
\startsetups[text a]
\rlap{whatever}
\hfill
\getmarking[chapter]
\hfill
]
[{\getmarking[chapter]}]
\setupfootertexts
[]
[\pagenumber]
[\pagenumber]
[]
\setupmakeup[standard][top=,bottom=,doublesided=yes]
\setupcounter[userpagenumber][state=stop]
\starttext
\startstandardmakeup[page=yes,doublesided=yes]
\strut
\godown
Bump. I’m having the same issue with the following macro, which I’ve defined to work with a two-column layout and which I invoke within \setupheadertexts: \define\RefRange{% %Check if the first chapter matches the last chapter on the page: \doifelse{\getmarking[Chapter][1][top]}{\getmarking
1 - 100 of 506 matches
Mail list logo