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.1.tar.gz
(17.6 kB
view details)
Built Distribution
File details
Details for the file sphinx_hep_pdgref-0.2.1.tar.gz
.
File metadata
- Download URL: sphinx_hep_pdgref-0.2.1.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7cbae1ea1d7b70a82872a99583ebad7886c3ed217b5610ead8446843699f6d8 |
|
MD5 | 9b76d02a1cec232ec440fd815892a1ba |
|
BLAKE2b-256 | 782237fed67271c83018cea4c5c8f82b03d658cac6407289dca5a7cb3ed4b600 |
File details
Details for the file sphinx_hep_pdgref-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: sphinx_hep_pdgref-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d22a3cd7278b6be8988559acd8c15573cb482a0e686172a25899a53d64a6127 |
|
MD5 | 8cf4ccf3f40e5b1bf99141ea85c4bcae |
|
BLAKE2b-256 | 9d0c78ba08f0f2c3f8980b07a0b74b411ef6f6ef662f3b0517b1cd922cfc66a4 |