From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39464 Path: news.gmane.org!not-for-mail From: jazz_johnson@verizon.net Newsgroups: gmane.comp.tex.context Subject: newbie ConTeXt question Date: Tue, 11 Mar 2008 15:52:41 -0500 Message-ID: <200803111652.42119.jazz_johnson@verizon.net> Reply-To: jazz_johnson@verizon.net, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205269083 19797 80.91.229.12 (11 Mar 2008 20:58:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 20:58:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 11 21:58:30 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 1JZBWL-0001vi-3P for gctc-ntg-context-518@m.gmane.org; Tue, 11 Mar 2008 21:56:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 783F01FD5E; Tue, 11 Mar 2008 21:55:38 +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 19136-03; Tue, 11 Mar 2008 21:54:55 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A841D1FCF4; Tue, 11 Mar 2008 21:54:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE0C81FCF4 for ; Tue, 11 Mar 2008 21:54:53 +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 19320-02-20 for ; Tue, 11 Mar 2008 21:54:19 +0100 (CET) Original-Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by ronja.ntg.nl (Postfix) with ESMTP id 499301FCDB for ; Tue, 11 Mar 2008 21:54:19 +0100 (CET) Original-Received: from axp.acjlaw.net ([71.241.19.117]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JXL0088Z3J7FDO3@vms040.mailsrvcs.net> for ntg-context@ntg.nl; Tue, 11 Mar 2008 15:57:08 -0500 (CDT) Content-disposition: inline User-Agent: KMail/1.9.9 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users 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:39464 Archived-At: Hi: I'm trying to setup a simple (for now) letterhead like the following. Is there a way to automatically adjust the horizontal spacing between the \vbox{} \cbox{} \lbox{} so that if I change the document margins, the center box is automatically centered? I've tried putting in \hfill's without luck. \startenvironment \setuppapersize[letter][letter] \setuplayout[height=9in, header=1.0in, footer=0in, topspace=1in, backspace=1.33in, %the backspace includes the margin location=middle,marking=on] \setuppagenumbering [alternative=singlesided] \noheaderandfooterlines \setupbodyfont[cmr,12pt] \usesymbols[mvs] \setupsymbolset[martinvogel 2] \def\MyLetterhead% {%\showboxes \vbox{%\showboxes \hbox{%\showboxes \vbox{\hsize 3in \tfa Your neighborhood\crlf \scd{Company Store}} \lbox{\hsize 3.0in \txx \setupinterlinespace \it Our Friendly Motto} } \setupinterlinespace[line=.25ex] \hbox{ \vbox{ \setupinterlinespace[height=.5,top=.5,line=.1ex] \hsize 6.0in \thinrules[n=1, rulethickness=1.5pt] \crlf \thinrules[n=1, rulethickness=0.7pt]} } \hbox{ \tfx \setupinterlinespace[reset,medium] \vbox{ \hsize 1.5in \it www.mydomain.net\crlf email@mydomain.net\crlf contact@mydomain.net} \cbox{ \hsize 2.3in \symbol[star]~Va~\symbol[star]~Md~\symbol[star] \crlf \symbol[Telephone] (555)123-4567 \crlf \symbol[Faxmachine] (555)987-6543} \lbox{ \hsize 2.0in 1234 Main St.\crlf P.O. Box 123\crlf City, State 12345} } } \setupinterlinespace[reset] } \definelogo[Mylogo] [header] [left] [command=\MyLetterhead, state=stop] \stopenvironment ___________________________________________________________________________________ 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 ___________________________________________________________________________________