ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "W.H. Dekker" <wybo@servaly.hobby.nl>
Cc: ntg-context@ntg.nl
Subject: Re: starters questions
Date: Mon, 3 Aug 1998 12:36:16 +0200	[thread overview]
Message-ID: <199808031036.MAA01688@servaly.hobby.nl> (raw)

(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


             reply	other threads:[~1998-08-03 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-03 10:36 W.H. Dekker [this message]
1998-08-03 12:08 Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199808031036.MAA01688@servaly.hobby.nl \
    --to=wybo@servaly.hobby.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).