From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55920 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: overlay at given position: help needed Date: Thu, 4 Feb 2010 23:11:33 +0100 Message-ID: <20100204221133.GA30490@gaston.couberia.bzh> Reply-To: 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 1265321522 10735 80.91.229.12 (4 Feb 2010 22:12:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 22:12:02 +0000 (UTC) To: ConTeXt list Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 04 23:11:59 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nd9vZ-0002ms-RP for gctc-ntg-context-518@m.gmane.org; Thu, 04 Feb 2010 23:11:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E07BC9C4F; Thu, 4 Feb 2010 23:13:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yQ1HAwAiw26W; Thu, 4 Feb 2010 23:13:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67C4EC9BFF; Thu, 4 Feb 2010 23:12:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9922CC9BFF for ; Thu, 4 Feb 2010 23:12:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EjVD9eDA0p2n for ; Thu, 4 Feb 2010 23:12:50 +0100 (CET) Original-Received: from smtp19.orange.fr (smtp19.orange.fr [80.12.242.17]) by balder.ntg.nl (Postfix) with ESMTP id EEB04C9BA3 for ; Thu, 4 Feb 2010 23:12:48 +0100 (CET) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1914.orange.fr (SMTP Server) with ESMTP id 8611E20001D4 for ; Thu, 4 Feb 2010 23:11:34 +0100 (CET) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1914.orange.fr (SMTP Server) with ESMTP id 6F6F520001F4 for ; Thu, 4 Feb 2010 23:11:34 +0100 (CET) Original-Received: from gaston.couberia.bzh (ARennes-551-1-39-69.w86-210.abo.wanadoo.fr [86.210.106.69]) by mwinf1914.orange.fr (SMTP Server) with ESMTP id 32EEE20001D4 for ; Thu, 4 Feb 2010 23:11:34 +0100 (CET) X-ME-UUID: 20100204221134208.32EEE20001D4@mwinf1914.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id AAD6A309AB; Thu, 4 Feb 2010 23:11:33 +0100 (CET) Mail-Followup-To: ConTeXt list Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55920 Archived-At: Hello, Below is a test file, to show a bit what I'm looking for: a background-image behind a text-area at a given position relative to the center of this area. I'm not yet satisfied with the result. Here my questions: 1.) Is \startframedtext a good choice for placing the background, or is there something better? 2.) Is \framed[loffset=..., toffset=...]{} a good choice for specifying the position, or is there something better? 3.) When "left=1", why is the image completely outside the frame and not only 50%? 4.) How do I make a step between text and background according to http://wiki.contextgarden.net/Presentation_effects ? I would like to show first the text, and after a mouse-click the background image. Thanks in advance for any help! Cheers, Peter The test-file: % Begins a text-area with a background-image: \def\startBGimg[#1]{% \getparameters[BGimg][top=0, left=0, width=2cm, #1]% \start \newdimen\TopOffset \newdimen\LeftOffset \setupframedtexts[before=, after=] \defineoverlay[myBG][{% \TopOffset=\overlayheight \LeftOffset=\overlaywidth \TopOffset=\BGimgtop\TopOffset \LeftOffset=\BGimgleft\LeftOffset \framed[frame=on, width=\overlaywidth, height=\overlayheight, offset=overlay, toffset=\TopOffset, loffset=\LeftOffset]{% \externalfigure[\BGimgimg][width=\BGimgwidth]}}] \startframedtext[background=myBG, frame=off, offset=overlay, width=\textwidth]} % Stops the text-area with a background-image: \def\stopBGimg{\stopframedtext\stop} \starttext \startBGimg[img=hacker.jpg, top=-1, left=-1] \input tufte \stopBGimg \startBGimg[img=hacker.jpg, top=-1, left=1] \input tufte \stopBGimg \startBGimg[img=hacker.jpg, top=1, left=-1] \input tufte \stopBGimg \startBGimg[img=hacker.jpg, top=1, left=1] \input tufte \stopBGimg \stoptext -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________