From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EHB/D0r6S2TIjgAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 18:54:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IHZGD0r6S2RoJwEAauVa8A (envelope-from ) for ; Fri, 28 Apr 2023 18:54:34 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 172EF3D4DC for ; Fri, 28 Apr 2023 18:54:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psPjA-00019G-EZ; Fri, 28 Apr 2023 11:09:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psPj8-00017X-I2 for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 11:09:38 -0400 Received: from mx0b-00008201.pphosted.com ([148.163.141.125]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psPj2-0003FG-Ry for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 11:09:37 -0400 Received: from pps.filterd (m0158179.ppops.net [127.0.0.1]) by mx0b-00008201.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33SDJIuV013249 for ; Fri, 28 Apr 2023 11:09:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bnl.gov; h=from : to : subject : date : message-id : mime-version : content-type; s=20181017-00; bh=+QM1YflhFEPQooyrDqQWzmUimdeOnab2td8FxrPuT6Q=; b=StPshCAcUcJcSuFpR3cvGzf88I22mGG6vJ6f7j73jZHRMvllhLprdVydloURmM4quluW ORpYN+Ms8XdCW5heyzSsuH0KG8w6tBBvrl3sweG1kOfBJjO/Pcu2nOfP4RCx2/ZZ3djX LC3ZALjxKMHqyIILi98dPU35qp5I9ryVzFRV2/+6D+G1Fi0a1lMfCOM8xowYq9mG07VW fouARt1PkiwDoXLkOzXwM8F+F29r2LYNteYWLvYVX+Jooi4eDRgaKcaEmW9BZ8gbxLfB 8H9XrL6z4SGEDNVr/b8UTN1iM/Lk3qT23K8nrtDSmnW7oythZBo4Kg/65ntLSV7jrkYm Cg== Received: from smtpout4.bnl.gov (smtpgw.bnl.gov [130.199.3.132]) by mx0b-00008201.pphosted.com (PPS) with ESMTPS id 3q7tkc3fke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Apr 2023 11:09:24 -0400 Received: from hierocles (hierocles.phy.bnl.gov [130.199.22.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtpout4 (Postfix) with ESMTPS id 6D640200CBEE0 for ; Fri, 28 Apr 2023 11:09:24 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=haiku) by hierocles with esmtp (Exim 4.94.2) (envelope-from ) id 1psPlV-0027tB-Qb for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 11:12:05 -0400 From: Brett Viren To: emacs-orgmode@gnu.org Subject: Dealing with inter-org links vs #+include User-Mail-Address: bv@bnl.gov Date: Fri, 28 Apr 2023 11:09:23 -0400 Message-ID: <87ttx0cacc.fsf@bnl.gov> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Proofpoint-ORIG-GUID: 4p2IYZ-5yyqWRAvs4wN6zcjVFFzf17CL X-Proofpoint-GUID: 4p2IYZ-5yyqWRAvs4wN6zcjVFFzf17CL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-28_04,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 lowpriorityscore=0 suspectscore=0 adultscore=0 phishscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 spamscore=0 mlxlogscore=580 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304280121 Received-SPF: pass client-ip=148.163.141.125; envelope-from=bv@bnl.gov; helo=mx0b-00008201.pphosted.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.171, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_GOV_DKIM_AU=-0.638, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682700874; a=rsa-sha256; cv=none; b=g9xx58P1ftXT7eqTsmnvvkvapKdEFHD5XRXmiaOqr+mZddJwg60IjeBYAmIJlMMetaCk6h m6MTII6M1iAtKzNm8dAE+jSqSdDtkBeN5SWkStSgiY34LGnNqkNcY8fIdqZsYCc/Z0laaj LxFMr0fLTki9mAfEPq/FEN3yyQqFtkVoDhPE31aZzETVaF5cN6N3F2KC2fC5vJ8jOrC9Ls u2tm8t0qF3V8fBOm/XlxVg1M0a8qp+qPqGHvnh3l6yUMWhSYofr6010mOXNvEXZ/B8qOD5 a9ewx0wg2Ip+hU/QegjcxD5upZI+yRxo4Xq+B2GiOwKUV1fzgfiwp5jF3j8VEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bnl.gov header.s=20181017-00 header.b=StPshCAc; dmarc=pass (policy=reject) header.from=bnl.gov; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682700874; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+QM1YflhFEPQooyrDqQWzmUimdeOnab2td8FxrPuT6Q=; b=kCl3JWOJkdCLf1bp59zydt3e6mV22/xbJYAvETFkKjkyqiV+oK8KbwssO8+/lXPho3j25h 8rjvgRTCR+7jnM+KGWntc1k4sSSCsxP488pV9aYZCl/khyGG93HkAhmvV3evgHDb3d0gXe TuvMh9mtmo0HWMdM4SBV2pzyw44155F8FScgn39gMRpPn2p9/uZ37fB0SKpCUoL8e1y8Ta 8KZ367TEgAsyUwSvnY0Sdk1Voiuu4qF+mxXu43Uap8JmFQqr9/KOXET5zFYnSFg74WFVOo 8CNgLULqUSdGCKPB0LK1d7Mm4BLaHI7tET9m6CqO4PB/x6MCwk6/O0vHV6DTlw== X-Migadu-Spam-Score: -10.80 X-Spam-Score: -10.80 X-Migadu-Queue-Id: 172EF3D4DC X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bnl.gov header.s=20181017-00 header.b=StPshCAc; dmarc=pass (policy=reject) header.from=bnl.gov; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: eZu7nFICAyKA --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I want what may be two conflicting things: =2D Produce a monolithic HTML export of an main org file that #+include:'s other org files. =2D Have links in the other org files that are valid both when the monolith is exported to HTML and when visiting the individual org files in Emacs. Below is a simple test. The "main.org" includes "a.org" and "b.org". The "b.org" has two types of links. The link: [[A][A by headline only]] is valid in the HTML export of "main.org" but it is not valid for Emacs visiting b.org (C-c C-o gives "No match - create this as a new heading?"). And then vice versa for the link: [[file:a.org::*A][A by file with headline]] I can follow that link in Emacs but it renders to an with "a.html#MissingReference". And export fails outright if I do not include #+options: broken-links:t Is there a way I can have my cake and eat it too? That is, how can I make a link between "sub" org files that can be followed by Emacs and also that produces a valid HTML link when the main.org is exported? Thanks! =2DBrett. $ ls *.org a.org b.org main.org $ for n in *.org echo "=3D=3D=3D $n =3D=3D=3D" cat $n end =3D=3D=3D a.org =3D=3D=3D * A This is A. =3D=3D=3D b.org =3D=3D=3D * B This is B. Links: =2D [[file:a.org::*A][A by file with headline]]. =2D [[A][A by headline only]]. =20=20 =3D=3D=3D main.org =3D=3D=3D #+title: Main #+options: broken-links:t * Main This is main. * Includes #+include: a.org #+include: b.org * Links =2D A :: [[file:a.org]] =2D B :: [[file:b.org]] --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCgApFiEE835fZzlNNZJdN+5mWwBx4JelG0cFAmRL4aMLHGJ2QGJubC5n b3YACgkQWwBx4JelG0ebUQ/7BV9nHcIDrLZWjrRFRhrQJetBg+ZCRbpd3xdO/RZZ +fxkKConRU+kgmcFmZiUSzRrQKsZbOERF7mq85410bHUbnMmNCcAQp2roUaRIg/6 K4W708uTDtcZOx+o6QTnlTNediQFB1oL+deUW31gyd3k11obRWpgVi/RHMF0SVr+ 8DqFtcdRi3JRKO7x5qTZknQHBhJnMk/6fPAn8Oqp2JWt9GKeSj91/A7vcfmmfgmf hfrA8DqBNw3gprCGTq3Df5Dp78Oi3QYlfohxifY5bSj+Ef8coMpqHwtR8ZP8kWIh FahWc5gF0RHGVoE0tlhIEXs8bbg76/+8K7IWBIliRQYGowMel5H//LxGeErCfEni aJ8fNyBNl3h0kogu5OCUs2sPxKH6gW1l2H4sNYTow4fIbWDQugviyhG71NuDVzrj wws+sQuuy49LtWuq/Q9PHIkRFu4JrzRBEen0GYOmCtj4BCZNk+N/ONACxRh5Acen T8qsZw5Dy+bUOx5Wx8piVC5JAuWbf39YiuD/lVB6QYQAxSQrbDSYTA5yPo7OyNfk kYmtCg+feWcf1TnOovFpiQgdABv+vpFI26QeUaCVub7qV+lXecCUdIC68SHweDiq OPVtqVvuJvyKDL8FnR5TTENmVs9X334DCFUgb3Cq29WGGKK9hzutyEyeR4X6nejl Jpg= =4n8G -----END PGP SIGNATURE----- --=-=-=--