From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50324 Path: news.gmane.org!not-for-mail From: Jin-Hwan Cho Newsgroups: gmane.comp.tex.context Subject: Re: XeConTeXt bug report III: Wrong hyperlink Date: Tue, 12 May 2009 15:33:27 +0900 Message-ID: <349CB3E3-0889-43FA-BC5E-EA35B7D07EFA@gmail.com> References: <68bfdc900905112200s62c8ccc7j287265940bb6e60f@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242128930 30919 80.91.229.12 (12 May 2009 11:48:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 11:48:50 +0000 (UTC) Cc: mailing list for ConTeXt users , Jonathan Kew To: Yue Wang Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 13:48:40 2009 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 1M3qTN-00078y-3g for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 13:48:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E0EB1FE30; Tue, 12 May 2009 13:48:36 +0200 (CEST) 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 19997-01-2; Tue, 12 May 2009 13:47:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CAB0D1FF1F; Tue, 12 May 2009 13:45:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FE4B1FEC6 for ; Tue, 12 May 2009 08:33:44 +0200 (CEST) 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 26883-01 for ; Tue, 12 May 2009 08:33:34 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id E3FDF1FEC8 for ; Tue, 12 May 2009 08:33:33 +0200 (CEST) Original-Received: from mail-qy0-f103.google.com (mail-qy0-f103.google.com [209.85.221.103]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4C6XT2N001779 for ; Tue, 12 May 2009 08:33:30 +0200 Original-Received: by qyk1 with SMTP id 1so4805330qyk.16 for ; Mon, 11 May 2009 23:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=V6cYxR4wHqsSAs1xpMHtertZyIqhbFTOCAeCCKpcFBM=; b=qulQdMBf75WnchfXO+KQkRceaj0xAHMdYEv+rbgoAGruuLW6cKYYo4TEZ7t7ASHGcx vLcndkhOGHKznk6RLrwuiYdtWFGa3FRlSKp0i5dHq1MUZKicvO/H5X/VnALKl0BQdl4j r1CU0J7USSQ3DyecByNiWP+g0Dx6mO16INn20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=cHrbG0nqgGMLIet7kFYKEy3uiIprpEdSwx7XFyt9ezgAaWJzacprIo4/xTppA56OLy OtvKyNRPG1pMeyKYSDQ33A4UszU5EMo+t6Lrjyacj0qZQupISaiJHQXRQQabuEHONu3m BgTtwRY0tgVrYfsOqMw8Nnl4hGApuo3SmQwJc= Original-Received: by 10.220.76.144 with SMTP id c16mr12181958vck.17.1242110009144; Mon, 11 May 2009 23:33:29 -0700 (PDT) Original-Received: from ?192.168.123.182? (eagleheights-119-192.resnet.wisc.edu [146.151.119.192]) by mx.google.com with ESMTPS id 33sm1723830yxr.22.2009.05.11.23.33.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 23:33:28 -0700 (PDT) In-Reply-To: <68bfdc900905112200s62c8ccc7j287265940bb6e60f@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.221.103; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 223537405 - dc21ba7519c2 - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Tue, 12 May 2009 13:45:15 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:50324 Archived-At: On May 12, 2009, at 2:00 PM, Yue Wang wrote: > Hi, Hans and Jin-Hwan: > > When using ConTeXt to produce my documents, I found that all > hyperlinks are wrong. And here is a simple test. > > The tex and pdf files are attached in the mail. The problem will > happen when: > 1) using pdftex to produce the dvi, and use dvipdfmx to convert the > dvi to pdf. > 2) using xetex to produce xdv, and xdvipdfmx that xdv to pdf. > > Open the file in Acrobat Reader, Go to page three, and you can see a > hyperlink text "Equation 1", it links to page 2. however, the equation > is in page1. > > The "section 1" or "page 4" should point to page 4, but it point to > page 5 now. > > So my question: > - As far as I know, dvipdfmx's ConTeXt support was written by > Jin-Hwan. and the hyperlink code is written by Hans. Surely at least > one of the two source code files has a cross-ref bug. But I don't know > which. Can the bug be fixed? It's not a BUG in a strict sense. The driver file spec-dpx.tex (included in texlive 2008) just give \special{pdf:names /Dests (#1) [@thispage \PDFpageviewwrd]} in the 463th line for \doPDFdestination. However, \PDFpageviewwrd is defined in the 1666th line of spec-fdf.tex. Here, generated is "/XYZ 0 0 0". PDF Reference 1.7 (p.582) says that > "/XYZ left top zoom" displays the page designated by page, with the coordinates > (left, top) positioned at the upper-left corner of the window and the contents of > the page magnified by the factor zoom. So "/XYZ 0 0 0" means that the coordinates (0,0) of the page will be positioned at the upper-left corner of the window. But what is (0,0)? It is not the upper-left corner of the page, but the lower-left corner of the page. Therefore, it looks the next page is displayed. Hans already gave a comment at the 1656th line of spec-fdf.tex as > \def\PDFpagexyzspec{0 0 0} % hack, pdftex does handle this I think that the value of the paperheight is better than 0 for "top" value. Best regards, ChoF. ___________________________________________________________________________________ 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 ___________________________________________________________________________________