Mercurial > hg > octave-lyh
changeset 6670:14992092ab06
[project @ 2007-05-29 17:51:37 by jwe]
author | jwe |
---|---|
date | Tue, 29 May 2007 17:51:37 +0000 |
parents | 39d76485706a |
children | 9042b00fc45e |
files | doc/interpreter/install.txi doc/interpreter/io.txi doc/interpreter/tips.txi src/pr-output.cc |
diffstat | 4 files changed, 24 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/install.txi +++ b/doc/interpreter/install.txi @@ -281,19 +281,19 @@ @item If you encounter errors like -@smallexample +@example @group passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' @end group -@end smallexample +@end example @noindent or -@smallexample +@example warning: ANSI C++ prohibits conversion from `(int)' to `(...)' -@end smallexample +@end example @noindent while compiling @file{sighandlers.cc}, you may need to edit some files @@ -341,7 +341,7 @@ Some of the Fortran subroutines may fail to compile with older versions of the Sun Fortran compiler. If you get errors like -@smallexample +@example zgemm.f: zgemm: warning: unexpected parent of complex expression subtree @@ -355,7 +355,7 @@ expression subtree pcc_binval: missing IR_CONV in complex op make[2]: *** [zgemm.o] Error 1 -@end smallexample +@end example @noindent when compiling the Fortran subroutines in the @file{libcruft}
--- a/doc/interpreter/io.txi +++ b/doc/interpreter/io.txi @@ -352,20 +352,20 @@ formatted and written to the output stream. For example, @cindex conversion specifications (@code{printf}) -@smallexample +@example pct = 37; filename = "foo.txt"; printf ("Processing of `%s' is %d%% finished.\nPlease be patient.\n", filename, pct); -@end smallexample +@end example @noindent produces output like -@smallexample +@example Processing of `foo.txt' is 37% finished. Please be patient. -@end smallexample +@end example This example shows the use of the @samp{%d} conversion to specify that a scalar argument should be printed in decimal notation, the @samp{%s} @@ -441,9 +441,9 @@ The conversion specifications in a @code{printf} template string have the general form: -@smallexample +@example % @var{flags} @var{width} @r{[} . @var{precision} @r{]} @var{type} @var{conversion} -@end smallexample +@end example For example, in the conversion specifier @samp{%-10.8ld}, the @samp{-} is a flag, @samp{10} specifies the field width, the precision is @@ -690,9 +690,9 @@ other flags are defined, and no precision or type modifier can be given. For example: -@smallexample +@example printf ("%c%c%c%c%c", "h", "e", "l", "l", "o"); -@end smallexample +@end example @noindent prints @samp{hello}. @@ -705,9 +705,9 @@ left-justification in the field, but no other flags or type modifiers are defined for this conversion. For example: -@smallexample +@example printf ("%3s%-6s", "no", "where"); -@end smallexample +@end example @noindent prints @samp{ nowhere } (note the leading and trailing spaces). @@ -770,9 +770,9 @@ The conversion specifications in a @code{scanf} template string have the general form: -@smallexample +@example % @var{flags} @var{width} @var{type} @var{conversion} -@end smallexample +@end example In more detail, an input conversion specification consists of an initial @samp{%} character followed in sequence by: @@ -909,9 +909,9 @@ For example, reading the input: -@smallexample +@example hello, world -@end smallexample +@end example @noindent with the conversion @samp{%10c} produces @code{" hello, wo"}, but
--- a/doc/interpreter/tips.txi +++ b/doc/interpreter/tips.txi @@ -227,9 +227,9 @@ This line states the name and net address of at least the principal author of the library. -@smallexample +@example ## Author: John W. Eaton <jwe@@bevo.che.wisc.edu> -@end smallexample +@end example @item Maintainer This line should contain a single name/address as in the Author line, or
--- a/src/pr-output.cc +++ b/src/pr-output.cc @@ -3075,7 +3075,7 @@ rows is labeled so that you can easily see which columns are currently\n\ being displayed. For example:\n\ \n\ -@smallexample\n\ +@example\n\ @group\n\ octave:13> rand (2,10)\n\ ans =\n\ @@ -3090,7 +3090,7 @@ 0.90174 0.11854 0.72313 0.73326\n\ 0.44672 0.94303 0.56564 0.82150\n\ @end group\n\ -@end smallexample\n\ +@end example\n\ @end deftypefn") { return SET_INTERNAL_VARIABLE (split_long_rows);