Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwinkler committed May 12, 2020
2 parents 55f29a2 + 314b1c6 commit 3c359c9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 1.0.1 (2020-05-12)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fixed: List index out of range if latex compilation fails
(:issue_num:`219`)

Version 1.0.0 (2020-05-04)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- **Important**: This version is only compatible with Inkscape 1.0. Please
Expand Down
22 changes: 13 additions & 9 deletions docs/source/install/linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ Preparation
Download and install |TexText|
==============================

.. important::

Compared to previous versions |TexText| does not need any conversion utilities like
ghostscript, pstoedit or pdfsvg.

1. Download the most recent package from :textext_current_release_page:`GitHub release page <release>`
(direct links: :textext_download_zip:`.zip <Linux>`, :textext_download_tgz:`.tar.gz <Linux>`)

Expand All @@ -64,23 +69,22 @@ Download and install |TexText|
python setup.py
If you use an Inkscape AppImage install |TexText| as follows:

.. code-block:: bash
python setup.py --inkscape-executable /home/path/to/your/appimage/Inkscape-4035a4f-x86_64.AppImage
In both cases it will copy the required files into the user's Inkscape
configuration directory (usually this is ``~/.config/inkscape/extensions``)

Setup will inform you if some of the prerequisites needed by |TexText| are missing.
Install them. If setup complains about missing GTK or Tkinter bindings please go to
:ref:`linux-install-gui`.

.. important::
.. note::

If you use an Inkscape AppImage |TexText| should be installed as follows. However,
due to an `Inkscape bug in AppImages <https://gitlab.com/inkscape/inkscape/-/issues/1306>`_
all Python extensions are currently broken:

.. code-block:: bash
Compared to previous versions |TexText| does not need any conversion utilities like
ghostscript, pstoedit or pdfsvg.
python setup.py --skip-requirements-check --inkscape-executable /home/path/to/your/appimage/Inkscape-4035a4f-x86_64.AppImage
You are done. Now you can consult the :ref:`usage instructions <gui>`. In case of problems consult
:ref:`troubleshooting`.
Expand Down
2 changes: 1 addition & 1 deletion textext/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
10 changes: 6 additions & 4 deletions textext/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,12 +569,14 @@ def parse_pdf_log(self):
"""
with logger.debug("Parsing LaTeX log file"):
from .texoutparse import LatexLogParser

parser = LatexLogParser()
with open(self.tmp('log'), encoding='utf8') as f:
parser.process(f)

return parser.errors[0]
try:
with open(self.tmp('log'), encoding='utf8') as f:
parser.process(f)
return parser.errors[0]
except Exception as ignored:
return "TeX compilation failed. See stdout output for more details"


class TexTextElement(inkex.Group):
Expand Down

0 comments on commit 3c359c9

Please sign in to comment.