diff --git a/tutorial/Makefile b/tutorial/Makefile index d8e5a159251d3ae55a9675a93aec30a8c0932bb5..b9b4e5da7054234cbc4d8f5ad727c870b861fbaa 100644 --- a/tutorial/Makefile +++ b/tutorial/Makefile @@ -1,3 +1,4 @@ + all: @if `pwd`/../bin/pike -e 'return 0;' 2>/dev/null; then \ $(MAKE) pike=`pwd`/../bin/pike low_all; \ @@ -12,7 +13,7 @@ MADEFILES=Image.wmml Mysql.wmml ProtocolsLysKOM.wmml \ SRCFILES=tutorial.wmml $(MADEFILES) -pike=/home/hedda/pike07_/install/bin/pike +pike=pike DESTINATION=/usr/local/share/pike/tutorial/ .DUMMY: diff --git a/tutorial/latex.pike b/tutorial/latex.pike index 267a6ab27f8a5a7b3ee111ed6a16211a330c0166..2adb0851870664bd0d9837d0508b6f6667eaffd3 100644 --- a/tutorial/latex.pike +++ b/tutorial/latex.pike @@ -172,7 +172,7 @@ array(SGML) split_lines(SGML data) array(float) find_max_width(array(SGML) datas) { - array(SGML) pieces=Array.map(datas,split_lines); + array(array(SGML)) pieces=Array.map(datas,split_lines); array(float) widths=find_line_width(pieces * ({})); int pos=0; array(float) ret=allocate(sizeof(pieces)); @@ -284,7 +284,7 @@ array(SGML) split_words(SGML data) array(float) find_min_width(array(SGML) datas) { - array(SGML) pieces=Array.map(datas,split_words); + array(array(SGML)) pieces=Array.map(datas,split_words); array(float) widths=find_line_width(pieces * ({})); int pos=0; array(float) ret=allocate(sizeof(pieces)); diff --git a/tutorial/tutorial.wmml b/tutorial/tutorial.wmml index 81414649bd433f0ccabef548b0645b670925f77c..2b1ecd5ca7048c98d1962b05deab0a98a5e33bf4 100644 --- a/tutorial/tutorial.wmml +++ b/tutorial/tutorial.wmml @@ -1469,7 +1469,7 @@ Also, these functions operates on floats: <dt><tt>float ceil(float <i>x</i>)</tt>, <dd>This function computes the smallest integer value greater than or equal to <i>x</i> and returns it as a <tt>float</tt>. -</dl> + <dt><tt>float round(float <i>x</i>)</tt>, <dd>This function computes the closest integer value to <i>x</i> and returns it as a <tt>float</tt>.