[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: Use of marking

2024-03-21 Thread Thomas Meyer
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

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
> 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

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
= 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

[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
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

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
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

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
[ 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,

[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] 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
[ ] [{\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

Re: [NTG-context] Chapter number retrieval

2022-03-23 Thread Willi Egger via ntg-context
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

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Adam Reviczky via ntg-context
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

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
-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 ;

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

2022-03-19 Thread jbf via ntg-context
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

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

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

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 jbf via ntg-context
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

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] \setupheadertexts not working when text contains \subject

2022-01-13 Thread Hans Hagen via ntg-context
ChapterSetup \setupheadertexts [{\stylePageHeader {My Book}}] [{\stylePageHeader{\structureuservariable{author}}}] [{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My Book}}] \setupheader[state=empty] \stopsetups Ponder

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

2022-01-13 Thread Bruce Horrocks via ntg-context
}}] [{\stylePageHeader{\structureuservariable{author}}}] [{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My Book}}] \setupheader[state=empty] \stopsetups \definehead [Chapter] [chapter] \setuphead[Chapter] [ page=right, number=no, before={\setups

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

2022-01-04 Thread fv leung via ntg-context
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

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

2022-01-04 Thread juh via ntg-context
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

Re: [NTG-context] About "clearpage"

2021-12-16 Thread Wolfgang Schuster via ntg-context
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

[NTG-context] About "clearpage"

2021-12-16 Thread MANUEL GONZALEZ SUAREZ via ntg-context
] \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

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

2021-10-13 Thread Marcus Vinicius Mesquita via ntg-context
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

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-11 Thread Alexandre Christe via ntg-context
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

[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] Using Lua to format lecture titles

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

Re: [NTG-context] Problem with chapter numbering

2021-07-15 Thread Fabrice Couvreur
early there. Use: > > \unexpanded\def\processheadnumber#1% >{\getmarking[chapternumber][current]} > > — > Bruce Horrocks > Hampshire, UK > > > ___ > If your question is of interest to oth

Re: [NTG-context] Problem with chapter numbering

2021-07-14 Thread Bruce Horrocks
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

[NTG-context] Problem with chapter numbering

2021-07-13 Thread Fabrice Couvreur
#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

Re: [NTG-context] Header for a book

2021-07-13 Thread Fabrice Couvreur
\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

[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] Footer

2021-07-06 Thread Fabrice Couvreur
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}]

Re: [NTG-context] Footer

2021-07-05 Thread Wolfgang Schuster
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

[NTG-context] Footer

2021-07-05 Thread Fabrice Couvreur
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

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] ntg-context Digest, Vol 204, Issue 76

2021-06-26 Thread Kirkham, Robin (Mineral Resources, Clayton)
;align". >> >> juh >> ____ >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >>

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

2021-06-25 Thread Jan U. Hasecke
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

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

2021-06-25 Thread Wolfgang Schuster
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

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

2021-06-25 Thread denis.maier
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

Re: [NTG-context] dictionary example

2021-06-12 Thread jbf
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

[NTG-context] dictionary example

2021-06-12 Thread jbf
[{\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

Re: [NTG-context] chapter number sought

2021-05-30 Thread Hans van der Meer
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

Re: [NTG-context] chapter number sought

2021-05-30 Thread Adam Reviczky
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

Re: [NTG-context] Chapternumber and chaptertitle in footer

2021-05-16 Thread Wolfgang Schuster
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

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

Re: [NTG-context] chapter no. in header

2020-10-07 Thread Henning Hraban Ramm
> 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

Re: [NTG-context] chapter no. in header

2020-10-07 Thread Tomas Hala
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

[NTG-context] chapter no. in header

2020-10-07 Thread Henning Hraban Ramm
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

[NTG-context] no frontmatter head on recto page

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

Re: [NTG-context] headers again

2020-08-14 Thread Hans Hagen
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

Re: [NTG-context] headers again

2020-08-13 Thread jbf
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

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
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: > > > > >

Re: [NTG-context] headers again

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

Re: [NTG-context] headers again

2020-08-12 Thread jbf
[\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

Re: [NTG-context] headers again

2020-08-12 Thread jbf
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

Re: [NTG-context] headers again

2020-08-12 Thread Aditya Mahajan
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

[NTG-context] headers again

2020-08-12 Thread jbf
:  [{\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

[NTG-context] further to the earlier header question

2020-08-11 Thread jbf
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

[NTG-context] header text on final page of section

2020-08-11 Thread jbf
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

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
, 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

[NTG-context] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
] [{\getmarking[chapter]}] \setupfootertexts [] [\pagenumber] [\pagenumber] [] \setupmakeup[standard][top=,bottom=,doublesided=yes] \setupcounter[userpagenumber][state=stop] \starttext \startstandardmakeup[page=yes,doublesided=yes] \strut \godown

[NTG-context] another question about markings

2020-07-26 Thread Joey McCollum
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

[NTG-context] Proper presentations with stepping

2020-05-26 Thread Thomas Welter
=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

Re: [NTG-context] Right-to-left pagecolumns and markings in ConTeXt

2020-04-29 Thread Joey McCollum
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

Re: [NTG-context] Right-to-left pagecolumns and markings in ConTeXt

2020-04-28 Thread Joey McCollum
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

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
}] \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

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
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

[NTG-context] How to sort list of sections?

2019-11-06 Thread Kerry Sainsbury
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

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
[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

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
[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

Re: [NTG-context] My own marks

2019-08-31 Thread Jon Wong
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

Re: [NTG-context] My own marks

2019-08-31 Thread Jon Wong
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

[NTG-context] My own marks

2019-08-31 Thread Jon Wong
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

[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
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

[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
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]}}]

Re: [NTG-context] placing content in footers

2019-05-12 Thread Pablo Rodriguez
> besides left and right contents? >> >> \setuppagenumbering[alternative=doublesided] >> \setupheadertexts[] >> \setupheadertexts[\setups{text right}][][][\setups{text left}] >> >> \startsetups[text right] >> \rlap{\pagenumber} >> \hfill >> \getmarking[chapte

Re: [NTG-context] placing content in footers

2019-05-12 Thread Henning Hraban Ramm
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] &

Re: [NTG-context] placing content in footers

2019-05-11 Thread Henning Hraban Ramm
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] \

Re: [NTG-context] calling up chapter title

2019-04-26 Thread Wolfgang Schuster
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

Re: [NTG-context] Setupheadertexts with if-condition

2019-04-10 Thread Huseyin Özoguz
\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

Re: [NTG-context] Setupheadertexts with if-condition

2019-04-10 Thread Hans Hagen
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

[NTG-context] Setupheadertexts with if-condition

2019-04-10 Thread Huseyin Özoguz
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   2   3   4   5   >