Is there a way to strip out org “id” links from an org file when exporting to latex/pdf? Ideally, I would love to be able to write a long-form document in org-roam and link relevant terms for myself, but then export this document to pdf/latex without these links.
Org-export has a pre-processing hook. I believe you can write a script to remove ID links there.
Don’t worry much about keeping your original notes buffer intact when you write such a script. Org-export copies the whole buffer into a temporary buffer — I think the pre-processor works on the copy not the original so you can be crude and ruthless about removing elements you don’t need for export (Of course, please test this on your end).
Thank you! That sounds like it will do the trick!
I was looking for a solution for this exact question. Have you made a solution/function that allows you to do this? Also, how did you handle the cases where the ids are links to “normal titles”/headings, and not nodes?
Unfortunately, @Cletip, I didn’t end up writing a function for this. I asked this after this project was completed and haven’t needed this functionality, since.
No problem, thanks anyway