From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12541 Path: main.gmane.org!not-for-mail From: "Willi Egger" Newsgroups: gmane.comp.tex.context Subject: Re: some questions about logo and margin background. Date: Thu, 19 Jun 2003 14:24:56 +0200 Organization: BOEDE Sender: ntg-context-admin@ntg.nl Message-ID: <003501c3365d$d71c9960$0100a8c0@vademecum> References: <3EF19A75.7000303@phys.sinica.edu.tw> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_002F_01C3366E.8F1B9D80" X-Trace: main.gmane.org 1056025775 28113 80.91.224.249 (19 Jun 2003 12:29:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 12:29:35 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Jun 19 14:29:33 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SyXl-0007JJ-00 for ; Thu, 19 Jun 2003 14:29:33 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5EEE410B3A; Thu, 19 Jun 2003 14:29:34 +0200 (MEST) Original-Received: from smtpzilla5.xs4all.nl (smtpzilla5.xs4all.nl [194.109.127.141]) by ref.ntg.nl (Postfix) with ESMTP id AB18710B28 for ; Thu, 19 Jun 2003 14:25:17 +0200 (MEST) Original-Received: from vademecum (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtpzilla5.xs4all.nl (8.12.9/8.12.9) with SMTP id h5JCPGfq001369 for ; Thu, 19 Jun 2003 14:25:17 +0200 (CEST) Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12541 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12541 This is a multi-part message in MIME format. ------=_NextPart_000_002F_01C3366E.8F1B9D80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit From: "lihb" \usemodule[pre-general] > > \setuppapersize > [S6][S6] > > \setuplayout > [width=fit, > height=fit, > header=32pt, > footer=32pt, backspace=3cm] > > \setupfootertexts[\bf\ss{test}][\bf\ss{\date}] > > \def\RedHatLogo% {\externalfigure[shadowman-32.png][height=32pt,type=png]} > > \definelogo > [small logo] [footer] [middle] [state=start,command={\RedHatLogo}] The option middle does not work. I tested all the [footer] locations, but middle does not show even if the \setupfootertext is commented > \starttext > \chapter{test} > %\placelogos[small logo] You do not need to put \placelogos[]. Any logo defined with state=start will be printed on each page. > > \stoptext As far as I know Pdftex does not support png-files with colors. So please test your presentation with a black and white figure. It might help to get the layout of your page correct to place the command \showframe after \starttext > 2nd question: change the background of margin > I have a rightmargin with > > \startuniqueMPgraphic{test} > picture p ; p := btex TEST etex rotated 90 ; > setbounds p to boundingbox p enlarged 1pt ; > draw p withcolor 0.8white ; > currentpicture := currentpicture > xysized (\overlaywidth,\overlayheight) ; > \stopuniqueMPgraphic > \defineoverlay[test][\uniqueMPgraphic{test}] > > \setupbackgrounds > [text] > [rightmargin] > [background=test] > > which is a word "TEST" with grey color and white background, > how to change the background color? > I had try 'fill p withcolor darkcyan ;' > but the background of margin is still white. I am no wizzard with Metapost. However you might try to save the boundingbox information into a new path and fill this path with a color. Colors have to be defined in the preamble. So you will have to tell Metapost what you mean with 'darkcyan'. Willi ------=_NextPart_000_002F_01C3366E.8F1B9D80 Content-Type: application/octet-stream; name="logo.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="logo.tex" \setupoutput[pdftex] \usemodule[pre-general] \setuppapersize [S6][S6] \setuplayout [width=fit, height=fit, header=32pt, footer=32pt, backspace=3cm] \setupfootertexts[\bf\ss{test}][\bf\ss{\date}] \def\RedHatLogo% {\externalfigure[boedelogo.png][height=30pt]}%[type=png] \definelogo [small logo-lm] [footer] [leftmargin] [state=start,command={\RedHatLogo}] \definelogo [small logo-l] [footer] [left] [state=start,command={\RedHatLogo}] \definelogo [small logo-mi] [footer] [middle] [state=start,command={\RedHatLogo}] \definelogo [small logo-r] [footer] [right] [state=start,command={\RedHatLogo}] \definelogo [small logo-rm] [footer] [rightmargin] [state=start,command={\RedHatLogo}] \starttext \showframe \chapter{test} %\placelogos[small logo] \stoptext ------=_NextPart_000_002F_01C3366E.8F1B9D80--