5

利用超级链接直接打开文件

 3 years ago
source link: https://yihui.org/cn/2008/10/open-files-with-hyperlinks-in-pdf/
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.

利用超级链接直接打开文件

谢益辉 / 2008-10-12


我一直在想,怎样在文档中建立一个超级链接,只要点击就可以打开链接的文件。在 Office 中基本没什么障碍,但用 LaTeX 就不能直接通过链接文件地址达到目的了。今天 Michael Friendly 在邮件中告诉我一个小技巧:只要超级链接的地址前加上 run: 就可以了。例如,用 hyperref 宏包的 href 命令创建一个链接打开一个文件 some.file 就可以用 \href{run:path/to/some.file}{some link}

这样的话,我们就可以直接在 PDF 中点击链接打开文件,而不必先切换界面再去点文件了。其实 runhttpftp 等一样,都是协议。

避免文本标签重叠:maptools 中的 pointLabel () 开始邀请 R Core 成员投稿

Disqus Utterances Preferences

© Yihui Xie 2005 - 2020

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK