I am using org files to organize my research projects. I am using org both on Linux and Windows. While I am exporting org files to LaTeX or Beamer, a link to a local file on Windows starts with
[[C:\Users\MYSELF\Document\org...][Text]], whereas a link to a same synced local file on Linux starts with
I thought that
#+MACRO: docs_path system_specific_docs_heading can do the job but it expands only on specific locations and not replacing this in links. I tried and write a function hooking on
rg-export-filter-latex-fragment-functions but it did not replace strings in the link definitions either.
I am wondering if there is an efficient way to make these change in the link definitions automatically when I am exporting to the LaTeX/Beamer.