]
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
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
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
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][numberwidth=2em
[
frame=off,
strut=no,
height=\headerheight,
offset=none,
align=low,
roffset=1em,
]
\getmarking[subject]
\stopframed
\stopsetups
\startsetups [header:leftpage]
\startframed [
frame=off,
strut=no,
height=\headerheight,
offset=none,
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
.
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
[ ] [{\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
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 you can
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
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
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
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
ChapterSetup
\setupheadertexts
[{\stylePageHeader {My Book}}]
[{\stylePageHeader{\structureuservariable{author}}}]
[{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My
Book}}]
\setupheader[state=empty]
\stopsetups
Ponder
}}]
[{\stylePageHeader{\structureuservariable{author}}}]
[{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My
Book}}]
\setupheader[state=empty]
\stopsetups
\definehead [Chapter] [chapter]
\setuphead[Chapter]
[ page=right,
number=no,
before={\setups
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[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]}][]
={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{lecture} \getmarking
early there. Use:
>
> \unexpanded\def\processheadnumber#1%
>{\getmarking[chapternumber][current]}
>
> —
> Bruce Horrocks
> Hampshire, UK
>
>
> ___
> If your question is of interest to oth
tand 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][current]}
—
B
#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=\HeadTitle
\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écurrence
} \getmarking[chapternumber]
\stopsetups
\setupheadertexts
[]
[{\FramedText{{\cap\labeltext{chapter}\space\getmarking[chapternumber]}
\\
\bfc\getmarking[chapter]}}]
[]
[\FramedText{{\cap\labeltext{chapter}\space \getmarking[chapternumber]}
\\
\bfc\getmarking[chapter
hapter" ;
> > 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}]
the title 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
er.
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
> 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
;align".
>>
>> juh
>> ____
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>>
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}{\getmarking
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}{\getmarking
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 Nachri
of this 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
[{\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=serried,
width=fit
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:
> \getmark
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 after
this with the 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
]
\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
> 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
]
Then 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 also have
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
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}\hfill}][]
I thought
gt; > 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:
> > >
> >
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 (\title), thinking
that maybe \title inherits from \chapter, but it doesn't. But no amount
[\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 Thu, 13 Aug
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 (\title), thinking
that maybe
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
:
[{\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 them but replacing
as:
\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
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
,
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
=empty]
\setupheadertexts[{\getmarking[sectionnumber] \getmarking[section] --
\getmarking[subsectionnumber] \getmarking[subsection]}][]
Maybe something like this can be added as a new example presentation in
texmf-context\doc\context\presentations\examples because the current
present-steps-001
If I change the line containing that in my MWE to
\setupheadertexts[top: {\getmarking[TestMark][column:top]}][bottom:
{\getmarking[TestMark][column:bottom]}][top:
{\getmarking[TestMark][column:top]}][bottom:
{\getmarking[TestMark][column:bottom]}]
or
\setupheadertexts[top: {\fetchmark
ething that worked. I just had to
change the \fetchmark calls in my MWE to \getmarking[TestMark][1][top] and
\getmarking[TestMark][2][bottom].
On Tue, Apr 28, 2020 at 10:32 AM Hans Hagen wrote:
> On 4/28/2020 2:09 PM, Joey McCollum wrote:
>
> > Is there some way I can improve my
}]
\setupfooter[style={\itxx}]
\setupheadertexts[ Cours de Philosophie][][][{\getmarking[section]}]
\setupfootertexts[][][][© J.-P. Delange, 2018-2020 — Texte composé avec
ConTeXt - Reproduction soumise à autorisation.]
\setupsymbolset[text]
\starttext
\startchapter[title ={Introduction
bers in a separate overlay to better control the positioning. Perhaps
a bit overthought, but it works for me ...
\setupheadertexts [][{\it\getmarking[section]}]
[{\it\getmarking[chapter]}][]
\startsetups section:epigraph
\doifelsebuffer{SectionEpigraph}
{\getbu
to sort sections. I was wrong :-)
\definesorting[section][sections]
\setupsorting[sections][criterium=all]
% I thought something like this might work too
\definesorting[wahs]
\definesorting[wah][wahs][\getmarking[section]][\getmarking[section]]
\starttext
placelist (not sorted, as you would
[frontpart:pagenumber] [] [romannumerals]
\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment
\setuppagenumbering[location=,alternative=doublesided]
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{}
\hfill
\sc \getmarking
[frontpart:pagenumber] [] [romannumerals]
\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment
\setuppagenumbering[location=,alternative=doublesided]
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{}
\hfill
\sc \getmarking
Hi all,
Sorry, I corrected my MWE. As you can see, \currentitemnumber seems strange
when used for \marking inside a nested itemize.
MWE:
\definemarking[M]
\startsetups S
default=(\getmarking[M])~
first=(\getmarking[M][first])~
last=(\getmarking[M][last])~
previous=(\getmarking[M
Hi all,
It seems that \currentitemnumber won’t work for \marking if inside a nested
itemize?
MWE:
\definemarking[M]
\startsetups S
default=(\getmarking[M])~
first=(\getmarking[M][first])~
last=(\getmarking[M][last])~
previous=(\getmarking[M][previous])~
both=(\getmarking[M][both
Hi all,
How does \marking really work? Can’t seem to get \currentitemnumber into it.
MWE:
\definemarking[M]
\startsetups S
\getmarking[M]
\stopsetups
\setupheadertexts[\setups{S}][][][\setups{S}]
\starttext
\startitemize[n]
\item First item
\marking[M]{Really? \currentitemnumber
ing[alternative=doublesided,location=]
\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]
\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]
\starttext
\dorecurse{4
fd\sansbold},
header=empty,
page=yes,
commandbefore={\blank[1.75in]},
after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]
\setuppagenumbering[alternative=doublesided,location=]
\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
> besides left and right contents?
>>
>> \setuppagenumbering[alternative=doublesided]
>> \setupheadertexts[]
>> \setupheadertexts[\setups{text right}][][][\setups{text left}]
>>
>> \startsetups[text right]
>> \rlap{\pagenumber}
>> \hfill
>> \getmarking[chapte
gt;
>> Is there any way to place content in the middle of doublesided footers,
>> besides left and right contents?
>
> \setuppagenumbering[alternative=doublesided]
> \setupheadertexts[]
> \setupheadertexts[\setups{text right}][][][\setups{text left}]
>
> \startsetups[text right]
&
ternative=doublesided]
\setupheadertexts[]
\setupheadertexts[\setups{text right}][][][\setups{text left}]
\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups
\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\
chapter title.
However \chapter turns out to be undefined, neither did \chaptertitle.
What is the macro to be called?
I doubt \chapter is undefined otherwise you can add a chapter title to
your document.
What you're looking for is the \getmarking marking which is used to
access section
\doifelsemarking
or
\doifelsetext
Thanks, that worked. My final solution (just for the archive, it seems
to be more suitable than the solution in the wiki):
\define\CustomHeader{%
\cap{
\doifelsetext{\getmarking[chapter]}%
{Kapitel \getmarking[chapternumber]: \getmarking
On 4/10/2019 12:29 PM, Huseyin Özoguz wrote:
Hello mailing list,
I want to use an simple if-condition for this code:
\setupheadertexts [][][][{\tfx\bf\getmarking[chapternumber] –
\getmarking[chapter]}]
My problem: In my case the document dont begin with a chapter but with a
section. So
Hello mailing list,
I want to use an simple if-condition for this code:
\setupheadertexts [][][][{\tfx\bf\getmarking[chapternumber] –
\getmarking[chapter]}]
My problem: In my case the document dont begin with a chapter but with a
section. So at the first pages there is not chapter
1 - 100 of 471 matches
Mail list logo