From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45623 Path: news.gmane.org!not-for-mail From: Mildred Ki'Lya Newsgroups: gmane.comp.tex.context Subject: Simple questions on fonts and how to center vertically Date: Sun, 16 Nov 2008 11:31:05 +0100 Message-ID: <20081116113105.5b682b2c@kylae> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1083195167==" X-Trace: ger.gmane.org 1226831686 27204 80.91.229.12 (16 Nov 2008 10:34:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 10:34:46 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 16 11:35:48 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1L1eyn-000208-TE for gctc-ntg-context-518@m.gmane.org; Sun, 16 Nov 2008 11:35:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B35591FCE3; Sun, 16 Nov 2008 11:34:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12488-02-8; Sun, 16 Nov 2008 11:33:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA8261FCC7; Sun, 16 Nov 2008 11:33:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A03CA1FCA2 for ; Sun, 16 Nov 2008 11:32:02 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21378-02-2 for ; Sun, 16 Nov 2008 11:31:15 +0100 (CET) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by ronja.ntg.nl (Postfix) with ESMTP id 7681B1FB38 for ; Sun, 16 Nov 2008 11:31:15 +0100 (CET) Original-Received: by fk-out-0910.google.com with SMTP id 18so2785332fks.2 for ; Sun, 16 Nov 2008 02:31:14 -0800 (PST) Original-Received: by 10.180.250.7 with SMTP id x7mr718727bkh.175.1226831474452; Sun, 16 Nov 2008 02:31:14 -0800 (PST) Original-Received: from kylae (voi38-1-82-233-96-31.fbx.proxad.net [82.233.96.31]) by mx.google.com with ESMTPS id 12sm3055806fks.9.2008.11.16.02.31.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Nov 2008 02:31:13 -0800 (PST) X-Mailer: Claws Mail 3.6.1 (GTK+ 2.14.4; i686-pc-linux-gnu) Jabber-ID: mildred@jabber.fr X-Face: 8GNwq-wp^)-`2h1s$2D@0K.&&@k%qL3Ir->`)a~K?DkicwES"'xM5^NNQ!T_rjM5D\~$^_V Nhor4E,9' List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45623 Archived-At: --===============1083195167== Content-Type: multipart/signed; boundary="Sig_/MT6.IWI1ZKgrq_nXN3572C."; protocol="application/pgp-signature"; micalg=PGP-SHA1 --Sig_/MT6.IWI1ZKgrq_nXN3572C. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 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=3Dcmbx12 scaled\magstep3 % Header \setupheadertexts[\vbox{ \ifodd\pagenumber \hfil{\sc{a Title}}\hfil\hfil\pagenumber\hfil \else \hfil\pagenumber\hfil\hfil{\sc{author}}\hfil \fi \break \vbox{\hfil\hrulefill\hfil} }] % Start front page \eject\nobreak\vfill % Title {\titlefont \centerline{a Title} \vskip 1em } \vfil % Leave some space between % Subtitle {\titlefont\it \centerline{a Subtitle} \vskip 1em } % Stop Front Page \nobreak\vfill\eject \end % ------------------------------------------------------------------ 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? Thanks. Mildred --=20 Mildred Ki'Lya =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80 =EF=BD=8D=EF=BD=89=EF=BD=8C=EF=BD=84=EF=BD=92=EF=BD=85=EF= =BD=84=EF=BC=95=EF=BC=99=EF=BC=93=EF=BC=A0=EF=BD=8F=EF=BD=8E=EF=BD=8C=EF=BD= =89=EF=BD=8E=EF=BD=85=EF=BC=8E=EF=BD=86=EF=BD=92 =E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 Jabber, GoogleTalk: =E2=94=82 Site: GPG ID: 9A7D 2E2B =E2=94=82 Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B --Sig_/MT6.IWI1ZKgrq_nXN3572C. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkf9mkACgkQb52o1pp9LituvQCfa8IF6otid62yMHOJHRYeST50 +XQAnjmO6+22C2I+dW2Pvxit0cP3vLod =N8sH -----END PGP SIGNATURE----- --Sig_/MT6.IWI1ZKgrq_nXN3572C.-- --===============1083195167== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1083195167==--