diff doc/interpreter/stmt.txi @ 9209:923c7cb7f13f

Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction. spellchecked all .txi and .texi files.
author Rik <rdrider0-list@yahoo.com>
date Sun, 17 May 2009 12:18:06 -0700
parents fca0dc2fb042
children 322f43e0e170
line wrap: on
line diff
--- a/doc/interpreter/stmt.txi	Sun May 17 21:34:54 2009 +0200
+++ b/doc/interpreter/stmt.txi	Sun May 17 12:18:06 2009 -0700
@@ -220,6 +220,7 @@
 following way
 
 @example
+@group
 if (X == 1)
   do_something ();
 elseif (X == 2)
@@ -227,6 +228,7 @@
 else
   do_something_completely_different ();
 endif
+@end group
 @end example
 
 @noindent
@@ -235,6 +237,7 @@
 statement.  Using this statement, the above example becomes
 
 @example
+@group
 switch (X)
   case 1
     do_something ();
@@ -243,6 +246,7 @@
   otherwise
     do_something_completely_different ();
 endswitch
+@end group
 @end example
 
 @noindent
@@ -283,6 +287,7 @@
 @samp{Variable is either 6 or 7}.
 
 @example
+@group
 A = 7;
 switch A
   case @{ 6, 7 @}
@@ -290,6 +295,7 @@
   otherwise
     printf ("variable is neither 6 nor 7\n");
 endswitch
+@end group
 @end example
 
 As with all other specific @code{end} keywords, @code{endswitch} may be
@@ -313,11 +319,13 @@
 is possible to write programs that look like this
 
 @example
+@group
 switch (X)
   case "a string"
     do_something
   @dots{}
 endswitch
+@end group
 @end example
 
 @menu
@@ -581,7 +589,7 @@
 
 @noindent
 In the above case, the multidimensional matrix @var{c} is reshaped to a
-two dimensional matrix as @code{reshape (c, rows(c),
+two-dimensional matrix as @code{reshape (c, rows(c),
 prod(size(c)(2:end)))} and then the same behavior as a loop over a two
 dimensional matrix is produced.