TexText for Inkscape 1.0 on Linux

Preparation

  1. Make sure that Inkscape version 1.0 or later is installed on your system via your favorite package manager, e.g.

    sudo apt install inkscape
    

    Check if it is able to launch. You can verify this by invoking inkscape --version from a terminal. It should output 1.0.

    Important

    TexText for Inkscape 1.0 will not function properly if you installed Inkscape 1.0 via SNAP or FLATPACK. The reason is that Inkscape 1.0 will run in sandboxed mode in these environments and, hence, cannot access you LaTeX distribution to compile your snippets!

  2. Make sure that an operational LaTeX distribution is installed on your system. You can verify this by invoking at least one of pdflatex --version, xelatex --version, and lualatex --version in a terminal.

  3. Optional: If you whish to have syntax highlighting and some other nice features enabled in the TexText for Inkscape 1.0-Gui install GTKSourceView:

    sudo apt install gir1.2-gtksource-3.0
    

Download and install TexText for Inkscape 1.0

Important

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

  1. Download the most recent package from GitHub release page (direct links: .zip, .tar.gz)

  2. Extract the package and change into the created directory.

  3. If you installed Inkscape via a package manager run setup.py from your terminal:

    python setup.py
    

    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 for Inkscape 1.0 are missing. Install them. If setup complains about missing GTK or Tkinter bindings please go to Manually install the GUI library bindings.

    Note

    If you use an Inkscape AppImage TexText for Inkscape 1.0 should be installed as follows. However, due to an Inkscape bug in AppImages all Python extensions are currently broken:

    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 usage instructions. In case of problems consult Troubleshooting.

Manually install the GUI library bindings

In the case that Inkscape 1.0 has not been automatically installed together with the necessary Python GUI bindings you need to install them manually. You have two options: GTK3 (recommended) or Tkinter.

At first you need to discover the Python interpreter that is used by your Inkscape installation. Enter the following command in a terminal

python --version

Keep the returned major version number (Python 2 or Python 3) in mind for the following instructions. If the command fails try python3 --version. The major version is then 3 in the following steps.