[PYTHON] How to put a hyperlink to "file: // hogehoge" with sphinx-> pdf

Added to the sphinx file

--Location: Lib \ site-packages \ Sphinx-x.x.x-pyx.x.egg \ sphinx \ writers --File name: latex.py --Changes: visit_reference method (around line 1729)

Add the following

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

--Reference: hyperlink to an external git repository in Sphinx PDF documentation

Problem: It is useless if Japanese is entered in the file path ...

Recommended Posts

How to put a hyperlink to "file: // hogehoge" with sphinx-> pdf
How to output a document in pdf format with Sphinx
How to read a CSV file with Python 2/3
How to put a symbolic link
How to create a config file
How to make a command to read the configuration file with pyramid
How to write a docstring to create a named tuple document with sphinx
[ROS2] How to play a bag file with python format launch
How to build a sphinx translation environment
How to add a package with PyCharm
How to put a line number at the beginning of a CSV file
How to send a message to LINE with curl
How to draw a 2-axis graph with pyplot
How to develop a cart app with Django
How to create a JSON file in Python
How to make a dictionary with a hierarchical structure.
[Python] How to read excel file with pandas
Create a PDF file with a random page size
Save the object to a file with pickle
How to create a multi-platform app with kivy
I want to write to a file with Python
How to read a file in a different directory
Find out how to divide a file with a certain number of lines evenly
How to drop Google Docs in one folder in a .txt file with python
How to convert / restore a string with [] in python
[Python] How to draw a line graph with Matplotlib
How to create a submenu with the [Blender] plugin
Convert a text file with hexadecimal values to a binary file
How to get a logged-in user with Django's forms.py
How to convert a class object to a dictionary with SQLAlchemy
How to make a shooting game with toio (Part 1)
How to measure mp3 file playback time with python
How to convert JSON file to CSV file with Python Pandas
How to turn a .py file into an .exe file
How to convert a mel spectrogram back to a wav file
[Python] How to create a 2D histogram with Matplotlib
[Python] How to draw a scatter plot with Matplotlib
[Linux] How to put your IP in a variable
How to deploy a web app made with Flask to Heroku
How to install NPI + send a message to line with python
How to kill a process instantly with Python's Process Pool Executor
How to convert an array to a dictionary with Python [Application]
How to run a Python file at a Windows 10 command prompt
How to call a function
How to check ORM behavior in one file with django
Probably the easiest way to create a pdf with Python3
Experiment to make a self-catering PDF for Kindle with Python
How to import a file anywhere you like in Python
Upload a file to Dropbox
How to create a flow mesh around a cylinder with snappyHexMesh
How to print characters as a table with Python's print function
How to update with SQLAlchemy?
How to make a simple Flappy Bird game with pygame
How to cast with Theano
How to hack a terminal
How to display a list of installable versions with pyenv
How to extract other than a specific index with Numpy
A story about how to deal with the CORS problem
How to build a python2.7 series development environment with Vagrant
How to Alter with SQLAlchemy?
How to separate strings with','