如何在 org-mode 中链接到单独页面的一部分并将其链接到 html 中?例如,如果在文件 file.org 中,我有一个 X 部分的标签:
** Section X
#+LABEL: sec:X
[[sec:X][section X]]我可以在 file.org中参考本节。[[file:file.org][link to file.html]]我可以从外部文档链接到 file.org (并且在发布时会自动链接到相应的 html 文件)。但在本文档之外,我不能将第 X 节称为[[file:file.org#sec:X][link to section X of file.html]]因为节标签已转换为数字(例如,sec-3_1)。因此,我必须将其链接为[[file:file.html#sec-3_1][link to section X of file.html]],但假设我知道sec:X标签将转换为sec-3_1...
(我正在使用用于org-publish-project转换的默认函数。)