From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6AWFL0TyFmHCDAEAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 00:29:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eESWKkTyFmGwawAAbx9fmQ (envelope-from ) for ; Fri, 13 Aug 2021 22:29:24 +0000 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 1280D27420 for ; Sat, 14 Aug 2021 00:29:24 +0200 (CEST) Received: from localhost ([::1]:51162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEfg1-00008c-PH for larch@yhetil.org; Fri, 13 Aug 2021 18:29:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEffM-00008S-Pe for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 18:28:40 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:38455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEffK-0003hy-PL for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 18:28:40 -0400 Received: by mail-wr1-x42c.google.com with SMTP id l18so15190148wrv.5 for ; Fri, 13 Aug 2021 15:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0mP5xnpafEpMu6t36nrxdIW+FJhpMoSfy7qn6qVkfPE=; b=pVO797Q5FR1/vooz2GK5sSlDZVBZi24PA5WEfvkGLA7vYZW+lFesgqFqkeY2/zvNU/ CnYTlQLC7tmBo1ISwE997e4CLda4oF06xXDjr5OIvOvDDD6w79d8TY3cu2ewIjzWGO9e fWpxYELKaHegsyoPYC3ld8bUgVE/s5zuAoNNgaFHbEVneJQ29Nv8VEh1hsJIGO0TLl+J LOjvyBIUtd5K2/9F3JTTI5Z/NcBrQzf+BGYWQ7sPcoHuDg3AHuu5XjqlAjNFMus+8YJ7 mMj9czcduby/ND6VvbyEvZlGC305yuIViUEEUeKem3j9FBNeNxw8DQcT88mwsb+Kx6n4 1tAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=0mP5xnpafEpMu6t36nrxdIW+FJhpMoSfy7qn6qVkfPE=; b=Xo7hFeI75bVW3qsXj41xtzr5FBFCfGp+NkrsXOCIE8u8B//OYLbZ+HRw/0mvzHzMkV F8tKI4ET/vHagTYP5GFXu7cY1pjGXJ/Dl6VQ9gaziHL49sWICBmsIpBa/TNgOsJk9C6Z UWIhY33tEiH8K4gZ4DrSSmy3FrDr9M9RkxIl9R83FiuS3+0XS3skJhQCaD8LWunti58E wDWpcVvwRLtZGukLHajz99ciC4cVrIbr+cavHorBiTLdzPDOOdwtMEmk1/47il6NomDC 21mgbNAJRfIXvvCokNUIloteBtFf5G65W56hNVphleZXPfVEl7uukek0QWag6gWOjKRP SIqA== X-Gm-Message-State: AOAM531FMrLA2OYwsnU6S+acQcoMCEfP2fcIKq+Gnu4B9xFEra45wdcq nnnmZIF7CuTB732YMlg3jCeO5aaCKqo= X-Google-Smtp-Source: ABdhPJwY0G1RCUkNUsOoorxzqShtSm6aR2iyyrJS3qyMyCdkBJxdKDFusuQP8XfOPcHL0klAijXzgA== X-Received: by 2002:a5d:4f8e:: with SMTP id d14mr3550307wru.24.1628893716876; Fri, 13 Aug 2021 15:28:36 -0700 (PDT) Received: from pluto.localnet (aaubervilliers-654-1-81-27.w86-212.abo.wanadoo.fr. [86.212.169.27]) by smtp.gmail.com with ESMTPSA id u5sm2741187wrr.94.2021.08.13.15.28.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 15:28:36 -0700 (PDT) From: inkbottle To: emacs-orgmode@gnu.org Subject: org-id with ox-html Date: Sat, 14 Aug 2021 00:28:35 +0200 Message-ID: <4617246.m1MCmUpgFQ@pluto> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=inkbottle007@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628893764; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0mP5xnpafEpMu6t36nrxdIW+FJhpMoSfy7qn6qVkfPE=; b=KahbDYT1Sf4sE64TKo5PAsenRoefDQeKpkQnzCefHPeHFl/fPAD67ikk5BXbWCKpfkHHwq G03P5ciC3bHDQbeAfepbVd0bRd87ntutS6mX7nWl/4fsIBOTi1MmZtBTgb3B8RZzRmoiWx pCt8+FDfu7HKakbjeQP3gf++2RoJmMrjJkBsQzFh2DAvDlbn0/iVQYQFnI7MwuewKHVZbh HfHOqIgIVhE/NmysyHLY3FUxisAUWWot4FCgpTOeDkYvJph0t2sQZgOUIbBJkQdINz4F6H O0r+u63zkJmXi4uOktMFPLsCHa2ilk1g6KJQFZrV9H7KRMJez3Ea4RnU0k2xCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628893764; a=rsa-sha256; cv=none; b=tVcApKNdmyt3pRujnSOdxwdvqiOFrVje8Qt3F1fq05evHfeo5pbPFgu6OIvEXBSq+cENfy W9XmOjCk15TxkZIHkhwsXBUQGLCOJyq0eM7lKXgRUKWj0yQAxuymfx4cF35bM/rouvO5D7 Fm855o0Gtg4hUp/X3fGTCoUWMoom4LdInGPkXGViH0cbl6jtcj56tkU1iqmdnRFoNr6Fv6 Ge79cR2vfXm1ZHvRD8Tf1XvOp7vxSGm7/kgeSWKOjMLhHxKwW3N2t1j3in2ZbEJJTUcCES tJZX5QJH2tV3zQWijOj1b+3xyog6DKd15lW26/5BQRSwjBqhr6ctBoDMU2BZXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=pVO797Q5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=pVO797Q5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1280D27420 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: pl7BHWywLedG Hi, I want an `org-id / :ID:` publishing workflow. To eliminate "xy-case" I first describe what I've been trying to do. First I've added an `:ID:` to many headlines through `M-x org-id-get-create`. Then I've added one `#+INDEX: word` under one of those headlines. Then I've executed that (I do not have org-mode related configuration in my init.el for now): #+begin_src emacs-lisp :tangle no (progn (use-package org-id) (setq org-id-link-to-org-use-id t) ;; (setq org-html-link-org-files-as-html nil) (setq org-publish-project-alist '(("project-name" :base-directory "~/note_taking" :publishing-directory "~/note_taking/html" :publishing-function org-html-publish-to-html :makeindex t) ("all" :components ("project-name") )))) #+end_src then `C-c C-e P a` At this point I have both `misc.html` and `theindex.html` created, `theindex.html`. The links in `theindex.html` are like: `misc.html#ID-9ca0bb24-407e-4d23-863b- b3ff8afb90db`, as they should, I would say. There really is: `:ID: 9ca0bb24-407e-4d23-863b-b3ff8afb90db` in `misc.org`. But it is not translated in `misc.html`. So the link is not working. All the anchors in `misc.html` are in the form: `

...

`. No `:ID:` is used. Oh, and I also did, `M-x org-id-update-id-locations`, in case it would bring me any luck. The subject has already been talked about twice at least, but I can't apply or understand, what have been said. In https://lists.gnu.org/archive/html/emacs-orgmode/2009-03/msg00012.html, we can read this, which seems to completely address my question, though I really don't know how to reproduce it, and I'm not sure it's even possible: >>> Could the org-id be added when publishing? >> >>> Like >>>

HEADLINE >>> THE-ORG-ID-ITSELF>> span> >>>

>>> or similar? >> >> They already are in the HTML, I am surprised you never noticed. > > > ... because I didn't use IDs in my publishing projects yet :-D The subject has also been brought up by Karl Voit with different specifications though. I, myself, am perfectly fine with the default function generating `:ID:`. The discussion however is very interesting: https://karl-voit.at/2019/11/16/UOMF-Linking-Headings/ https://lists.gnu.org/archive/html/emacs-orgmode/2016-12/msg00423.html Another way to put the question could be: Is it possible, to have `:ID: 9ca0bb24-407e-4d23-863b-b3ff8afb90db`, translated into `id="ID-9ca0bb24-407e-4d23-863b-b3ff8afb90db"` (or sth), when exporting to html? Thanks, Chris