TexText 0.11 for Inkscape 0.92 on Linux
To install TexText 0.11 for Inkscape 0.92 on Linux do the following steps:
Install dependencies of TexText 0.11 for Inkscape 0.92
Install dependencies
Install inkscape
Important
Do not use Inkscape from Canonical’s snap
package management! If you
have it installed via snap
uninstall it via snap remove inkscape
and install it via the classic way: sudo apt-get install inkscape
.
This problem affects ALL Inkscape extensions!
To install on Ubuntu/Debian:
sudo apt-get install inkscape
Install python2.7
Make sure that a Python 2.7 distribution is installed and found by
your system (usually installed by the package python2.7
).
To install on Ubuntu/Debian:
sudo apt-get install python2.7
Warning
On recent systems default Python interpreter is python3
which is incompatible with current version of TexText 0.11 for Inkscape 0.92
(and other Inkscape extensions). You need to configure Inkscape such that it still uses python2. To check which is
your default Python interpreter run python --version
in a terminal. If this command does not return Python
version 2.7.x consult instructions to configure Inkscape properly:
Set Inkscape python interpreter to Python2.
Install GUI library
Install the Python bindings for the graphical user interface of
TexText 0.11 for Inkscape 0.92. You have two options: PyGTK2
(recommended) or Tkinter
:
Install PyGTK2 (recommended)
Install the following packages using your favorite package manager:
python-gtk2
python-gtksourceview2
(enables syntax highlighting)
To install on Ubuntu/Debian:
sudo apt-get install python-gtk2 python-gtksourceview2
Install Tkinter (not recommended)
Tkinter is functioning but has a limited interface compared to PyGTK2 version, so it’s not recommended.
To use Tkinter
install the python-tk
pacage using your favorite package manager.
To install on Ubuntu/Debian:
sudo apt-get install python-tk
Install a pdf->svg converter
Again you have two options: pdf2svg
(recommended) or pstoedit + ghostscript
:
Install pdf2svg (recommended)
Install the pdf2svg
package
To install on Ubuntu/Debian:
sudo apt-get install pdf2svg
Install pstoedit (not recommended)
pstoedit
fails to produce svg with some versions of ghostscript
so it’s
preferable to use pdf2svg
.
To use pstoedit
converter install the pstoedit
package and check versions of
installed versions of pstoedit
and ghostscript
To install on Ubuntu/Debian:
sudo apt-get install pstoedit
To check versions run:
pstoedit --version
ghostscript --version
Warning
Those combinations of pstoedit
and ghostscript
versions fails to produce svg on
most distributions (see bb issue 48):
|
|
3.70 |
9.22 |
<= 3.74 |
9.27 |
Please report any observations or problems in issue 126.
Install pdflatex/lualatex/xelatex
pdflatex
and lualatex
are part of texlive-base
package. The
xelatex
resides in texlive-xetex
package
To install pdflatex
and lualatex
on Ubuntu/Debian:
sudo apt-get install texlive-base
To install xelatex
on Ubuntu/Debian:
sudo apt-get install texlive-xetex
Warning
If you have for some reason the Linux MiKTeX distribution installed make sure
that automatic package installation is either set to
Never install missing packages on-the-fly
or set to
Always install missing packages on-the-fly
, see
Manage your TeX installation with MiKTeX Console.
Install TexText
Download the most recent package from GitHub release page (direct links: .zip, .tar.gz)
Extract the package and change to created directory.
Run
setup.py
from your terminal:python2 setup.py
The script will check if all requirements described in Install dependencies are met. If so, it will install the extension files into the user’s Inkscape configuration directory (usually this is
~/.config/inkscape/extensions
). If not, instructions are given helping to fix the problem.Note
If you would like to skip the requirement checks during installation call the script from the command line as follows:
python2 setup.py --skip-requirements-check