Package: sagetex / 3.2+ds-2

debianization.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: debianization
 Meant to maintain a minimal debian/rules, to fix annoying
 warnings, to address Debian specific stuff in general.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2019-01-06

--- a/sagetex.ins
+++ b/sagetex.ins
@@ -89,7 +89,7 @@
 
 % Now define a new preamble with the shebang line at the top.
 
-\def\envpypreamble{\hash!/usr/bin/env python^^J\pypreamble}
+\def\envpypreamble{\hash!/usr/bin/python2^^J\pypreamble}
 \usepreamble\envpypreamble
 
 \generate{\file{run-sagetex-if-necessary.py}{\from{scripts.dtx}{ifnecessaryscript}}}
--- a/scripts.dtx
+++ b/scripts.dtx
@@ -44,11 +44,12 @@
 import subprocess
 
 # CHANGE THIS AS APPROPRIATE
-path_to_sage = os.path.expanduser('~/bin/sage')
+# path_to_sage = os.path.expanduser('~/bin/sage')
 # or try to auto-find it:
 # path_to_sage = subprocess.check_output(['which', 'sage']).strip()
 # or just tell me:
 # path_to_sage = '/usr/local/bin/sage'
+path_to_sage = '/usr/bin/sage'
 
 if sys.argv[1].endswith('.sagetex.sage'):
     src = sys.argv[1][:-13]
--- a/example.tex
+++ b/example.tex
@@ -7,7 +7,7 @@
 % more information!
 %
 
-\documentclass{article}
+\documentclass[a4paper]{article}
 \title{Examples of embedding Sage in \LaTeX{} with \textsf{Sage\TeX}}
 \author{Dan Drake and others}
 \usepackage{hyperref}