[NTG-context] Re: disable header for endnotes

2023-08-16 Thread Rik Kabel
chapter at the end of a book. It produces headings that indicate the pages for which the notes apply. Perhaps you can adapt it to your needs: In the environment file: \definemarking [notePage] \startsetups noteHeadingsText {\em Notes for page \doifelse{\fetchmark[notePage

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

2021-10-13 Thread Marcus Vinicius Mesquita via ntg-context
1/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] > > \set

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

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-07-02 Thread denis.maier
  textstyle=\high{\small\hairspace}, >     location=none, >     bodyfont=] > > \setupnotation [endnote] >    [headstyle=\small, >     way=bypart, >     numbercommand=, >     after={\bl

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Rik Kabel
,     numbercommand=,     after={\blank[halfline]}] %- endnote pages setup % \definemarking [notePage] \startsetups   [noteHeadingsText]   {\em Notes for page \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom

[NTG-context] dictionary example

2021-06-12 Thread jbf
obviously not doing things right! If someone has already set up a dictionary and has a model they could share I'd be grateful. I'm attaching a screenshot of the result from the code below. Julian -- \setuphead[subsubject][before=,after=] \definemarking[subsubject] \setupheadertexts

[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] Right-to-left pagecolumns and markings in ConTeXt

2020-04-29 Thread Joey McCollum
xt demonstrates the same behavior: > > > > ``` > > %Create a new markset to use: > > \definemarking[TestMark] > > %Setup header to reflect top and bottom marks: > > \setupheadertexts[top: {\fetchmark[TestMark][top]}][bottom: > > {\fetchmark[TestMark][bottom]}

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

2020-04-29 Thread Hans Hagen
be the top mark of the right column. I've observed 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

[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] 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] 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] another question about markings

2017-05-08 Thread Thomas A. Schmitz
Aaaand here's another question about markings: how could I compare the value of the top/bottom (or first/last) markings and have the header change accordingly? Example attached, it doesn't do what I (naively) expected it to do. All best Thomas \setuppapersize [A5] \definemarking[Head

[NTG-context] linenumbers in marking

2017-05-08 Thread Thomas A. Schmitz
it’s not usable because the numbers are always shown on the next page." He made the following example (which I have slightly adapted): \definemarking[linenumber] \define\LinenumberCommand {\normalexpanded{\setmarking[linenumber]{\linenumber}}} \setuplinenumbering[command=\LinenumberCommand] \s

Re: [NTG-context] marking in two pass data

2016-08-08 Thread Hans Hagen
On 8/7/2016 11:15 AM, Thomas A. Schmitz wrote: \starttext \setupTABLE [split=repeat] \definemarking [Test] \setupheadertexts [{\getmarking[Test][top]--\getmarking[Test][bottom]}] \startluacode samples = { { "A", "aesop-de.tex" }, { "B", "bryson.tex

[NTG-context] marking in two pass data

2016-08-07 Thread Thomas A. Schmitz
found any good solution for it... Thanks Thomas Example: \starttext \setupTABLE [split=repeat] \definemarking [Test] \setupheadertexts [{\getmarking[Test][top]--\getmarking[Test][bottom]}] \startluacode samples = { { "A", "aesop-de.tex" }, { "B", "

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
On 17 January 2016 at 17:00, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > Kate F > 17. Januar 2016 um 17:56 > Hi, > > Is it possible to have TeX markup executed in the text fields for > \setupinteraction? > I would like to do something like: > > \

[NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Kate F
Hi, Is it possible to have TeX markup executed in the text fields for \setupinteraction? I would like to do something like: \definemarking[xyz] \marking[xyz]{Hello} \setupinteraction[state=start] \setupinteraction[title={\getmarking[xyz][current]}] \setupinteraction[author={\getmarking[xyz

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
Kate F <mailto:k...@elide.org> 17. Januar 2016 um 17:56 Hi, Is it possible to have TeX markup executed in the text fields for \setupinteraction? I would like to do something like: \definemarking[xyz] \marking[xyz]{Hello} \setupinteraction[state=start] \setupinteraction[title={\getmarki

Re: [NTG-context] only page number in the header of the chapter title page

2015-11-10 Thread massifr
Thanks a lot, Wolfgang just now I was posting a solution of mine, but yours is more elegant and concise. Best regards, Massi PS: here's my solution (but I'll use yours): \definemarking[headertitle] \setupheadertexts[] \setupheadertexts[\setups{oddpages}][][][\setups{evenpages}] \startsetups

[NTG-context] markings and syncing

2015-10-22 Thread Thomas A. Schmitz
Hi, I'm trying to set up a header: if a page contains only one marking, it should display this, if it has more than one, display the first and last. Here's what I tried, unsuccessfully: \definemarking [test] \startsetups [test header] \doifelse {\expanded{\getmarking[test][top

Re: [NTG-context] markings and syncing

2015-10-22 Thread Wolfgang Schuster
Thomas A. Schmitz <mailto:thomas.schm...@uni-bonn.de> 22. Oktober 2015 um 13:51 Hi, I'm trying to set up a header: if a page contains only one marking, it should display this, if it has more than one, display the first and last. Here's what I tried, unsuccessfully: \definemarking

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Otared Kavian
with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay a the entire page with a graphic yet have the real content of the page still available for TOC

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Robin.Kirkham
heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay

[NTG-context] overlay or layer for chapter head.

2015-04-01 Thread John Culleton
tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay a the entire page with a graphic yet have the real content of the page still available for TOC, running head, indexing terms etc. Any suggestions

Re: [NTG-context] overlay or layer for chapter head.

2015-04-01 Thread Idris Samawi Hamid ادريس سماوي حامد
that fancy page but still have the \chapter statement for running heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing

Re: [NTG-context] overlay or layer for chapter head.

2015-04-01 Thread Alan BRASLAU
statement for running heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want

Re: [NTG-context] Markings do not appear inside section block environments

2014-04-24 Thread Hans Hagen
On 4/23/2014 5:50 PM, Maggyero wrote: Is there a solution? \definemarking[M] \marking[M]{Cool} \setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}] \starttext \startbodymatter Hello world! \stopbodymatter \stoptext \startbodymatter \marking[M]{Cool} Hello world

[NTG-context] Markings do not appear inside section block environments

2014-04-23 Thread Maggyero
Is there a solution? \definemarking[M] \marking[M]{Cool} \setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}] \starttext \startbodymatter Hello world! \stopbodymatter \stoptext ___ If your

[NTG-context] Markings do not appear inside section block environments

2014-04-21 Thread Maggyero
Hello, The following lines do display the markings: \definemarking[M] \marking[M]{Cool} \setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}] \starttext Hello world! \stoptext but if I use a section block environment they do not: \definemarking[M] \marking[M]{Cool

Re: [NTG-context] bug: \getmarking with mixedcolumns

2013-11-26 Thread Lars Huttar
: I changed the example a bit \setupbodyfont[dejavu] \definemarking[country] \startsetups myheader (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) \hfill (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom

Re: [NTG-context] bug: \getmarking with mixedcolumns

2013-11-22 Thread Hans Hagen
\setupbodyfont[dejavu] \definemarking[country] \startsetups myheader (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) \hfill (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom]) \stopsetups \setupheadertexts [\setups{myheader

Re: [NTG-context] bug: \getmarking with mixedcolumns

2013-11-22 Thread Lars Huttar
: I changed the example a bit \setupbodyfont[dejavu] \definemarking[country] \startsetups myheader (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) \hfill (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom

[NTG-context] bug: \getmarking with mixedcolumns

2013-11-21 Thread Lars Huttar
the *last* item on the page. Here's the MWE: \definemarking[country] %\startsetups myheader %F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last] %\hfill %T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom] %\stopsetups \startsetups myheader F: \getmarking

Re: [NTG-context] Chapter title in headertexts only

2013-05-05 Thread Piotr Kopszak
[][\setups{a}][][]\ \startsetups[a] \expanded{\fetchmark[a][first]} \stopsetups \definemarking[a] \starttext \chapter{my chapter} \marking[a]{my chapter} \input knuth \stoptext Any other ideas? \setuphead[chapter][placehead=empty] \setupheadertexts[][chapter][][] \starttext \chapter{my

Re: [NTG-context] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
OK, found a sufficiant solution \setuphead[chapter][placehead=no] \setupheadertexts[][\setups{a}][][]\ \startsetups[a] \expanded{\fetchmark[a][first]} \stopsetups \definemarking[a] \starttext \chapter{my chapter} \marking[a]{my chapter} \input knuth \stoptext Any other ideas? Piotr 2013/5

Re: [NTG-context] Chapter title in headertexts only

2013-05-02 Thread Wolfgang Schuster
Am 02.05.2013 um 17:20 schrieb Piotr Kopszak kops...@gmail.com: OK, found a sufficiant solution \setuphead[chapter][placehead=no] \setupheadertexts[][\setups{a}][][]\ \startsetups[a] \expanded{\fetchmark[a][first]} \stopsetups \definemarking[a] \starttext \chapter{my chapter

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
= tostring(v.references.realpage) pages[realpage]= pages[realpage] or {} table.insert(pages[realpage],ref) end for page,array in pairs(pages) do table.sort(array) end end \stopluacode \definemarking[linenumber] \define\LinenumberCommand {\normalexpanded{\setmarking[linenumber]{\linenumber

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-05 Thread luigi scarso
(v.references.realpage) pages[realpage]= pages[realpage] or {} table.insert(pages[realpage],ref) end for page,array in pairs(pages) do table.sort(array) end end \stopluacode \definemarking[linenumber] \define\LinenumberCommand {\normalexpanded{\setmarking[linenumber]{\linenumber}}\pagereference[LIN

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-04 Thread Wolfgang Schuster
are always shown on the next page. \definemarking[linenumber] \define\LinenumberCommand {\normalexpanded{\setmarking[linenumber]{\linenumber}}} \setuplinenumbering[command=\LinenumberCommand] \startsetups linenumber \doiftext { \getmarking[linenumber

[NTG-context] fun with markings

2011-12-20 Thread Henning Hraban Ramm
= 3 ,ny = 1 ,dx =0mm,dy=0mm,topspace=19mm,backspace=10.5mm,page=A7,paper={A4,landscape}] \setuparranging [XY] \definemarking[MyNam] \setupheadertexts[][{\getmarking[MyNam][first]–\getmarking[MyNam] [last]}] \def\Name#1{#1\expanded{\marking[MyNam]{#1}}} \starttext \startlines \Name{A} \Name

Re: [NTG-context] header entries semi-wrong

2011-03-10 Thread Wolfgang Schuster
can do is to create a new mark with \definemarking where you set \headnumber and which you then use in the header. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] \definehead -- latest minimal

2010-11-17 Thread Herbert Voss
: in function 'define' main ctx instance:1: in main chunk. argument ...e(SSEC,{ parent = subsection })} \getparameters [\??mk SSEC... \secondoftwoarguments #1#2-#2 argument ...n]\definemarking [SSEC] [subsection

Re: [NTG-context] beta

2010-11-13 Thread Erik Margraf
]/ \getmarking[chapter][1][first] even more expermental: \definemarking[boxmark] \setbox0\ruledvbox{ \marking[boxmark]{tufte} \input tufte \par \marking[boxmark]{ward} \input ward \par } \synchronizemarking[zerobox][0] \box0 \getmarking[boxmark][zerobox][first] \getmarking

[NTG-context] beta

2010-11-12 Thread Hans Hagen
lookahead i.e. future marks) the usual column related marking: \getmarking[chapter][first]/ \getmarking[chapter][page][first]/ \getmarking[chapter][column:first][first]/ \getmarking[chapter][column:1][first]/ \getmarking[chapter][1][first] even more expermental: \definemarking

Re: [NTG-context] beta

2010-11-12 Thread views63
) the usual column related marking:    \getmarking[chapter][first]/    \getmarking[chapter][page][first]/    \getmarking[chapter][column:first][first]/    \getmarking[chapter][column:1][first]/    \getmarking[chapter][1][first] even more expermental:  \definemarking[boxmark]  \setbox0\ruledvbox

Re: [NTG-context] dictionary

2009-12-23 Thread Henning Hraban Ramm
: [first] [last] [previous] [both] [all] [current] (I usually get it right after a couple of experiments ;-) I tried something similar for my addressbook, but it doesn't work: \definemarking[MNam] \setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam][last]}] \def\Name#1{\bf #1

Re: [NTG-context] dictionary

2009-12-23 Thread Wolfgang Schuster
Am 23.12.2009 um 22:08 schrieb Henning Hraban Ramm: I tried something similar for my addressbook, but it doesn't work: \definemarking[MNam] \setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam][last]}] \def\Name#1{\bf #1\marking[MNam]{\FirstNCharacters{4}{#1}}} \define[1

Re: [NTG-context] dictionary

2009-12-23 Thread Henning Hraban Ramm
Am 2009-12-23 um 22:20 schrieb Wolfgang Schuster: I tried something similar for my addressbook, but it doesn't work: \definemarking[MNam] \setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam] [last]}] \def\Name#1{\bf #1\marking[MNam]{\FirstNCharacters{4}{#1}}} \define[1]\Name

Re: [NTG-context] Initialisation problem enumeration and way=bysection

2009-08-19 Thread Hans Hagen
]% \doifundefined{\??li#1}{\definelist[#1][\c!prefix=\v!no]}}% definestructurelist ? {\getparameters[\??nh#1][\s!parent=\??nh#2,\c!label=#1,\c!coupling=#2]% \definemarking[#1][#2]% \definemarking[#1\v!number][#2\c!number]% \doifundefined{\??li#1}{\definelist[#1][#2][\c!prefix=\v

Re: [NTG-context] Initialisation problem enumeration a nd way=bysection

2009-08-19 Thread B. Vogel
}% \presetlabeltext[#1=]% \doifelse{#1}{#2} {\getparameters[\??nh#1][\c!label=#1]% \doifundefined{\??li#1}{\definelist[#1][\c!prefix=\v!no]}}% definestructurelist ? {\getparameters[\??nh#1][\s!parent=\??nh#2,\c!label=#1,\c!coupling=#2]% \definemarking[#1][#2

[NTG-context] Wiki recepy for Document Titles does not work

2009-06-26 Thread Gerben Wierda
): \unprotect \let\endnote\footnote \definemarking[Author] \definemarking[Doctitle] \def\doctitle#1{\gd...@title{#1}\marking[doctitle]{#1}} \def\author#1{\gd...@author{#1}\marking[author]{#1}} \definesystemvariable {dt} % DocumentTitle % Expand both 1- and 2- arity'd versions of /dosetuptitle \def

Re: [NTG-context] Wiki recepy for Document Titles does not work

2009-06-26 Thread Wolfgang Schuster
? Try this: \unprotect \definesystemvariable {title} \definemarking[documenttitle] \definemarking[documentauthor] \definemarking[documentdate] \def\setuptitle {\dodoubleempty\dosetuptitle} \def\dosetuptitle[#1][#2]% {\ifsecondargument \def\dodosetuptitle##1{\getparameters[\??title##1

Re: [NTG-context] Wiki recepy for Document Titles does not work

2009-06-26 Thread Gerben Wierda
, but maybe it is the order in which you have to do things? Try this: \unprotect \definesystemvariable {title} \definemarking[documenttitle] \definemarking[documentauthor] \definemarking[documentdate] \def\setuptitle {\dodoubleempty\dosetuptitle} \def\dosetuptitle[#1][#2]% {\ifsecondargument

Re: [NTG-context] chapter-like headings with separate numbering

2008-12-06 Thread Aditya Mahajan
]} \stopsetups % Marking version does not work ... see comment below % \definemarking[interlude] % \definemarking[interludenumber][expansion=yes] % % \startsetups[headline:interlude] % {\ss\it Interlude \getmarking[interludenumber].\quad\getmarking[interlude]} % \stopsetups % So we define our own marks

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
[position|name][position|name][settings] \definelabel[name][text and options] # \definelayer # \definelayerpreset # \definelayout \definelist[name][name][settings] \definelogo[name][position][position][command][state] # \definemainfield \definemakeup[name][settings] \definemarking[name][name

Re: [NTG-context] A couple of questions on heads.

2007-01-02 Thread Aditya Mahajan
section. You can use use totally different markings, as shown below. % Define your own marking. \definemarking[Papertitle] \definemarking[Author] % Set that marking. \marking[Papertitle]{This is a \CONTEXT\ example} \marking[Author]{Aditya Mahajan} % Allow ConTeXt to do the rest

[NTG-context] Footnotes on wrong page

2006-06-05 Thread [EMAIL PROTECTED]
{\DroppedCaps{}{Serif}{2.4\baselineskip}{5pt}{1\baselineskip}{2}} % Set up marker for verses \definemarking[verse][verses] % % Text formatting macros: % % Very large dropped number for first chapter number of book \def\bookbeg#1#2{\DropChapOne{#1}\marking[verse]{#1:#2}} % Large dropped number

[NTG-context] marking in columnset

2005-11-24 Thread Vit Zyka
Dear ConTeXters, several kind of marking variants (first, last, both, ...) works perfectly in standard one-column layout: \definemarking[M] \startsetups S default=(\getmarking[M])~ first=(\getmarking[M][first])~ last=(\getmarking[M