Skip to content

Commit

Permalink
Fix chapter images when named without number
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyx102 committed Oct 31, 2024
1 parent e8c88ab commit 206d35f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scripts/output_tex.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ def convert_book(
content_lines.append(image_latex_command(img_info, no_cover))

for chapter in book_config.chapters:
img_info = image_config.chapter_images[str(chapter.number)]
image_title = list(image_config.chapter_images.keys())[chapter.number - 1]
img_info = image_config.chapter_images[image_title]
content_lines.append(image_latex_command(img_info, no_cover))
convert_chapter(chapter, work_dir, content_lines)

Expand Down

0 comments on commit 206d35f

Please sign in to comment.