File: 10_removepicins.patch

package info (click to toggle)
gnuplot 6.0.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,960 kB
  • sloc: ansic: 95,874; cpp: 7,199; makefile: 2,470; javascript: 2,339; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (34 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | 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
Description: removes picins latex include
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2015-06-16

Index: gnuplot-6.0.3/docs/Makefile.am
===================================================================
--- gnuplot-6.0.3.orig/docs/Makefile.am
+++ gnuplot-6.0.3/docs/Makefile.am
@@ -145,7 +145,6 @@ pdf_figures: $(GNUPLOT_EXE) $(srcdir)/pl
 	$(AM_V_at)GNUPLOT_LIB=$(top_srcdir)/demo $(GNUPLOT_EXE) $(srcdir)/plotstyles.gnu
 	rm -f gpinsetfigure.tex
 	printf '%s\n' '\usepackage{graphicx}' \
-		'\usepackage{picins}' \
 		'\newcommand{\gpinsetfigure}[1]{' \
 		'  \parpic[r][rt]{\includegraphics[width=3in,keepaspectratio]{#1}}' \
 		'}' > gpinsetfigure.tex
Index: gnuplot-6.0.3/docs/doc2tex.c
===================================================================
--- gnuplot-6.0.3.orig/docs/doc2tex.c
+++ gnuplot-6.0.3/docs/doc2tex.c
@@ -181,12 +181,7 @@ process_line( char *line, FILE *b)
 	    break;
 
     case 'F':			/* embedded figure */
-	    if (figures) {
-		line[strlen(line)-1]=NUL;
-		(void) fputs("\\gpinsetfigure{",b);
-		fputs(line+1, b);
-		(void) fputs("}\n",b);
-	    }
+
 	    break;
 
     case 'D':			/* link to demo figure */