Skip to main content

Pandoc filter that sets a a custom style for the reference section header.

Project description

pandoc-refheadstyle sets a custom style for the reference section header, that is, if the metadata field reference-section-title has been set to a non-empty value.

By default, the reference section header will be assigned the custom style ‘Bibliography Heading’. But you can assign another style by setting the metadata field reference-header-style to the name of a style of your choice. If the style does not exist, it will be created.

By fiat, a reference section header is any header that has the ID ‘bibliography’ and the header text set in reference-section-title. (A header inserted by pandoc-citeproc will meet these criteria.)

If you are using Pandoc 2.0 or newer, you will want to use pandoc-refheadstyle.lua instead; it’s easier to install and faster.

Synopsis

pandoc-refheadstyle [-h]

pandoc […] -F pandoc-refheadstyle […]

Installing pandoc-refheadstyle

You use pandoc-refheadstyle at your own risk. You have been warned.

You need Python 2.7 or newer and panflute.

Simply run:

pip install pandoc_refheadstyle

Contact

If there’s something wrong with pandoc-refheadstyle, open an issue.

License

Copyright 2018 Odin Kroeger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Further Information

GitHub: <https://github.com/odkr/pandoc-refheadstyle>

PyPI: <https://pypi.org/project/pandoc-refheadstyle>

See also

pandoc-refheadstyle.lua

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandoc-refheadstyle-0.2.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

pandoc_refheadstyle-0.2.2-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file pandoc-refheadstyle-0.2.2.tar.gz.

File metadata

  • Download URL: pandoc-refheadstyle-0.2.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for pandoc-refheadstyle-0.2.2.tar.gz
Algorithm Hash digest
SHA256 26055d0811403978ab696416ea9764b5c2dd226e3a0a1f55a5ba652a6b94869f
MD5 b619464d8799c9a9727ea14ecdf5e628
BLAKE2b-256 c471e0b510ac94460fa0ec70f4ad5cf644b99455ad694c0a7b338d9903f95723

See more details on using hashes here.

File details

Details for the file pandoc_refheadstyle-0.2.2-py2-none-any.whl.

File metadata

  • Download URL: pandoc_refheadstyle-0.2.2-py2-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for pandoc_refheadstyle-0.2.2-py2-none-any.whl
Algorithm Hash digest
SHA256 241c76c96b56cd315adc6a8a1f237a8e9cf745e12bfa73d9979a7556f63c2675
MD5 fae487d318b7f1efe5ef5622dc96c100
BLAKE2b-256 e40d6821cd0e7d35926b1e7e7937ef8ed72d7909c14467fa384575fe40d275ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page