[NTG-context] Re: Margin text?

2025-07-29 Thread Ursula Hermann
ottomspace\relax, ]} \space \labeltext{chapter} \getmarking[chapternumber] \stopsetups \startsetups [header:rightpage] \getmarking[chapter] \space \undepthed{\blackrule [ width=\linewidth, height=\strutht, dept

[NTG-context] Re: Margin text?

2025-07-29 Thread Ursula Hermann
\undepthed{\blackrule [ width=\linewidth, height=\strutht, depth=\dimexpr\footerheight+\bottomspace\relax, ]} \space \labeltext{chapter} \getmarking[chapternumber] \stopsetups \startsetups [header:rightpage] \getmarking[chapter

[NTG-context] Enumerations: How to place an itemized list's index above an item's contents?

2025-05-14 Thread Michael Guravage
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}

[NTG-context] Footer issue (for graduated wizards mastering kung-fu)

2025-03-13 Thread roberto . bianchi
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 \

[NTG-context] Re: header centered doublesided

2025-02-24 Thread Jürgen Hanneder via ntg-context
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

[NTG-context] Re: header centered doublesided

2025-02-24 Thread Henning Hraban Ramm
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

[NTG-context] Re: What could possibly be wrong with 'P'?

2024-09-09 Thread jbf
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

[NTG-context] Re: What could possibly be wrong with 'P'?

2024-09-09 Thread Wolfgang Schuster
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[

[NTG-context] What could possibly be wrong with 'P'?

2024-09-09 Thread jbf
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

[NTG-context] About a pagination

2024-07-23 Thread Fabrice Couvreur
\hfill \labeltext{chapter} \getmarking[chapternumber] \getmarking[chapter] \stopsetups \startsetups [header:rightpage] \getmarking[sectionnumber] \space \getmarking[section] \hfill \ACFRAMERIGHT{} \stopsetups \setupheadertexts [\directsetup{head

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread Henning Hraban Ramm
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

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread jbf
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

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread jbf
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

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread 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}]     [{\pagenumber \hskip1em

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread Henning Hraban Ramm
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

[NTG-context] No roman numerals in frontmatter header

2024-06-28 Thread jbf
[ ][{\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

[NTG-context] how to prevent item appearing in List of Figures

2024-05-29 Thread Charles Doherty via ntg-context
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

[NTG-context] Re: page number

2024-05-26 Thread Wolfgang Schuster
[{\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

[NTG-context] Re: page number

2024-05-26 Thread Mikael Sundqvist
\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

[NTG-context] page number

2024-05-26 Thread Charles Doherty via ntg-context
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

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

2024-04-15 Thread Biblio--- via ntg-context
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[

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

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

[NTG-context] Re: Japanese

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

[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
res = table.concat(resWords, " ") .. " …" > else res = t.dt[1] > end > context(res) > end > \stopluacode > \startxmlsetups xml:chapter:title:marking > \xmlfun

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

2023-09-11 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] \startt

[NTG-context] Re: disable header for endnotes

2023-08-16 Thread Rik Kabel
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

[NTG-context] disable header for endnotes

2023-08-16 Thread jbf
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

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!!) was to

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), this

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 yo

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

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 is

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
erif at 10pt] \startsetups ChapterSetup \setupheadertexts [{\stylePageHeader {My Book}}] [{\stylePageHeader{\structureuservariable{author}}}] [{\stylePageHeader{\getmarking[Chapter]}}] [{\stylePageHeader {My Book}}] \setupheader[state=em

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

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

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

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

Re: [NTG-context] Problem with chapter numbering

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

Re: [NTG-context] Problem with chapter numbering

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

[NTG-context] Problem with chapter numbering

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

Re: [NTG-context] Header for a book

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

[NTG-context] Header for a book

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

Re: [NTG-context] Footer

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

Re: [NTG-context] Footer

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

[NTG-context] Footer

2021-07-05 Thread Fabrice Couvreur
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
; and > improve the overall approach. I welcome suggestions. > > %--% > % Endnote apparatus adapted for parts > % > \mainlanguage  [en] > \language  [en] > \setupinteraction  [state=start] > \setuppagenumbering[alternative=doublesided] > > \setupheader

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

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}{\getma

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}{\getma

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 N

Re: [NTG-context] dictionary example

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

[NTG-context] dictionary example

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

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: > \ge

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

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

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

Re: [NTG-context] running head for TOC

2021-01-19 Thread Henning Hraban Ramm
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 &

[NTG-context] running head for TOC

2021-01-18 Thread jbf
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

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

Re: [NTG-context] headers again

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

Re: [NTG-context] headers again

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

Re: [NTG-context] headers again

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

Re: [NTG-context] headers again

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

Re: [NTG-context] headers again

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

Re: [NTG-context] headers again

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

[NTG-context] headers again

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

[NTG-context] further to the earlier header question

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

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

[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

  1   2   3   4   5   6   >