[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#824071: sympytexpackage: please define the Python path in sympytex.sty



Package: texlive-math-extra
Version: 2015.20160320-1
Severity: wishlist
Tags: patch

Hello again,
third and last (for the time being) thing about sympytexpackage:
the sympytex.sty file should be patched so that it defines
the Python path where the Python module will be found.

Currently, the user has to manually add the correct directory
to the PYTHONPATH environment variable, when he/she runs
the generated .sympy Python script, as in:

  $ pdflatex foo.tex
  $ PYTHONPATH=/usr/share/texlive/texmf-dist/scripts/sympytexpackage python foo.sympy
  $ pdflatex foo.tex

Since the Debian package texlive-math-extra installs the Python
module into /usr/share/texlive/texmf-dist/scripts/sympytexpackage/ ,
this directory should be specified in sympytex.sty.

A (trivial) patch that does so is attached to the present bug
report.
Please note that this would be a Debian-specific customization
of the LaTeX package that should not be forwarded upstream, of
course...

After applying the patch to sympytex.sty, the user can just do:

  $ pdflatex foo.tex
  $ python foo.sympy
  $ pdflatex foo.tex

which is much simpler and cleaner!

I hope you find this patch useful and you are willing to apply it.


Thanks for your time!
Bye.


-- Package-specific info:
######################################
 List of ls-R files

-rw-r--r-- 1 root root 1470 Mar 30 21:33 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Feb 22 15:54 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Mar 20 06:32 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Mar 20 06:32 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
 Config files
-rw-r--r-- 1 root root 475 Mar 20 11:53 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Mar 20 06:32 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Mar 20 06:32 /usr/share/texmf/web2c/updmap.cfg -> /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 3881 Mar 26 10:41 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Oct 14  2015 mktex.cnf
-rw-r--r-- 1 root root 475 Mar 20 11:53 texmf.cnf
######################################
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages texlive-math-extra depends on:
ii  tex-common                 6.05
ii  texlive-base               2015.20160320-1
ii  texlive-binaries           2015.20160222.37495-1
ii  texlive-fonts-recommended  2015.20160320-1
ii  texlive-latex-base         2015.20160320-1
ii  texlive-luatex             2015.20160320-1

texlive-math-extra recommends no packages.

texlive-math-extra suggests no packages.

Versions of packages tex-common depends on:
ii  dpkg  1.18.4
ii  ucf   3.0036

Versions of packages tex-common suggests:
ii  debhelper  9.20160403

Versions of packages texlive-math-extra is related to:
ii  tex-common        6.05
ii  texlive-binaries  2015.20160222.37495-1

-- no debconf information

Attachment: set_python_path_for_sympytexpackage.diff.gz
Description: application/gzip


Reply to: