Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Short caption
  • Loading branch information
kthoden committed Mar 29, 2019
1 parent d51df3f commit ee0e15c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eoatex2imxml.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2019-03-20 17:50:39 (kthoden)>
# Time-stamp: <2019-03-29 15:46:46 (kthoden)>

"""
Converts Latex files into a customized DocBook XML file.
Expand Down Expand Up @@ -934,6 +934,9 @@ def cleanup():
Figurenumber = 1
xmlFigures = xmlChapter.xpath(".//EOAfigure | .//EOAlsfigure")
for xmlFigure in xmlFigures:
shortcaption = xmlFigure.find("shortcaption")
if shortcaption and shortcaption.text == "1":
shortcaption.tag = "temp"
xmlAnchor = xmlFigure.find("anchor")
# Check if Figure is in a numbered Chapter
# Otherwise just put the Number of the figure
Expand Down

0 comments on commit ee0e15c

Please sign in to comment.