[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

Re: [NTG-context] headers again

2020-08-14 Thread Hans Hagen
be much appreciated. A rose by any other name would smell as sweet ... \showframe \setupheadertexts[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups \starttext \startchapter[title={This is a chapter}] \input knuth \page \input knuth \stopchapter

Re: [NTG-context] headers again

2020-08-13 Thread jbf
that will lead me to finding my own solution? It would be much appreciated. A rose by any other name would smell as sweet ... \showframe \setupheadertexts[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups \starttext \startchapter[title={This is a chapter}] \input knuth

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
in the > > > TOC, Is it possible that I may have something else in my preamble that > > > is causing the problem? If so, I can't expect someone to 'guess' that > > > from outside! But at the moment I don't think that is the problem. > > > > > > If not a dire

Re: [NTG-context] headers again

2020-08-13 Thread Wolfgang Schuster
\setupheadertexts[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups \starttext \startchapter[title={This is a chapter}] \input knuth \page \input knuth \stopchapter \startchapter[title={This is a title}, number=no] \input ward \page \input knuth \stopchapter

Re: [NTG-context] headers again

2020-08-12 Thread jbf
=empty,alternative=middle,style=\tfa, numbercommand=\groupedcommand{}{\blank[1cm]},after={\blank[3cm]},command=\MyChapter] Give that I was now no longer using MyChapter to solve the problem, that command=\MyChapter was causing a conflict. I removed it and, using your earlier \setupheadertexts

Re: [NTG-context] headers again

2020-08-12 Thread jbf
. A rose by any other name would smell as sweet ... \showframe \setupheadertexts[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups \starttext \startchapter[title={This is a chapter}] \input knuth \page \input knuth \stopchapter \startchapter[title={This is a title

Re: [NTG-context] headers again

2020-08-12 Thread Aditya Mahajan
own solution? It would be much appreciated. A rose by any other name would smell as sweet ... \showframe \setupheadertexts[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups \starttext \startchapter[title={This is a chapter}] \input knuth \page \input knuth \stopchapt

[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

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Wolfgang Schuster
entering it in each section.I’m hoping there’s a way to automate this; put it into the environment file for all sections. Of course you can set different header/footer layouts for chapter pages. With \setupheadertexts and \setupfootertexts you set first the text which should appear on regular

[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

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-10 Thread Mike Cooper
erent specific > > content.Right now, I am manually entering it in each section.I’m hoping > > there’s a way to automate this; put it into the environment file for all > > sections. > > Of course you can set different header/footer layouts for chapter pages. > >

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-06 Thread Wolfgang Schuster
it in each section.I’m hoping there’s a way to automate this; put it into the environment file for all sections. Of course you can set different header/footer layouts for chapter pages. With \setupheadertexts and \setupfootertexts you set first the text which should appear on regular pages

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

2020-07-29 Thread Willi Egger
the expected result. MWE: % Context file \mainlanguage[en] \usetypescript[termes] \setupbodyfont[termes,9pt] \setuppapersize [A5][A5] \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts [text] [] [\userpagenumber] [\userpagenumber

[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

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
ent • \em, \bf, \cap, • \startitemize, \startitem, \starthead, • \placefigure, \externalfigure, • \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE • \index, \completeindex • \setuplayout, \setupfootertexts et \setupheadertexts • \definedescription, \defineenumeration • \at, \in Anyway, t

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
\setupheadertexts[chapter][{\addff{normnum}\pagenumber}][{\addff{normnum}\pagenumber}][] \stopsetups \startsetups noheader \setupheadertexts[][][][] \stopsetups \startsetups bigchapter \setupalign[flushleft,hz,hanging,verytolerant,nothyphenated] \doifelse{\structureuservariable{image

[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] two additional pagenumber series

2020-04-29 Thread Hans Hagen
counter. Although method is page, this seems to be related to a different issue. My question is: how could I get new pagenumber series using \definecounter? \setuppapersize[A8] \setupheadertexts[] \setupcounter[subpage][way=bychapter] \starttext \chapter{what} \rawsubcountervalue[subpage][1

Re: [NTG-context] two additional pagenumber series

2020-04-29 Thread Wolfgang Schuster
\NC\NR \NC Chapter\EQ \rawcountervalue[section:chapter] \NC\NR \NC Section\EQ \rawcountervalue[section:section] \NC\NR \stoptabulate \stopsetups \setupheadertexts[\directsetup{header:pagenumber}] \starttext %\dorecurse{10}{\samplefile{lorem}} \dorecurse{5} {\chapter{Chapter

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

2020-04-29 Thread Hans Hagen
to reflect top and bottom marks: \setupheadertexts[top: {\fetchmark[TestMark][top]}][bottom: {\fetchmark[TestMark][bottom]}][top: {\fetchmark[TestMark][top]}][bottom: {\fetchmark[TestMark][bottom]}] %even left, even right, odd left, odd right %Setup the columns layout: \definepagecolumns [example

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

2020-04-28 Thread Joey McCollum
this behavior using text in an actual right-to-left language, but the following minimal (non-)working example with an English sample text demonstrates the same behavior: ``` %Create a new markset to use: \definemarking[TestMark] %Setup header to reflect top and bottom marks: \setupheadertexts[top

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
,height=max,] % frame=off,topframe=on,bottomframe=on some text in the middle block \stopframed \startframed[width=0.25\hsize,height=max] some text in the right block \stopframed \stopframed \stopframed \stopsetups

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
\scratchcountertwo \luaexpr{math.mod(\the\realpageno-1,\the\scratchcounterone)}% \scratchcounterthree\numexpr\scratchcounterone-\scratchcountertwo\relax \dorecurse\scratchcounterthree{\page[empty]}} \setupheadertexts[1][1][1][1]\dorecurse{50}{\somecontent{Label 1 #1}} \page[mojca] \setupheadertexts[2][2

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
[location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here

[NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Mojca Miklavec
\setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here \page \setupheadertexts[2][2][2][2]% \dorecurse{70

Re: [NTG-context] repeat a page inside a document

2020-02-27 Thread context
Hello Pablo, although I'm not sure about what to achieve, should this be helpful for you? Ctx source: Pablo.mkiv \starttext \setupheadertexts[][\cldcontext{"Mode = " .. (tex.modes["1"] and "1" or tex.modes["2"] and "2" or "??&q

[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] Chapter in header, but not on title page

2020-02-16 Thread Henning Hraban Ramm
ad[chapter][% > page={yes, header, right}, > header=chapter-first, >] > > Just in case it helps, Thank you, that works in the example, but not in my actual project, and I didn’t find why. But I found a workaround (used \setupheadertexts before and in the middle of the

Re: [NTG-context] Chapter in header, but not on title page

2020-02-15 Thread Pablo Rodriguez
an’t use header=empty. > What’s the right setup for me? Hi Hraban, I think this is what you intend: \usemodule[visual] \setuppagenumbering[alternative=doublesided, location=] \setupheadertexts[chapter][pagenumber][pagenumber][chapter] \definetext[chapter-first][he

[NTG-context] Chapter in header, but not on title page

2020-02-15 Thread Henning Hraban Ramm
there’s still a page number in the center, that’s not my problem.) \usemodule[visual] \setuppagenumbering[alternative=doublesided] \setupheadertexts[chapter][pagenumber][pagenumber][] \setuphead[chapter][ page=right, ] \starttext \dorecurse{5}{ \startchapter[title={\fakewords{2}{5

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
Since the structureuservariables of a section aren’t defined in that section’s "before", I would need a macro or buffer to define the contents of that epigraph page, like this: \def\PreImg{Dummy} \startsetups FancyChapter \setupheadertexts[][][][] \doifelsebu

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
”, while “My Fancy Story” doesn’t show anything. Is that why you used buffers? Since I only need two user settings (image name and quote), only one in the example, I’d like to avoid a buffer for every chapter. \startsetups FancyChapter \setupheadertexts[][][][] \doifnot{\structureuse

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
idth]{% \externalfigure[dummy][width=\textwidth]% } %\hfill\vfill\strut % doesn’t help \stopstandardmakeup } \page[right] % \framed[ width=\textwidth, offset=overlay, align=flushleft, ]{% \definedfont[Sans at 32pt]%#2 \structurevariable{title}% }% } \setupheadertexts[][pagenu

[NTG-context] fancy chapter setup

2020-01-11 Thread Henning Hraban Ramm
fill\strut % doesn’t help \stopstandardmakeup } \page[right] % \framed[ width=\textwidth, offset=overlay, align=flushleft, ]{% \definedfont[Sans at 32pt]%#2 \structurevariable{title}% }% } \setupheadertexts[][pagenumber][pagenumber][chapter] \setuphead[chapter][ page=left, nu

Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-18 Thread Oliver von Criegern
. Consider the following example: \setupcolumns[n=2] \setuplinenumbering     [     step=5,     method=page,     align=flushright,     ] \definemarking[Test] \setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}] \startbuffer \dorecurse{12}{words } \stopbuffer \starttext

Re: [NTG-context] Line numbering in two column layout conflicts with marking

2019-12-09 Thread Oliver von Criegern
,     method=page,     align=flushright,     ] \definemarking[Test] \setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}] \startbuffer \dorecurse{12}{words } \stopbuffer \starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking

[NTG-context] Line numbering in two column layout conflicts with marking

2019-12-02 Thread Oliver von Criegern
Dear list members, line numbering in a two column layout apparently conflicts with the marking mechanism. Consider the following example: \setupcolumns[n=2] \setuplinenumbering     [     step=5,     method=page,     align=flushright,     ] \definemarking[Test] \setupheadertexts

Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Wolfgang Schuster
: \setupheadertexts[Pagenumber][pagenumber] \setupheader[style=\bfd] I hope it helps, Pablo PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some options that don’t seem to exist (http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext). I forgot

Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Kerry Sainsbury
) Anyway, thanks to your prodding I have resolved the problem. I hadn't realised that the calls to \setupheadertexts were cumulative. ie: I can just do this: \setupheadertexts[My Page Header] \setupheadertexts[][pagenumber] It seems odd that I can't explicitly specify a font size, but that's

Re: [NTG-context] How to define the font size of the page header?

2019-11-05 Thread Pablo Rodriguez
On 11/6/19 3:15 AM, Kerry Sainsbury wrote: > Hi Folks, > > Sorry for the constant interruptions, but I can't find an answer in any > of the many PDFs or webpages I can find. > > How do I define the font size of the page header? Hi Kerry, use the following: \setuphead

Re: [NTG-context] \setuppagenumbering doublesided generates blank pages

2019-10-30 Thread Wolfgang Schuster
Kerry Sainsbury schrieb am 30.10.2019 um 19:58: Hi there, I am a newbie, and have /seem/ to have discovered that \setuppagenumbering [alternative=doublesided] generates a blank page between chapters. \setupheadertexts[chapter] \setuppagenumbering [alternative=doublesided,location={header

[NTG-context] \setuppagenumbering doublesided generates blank pages

2019-10-30 Thread Kerry Sainsbury
Hi there, I am a newbie, and have *seem* to have discovered that \setuppagenumbering [alternative=doublesided] generates a blank page between chapters. \setupheadertexts[chapter] \setuppagenumbering [alternative=doublesided,location={header,inmargin}] \starttext \startchapter[title={October

Re: [NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Wolfgang Schuster
of text. 3. Use \offset to change the vertical position of the frame in the middle. \setuplayout   [header=1cm,    headerdistance=1cm] \setupbackgrounds [header] [text] [frame=on] \defineframed [headerframed] [align=normal] \setupheadertexts   [{\offset[y=-\strutdp]{\headerframed{Middle

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
] \setupheadertexts [{\startframed [headerframed] [foregroundstyle=bold,background=framewithshadow] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number} \stopframed}] \setupheadertexts [{\startframed [headerframed] [align=flushleft

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

[NTG-context] Column sets (span) & unwanted vertical gap

2019-10-01 Thread Procházka Lukáš Ing .
distance=5mm,height=270mm, backspace=20mm,width=380mm, ] \setupheadertexts[] \setupfootertexts[] \definecolumnset[example][n=3,balancing=no] \definecolumnsetspan[wide][n=2] \setupexternalfigures[location=default] \setupindenting[no] \setupwhitespace[none] \setuplayout[grid=yes] \definehead[MyTit][title]

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Hans Hagen
gt; >  \definecolor[ColorA][0.8(white)] > > >  \startsetups [headertext] > >    \setupheadertexts >      [{\startframed [headerframed] >      [foregroundstyle=bold,background=framewithshadow] >      \getvariable{headertext}{title}

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
8 instead of day 2. > > Thank you > > Fabrice > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \definecolor[ColorA][0.8(white)] > > > > > > \startsetups [headertex

Re: [NTG-context] My own marks

2019-08-31 Thread Jon Wong
][previous])~ both=(\getmarking[M][both])~ all=(\getmarking[M][all])~ current=(\getmarking[M][current]) \stopsetups \setupheadertexts[text] [\setups{S}][] [\setups{S}][] \setuppagenumbering[location=footer] \starttext \startitemize[a] \item \startitemize[n] \item \marking[M

Re: [NTG-context] My own marks

2019-08-31 Thread Jon Wong
])~ all=(\getmarking[M][all])~ current=(\getmarking[M][current]) \stopsetups \setupheadertexts[text] [\setups{S}][] [\setups{S}][] \setuppagenumbering[location=footer] \starttext \startitemize[n] \item \startitemize[a] \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth

Re: [NTG-context] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi Wolfgang! Sadly, it still didn’t work: \startsetups[headertext] \startframed[frame=off,align=flushright,width=fit] \setuplocalinterlinespace[12pt] \the\baselineskip\\ abc \stopframed \stopsetups \setupheadertexts[\directsetup{headertext}] \starttext \setupinterlinespace

Re: [NTG-context] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi, Yikes! Erm… MWE: \startsetups[headertext] \startframed[frame=off,align=flushright,width=fit] { \setupinterlinespace[12pt] \the\baselineskip\\ abc } \stopframed \stopsetups \setupheadertexts[\directsetup{headertext}] \starttext { \setupinterlinespace[24pt] \input

[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

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
] \setupheadertexts [{\startframed [headerframed] [foregroundstyle=bold,background=framewithshadow] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number} \stopframed}] \setupheadertexts [{\startframed [headerframed] [align=flushleft,foregroundstyle

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Mikael P. Sundqvist
eaderframed] > [frame=off, > height=fit, > width=fit] > > \definecolor[ColorA][0.8(white)] > > > \startsetups [headertext] > > \setupheadertexts > [{\startframed [headerframed] > [foregroundstyle=bold,background=color,backgr

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
, topframe=off, bottomframe=off, framecolor=, rulethickness=2pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen
Has been there for ages ... (but I never use that method). I has the same question a few years ago but I never used it because it has a few limitations like missing style/color support. \setuplayouttext[header][text][lefttext=L,middletext=M,righttext=R] %\setupheadertexts[M] %\setupheadertexts

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen
but I never used it because it has a few limitations like missing style/color support. I am looking for a simple and obvious way of setting header and footer texts. The \setupheadertexts has limitations and I view this as historical, for ConTeXt commands have evolved over time usually towards better

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen
but I never used it because it has a few limitations like missing style/color support. I am looking for a simple and obvious way of setting header and footer texts. The \setupheadertexts has limitations and I view this as historical, for ConTeXt commands have evolved over time usually towards better

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
ion a few years ago but I never used it > because it has a few limitations like missing style/color support. I am looking for a simple and obvious way of setting header and footer texts. The \setupheadertexts has limitations and I view this as historical, for ConTeXt commands have evolved over time usual

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Wolfgang Schuster
that method). I has the same question a few years ago but I never used it because it has a few limitations like missing style/color support. \setuplayouttext[header][text][lefttext=L,middletext=M,righttext=R] %\setupheadertexts[M] %\setupheadertexts[L][R] \setupheader   [color=red,style=bold

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Hans Hagen
On 8/2/2019 10:26 PM, Alan Braslau wrote: \setupheader [lefttext=,leftoddtext=,middletext=,...] This would be logical. we have a lot or areas ... and if you really want you can do this ... \setuplayouttext [header][text] [lefttext=L, middletext=M,

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
won't work anymore. > > \setupheadertexts[{\date[d=...,m=...,y=...]}] Well, what would make sense? I would have no problem dropping/ignoring this (historic) command. How about: \setupheader [left=,leftodd=,middle=,...] \setupfooter or \setupheader [lefttext=,leftoddtext=,middletext=,...] This

Re: [NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Wolfgang Schuster
Alan Braslau schrieb am 02.08.2019 um 20:29: Hello, \setupheadertexts [{center}] sets a centered header (and wipes-out any left and right header) \setupheadertexts [{left}] [{right}] sets the left and right headers (and keeps the centered header) \setupheadertexts [{left odd}] [{right odd

[NTG-context] \setupheadertexts \setupfootertexts

2019-08-02 Thread Alan Braslau
Hello, \setupheadertexts [{center}] sets a centered header (and wipes-out any left and right header) \setupheadertexts [{left}] [{right}] sets the left and right headers (and keeps the centered header) \setupheadertexts [{left odd}] [{right odd}] [{left even}] [{right even}] sets the left

[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
[odd-right] >[odd-left] >%~ [even-middle] >%~ [odd-middle] >\starttext >\mbox{}\page\mbox{} >\stoptext > > Is there any way to place content in the middle of doublesided footers, > besides left and right contents? \setuppagenumbering[al

Re: [NTG-context] calling up chapter title

2019-04-26 Thread Wolfgang Schuster
Hans van der Meer schrieb am 26.04.2019 um 12:21: This does not what I have in mind: \setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter] Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me in the header both the pagenumber and the recorded

[NTG-context] how to call chapter title and chapter number

2019-04-26 Thread Hans van der Meer
This does not what I have in mind: \setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter] Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me in the header both the pagenumber and the recorded chapter title. However \chapter turns out

[NTG-context] calling up chapter title

2019-04-26 Thread Hans van der Meer
This does not what I have in mind: \setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter] Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me in the header both the pagenumber and the recorded chapter title. However \chapter turns out

[NTG-context] calling up chapter title

2019-04-26 Thread Hans van der Meer
This does not what I have in mind: \setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter] Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me in the header both the pagenumber and the recorded chapter title. However \chapter turns out

Re: [NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
not sure if it was a good idea to use german names for the elements. Using english names and making the language configurable may be the next step. >> I want to set page headers based on information I get from the XML: >> >> \startxmlsetups xml:prozess >> \setupheade

Re: [NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Pablo Rodriguez
ups xml:prozess > \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date] > > This works on the first page (when the document has more than one > page) but headers and footers are empty on subsequent pages. > > Something (xmlflush?) overwrites my setup. > Any idea how

[NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
headers based on information I get from the XML: \startxmlsetups xml:prozess \mainlanguage[de] \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date] {\bTABLE \setupTABLE[frame=off] \setupTABLE[offset=1mm] \setupTABLE[c][1][align=right, width=14cm] \setupTABLE[c

Re: [NTG-context] Manipulating the pagenumber in the TOC

2019-04-21 Thread Wolfgang Schuster
scape] \setupuserpagenumber[numberconversion=dwarsligger] \setuppagenumbering[location=none] \setupheadertexts [\doifoddpageelse{}{\prefixedpagenumber}] \setupfootertexts [\doifoddpageelse{\prefixedpagenumber}{}] \usemodule [visual] \starttext \completecontent \dorecurse{10}   {\chapter{\fakewo

[NTG-context] Missing font features in page header if \feature[-] is used in header text

2019-04-14 Thread Joseph Canedo
[-][xvicentury]v} Psalme De David. Thimothee.} %% \feature[-] seems to cause problems in header \def\headerok{First book v Psalme De David. Thimothee.} \setupheadertexts[\wrongheader] %% kern/ligatures missing <--- % \setupheadertexts[\headerok] %% kern/ligatures ok <--- \starttext \wrongheader

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

2019-04-10 Thread Huseyin Özoguz
[chapter]}%             {\doifelsetext{\getmarking[section]}                 {\getmarking[section]}                 {}             }%         } } \setupheadertexts[][\CustomHeader{}{~\|~}\pagenumber][\pagenumber][] Huseyin Özoguz E-Mail: h.oezo...@mmnetz.de Am 10.04.2019 um 13:26 schrieb Hans Hagen

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

Re: [NTG-context] A strange request...

2019-02-20 Thread Wolfgang Schuster
[pagenumber] \doifoddpageelse {\cldcontext{"\letterpercent d",(\pagenumber+1)/2}} {} \stopsetups \setupheadertexts [\directsetup{pagenumber}] \starttext \dorecurse{10}{\samplefile{knuth}} \stoptext Variant 2: \defineexpandable[1]\DwarsliggerNumber {\cldcontext{"\

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
t; >[header] > >[text] > >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
> >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \startset

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
off, > topframe=off, > bottomframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > > \startsetups [headertext] > > \setupheadertexts >[{ > \startfra

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
, bottomframe=on, framecolor=, rulethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
ethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{

Re: [NTG-context] Title from setupinteraction used in header

2019-02-03 Thread Jan U. Hasecke
Am 03.02.19 um 17:34 schrieb Wolfgang Schuster: > > Use \setupdocument to set the metadata for the PDF. You can access the > values with the \documentvariable command. > > \setuppagenumbering >   [location=] > > \setupheadertexts >   [\documentvariable{metadata

Re: [NTG-context] Title from setupinteraction used in header

2019-02-03 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 03.02.19 um 14:23: Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter

[NTG-context] Title from setupinteraction used in header

2019-02-03 Thread Jan U. Hasecke
Hi all, it is quite easy to have chapters in headers and footers as shows this example. \setuppagenumbering[location=] \setupheadertexts [text] [chapter] [] [] [chapter] \setupinteraction [title={foo}, subtitle={bar}, author={Peter}, keyword={context}] \starttext

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
]     \setupheadertexts     [{     \startframed [headerframed] [foregroundstyle=bold]     \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number}     \stopframed     }]     \setupheadertexts     [{     \startframed [headerframed

  1   2   3   4   5   6   7   8   9   10   >