From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/123 Path: main.gmane.org!not-for-mail From: "W.H. Dekker" Newsgroups: gmane.comp.tex.context Subject: Re: starters questions Date: Mon, 3 Aug 1998 12:36:16 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <199808031036.MAA01688@servaly.hobby.nl> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035390998 21465 80.91.224.250 (23 Oct 2002 16:36:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:36:38 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: fg@fgbbs.iaf.nl Xref: main.gmane.org gmane.comp.tex.context:123 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:123 (with apologies for writing in dutch initially) > Frans Goddijn wrote: > "HD> - Hoe krijg ik onder "Aantal pagina's" automatisch het juiste > "HD> getal? Is er zoiets als \LastPage? > > Did you read this in earlier messages: > > > how can I print the number of pages a document has? > > \totaalaantalpaginas > > the internal quantity is: \lastpage and you can bet that there is also \lastpage worked fine, > \firstpage, \prevpage, \lastpage, \nofsubpages \nextsubpage, > \prevsubpage etc. > > There are also \realpageno (counts all pages) \userpageno (only the ones > with a pagenumber) etc etc etc. > > So, in dutch \totaalaantalpaginas > > (English: \totalnumberofpages ) but this one is unknown... > "HD> - de eerste regel (Kwaliteitsdienst) > "HD> begint 60mm onder de bovenrand van het papier; hoe maak ik daar > "HD> 20mm van? Ik dacht het met die voffset te doen, maar die doet > "HD> niets. > > I managed to narrow it down to 22 millimeters! > > Play around with this in your opening lines of the .TEX code (I took yours > and changed them:) > > \setuppagenumbering[style=oldstyle] > \language[nl] > \starttext\setupbodyfont[sansserif,11pt] > > % I added these lines: > \setuppapersize[A4] > \setuplayout[topspace=0cm, > header=0cm] Well, that works, but also changes the layout for subsequent pages... > "HD> - het onderste blokje wil ik tegen de onderkant en gecentreerd, > "HD> maar \vfill werkt niet, en van de twee \hfill's eromheen werkt > "HD> alleen de eerste. > > I didn't yet manage to get the text any lower on the page, but I did get > it centered for you with one simple command instead of the two \hfill's > that didn't work: \midaligned > %\vfill % you had this, which this didn't work > \blank[force,9*big] % this one works. "force" mandatory here Indeed, although: force does'nt make any difference, and if you increase the 9 the block keeps moving down. At 25 it is very low, with 35 only the top half of the first line remains visible. So this is'nt quite the same as \vfill. > "HD> - datzelfde blokje heb ik een kleinere letter gegeven met \tfx, > "HD> maar het moet nog kleiner. Hoe? > > I tried three different ways that all worked. The third way worked best > though. > > "HD> - de letters zijn dus wel kleiner, maar de regelafstand is daar > "HD> niet aan angepast. Klopt dat? Hoe krijg ik die goed? > > The first one, \kleinerfont worked but not on the baselinsskip issue, the > others did. > > [...] > > \font\kleinerfont=cmss9 at 6pt % can be missed if not used later on > \midaligned{\framed[width=95mm,height=12mm,align=normal]{% > % \kleinerfont % works nicely > % \switchtobodyfont[small]% also works, better baselineskip > \switchtobodyfont[6pt]% > Niets uit deze uitgave mag worden vermenigvuldigd en/of openbaar > gemaakt > door middel van druk, fotokopie, microfilm of op welke wijze dan > ook, > zonder voorafgaande toestemming van KDLL\par > }} > } just \switchtobodyfont[6pt] worked fine > If the baselinsskip looks odd, try \par. I had a problem like that once, > and Herman Haverkort explained to me how TeX handles that (see page 217 of > MAPS20) OK, that helped. I think Context should do that automatically at the end of \framed and such. > I hope this helps, as it would be the first message that I post to this > list with answers instead of questions! ;=} Well, you solved several problems. So you can stay our context guru for a while! -- Kind regards, Wybo ===================Servalys Analytical Chemistry Services================= Wybo H. Dekker | Deilsedijk 60 | tel (31)345-652164 wybo@servaly.hobby.nl | 4158 CH Deil, The Netherlands | fax (31)345-652383