From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12456 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: destinations in PDF Date: Thu, 12 Jun 2003 12:34:43 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <919722980.20030612123443@iol.it> References: <3EE83C47.8040703@arcor.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1055485259 20443 80.91.224.249 (13 Jun 2003 06:20:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2003 06:20:59 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Jun 13 08:20:56 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 19Qhvg-0005JO-00 for ; Fri, 13 Jun 2003 08:20:52 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4427C10B36; Fri, 13 Jun 2003 08:23:27 +0200 (MEST) Original-Received: from smtp0.libero.it (smtp0.libero.it [193.70.192.33]) by ref.ntg.nl (Postfix) with ESMTP id 8CC4D10AF1 for ; Fri, 13 Jun 2003 08:19:22 +0200 (MEST) Original-Received: from OBLOMOV (151.29.142.105) by smtp0.libero.it (7.0.012) id 3ECC83C4007556DC for ntg-context@ntg.nl; Fri, 13 Jun 2003 08:19:22 +0200 X-Mailer: The Bat! (v1.63 Beta/7) X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <3EE83C47.8040703@arcor.de> 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:12456 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12456 Thursday, June 12, 2003 Peter Rolf wrote: PR> An example to make it clear... PR> You have made a PDF document with bookmarks, the focus is set to width PR> for good readability. Now you press a bookmark for a section and Acroreader PR> opens the correct page. But hey, where is the section? If it starts at the PR> lower quarter of the page, it isn't visible at all. Welcome to the world of PDF vs TeX :) The reason of the problem: TeX puts the reference mark for the current line on the baseline; when a PDF reference is set that refers to a particular point of the page (e.g. a Rectangle reference, or an XYZ one), this means that the current *baseline* will end up on the top of the screen, therefore hiding the actual line. One would therefore have to put the reference mark not where TeX wants to put it, but at + (where the height added would be "enough to show the text we *really* want to refer to.) The problem is: how to determine the appropriate height? For normal text, this would be the current lineheight, for example (plus a baseline skip so that the line does not coincide *precisely* with the monitor border, and there's some extra margin). For section heads, it would be the whole sectionhead height. For floats, it would be the float height. In general, for all ConTeXt objects we would need a "put reference mark here" command; if the object is then made into a reference, it should be put there. (When no such mark is defined, it should default to + ) Hans, this is a core thing, isn't it? Oh, and yes we need to add "rectangle" references :) -- Giuseppe "Oblomov" Bilotta