From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23277 invoked from network); 20 Jul 2023 14:29:04 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 20 Jul 2023 14:29:04 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9EB59482947 for ; Thu, 20 Jul 2023 16:27:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PNArO5renvbA for ; Thu, 20 Jul 2023 16:27:20 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 1A22D482B02 for ; Thu, 20 Jul 2023 16:26:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8FBB74828BA for ; Thu, 20 Jul 2023 16:26:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e_nc0gZZ53YI for ; Thu, 20 Jul 2023 16:26:07 +0200 (CEST) Received: from mail.flump.de (flump.de [185.163.118.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 4F5104828AE for ; Thu, 20 Jul 2023 16:26:07 +0200 (CEST) Received: from falbala.localnet (ip4d167a73.dynamic.kabel-deutschland.de [77.22.122.115]) by mail.flump.de (Postfix) with ESMTPSA id 40D3B8C02AE for ; Thu, 20 Jul 2023 16:26:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=flump.de; s=mail; t=1689863163; bh=NNn3cImWhEQmK4s9JO2KHitvZG0O8UDWOSAt1ebQdwo=; h=From:To:Subject:Date; b=d4bH8KKcVabIn5mHW4mvOSo9tKrI8tAWFu1rH3baVMxBD+A603BnDFxZBogNaQbR0 FMfwU+drziMvW7Y9RPfTTQHLD/hZGO2BQ0vGczkuzkJPL2pz7SkZ5p76rbooaTgcR3 CSIuAuvhJuS32sHYNfm7SKbv8WO7uQamByC7VU4M= From: Gerion Entrup To: ntg-context@ntg.nl Date: Thu, 20 Jul 2023 16:25:59 +0200 Message-ID: <2292700.ElGaqSPkdT@falbala> MIME-Version: 1.0 Message-ID-Hash: 7MDO6S6WHCYH6VFWLQGJI7E5DUHX4VZF X-Message-ID-Hash: 7MDO6S6WHCYH6VFWLQGJI7E5DUHX4VZF X-MailFrom: gerion.entrup@flump.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Link from a PDF to a reference of an embedded PDF List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7080216505906761198==" --===============7080216505906761198== Content-Type: multipart/signed; boundary="nextPart4820436.GXAFRqVoOG"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart4820436.GXAFRqVoOG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Gerion Entrup To: ntg-context@ntg.nl Subject: Link from a PDF to a reference of an embedded PDF Date: Thu, 20 Jul 2023 16:25:59 +0200 Message-ID: <2292700.ElGaqSPkdT@falbala> MIME-Version: 1.0 Hi, I found the "interaction" parameter in the documentation for setupexternalfigure/externalfigure [1]. I, however do not quite understand it. When embedding another PDF with this command, it seems to be possible to include the references of the underlying PDF. It is possible to link to them within the main context document? In [2], I found something maybe related but it requires a tuc file. Example: inner.tex: ``` \starttext \startsection[title=References, reference=sec:ref] Some text \placeformula[eq:foo] \startformula 1 + 2 = 3 \stopformula or: \startitemize[n] \item[item:bla] bla \item[item:blub] blub \stopitemize Find all references \in[sec:ref], \in[eq:foo], \in[item:bla], \in[item:blub]. \stoptext ``` outer.tex: ``` \starttext \externalfigure[inner.pdf][width=10cm, interactive=reference] Find all references \in[sec:ref], \in[eq:foo], \in[item:bla], \in[item:blub]. \stoptext ``` Can I somehow access the references of inner.tex from outer.tex? For me, it is not that relevant, that the correct number is set, but the interaction within the outer PDF should work, so clicking on the reference should scroll to the correct content. Background of my question: I normally do graphics in a separate PDFs. Some graphics consists of source code together with a graphical representation and I want to be able to link to single source code lines. Gerion [1] https://wiki.contextgarden.net/Command/setupexternalfigure [2] https://wiki.contextgarden.net/References#References_to_an_external_file --nextPart4820436.GXAFRqVoOG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEM/tVN9WpYYHnPZHxloeAdSYJHeoFAmS5Q/cACgkQloeAdSYJ HeqgWAwAsco77IGa0Vt4SYr7tNsgQG0+VzrzIc/xvIF21z5nWRPvkoXFPhSj5Nk9 EEulrp0G6Y0bmFyURJtVQwOliuYzGKd5Ax841tstvFICZVMOIF1HYLw1d4umlzFk 65JAWWYlXUH2ExrUt4bsazpPe6XgWIr69Drb7X5ZvMjj0Nst3Ee20C43n6bXbfMK ktKTbghhICT/7WsgkF6mTUawEPBw+zuxj7x766R+G+bInaIzPknVujMa2WO35tcQ 8FJOPaLq1lhjYg05SMa5g5hp0I8DqOMhSUdjPiQSmbejrVLeQ13W8welba5FNm1v fzoMCy1W76HGBqciAJUqb35ylPh7IBd0BzHdSDbFTCxnrTSCjofPbK/zKTlpgGOi oO/PO+XUhZAlyYwkrdQFoAVQ2AnuDzxagp87zhY1VwpRpxVtqpRzqPF1xUMEqpf6 +mwbWTG+zByuJzyYu6yD3/Md7Oz2dqCJ5pT9SAHhnzOq1jZnUY8wmgkTzIyG684C L2u3UdSG =cW0I -----END PGP SIGNATURE----- --nextPart4820436.GXAFRqVoOG-- --===============7080216505906761198== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ --===============7080216505906761198==--