Skip to content

Commit 7a5d832

Browse files
committed
style name corrections
1 parent ddbad0b commit 7a5d832

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.1 (2025-01-07)
2+
3+
Use the correct style name (style id) for list of figures and tables.
4+
15
# 1.1.0 (2025-01-06)
26

37
Custom list of figures and tables supporting **short captions* and custom titles.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages = ["src/pandoc_tex_numbering"]
77

88
[project]
99
name = "pandoc-tex-numbering"
10-
version = "1.1.0"
10+
version = "1.1.1"
1111
dependencies = ["pylatexenc", "panflute"]
1212
requires-python = ">=3.8"
1313
authors = [{ name = "Chao Kong", email = "kongchao1998@gmail.com" }]

src/pandoc_tex_numbering/docx_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .oxml import *
77
from panflute import RawBlock
88

9-
def docx_list_heading(title,style_name="TOCHeading",east_asian_lang=None):
9+
def docx_list_heading(title,style_name="TOC",east_asian_lang=None):
1010
# Create a paragraph with the specified style
1111
par = Paragraph()
1212
par_prop = ParagraphProperty()
@@ -38,7 +38,7 @@ def docx_list_body(items,leader_type="middleDot",style_name="TOC1",east_asian_la
3838

3939
return RawBlock(par.to_string(),format="openxml")
4040

41-
def add_docx_list(target_block,items,title,heading_style_name="TOCHeading",body_style_name="TOC1",leader_type="middleDot",east_asian_lang=None):
41+
def add_docx_list(target_block,items,title,heading_style_name="TOC",body_style_name="TOC1",leader_type="middleDot",east_asian_lang=None):
4242
parent = target_block.parent
4343
target_idx = parent.content.index(target_block)
4444

0 commit comments

Comments
 (0)