Skip to content

Commit

Permalink
Merge branch 'release/3.4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Feb 24, 2021
2 parents e10e470 + 19f2ab5 commit f75c075
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 22 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# pandoc-numbering
![Python package](https://github.com/chdemko/pandoc-numbering/workflows/Python%20package/badge.svg?branch=develop)
[![Coveralls](https://img.shields.io/coveralls/github/chdemko/pandoc-numbering/3.3.0.0.svg?logo=Codecov&logoColor=white)](https://coveralls.io/github/chdemko/pandoc-numbering?branch=3.3.0.0)
[![Coveralls](https://img.shields.io/coveralls/github/chdemko/pandoc-numbering/3.4.0.0.svg?logo=Codecov&logoColor=white)](https://coveralls.io/github/chdemko/pandoc-numbering?branch=3.4.0.0)
[![Scrutinizer](https://img.shields.io/scrutinizer/g/chdemko/pandoc-numbering.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/chdemko/pandoc-numbering/)
[![PyPI version](https://img.shields.io/pypi/v/pandoc-numbering.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-numbering/)
[![PyPI format](https://img.shields.io/pypi/format/pandoc-numbering.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiYw92eBNAAAAgJJREFUeNrt3T1WwkAUgNH31Br3ogWptdAlgyvQxYgHeh0LKKxI+PHAzNyvRo8xlxl5CZKllBIaax0Rr5n53tqB3Ti3k7qPiEUpZQAAggEACAYAIBgAgGAAoG8Ey9oRAHBas9oR5NgcIDOz5TN4pjnIJiJeapwTWAFGfMR2CDRlJViUUuYAtAfgOSK+Jv5N8FbddlBGav4M7+9795jHUsqqTGtdFQIAxgE0jQCAaQCaRQDAdABNIgDgMADNIQDgcAB/EHxWjwCA4wDsvvahegQAHA+gCQQAnAagegQAnA6gagQAnAdArQhcDdx//D+ZeXvg95tHxDK21wbG2mTm/SWP38Wgcz+jMj8i4ikiVhMePrv0z3vnlO1/grS+DVoBehfuVwCAABAAAkAAqLO6nwP896Tz2ucIVgBbgAAQAAJAAAgAASAABIAAEAACQAAIADXZyfcD9P55A7W/c8oKYAsQAAJAAAgAASBzgJ5eB1sBBIAAEAACQAAIAJkDTM/9AO4HEAACQAAIAAEgANTPHMD9AFYAASAABIAAEAACQP3MAWq/H6D3OYYVwBYgAASAABAAAkDmAF5HWwEEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAXVWj/x+g988FtAIIAAEgAASAABAAaqhfB1BFkJjdTNQAAAAASUVORK5CYII=)](https://pypi.org/project/pandoc-numbering/)
[![License](https://img.shields.io/pypi/l/pandoc-numbering.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABmCAYAAAADI5lUAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiQKA106BAAABUNJREFUeNrtnV2IFlUYx3/P625qbrGlpWmWdaMVKau2EmpCrSDqxRpUUkr0SYVEFyFRUXQhfUAihTdCESVpKpKQpLZBsghltn605VVKpmZgGYvmbhpPFzMbWu3LO7szO1//H+zN7sw5c57nd8685+zMeY0quLsB04FW4A7gWmAMMAyRRbqBE8BRYCfwMfCNmXlfJ1iV5LcAbwBNimuu+Q54xcw21iSAuzcA7wOLFLtCsQl4yMxO9ymAu48HtgK3Kl6F5ACw0Mx++o8AYc/fBUxWnArN98DtZtYFULngDx8o+aXgZuDdi0YAd58fDv2iPMwzs+0WTvX2qfeXjv1Ak7n7DOBLxaOU3FYhWOQR5aS1AsxWHErLnArB8q4oJ+PM3buBoRFO6gJ2K3aZpBm4PMLxPXh09ijO2cTd90RNZkVhKzcSQAIICSAkgJAAQgIICSAkgJAAQg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AQQ/8bcvRsYGuGcLuLbJ0/ESzPRvtW0x9z9MDBBsSslhyoE27eIcnKsAuxUHErLFxWC15tFOdli7m7AXmCK4lEq9gFTK+Hmx88pHqVjuZkFj4SZ2TZgs2JSGjaa2WcA1vsbd28AdgGTFZ9Csx+YaWZn4IKVQDM7DSwIDxDFve8v7E3+RQKEEhwFZgGbFKvC8REwK8wx/ytA70hgZvcQbInSobjlns6w1y++sOf/k+9qZ4ZTxKlAKzCH4OvfxgLDFNdM0k2wc/lRggW+LUBHtW8l+xuWwqBw5I0ApAAAAABJRU5ErkJggg==)](https://raw.githubusercontent.com/chdemko/pandoc-numbering/3.3.0.0/LICENSE)
[![Repo Size](https://img.shields.io/github/repo-size/chdemko/pandoc-numbering.svg)](http://pandoc-numbering.readthedocs.io/en/3.3.0.0/)
[![License](https://img.shields.io/pypi/l/pandoc-numbering.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABmCAYAAAADI5lUAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiQKA106BAAABUNJREFUeNrtnV2IFlUYx3/P625qbrGlpWmWdaMVKau2EmpCrSDqxRpUUkr0SYVEFyFRUXQhfUAihTdCESVpKpKQpLZBsghltn605VVKpmZgGYvmbhpPFzMbWu3LO7szO1//H+zN7sw5c57nd8685+zMeY0quLsB04FW4A7gWmAMMAyRRbqBE8BRYCfwMfCNmXlfJ1iV5LcAbwBNimuu+Q54xcw21iSAuzcA7wOLFLtCsQl4yMxO9ymAu48HtgK3Kl6F5ACw0Mx++o8AYc/fBUxWnArN98DtZtYFULngDx8o+aXgZuDdi0YAd58fDv2iPMwzs+0WTvX2qfeXjv1Ak7n7DOBLxaOU3FYhWOQR5aS1AsxWHErLnArB8q4oJ+PM3buBoRFO6gJ2K3aZpBm4PMLxPXh09ijO2cTd90RNZkVhKzcSQAIICSAkgJAAQgIICSAkgJAAQgIICSAKT91gVOLui4EVKb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uLbJ0/ESzPRvtW0x9z9MDBBsSslhyoE27eIcnKsAuxUHErLFxWC15tFOdli7m7AXmCK4lEq9gFTK+Hmx88pHqVjuZkFj4SZ2TZgs2JSGjaa2WcA1vsbd28AdgGTFZ9Csx+YaWZn4IKVQDM7DSwIDxDFve8v7E3+RQKEEhwFZgGbFKvC8REwK8wx/ytA70hgZvcQbInSobjlns6w1y++sOf/k+9qZ4ZTxKlAKzCH4OvfxgLDFNdM0k2wc/lRggW+LUBHtW8l+xuWwqBw5I0ApAAAAABJRU5ErkJggg==)](https://raw.githubusercontent.com/chdemko/pandoc-numbering/3.4.0.0/LICENSE)
[![Repo Size](https://img.shields.io/github/repo-size/chdemko/pandoc-numbering.svg)](http://pandoc-numbering.readthedocs.io/en/3.4.0.0/)
[![Python version](https://img.shields.io/pypi/pyversions/pandoc-numbering.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-numbering/)
[![Downloads](https://pepy.tech/badge/pandoc-numbering)](https://pepy.tech/project/pandoc-numbering)
[![Source Rank](https://img.shields.io/librariesio/sourcerank/pypi/pandoc-numbering.svg?logo=koding&logoColor=white)](https://libraries.io/pypi/pandoc-numbering)
[![Development Status](https://img.shields.io/pypi/status/pandoc-numbering.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4gwPFiUnX5lXMAAAAlBJREFUeNrt3b1qlEEUBuB3TNDCP7wDOwv/cgv+pDC3YcDe+xBFFFLoDWhhpxiD12Ch1mJsg7irjRLGYjcKEbLC92n223meMgQSzrx7Zs6wMAkAAAAAAAAAAAAAAAAAAAAw78r+H9RaLyZZT3Itydkkx5XpUH1L8iHJVpJHpZS3/yQAtdZjSe4muZXkiLrPpd0kG0lul1K+9xaA6eK/SHJFjQfhdZIbfYRg75N+z+IPytUkd3rpANM9/422P8jt4HIp5V3XDrBu8QdpKcnNPraA62o5WKt9bAHjJCfUcpDGpZRTXQNQ1fGAApVSDvPvz1qfrv+fvb9xAiAACACDVf80qrU+q7Wecwhs4BB4gM+ZXBRt6wBtOpO/uC7WARa3AyTJqJRyWgdo18xLIgEwBSAACABt3hOYAhZ7Cph9TyAAzQYgSZ4KQNsBGAlA2wFwCDQFIAAIAAKAACAACAACgAAgAAgAAoAAIAAIAIvniwC07aVvBM2wwN8I2kmyogO0Z5TkSZKVUsqnZfVou4PpAKYABAABYDHnfAFofM6feUh0D7Cw9wA7e6OeDtDwnD/rl90DNN6hdABTAAJAs5aTjJOcVIreT+H/68DXuQNsW+bB+thHAF6p42Btdp4iaq0XMnk2bkk9B2U3yaVSyvtOHWD6Fu2Geg7Ow66Ln/x+OvZokueZPBjN/NtKslZK+dHLGDh9g3YtyYNpa2F+2/79vhb/VwfYN/acz+RFytVMno/3puDh+prJ8/GbSR730fYBAAAAAAAAAAAAAAAAAACAYfkJuHbYr8dtGYwAAAAASUVORK5CYII=)](https://pypi.org/project/pandoc-numbering/)
[![Docs](https://img.shields.io/readthedocs/pandoc-numbering.svg?logo=read-the-docs&logoColor=white)](http://pandoc-numbering.readthedocs.io/en/3.3.0.0/)
[![Docs](https://img.shields.io/readthedocs/pandoc-numbering.svg?logo=read-the-docs&logoColor=white)](http://pandoc-numbering.readthedocs.io/en/3.4.0.0/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANwSURBVGiB7Zndi1VlFIefNZPR9GkTmSkOhIZYeBFiIDEYNUREXVQEQUhK4hdEf0GQf0IUU2BdhHUjNQTpRRdl0NdFXYRZCA0SJTZ9CJEDmY49Xewzw57Xfc7+OGfOEJzn5vCuvfbav/Wutd+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i.org/project/black/)

license icon by [Daniel Bruce](https://www.iconfinder.com/icons/216659/license_icon),
Expand All @@ -25,7 +25,7 @@ code style icon by [Google Material Design icons](https://www.iconfinder.com/ico
Documentation
-------------

See the [Read the docs pages](http://pandoc-numbering.readthedocs.io/en/3.3.0.0/).
See the [Read the docs pages](http://pandoc-numbering.readthedocs.io/en/3.4.0.0/).

Usage
-----
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
author = "Christophe Demko"

# The short X.Y version
version = "3.3"
version = "3.4"
# The full version, including alpha/beta/rc tags
release = "3.3.0.0"
release = "3.4.0.0"


# -- General configuration ---------------------------------------------------
Expand Down
22 changes: 13 additions & 9 deletions pandoc_numbering.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def _compute_data(self):
self._caption = self._caption.replace("%g", self._global_number)
self._caption = self._caption.replace("%n", self._local_number)
self._caption = self._caption.replace("#", self._local_number)
if self._doc.format == "latex":
if self._doc.format in {"tex", "latex"}:
self._caption = self._caption.replace("%p", "\\pageref{" + self._tag + "}")

# Compute content
Expand All @@ -465,7 +465,7 @@ def _compute_data(self):
replace_global_number(self._link, self._global_number)
replace_section_number(self._link, self._section_number)
replace_local_number(self._link, self._local_number)
if self._doc.format == "latex":
if self._doc.format in {"tex", "latex"}:
replace_page_number(self._link, self._tag)

# Compute entry
Expand All @@ -476,7 +476,7 @@ def _compute_data(self):
replace_local_number(self._entry, self._local_number)

# Finalize the content
if self._doc.format == "latex":
if self._doc.format in {"tex", "latex"}:
self._get_content()[1].content.insert(
0, RawInline("\\label{" + self._alias + "}", "tex")
)
Expand Down Expand Up @@ -809,7 +809,7 @@ def referencing_link(elem, doc):
replace_section_number(elem, doc.information[tag].section_number)
replace_local_number(elem, doc.information[tag].local_number)
replace_count(elem, str(doc.count[doc.information[tag].category]))
if doc.format == "latex":
if doc.format in {"tex", "latex"}:
replace_page_number(elem, tag)

title = stringify(Span(*doc.information[tag].title))
Expand All @@ -825,7 +825,7 @@ def referencing_link(elem, doc):
elem.title = elem.title.replace(
"%c", str(doc.count[doc.information[tag].category])
)
if doc.format == "latex":
if doc.format in {"tex", "latex"}:
elem.title = elem.title.replace("%p", "\\pageref{" + tag + "}")


Expand Down Expand Up @@ -937,7 +937,7 @@ def add_definition(category, definition, doc):
meta_classes(category, definition["general"], doc.defined)

# Detect LaTeX options
if doc.format == "latex":
if doc.format in {"tex", "latex"}:
if "latex" in definition:
meta_format_text(category, definition["latex"], doc.defined)
meta_format_link(category, definition["latex"], doc.defined)
Expand Down Expand Up @@ -1377,7 +1377,7 @@ def finalize(doc):
"""
# Loop on all listings definition

if doc.format == "latex":
if doc.format in {"tex", "latex"}:
# Add header-includes if necessary
if "header-includes" not in doc.metadata:
doc.metadata["header-includes"] = MetaList()
Expand All @@ -1396,11 +1396,13 @@ def finalize(doc):
listof = []
for category, definition in doc.defined.items():
if definition["listing-title"] is not None:
if doc.format == "latex":
if doc.format in {"tex", "latex"}:
latex_category = re.sub("[^a-z]+", "", category)
latex = (
r"\newlistof{%s}{%s}{%s}"
r"\renewcommand{\cft%stitlefont}{\cfttoctitlefont}"
r"\setlength{\cft%snumwidth}{\cftfignumwidth}"
r"\setlength{\cft%sindent}{\cftfigindent}"
% (
latex_category,
latex_category,
Expand All @@ -1410,6 +1412,8 @@ def finalize(doc):
output_format="latex",
),
latex_category,
latex_category,
latex_category,
)
)
doc.metadata["header-includes"].append(
Expand Down Expand Up @@ -1456,7 +1460,7 @@ def finalize(doc):
doc.content.insert(i, table)
i = i + 1

if doc.format == "latex":
if doc.format in {"tex", "latex"}:
header = (
r"\ifdef{\mainmatter}"
r"{\let\oldmainmatter\mainmatter\renewcommand{\mainmatter}[0]{%s\oldmainmatter}}"
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ universal=1

[metadata]
description-file = README.md
version = 3.3.0.0
release = 3.3.0.0
version = 3.4.0.0
release = 3.4.0.0

[aliases]
test=pytest
Expand Down
8 changes: 4 additions & 4 deletions tests/test_listings_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_listing_latex(self):
header-includes:
- "`\\usepackage{tocloft}`{=tex}"
- "`\\usepackage{etoolbox}`{=tex}"
- "`\\newlistof{exercise}{exercise}{List of exercises}\\renewcommand{\\cftexercisetitlefont}{\\cfttoctitlefont}`{=tex}"
- "`\\newlistof{exercise}{exercise}{List of exercises}\\renewcommand{\\cftexercisetitlefont}{\\cfttoctitlefont}\\setlength{\\cftexercisenumwidth}{\\cftfignumwidth}\\setlength{\\cftexerciseindent}{\\cftfigindent}`{=tex}"
- "`\\ifdef{\\mainmatter}{\\let\\oldmainmatter\\mainmatter\\renewcommand{\\mainmatter}[0]{\\listofexercise\\oldmainmatter}}{}`{=tex}"
pandoc-numbering:
exercise:
Expand All @@ -182,7 +182,7 @@ def test_listing_latex(self):
`\usepackage{etoolbox}`{=tex}
`\newlistof{exercise}{exercise}{List of exercises}\renewcommand{\cftexercisetitlefont}{\cfttoctitlefont}`{=tex}
`\newlistof{exercise}{exercise}{List of exercises}\renewcommand{\cftexercisetitlefont}{\cfttoctitlefont}\setlength{\cftexercisenumwidth}{\cftfignumwidth}\setlength{\cftexerciseindent}{\cftfigindent}`{=tex}
`\ifdef{\mainmatter}{\let\oldmainmatter\mainmatter\renewcommand{\mainmatter}[0]{\listofexercise\oldmainmatter}}{}`{=tex}
Expand Down Expand Up @@ -262,7 +262,7 @@ def test_listing_latex_format(self):
header-includes:
- "`\\usepackage{tocloft}`{=tex}"
- "`\\usepackage{etoolbox}`{=tex}"
- "`\\newlistof{exercise}{exercise}{List of exercises}\\renewcommand{\\cftexercisetitlefont}{\\cfttoctitlefont}`{=tex}"
- "`\\newlistof{exercise}{exercise}{List of exercises}\\renewcommand{\\cftexercisetitlefont}{\\cfttoctitlefont}\\setlength{\\cftexercisenumwidth}{\\cftfignumwidth}\\setlength{\\cftexerciseindent}{\\cftfigindent}`{=tex}"
- "`\\ifdef{\\mainmatter}{\\let\\oldmainmatter\\mainmatter\\renewcommand{\\mainmatter}[0]{\\listofexercise\\oldmainmatter}}{}`{=tex}"
pandoc-numbering:
exercise:
Expand All @@ -280,7 +280,7 @@ def test_listing_latex_format(self):
`\usepackage{etoolbox}`{=tex}
`\newlistof{exercise}{exercise}{List of exercises}\renewcommand{\cftexercisetitlefont}{\cfttoctitlefont}`{=tex}
`\newlistof{exercise}{exercise}{List of exercises}\renewcommand{\cftexercisetitlefont}{\cfttoctitlefont}\setlength{\cftexercisenumwidth}{\cftfignumwidth}\setlength{\cftexerciseindent}{\cftfigindent}`{=tex}
`\ifdef{\mainmatter}{\let\oldmainmatter\mainmatter\renewcommand{\mainmatter}[0]{\listofexercise\oldmainmatter}}{}`{=tex}
Expand Down

0 comments on commit f75c075

Please sign in to comment.