Sphinx role for linking to PDG reviews and listing
Project description
PDG role for Sphinx
This package is a Sphinx extension that makes it easy to refer to PDF files of reviews and particle listings in the PDG.
Installation
Just install through PyPI with pip
:
pip install sphinx-hep-pdgref
Next, in your
Sphinx configuration file
(conf.py
), add "sphinx_hep_pdgref"
to your extensions
:
extensions = [
# ...
"sphinx_hep_pdgref",
# ...
]
Usage
There are two roles, one for the particle listings and one for the review. These roles can be used as follows:
:pdg-listing:`K-zero`
:pdg-review:`Kinematics`
:pdg-review:`2014; Resonances`
:pdg-review:`Resonances; 2018; pp. 2-4, 7`
:pdg-review:`QCD; p5`
:pdg-review:`PDG2015; Quark Model; p.2`
which will render in the HTML pages as:
Note that the resulting links lead to the correct page as well!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinx-hep-pdgref-0.2.0.tar.gz
(19.4 kB
view details)
Built Distribution
File details
Details for the file sphinx-hep-pdgref-0.2.0.tar.gz
.
File metadata
- Download URL: sphinx-hep-pdgref-0.2.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a956f4a470d857739c4fa3d8b278e5f919bb206c9c81418220a07cae19ea2a4 |
|
MD5 | 7bdf841eb59a5d08149842d50958c5f6 |
|
BLAKE2b-256 | 4cd37d8508b8d87f613f68d5980c807963a469de33d3ddfd7c374183c497dd01 |
File details
Details for the file sphinx_hep_pdgref-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sphinx_hep_pdgref-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b129f75948c9d870725fa439ccf8ced70f2f95eb5f0c1443355b09b0807d35f |
|
MD5 | 2cb59867eb50b21180d64d6689bba3ab |
|
BLAKE2b-256 | 15690da3701372bc0c5b4efc46a56afade7eadfa16dc7ced0da8bb741079a123 |