summaryrefslogtreecommitdiff
path: root/sci-visualization/gnuplot/files/gnuplot-5.5-no-picins.patch
blob: b27b0bd941bd37ecd7cba81a18e9fc8ccd1c8142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Do not require picins.sty.
https://bugs.gentoo.org/577828#c4

--- gnuplot/docs/Makefile.am
+++ gnuplot/docs/Makefile.am
@@ -179,9 +179,10 @@
 	$(AM_V_at)GNUPLOT_LIB=$(top_srcdir)/demo $(GNUPLOT_EXE) $(srcdir)/plotstyles.gnu
 	  rm -f gpinsetfigure.tex ; \
 	  ( echo "\usepackage{graphicx}" > gpinsetfigure.tex ; \
-	    echo "\usepackage{picins}" >> gpinsetfigure.tex ; \
 	    echo "\newcommand{\gpinsetfigure}[1]{" >> gpinsetfigure.tex ; \
-	    echo "  \parpic[r][rt]{\includegraphics[width=3in,keepaspectratio]{#1}}" >> gpinsetfigure.tex ; \
+	    echo "  \begin{figure}[htb]" >> gpinsetfigure.tex ; \
+	    echo "  \centering\includegraphics[width=3in,keepaspectratio]{#1}" >> gpinsetfigure.tex ; \
+	    echo "  \end{figure}" >> gpinsetfigure.tex ; \
 	    echo "}" >> gpinsetfigure.tex ; \
 	  ) ; \
 	$(AM_V_GEN)touch $@