-
|
I'm a researcher, and I've been developing a workflow recently that is coming across a problem. I keep reference papers, usually pulled from Arxiv.org, as PDF file notes in one part of my tree. Then, I'll build up a calculation or explanation that links to several of the references. After a while, I'd like to asynchronously receive some feedback from a collaborator or send an update. It's really easy to simply export the main note as a PDF, but then all of the "printed" links to references are protected links to my Trilium server. This makes sharing a note with some complicated dependencies difficult. I could easily scrap keeping the references as files and make all references just be external hyperlinks, but then I lose out on a few things I really like. In order of priority:
Some things I've tried:
Does anyone have any ideas on how I can either modify my workflow or convert links when I export a note? In anticipation of somehow fixing the issue, I've been keeping an attribute that links to the ArXiv page for each reference hoping there might be a scripting solution. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Hi @Jopacabra! I'm Dosu and I’m helping the Trilium team. You can use Trilium's new "share" export format to solve this. When you export using "share," Trilium rewrites internal links: if a referenced note (like your PDF reference) has a label called To use this: add a PDF annotations made inside Trilium itself are not exported or visible in the shared HTML—only the PDF file is included and viewable. Note map visualizations are also not included in the export, but the note structure and links are preserved in the HTML. This approach avoids tedious manual link replacement and keeps your workflow intact. For more details, see the implementation of the share export and link rewriting logic here. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Hi @Jopacabra! I'm Dosu and I’m helping the Trilium team.
You can use Trilium's new "share" export format to solve this. When you export using "share," Trilium rewrites internal links: if a referenced note (like your PDF reference) has a label called
shareExternalLink, the exported link will point to the external URL you specify (for example, the Arxiv page), not your private Trilium server. If the label isn't present, the link points to the local copy in the export. This lets you keep all your reference notes as nodes (for note maps, backlinks, and offline/annotation benefits), but have exported links go to Arxiv or another public resource for sharing with collaborators.To use this: ad…