[NTG-context] Simple questions on fonts and how to center vertically

Mildred Ki'Lya mildred593 at online.fr
Sun Nov 16 11:31:05 CET 2008


I would like to create a document where the first page contains a title
and a subtitle. The title would be in bold face, and the subtitle in
italics. The font size would be something bigger than 12 points and
those would be centered vertically on the page (with a bit of space
between them).

After some readings, I came up with the following solution:

% ------------------------------------------------------------------

\font\titlefont=cmbx12 scaled\magstep3

% Header
    \hfil{\sc{a Title}}\hfil\hfil\pagenumber\hfil

% Start front page

% Title
  \centerline{a Title}
  \vskip 1em

\vfil % Leave some space between

% Subtitle
  \centerline{a Subtitle}
  \vskip 1em

% Stop Front Page


% ------------------------------------------------------------------

The problems are:
* It is not centered vertically
* The subtitle is not as big as I would have expected
* There is not enough space between the title and the subtitle

Can you come up with a better solution?

Ideally, I would like to have the font size changed in a way so the
control sequences like \it, \bf ... continue to work as expected.

Something I could use like:

{Some normal text \magnify{3} three times magnified text \it the same
size in italics \bf Three times magnified, bold and italics \dots}

It seems I also have troubles getting the TeX box model right.
Previously, I tried to create a ruler below the ruler and it took me
time to figure out how to display it. Naive implementation seamed not
to work. Especially, i don't understand why the \hfil\hrulefill\hfil
should be inserted in a \vbox.

Is there some documentation somewhere explaining that?



Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Site: <http://ki.lya.online.fr>              GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20081116/38c339c7/attachment-0001.bin 

More information about the ntg-context mailing list