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

2025-03-13 Thread roberto . bianchi
setups{myheadertext}}] \startsetups myheadertext \switchtobodyfont[8pt] \setupinterlinespace \cap \framed[height=\headerlogoheight,frame=off, align=normal] {\headerclient\\\headershorttitle\\\headerdoctype\\\vskip0.75ex\hfill \getmarking[sectionnumber]\hskip0.3em \getmarking[section]} \stopsetups %% =

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
Alan Bowen schrieb am 30.03.2024 um 20:59: How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. You can try this: \definepagestate[alanpage

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
.) \definelistalternative[startendfmpages][renderingsetup=list:startendfmpages] \startsetups[list:startendfmpages] \structurelistuservariable{itemAuthor}\crlf \structurelistuservariable{itemTitle}\hfill% \at[\currentlistentrypagenumber]–\at[\lastpagenumber] \vglue1pc \stopsetups where I

[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks
> On 30 Mar 2024, at 19:59, Alan Bowen wrote: > > How can I get the last page number of a chapter for a list (ToC)? > > Outside of a list, I use \lastpagenumber. > But that does not work in a list such as the ToC. > > Any tips or pointers will be gladly received.

[NTG-context] last page number for a list

2024-03-30 Thread Alan Bowen
How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. Alan ___ If

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
] [\pagenumber\space of \lastpagenumber] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Henning Hraban Ramm
[state=repeat]. Thank you! But \setupbackgrounds[footer][text][background=Blocks,state=repeat] doesn’t work. Does this make sense if I don’t want layers in _all_ areas to repeat? \setuppapersize[SW] \startuseMPgraphic{Blocks} fill unitsquare xysized (OverlayWidth * PageNumber / LastPageNumber

[NTG-context] Re: MP setup for a progress bar

2023-07-04 Thread Wolfgang Schuster
\setupbackgrounds[state=repeat]. \setuppapersize[SW] \startuseMPgraphic{Blocks} fill unitsquare xysized (OverlayWidth * PageNumber / LastPageNumber, OverlayHeight) withcolor blue; %setbounds currentpicture to OverlayBox; \stopuseMPgraphic \defineoverlay[Blocks][\useMPgraphic{Blocks}] \setupbackgrounds[state

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 13:44, Pablo Rodriguez wrote: > On 11/8/20 11:48 AM, Sylvain Hubert wrote: > > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for > > the help!. > > > > Btw, do you know whether there is any difference between \lastpagenumber

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Pablo Rodriguez
On 11/8/20 11:48 AM, Sylvain Hubert wrote: > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for > the help!. > > Btw, do you know whether there is any difference between \lastpagenumber > and \lastuserpagenumber mentioned both by Wolfgang and by the excursi

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Wolfgang Schuster
t;mailto:oi...@gmx.es <mailto:oi...@gmx.es>>> wrote: > >     Hi Sylvain, > >        \setupfootertexts[\pagenumber/\lastpagenumber] >        \starttext >        \dorecurse{25}{\null\page} >        \stoptext > > &

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
> > > \setupfootertexts[\pagenumber/\lastpagenumber] > >\starttext > >\dorecurse{25}{\null\page} > >\stoptext > > > > > > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for > > the help!. > > >

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Wolfgang Schuster
Sylvain Hubert schrieb am 08.11.2020 um 11:48: On Sun, 8 Nov 2020 at 10:31, Pablo Rodriguez <mailto:oi...@gmx.es>> wrote: Hi Sylvain,   \setupfootertexts[\pagenumber/\lastpagenumber]   \starttext   \dorecurse{25}{\null\page}   \stoptext Indeed, \setupfoot

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
On Sun, 8 Nov 2020 at 10:31, Pablo Rodriguez wrote: > Hi Sylvain, > > \setupfootertexts[\pagenumber/\lastpagenumber] > \starttext > \dorecurse{25}{\null\page} > \stoptext > Indeed, \setupfooterexts is much clearer for page numbering. Thanks for the help!. Btw, do y

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Pablo Rodriguez
}{/\lastcounter[userpage]}] > > but \lastcounter[userpage] results in empty string. Hi Sylvain, \setupfootertexts[\pagenumber/\lastpagenumber] \starttext \dorecurse{25}{\null\page} \stoptext I never used you approach with \setuppagenubering (all being said). This

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Rudolf Bahr
> \setupbackgrounds[page][background=pgnumber] > \starttext > \placelist[section][alternative=d] > \dorecurse{16}{\section{Section}} > \pagenumber/\lastpagenumber > \setlayer[pgnumber] > {\comment{\pagenumber}} > \stoptext > > Could anyone confirm the iss

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Wolfgang Schuster
] \starttext \placelist[section][alternative=d] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext Could anyone confirm the issue? \pagenumber is only reliable headers/footer texts or page backgrounds, for

[NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
] \dorecurse{16}{\section{Section}} \pagenumber/\lastpagenumber \setlayer[pgnumber] {\comment{\pagenumber}} \stoptext Could anyone confirm the issue? Many thanks for your help, Pablo -- http://www.ousia.tk ___ If

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

2020-02-06 Thread Wolfgang Schuster
\scale[width=\textwidth]{a} > \scale[width=\textwidth]{b} > > \doifmode{*first}{\executesystemcommand{rm zikaasd.abh}} > > \startnotmode[*first] > \ifnum\lastpagenumber<2 > \executesystemcommand{touch zikaasd.abh} > \fi > >

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

2020-02-06 Thread Pablo Rodriguez
\setuppaper[method=savepages] \starttext \scale[width=\textwidth]{a} \scale[width=\textwidth]{b} \doifmode{*first}{\executesystemcommand{rm zikaasd.abh}} \startnotmode[*first] \ifnum\lastpagenumber<2 \executesystemcommand{touch zikaasd.a

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Wolfgang Schuster
}} \ruledhbox to \hsize{\hbox{Q}\hss\hbox{B}} \ruledhbox to \hsize{\hbox{\smash[d]{Q}}\hss\hbox{B}} \stoptext \setupfootertexts [margin] [] [{\externalfigure[logo.png][height=]}] [] [{\externalfigure[logo.png][height=]}] \setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Fabrice Couvreur
, backspace=20mm, width=middle] \setupbackgrounds [header] [text] [frame=off, topframe=on, bottomframe=on, framecolor=, rulethickness=1pt] \setupinteraction[state=start] \setupfooter[margin][strut=no] \setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-09 Thread Pablo Rodriguez
wframe \setupfootertexts[][Page\,\pagenumber\,sur\,\lastpagenumber] \setuppagenumbering[location=] \starttext \dorecurse{50}{a\page} \stoptext Wikify what you think it may help others (or that it might have helped you if it w

[NTG-context] first xcell dimension to large in xtable with external figure.

2014-05-06 Thread DesdeChaves
{flushleft,lohi}] \unknown \stopxcell \stopxcellgroup \stopxrow \startxrow \startxcellgroup[height=1cm,foregroundstyle=small] \startxcell[width=0.10\paperwidth,align={flushright,lohi}] Pagina \stopxcell \startxcell[width=0.15\paperwidth,align={flushleft,lohi}] \pagenumber/\lastpagenumber \stopxcell

Re: [NTG-context] Table in header, or multicolumn header

2013-12-16 Thread Marco Pallante
> \startxcellgroup[height=0.25\headerheight,foregroundstyle=small] > > \startxcell[width=0.10\paperwidth,align={flushright,lohi}] > Pagina > \stopxcell > > \startx

Re: [NTG-context] Table in header, or multicolumn header

2013-12-15 Thread Wolfgang Schuster
ell[width=0.10\paperwidth,align={flushright,lohi}] Pagina \stopxcell \startxcell[width=0.15\paperwidth,align={flushleft,lohi}] \pagenumber/\lastpagenumber

Re: [NTG-context] Resetting Page Numbers

2012-12-10 Thread Wolfgang Schuster
3 of 3". I would like the second page footer to render > "Page 1 of 2" and the third page footer to render "Page 2 of 2". That is, I > would like the first (title) page to not be used in the computation of > \currentpage or \lastpage. The name of the c

Re: [NTG-context] Total Number of Pages

2012-10-16 Thread Philipp Gesang
\par %% synonyms: \nofuserpages, \lastuserpagenumber last user page: \lastpagenumber\par %% for sake of completeness first real page \firstpage \par \chapter{no counting} \dorecurse{5}{% \section{iteration \recurselevel} \starttable[|l|l|] \NC counter\NC value\NC\NR \

[NTG-context] [***SPAM***] Resetting Page Backgrounds

2012-04-18 Thread Raymond LeClair
}] \setupbackgrounds[page][background={{2e31ddc5-43da-4879-a223-61674e0df438}}] \setuplayout[contents_1] \edef\lastpagenumber{\pagenumber} {\bf November 08, 2010} ({\bf Enryakuji}) \ifnum\pagenumber>\lastpagenumber \setupbackgrounds[page][background={{}}]\setuplayout[contents_4] \fi\pagenumber\par My labma

Re: [NTG-context] Footer including "Page n of m"

2011-08-01 Thread Alasdair McAndrew
solution because it stops > pagenumbering. You can see this when you replace in Adityas example > \currentpage with \pagenumber and \lastpage with \lastpagenumber. > > Wolfgang > > > ___ > If your q

Re: [NTG-context] Footer including "Page n of m"

2011-08-01 Thread Wolfgang Schuster
te=stop” setting isn’t the prefect solution because it stops pagenumbering. You can see this when you replace in Adityas example \currentpage with \pagenumber and \lastpage with \lastpagenumber. Wolfgang ___ If your questio

Re: [NTG-context] Page X of Y

2011-06-21 Thread Troy Henderson
Thank you (again). It seems that \setupfootertexts[Page \pagenumber~of~\lastpagenumber] also works. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] Insert page number into multi-page PDF

2010-09-07 Thread Vnpenguin
you can put stuff on top using the background mechanisms >> >> Could you give me an example about background mechanism ? > > > \defineoverlay >  [pagenumber] >  [\vbox to \paperheight >     {\blank[force,3cm] >      \midaligned{\pagenumber\ – \lastpage

Re: [NTG-context] Insert page number into multi-page PDF

2010-09-07 Thread Wolfgang Schuster
give me an example about background mechanism ? \defineoverlay [pagenumber] [\vbox to \paperheight {\blank[force,3cm] \midaligned{\pagenumber\ – \lastpagenumber} \vfill}] \setupbackgrounds[page][background={foreground,pag

Re: [NTG-context] Argument of \doswitchtotypeface has an extra }

2009-06-11 Thread Peter Münster
On Thu, 11 Jun 2009, Hans Hagen wrote: > Peter Münster wrote: > \lastpagenumber ? > > should work in the beta Indeed, thanks! Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If your qu

Re: [NTG-context] Argument of \doswitchtotypeface has an extra }

2009-06-11 Thread Hans Hagen
Peter Münster wrote: \lastpagenumber ? should work in the beta -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69

Re: [NTG-context] Argument of \doswitchtotypeface has an extra }

2009-06-11 Thread Peter Münster
uot;\useURL[dummy][http://my-url/]\from[dummy]"; Perhaps with alternative optional argument: \fromURL[#1]{#2} = "\useURL[dummy][#2][][#1]\from[dummy]" Cheers, Peter P.S: Any news about the problems with \placehead and \lastpagenumber ? -- Contact information: http://pmrb.free.fr/con

[NTG-context] \lastpagenumber always 1

2009-06-09 Thread Peter Münster
Hello, \lastpagenumber is 1 but should be 5: \setupfootertexts[\pagenumber/\lastpagenumber] \starttext \dorecurse5{bla\page} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ If

Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Michael Bynum
. >> >> I still can't get the total number of pages to work out right if I >> have a title page. I used standardmakeup to keep the title page from >> being numbered, but it is still counted in \totalnu

Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Wolfgang Schuster
page from being numbered, but it is still counted in \totalnumberofpages. Use \lastpagenumber. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@n

Re: [NTG-context] Tables in headers

2008-04-28 Thread Wolfgang Schuster
\pagenumber=\plusone \setups{head:table:first}% \else \setups{head:table:next}% \fi} \stopsetups \startsetups head:table:first \bTABLE[textwidth=\textwidth,option=stretch,align=right] \bTR \bTD[nx=2] Type of document\\\getvariable{document}{type} \eTD \bTD Page\\\page

Re: [NTG-context] First document — problems with bi b module and layout

2007-12-29 Thread Matija Šuklje
rk" under the terms of the GPL licence. %%% %%% splošne definicije dokumenta %%% % jezik, UTF-8 in velikost papirja \mainlanguage[sl] \enableregime[utf8] \setuppapersize[a4][a4] %%% %%% splošna oblika teksta %%% \setupindenting[1.5em] \setupindenting[yes] \setupwhitespace[medium] % oštevil

Re: [NTG-context] First document — problems with bi b module and layout

2007-12-27 Thread Matija Šuklje
frontmatter % % \startbodymatter \setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right] \chapter{Kr en poglavje} \section[1]{Prvo poglavje} \input tufte \subsection[1.1]{podpoglavje} \input knuth tuki citiram, veš? \footnote{\cite[extras={ str. IV-VI in XI}][b

Re: [NTG-context] First document — problems with bi b module and layout

2007-12-26 Thread Matija Šuklje
sno spremeni jezik v angleščino \subsection[summary]{Summary} \input knuth } \stopfrontmatter \startbodymatter \setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right] \chapter{Kr en poglavje} \section[1]{Prvo poglavje} \input tufte \subsection[1.1]{podpoglavje} \input knuth tuki

Re: [NTG-context] First document — problems with bi b module and layout

2007-12-26 Thread Taco Hoekwater
n=right] \placecontent \section[uvod]{Uvod} \subsection[povzetek]{Povzetek} \input knuth {\en % začasno spremeni jezik v angleščino \subsection[summary]{Summary} \input knuth } \stopfrontmatter \startbodymatter \setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right]

[NTG-context] First document — problems with bi b module and layout

2007-12-25 Thread Matija Šuklje
\section[uvod]{Uvod} \subsection[povzetek]{Povzetek} \input knuth {\en % začasno spremeni jezik v angleščino \subsection[summary]{Summary} \input knuth } \stopfrontmatter \startbodymatter \setuppagenumbering[left={stran },right={ od \lastpagenumber},location=right] \chapter{Kr en poglav

Re: [NTG-context] standardmakeup, frontmatter, bodymatter & page numbering

2007-12-07 Thread Mojca Miklavec
bit late with my answer Hello Wolfgang, I hardcoded the number when I needed it, but you proposal is very useful for the next time when I will need it again. I only need to figure out where to store it on the wiki/texshow, so that it will be possible to find it agin. (This still cannot handle the problem

Re: [NTG-context] standardmakeup, frontmatter, bodymatter & page numbering

2007-12-01 Thread Wolfgang Schuster
led across this question after I was searching for something in the archive and I found the following solution. [...] \startbodymatter \page[odd] % only \page give a empty before the \section \setuppagenumber[number=1] \setupfootertexts[page \pagenumber{} of \lastpagenumber] % no \totalnumber...

Re: [NTG-context] Header height & multipage Text.

2007-05-25 Thread Hans Hagen
\stoptabulate Seite {\pagenumber} von {\lastpagenumber}} \egroup \stopsetups \startsetups allpage \hbox \bgroup \setups{commonpage} \framed [height=\headerheight, width=6.8cm, frame=off, foregroundcolor=myblack, offset=0pt,

[NTG-context] Header height & multipage Text.

2007-05-25 Thread iscope GmbH // Oliver Siegemund
ogged: \NC Testperson \NC \NR \NC Ausgabedatum: \NC 14.06.2007 \NC \NR \stoptabulate Seite {\pagenumber} von {\lastpagenumber} } } \stopsetups \startsetups[allpage] \setuplayout[ header=3.6cm, ] \hbox {\framed[height=3.6cm,width=6.22cm,x=0cm,y=0mm,frame=off,offset=none,frameoffset=0mm] {} \f

[NTG-context] bug in mptopdf?

2006-05-09 Thread Peter Rolf
verlayLineColor:=(0,0,0); BaseLineSkip:=15.8592pt; LineHeight:=15.8592pt; BodyFontSize:=12.0pt; TopSkip:=12.0pt; StrutHeight:=11.41864pt; StrutDepth:=4.44055pt; CurrentWidth:=469.47046pt; CurrentHeight:=681.80237pt; EmWidth:=12.0pt; ExHeight:=5.664pt; PageNumber:=1; RealPageNumber:

Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Steffen Wolfrum
sl md5 *.tui - as Gerben explained) : % % TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Commands % \thisissectionseparator{:} \thisisutilityversion{2003.07.19} \thisisbytesequence{“} \initializevariable\usedcolorchannels{} \initializevariable\lastpage{1} \initializevariable\lastpagenu

Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Hans Hagen
{test} c \initializevariable\lastpage{1} c \initializevariable\lastpagenumber{1} c \initializevariable\totalnofMPgraphics{0} c \initializevariable\totalnofpositions{0} c \initializevariable\totalnofparbackgrounds{0} c \initializevariable\currentstrategypass{1} and the tuo files? texexec --pdf test.tex

Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Steffen Wolfrum
PARTS/ONE.tex} f b {PARTS/TWO.tex} f e {PARTS/TWO.tex} c \initializevariable\usedcolorchannels{} f e {test} c \initializevariable\lastpage{1} c \initializevariable\lastpagenumber{1} c \initializevariable\totalnofMPgraphics{0} c \initializevariable\totalnofpositions{0} c \initializevariable\totalnofparbackground

Re: [NTG-context] Re: [OS X TeX] TeX run : 8

2005-03-02 Thread Steffen Wolfrum
re the same? (cmp command?) ... G I opened them and they wrote all the same: c \thisissectionseparator{:} c \thisisutilityversion{2003.07.19} c \thisisbytesequence{“} f b {test} f b {PARTS/ONE.tex} f e {PARTS/ONE.tex} f b {PARTS/TWO.tex} f e {PARTS/TWO.tex} c \initializevariable\usedcolorchannels

[NTG-context] Re: No bonds visibel with ppchtex

2005-01-06 Thread Kai Straube
dth := 0pt; OverlayLineColor := (0,0,0) ; BaseLineSkip := 14.46669pt; LineHeight := 14.46669pt; BodyFontSize := 12.0pt; TopSkip := 12.0pt; StrutHeight := 10.41603pt; StrutDepth := 4.05064pt; CurrentWidth := 426.78743pt; CurrentHeight := 597.51323pt; EmWidth := 11.74988pt; ExHeight := 5.16667p

Re: [NTG-context] Re: texutil "malformed UTF-8 character" error

2004-08-23 Thread Duncan Hothersall
tentry{chapter}{1}{1}{test}{2::0:1:0:0:0:0:0::2}{2} r e {index} {2} {} {test} {2::0:1:0:0:0:0:0::2} {2} f e {tester} c \initializevariable\lastpage{2} c \initializevariable\lastpagenumber{2} c \initializevariable\totalnofMPgraphics{0} c \initializevariable\totalnofpositions{0} c \initializeva