I just updated to the most recent version of the book, on Ubuntu 9.10,
and got the following error when trying to make the book:
~/books/pav-numerical-analysis-2% make
funky perl func to convert figs/nr.qps to hookable figs/nr.pps
Backslash found where operator expected at -e line 4, near ") \"
(Missing operator before \?)
Backslash found where operator expected at -e line 7, near "} \"
(Missing operator before \?)
Backslash found where operator expected at -e line 13, near ") \"
(Missing operator before \?)
syntax error at -e line 2, near "if"
syntax error at -e line 4, near "while"
syntax error at -e line 6, near "while"
syntax error at -e line 7, near ";}"
syntax error at -e line 11, near "while"
syntax error at -e line 16, near "while"
syntax error at -e line 17, near "; }"
Execution of -e aborted due to compilation errors.
make: *** [figs/nr.pps] Error 255
rm figs/nr.pps
Does anyone know what is wrong? I don't know enough perl to see what
should be correct.
Thanks,
Jason
On Tue, 26 Jan 2010, Jason Grout wrote:
> Hi everyone,
>
> I just updated to the most recent version of the book, on Ubuntu 9.10, and
> got the following error when trying to make the book:
>
> ~/books/pav-numerical-analysis-2% make
> funky perl func to convert figs/nr.qps to hookable figs/nr.pps
> Backslash found where operator expected at -e line 4, near ") \"
> (Missing operator before \?)
> Backslash found where operator expected at -e line 7, near "} \"
> (Missing operator before \?)
> Backslash found where operator expected at -e line 13, near ") \"
> (Missing operator before \?)
> syntax error at -e line 2, near "if"
> syntax error at -e line 4, near "while"
> syntax error at -e line 6, near "while"
> syntax error at -e line 7, near ";}"
> syntax error at -e line 11, near "while"
> syntax error at -e line 16, near "while"
> syntax error at -e line 17, near "; }"
> Execution of -e aborted due to compilation errors.
> make: *** [figs/nr.pps] Error 255
> rm figs/nr.pps
hi Jason;
good find.
the short answer is that I just checked in a change to the Makefile
which should fix this.
the long boring answer is that apparently the raw Perl which I used to stash in
my Makefile is no longer being quoted correctly, perhaps due to changes in
Make, which resulted in this error; some of the figures in the text were
generated using kseg, which I used to do a lot of my exploratory research in
computational geometry, but which exported figures with unicode text, which
psfrag couldn't hook; I developed this hairball of a Makefile with automatic
Perl conversions of the unicode while writing my thesis (actually, Make is
having Perl write raw Postscript, which sums up the insanity of grad school for
me).
hth, keep 'em coming..
- --sep
[ Steven E. Pav {bikes/bitters/linux} nerd ]
[ google voice: 909.SHBYCHF shabbychef a.t gmail d0t com ]
[ parent of tinyurl.com/oskarpix ]
[ a palindrome: untidy obtaining up misuse Jesus impugn in I at ]
[ a palindrome: Boyd it nu ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
iD8DBQFLXwYyKBuIYpNp6roRAvmSAJ41Z2522bok9f8gLAtSwHHZ6s9cfQCcDKw6
h24/XkqojGBxWJ18fOeIZm8=
=Zbbq
-----END PGP SIGNATURE-----
Nice. Everything seems to work fine now. Hooray for the ease of
pushing/pulling revisions!
I'm working right now on a nice little unit on representation of
floating point numbers for class tomorrow. I'll post more when I get
finished.
Thanks,
Jason
Partly because of David's query and partly because of my textbook
conversion project [1], I spent about 15 minutes with this.
Here is a quick-and-dirty-way to build something approximating
Steven's intent. Copy all the style files out of the ./styfiles
directory and into the main directory (alongside numas.tex). Then
run pdflatex numas.tex
I get a nice table of contents after a couple runs - but all the
figures seem to complain and get rotated 90 degrees. Didn't
investigate because I was just trying to get things organized to run
through the tex4ht translator. I imagine some things are missing by
taking this shortcut.
tex4ht ran up through about Chapter 9 (of 12) before crapping out - a
very good sign. *Everything* seems to be centered for some reason.
Octave code boxes come through very nicely - I'm going to have to
steal that bit of code. Sectioning (chapters, etc) isn't recognized
by tex4ht so it builds one huge file (though each footnote gets its
own file!). I ran all this through my latex-to-sage worksheet
converter, which worked well, modulo problems noted above. tex4ht
converted all the eps files to png's automatically and they appear in
the worksheet.
Anyway, executive summary is that I suspect with just a bit of spit-
and-polish this book would all convert nicely to a collection of Sage
worksheets.
Rob
[1] http://groups.google.com/group/sage-devel/browse_thread/thread/879384ce3f809ecb