LoginSignup
0
0

More than 5 years have passed since last update.

sphinx -> pdf で 「file://hogehoge」にハイパーリンク貼る方法

Last updated at Posted at 2017-02-09

sphinx のファイルに追記

  • 場所:Lib\site-packages\Sphinx-x.x.x-pyx.x.egg\sphinx\writers
  • ファイル名:latex.py
  • 変更箇所:visit_reference メソッド(1729行目周辺)

以下を追記

# python2.7.13
    elif uri.startswith('file:'):
        self.body.append('\\href{%s}{' % self.encode_uri(uri))
        self.context.append('}')

課題:ファイルパスに日本語が入ると駄目・・・

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0