3

联用 Zotero 和 orgmode

 1 year ago
source link: https://hsingko.github.io/post/2022/07/04/zotero-and-orgmode/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

联用 Zotero 和 orgmode

2022-07-04 · 1 分钟 · hsingko

用 Zotero 已经半年多了,毕业多年已经不需要用它来写论文,但是它的好处是可以保存平时浏览的网页,避免它被 404 。最近国内新闻的节目效果那么好,丢失这些宝贵的资料实在是非常可惜。Zotero 就像是一个本地的时光机,能将网络上看到的一切都保存下来。

在安装好 Zotero 和相应的浏览器插件 Zotero-connector,这样就能随时在想要保存的网页上右键保存了。但是想要在其他笔记软件引用 zotero 条目就不那么容易,比如 emacs, obsidian 或者 logseq 。

还好前人们已经帮我们解决了问题,在参考了下面这两篇文章之后,得到了一个比较好的解决方案:

通过下载这个文件到 zotero 资料目录下的 translators 文件下,将其命名为 Zotero Select Item.js ,重启 Zotero 后在编辑-> 首选项中配置便捷复制的 Item Format 为 Zotero Select Item:

2022-07-04_20-21-09_screenshot.png

之后选中任意条目后使用 Ctrl Shift C 就能复制 zotero: 格式的链接了,如: zotero://select/items/0_QX6MISH8

这样复制到其他笔记软件中,应该点击链接打开 zotero 条目了,非常方便。

而如果你在 orgmode 中使用,则需要在启动文件中添加如下代码:

(org-link-set-parameters "zotero" :follow
                         (lambda (zpath)
                           (browse-url
                            ;; we get the "zotero:"-less url, so we put it back.
                            (format "zotero:%s" zpath))))

这样就能在 emacs 中打开 zotero 链接了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK