[Ns-bugs] [Bug 1062] New: rescale-pdf not working
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Thu Feb 24 05:38:03 PST 2011
http://www.nsnam.org/bugzilla/show_bug.cgi?id=1062
Summary: rescale-pdf not working
Product: ns-3
Version: ns-3-dev
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P5
Component: documentation
AssignedTo: tomh at tomh.org
ReportedBy: nbaldo at cttc.es
CC: ns-bugs at isi.edu
Estimated Hours: 0.0
I am trying to build the manual with latest ns-3-dev (r6828)
The build stops at the first time rescale-pdf.sh is to be executed:
nicola at pcnbaldo:~/locale/ns-3-dev/doc/manual$ make html
dia -t eps figures/internet-node-send.dia -e figures/internet-node-send.eps
figures/internet-node-send.dia --> figures/internet-node-send.eps
[snip]
dia -t png figures/auvmobility-classes.dia -e figures/auvmobility-classes.png
figures/auvmobility-classes.dia --> figures/auvmobility-classes.png
epstopdf figures/internet-node-send.eps -o=figures/internet-node-send.pdf; if
test x5in != x; then TMPFILE=`mktemp`; ./rescale-pdf.sh 5in
figures/internet-node-send.pdf ${TMPFILE} && mv ${TMPFILE}
figures/internet-node-send.pdf; fi
I can make the build continue if I disable rescale-pdf in this way:
diff -r 26b3f160b071 doc/manual/Makefile
--- a/doc/manual/Makefile Wed Feb 23 23:05:02 2011 +0000
+++ b/doc/manual/Makefile Thu Feb 24 14:23:23 2011 +0100
@@ -46,7 +46,9 @@
%.eps : %.dia; $(DIA) -t eps $< -e $@
%.png : %.dia; $(DIA) -t png $< -e $@
-%.pdf : %.eps; $(EPSTOPDF) $< -o=$@; if test x$($@_width) != x; then
TMPFILE=`mktemp`; ./rescale-pdf.sh $($@_width) $@ $${TMPFILE} && mv $${TMPFILE}
$@; fi
+%.pdf : %.eps; $(EPSTOPDF) $< -o=$@
+
+#; if test x$($@_width) != x; then TMPFILE=`mktemp`; ./rescale-pdf.sh
$($@_width) $@ $${TMPFILE} && mv $${TMPFILE} $@; fi
Besides, I think there is an error in rescale-pdf.sh:
diff -r 26b3f160b071 doc/manual/rescale-pdf.sh
--- a/doc/manual/rescale-pdf.sh Wed Feb 23 23:05:02 2011 +0000
+++ b/doc/manual/rescale-pdf.sh Thu Feb 24 14:23:23 2011 +0100
@@ -4,7 +4,7 @@
echo "\documentclass{book}
\usepackage{pdfpages}
-\\begin{document}
+\begin{document}
\includepdf[width=${1},fitpaper]{${2}}
\end{document}" >${TMPFILE}.tex
pdflatex -output-directory /tmp ${TMPFILE}.tex >/dev/null 2>/dev/null
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list