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
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
On 10/11/2021 11:33 AM, mf via ntg-context wrote:
It looks like the argument of \getmarking is not expanded, since you get
"\it knuth" instead of an italicized "knuth" in the headers of this MWE:
\definemarking[myheader]
\setupheadertexts[{\getmarking[myheader][last]}]
\sta
It looks like the argument of \getmarking is not expanded, since you get
"\it knuth" instead of an italicized "knuth" in the headers of this MWE:
\definemarking[myheader]
\setupheadertexts[{\getmarking[myheader][last]}]
\starttext
\dorecurse{10}{\samplefile{knuth}\marking
textstyle=\high{\small\hairspace},
> location=none,
> bodyfont=]
>
> \setupnotation [endnote]
> [headstyle=\small,
> way=bypart,
> numbercommand=,
> after={\bl
,
numbercommand=,
after={\blank[halfline]}]
%- endnote pages setup %
\definemarking [notePage]
\startsetups [noteHeadingsText]
{\em Notes for page
\doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom
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
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
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]}
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
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
.
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
,
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
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
Hi all,
Sorry, I corrected my MWE. As you can see, \currentitemnumber seems strange
when used for \marking inside a nested itemize.
MWE:
\definemarking[M]
\startsetups S
default=(\getmarking[M])~
first=(\getmarking[M][first])~
last=(\getmarking[M][last])~
previous=(\getmarking[M
Hi all,
It seems that \currentitemnumber won’t work for \marking if inside a nested
itemize?
MWE:
\definemarking[M]
\startsetups S
default=(\getmarking[M])~
first=(\getmarking[M][first])~
last=(\getmarking[M][last])~
previous=(\getmarking[M][previous])~
both=(\getmarking[M][both
Hi all,
How does \marking really work? Can’t seem to get \currentitemnumber into it.
MWE:
\definemarking[M]
\startsetups S
\getmarking[M]
\stopsetups
\setupheadertexts[\setups{S}][][][\setups{S}]
\starttext
\startitemize[n]
\item First item
\marking[M]{Really? \currentitemnumber
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
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
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
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", "
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:
>
> \
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
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
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
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
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
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
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
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
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
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
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
Is there a solution?
\definemarking[M]
\marking[M]{Cool}
\setupheadertexts[{Marking: \getmarking[M]}][{Marking: \getmarking[M]}]
\starttext
\startbodymatter
Hello world!
\stopbodymatter
\stoptext
___
If your
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
:
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
\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
:
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
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
[][\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
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
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
= 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
(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
are always shown on the next page.
\definemarking[linenumber]
\define\LinenumberCommand
{\normalexpanded{\setmarking[linenumber]{\linenumber}}}
\setuplinenumbering[command=\LinenumberCommand]
\startsetups linenumber
\doiftext {
\getmarking[linenumber
=
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
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
: 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
]/
\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
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
)
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
: [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
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
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
]%
\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
}%
\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
):
\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
?
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
, 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
]}
\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
[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
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
{\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
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
64 matches
Mail list logo