Revision of help pages for tree2code, varargin and varargout. 67/14067/1
Stanislav KROTER [Tue, 18 Mar 2014 15:25:08 +0000 (21:25 +0600)]
Change-Id: Ib7879a1182afe1536b0eceee306da56bebecfe00

scilab/modules/functions/help/en_US/tree2code.xml
scilab/modules/functions/help/en_US/varargin.xml
scilab/modules/functions/help/en_US/varargout.xml
scilab/modules/functions/help/ja_JP/tree2code.xml
scilab/modules/functions/help/ja_JP/varargin.xml
scilab/modules/functions/help/ja_JP/varargout.xml
scilab/modules/functions/help/pt_BR/tree2code.xml
scilab/modules/functions/help/pt_BR/varargin.xml
scilab/modules/functions/help/pt_BR/varargout.xml

index f07230e..15f985e 100644 (file)
@@ -1,23 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA - 
- * 
+ * Copyright (C) INRIA -
+ *
  * This file must be used under the terms of the CeCILL.
  * This source file is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
- * are also available at    
+ * are also available at
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="tree2code">
     <refnamediv>
         <refname>tree2code</refname>
-        <refpurpose>generates ascii definition of a Scilab function</refpurpose>
+        <refpurpose>generates ASCII definition of a Scilab function</refpurpose>
     </refnamediv>
     <refsynopsisdiv>
         <title>Calling Sequence</title>
-        <synopsis>txt=tree2code(tree,prettyprint)</synopsis>
+        <synopsis>txt = tree2code(tree, prettyprint)</synopsis>
     </refsynopsisdiv>
     <refsection>
         <title>Arguments</title>
             <varlistentry>
                 <term>tree</term>
                 <listitem>
-                    <para>a macro tree (coming from macr2tree)</para>
+                    <para>
+                        a macro tree (coming from <function>macr2tree</function>).
+                    </para>
                 </listitem>
             </varlistentry>
             <varlistentry>
                 <term>prettyprint</term>
                 <listitem>
-                    <para>optional boolean value</para>
+                    <para>an optional boolean value:</para>
                     <variablelist>
                         <varlistentry>
                             <term>%T</term>
@@ -42,7 +44,9 @@
                         <varlistentry>
                             <term>%F</term>
                             <listitem>
-                                <para>generated code is not beautified (default)</para>
+                                <para>
+                                    generated code is not beautified (default)
+                                </para>
                             </listitem>
                         </varlistentry>
                     </variablelist>
@@ -51,7 +55,7 @@
             <varlistentry>
                 <term>txt</term>
                 <listitem>
-                    <para>a column vector of strings, the text giving the Scilab instructions</para>
+                    <para>a column vector of strings, the text giving the Scilab instructions.</para>
                 </listitem>
             </varlistentry>
         </variablelist>
     <refsection>
         <title>Description</title>
         <para>
-            Given a loaded Scilab function "tree" (returned by macr2tree), tree2code allows to
+            Given a loaded Scilab function "tree" (returned by <function>macr2tree</function>), <function>tree2code</function> allows to
             re-generate the code.
         </para>
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 tree=macr2tree(cosh);
 txt=tree2code(tree,%T);
 write(%io(2),txt,'(a)');
index 4ce33fa..9ba7fa7 100644 (file)
@@ -13,7 +13,7 @@
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="varargin" xml:lang="en">
     <refnamediv>
         <refname>varargin</refname>
-        <refpurpose>variable numbers of arguments in an input argument
+        <refpurpose>variable number of arguments in an input argument
             list
         </refpurpose>
     </refnamediv>
         </para>
         <para>
             Suppose that <literal>varargin</literal> keyword is the
-            <literal>n</literal> th argument of the formal input argument list, then
+            <literal>n</literal>-th argument of the formal input argument list, then
             if the function is called with less than <literal>n-1</literal> input
             arguments the <literal>varargin</literal> list is not defined, if the
             function is called with <literal>n-1</literal> arguments then
             <literal>varargin</literal> list is an empty list.
         </para>
         <para>
-            <literal>y= function ex(varargin)</literal> may be called with any
+            <literal>function y = ex(varargin)</literal> may be called with any
             number of input arguments. Within function <literal>ex</literal> input
-            arguments may be retrieved in <literal>varargin(i)</literal>
-            ,<literal>i=1:length(varargin)</literal>
+            arguments may be retrieved in <literal>varargin(i)</literal>, <literal>i=1:length(varargin)</literal>.
         </para>
-        <para>If it is not the last input argument of a function,
+        <para>
+            If it is not the last input argument of a function,
             <literal>varargin</literal> is a normal input argument name with no
             special meaning.
         </para>
         <para>
-            The total number of actual input arguments is given by <link linkend="argn">argn(2)</link>.
+            The total number of actual input arguments is given by <code>argn(2)</code>.
         </para>
     </refsection>
     <refsection>
         <title>Remark</title>
         <para>
-            Named argument syntax like <literal>foo(...,key=value) </literal> is
-            incompatible with the use of varargin. The reason is that the names (i.e.
-            keys) associated with values are not stored in the varargin list. Consider
+            Named argument syntax like <literal>foo(...,key=value)</literal> is
+            incompatible with the use of <literal>varargin</literal>. The reason is that the names (i.e.
+            keys) associated with values are not stored in the <literal>varargin</literal> list. Consider
             for instance:
         </para>
-        <para>function
-            foo(varargin),disp([varargin(1),varargin(2)]),endfunction
+        <programlisting role="no-scilab-exec"><![CDATA[
+function foo(varargin)
+    disp([varargin(1),varargin(2)])
+endfunction
+        ]]></programlisting>
+        <screen>
+            -->foo(a=1,b=2)
+            
+            1.    2.
+            
+            -->foo(b=1,a=2)
+            
+            1.    2.
+        </screen>
+        <para>
+            Result is the same, but the arguments were inverted.
         </para>
-        <para>foo(a=1,b=2)</para>
-        <para>Scilab answers: 1. 2.</para>
-        <para>foo(b=1,a=2)</para>
-        <para>Scilab answers: 1. 2.</para>
-        <para>Result is the same, but the arguments were inverted.</para>
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
-deff('exampl(a,varargin)',['[lhs,rhs]=argn(0)'
-                          'if rhs>=1 then disp(varargin),end'])
+        <programlisting role="example"><![CDATA[
+function exampl(a,varargin)
+    [lhs,rhs]=argn(0)
+    if rhs>=1 then
+        disp(varargin)
+    end
+endfunction
+
 exampl(1)
 exampl()
 exampl(1,2,3)
@@ -81,14 +95,17 @@ exampl(1,l(2:3))
         <title>See Also</title>
         <simplelist type="inline">
             <member>
-                <link linkend="function">function</link>
+                <link linkend="argn">argn</link>
             </member>
             <member>
-                <link linkend="varargout">varargout</link>
+                <link linkend="function">function</link>
             </member>
             <member>
                 <link linkend="list">list</link>
             </member>
+            <member>
+                <link linkend="varargout">varargout</link>
+            </member>
         </simplelist>
     </refsection>
 </refentry>
index 4662614..7d16539 100644 (file)
             <literal>varargout</literal> list defined in the function.
         </para>
         <para>
-            <literal>varargout= function ex()</literal> may be called with any
+            <literal>varargout = function ex()</literal> may be called with any
             number of output arguments. Within function <literal>ex</literal> output
-            arguments may be stored in in <literal>varargout(i)</literal>.
+            arguments may be stored in <literal>varargout(i)</literal>.
         </para>
         <para>
-            <literal>[X1,...Xn,varargout]= function ex()</literal> may also be
+            <literal>[X1,...,Xn,varargout] = function ex()</literal> may also be
             used. In this case the <literal>Xi</literal> variables must be assigned in
             the function as well as <literal>varargout(i)</literal>.
         </para>
         <para>
-            The actual total number of output argument is given <link linkend="argn">argn(1)</link>
+            The actual total number of output argument is given <code>argn(1)</code>.
         </para>
     </refsection>
     <refsection>
         <title>Remark</title>
         <para>
             The <literal>varargout</literal> variable must be created within the
-            function and assigned to a <link linkend="list">list</link>. If varargout
+            function and assigned to a <link linkend="list">list</link>. If <literal>varargout</literal>
             is the only formal output variable the list must contain at least one
             entry.
         </para>
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 function varargout=exampl()
   varargout=list(1,2,3,4)
 endfunction
@@ -74,14 +74,17 @@ exampl1()
         <title>See Also</title>
         <simplelist type="inline">
             <member>
-                <link linkend="function">function</link>
+                <link linkend="argn">argn</link>
             </member>
             <member>
-                <link linkend="varargin">varargin</link>
+                <link linkend="function">function</link>
             </member>
             <member>
                 <link linkend="list">list</link>
             </member>
+            <member>
+                <link linkend="varargin">varargin</link>
+            </member>
         </simplelist>
     </refsection>
 </refentry>
index 0d8cbe6..91a9c38 100644 (file)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA - 
- * 
+ * Copyright (C) INRIA -
+ *
  * This file must be used under the terms of the CeCILL.
  * This source file is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
- * are also available at    
+ * are also available at
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
@@ -17,7 +17,7 @@
     </refnamediv>
     <refsynopsisdiv>
         <title>呼び出し手順</title>
-        <synopsis>txt=tree2code(tree,prettyprint)</synopsis>
+        <synopsis>txt = tree2code(tree, prettyprint)</synopsis>
     </refsynopsisdiv>
     <refsection>
         <title>パラメータ</title>
@@ -25,7 +25,9 @@
             <varlistentry>
                 <term>tree</term>
                 <listitem>
-                    <para>マクロツリー (macr2treeの出力)</para>
+                    <para>
+                        マクロツリー (<function>macr2tree</function>の出力)
+                    </para>
                 </listitem>
             </varlistentry>
             <varlistentry>
     <refsection>
         <title>説明</title>
         <para>
-            読み込まれたScilab関数 "ツリー" (macr2treeの出力)を指定することで, tree2code
+            読み込まれたScilab関数 "ツリー" (<function>macr2tree</function>の出力)を指定することで, <function>tree2code</function>
             によりコードを再生することができます.
         </para>
     </refsection>
     <refsection>
         <title>Examples</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 tree=macr2tree(cosh);
 txt=tree2code(tree,%T);
 write(%io(2),txt,'(a)');
index f5ecdbd..5eb40c4 100644 (file)
             <literal>varargin</literal>リストは空のリストとなります.
         </para>
         <para>
-            <literal>y= function ex(varargin)</literal> は
+            <literal>function y= ex(varargin)</literal> は
             任意の数の入力引数を指定してコールすることが可能です.
             関数<literal>ex</literal>の中では, 入力引数は
-            <literal>varargin(i)</literal>,<literal>i=1:length(varargin)</literal>
+            <literal>varargin(i)</literal>, <literal>i=1:length(varargin)</literal>
             により取得可能です.
         </para>
         <para>
             入力引数の名前となります.
         </para>
         <para>
-            実際の入力引数の総数は,<link linkend="argn">argn(2)</link>で取得できます.
+            実際の入力引数の総数は,<code>argn(2)</code>で取得できます.
         </para>
     </refsection>
     <refsection>
         <title>注意</title>
         <para>
-            <literal>foo(...,key=value) </literal>のような名前付き引数構文は
-            vararginとは互換性がありません.
+            <literal>foo(...,key=value)</literal> のような名前付き引数構文は
+            <literal>varargin</literal>とは互換性がありません.
             その理由は,
-            値に対応する名前(すなわち, keys) が  varargin リストに
+            値に対応する名前(すなわち, keys) が  <literal>varargin</literal> リストに
             保存されないためです.
             例えば,以下について考えてみてください:
         </para>
-        <para>function
-            foo(varargin),disp([varargin(1),varargin(2)]),endfunction
-        </para>
-        <para>foo(a=1,b=2)</para>
-        <para>Scilab answers: 1. 2.</para>
-        <para>foo(b=1,a=2)</para>
-        <para>Scilab answers: 1. 2.</para>
+        <programlisting role="no-scilab-exec"><![CDATA[
+function foo(varargin)
+    disp([varargin(1),varargin(2)])
+endfunction
+        ]]></programlisting>
+        <screen>
+            -->foo(a=1,b=2)
+            
+            1.    2.
+            
+            -->foo(b=1,a=2)
+            
+            1.    2.
+        </screen>
         <para>結果は同じですが, 引数は逆になります.</para>
     </refsection>
     <refsection>
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
-deff('exampl(a,varargin)',['[lhs,rhs]=argn(0)'
-                          'if rhs>=1 then disp(varargin),end'])
+        <programlisting role="example"><![CDATA[
+function exampl(a,varargin)
+    [lhs,rhs]=argn(0)
+    if rhs>=1 then
+        disp(varargin)
+    end
+endfunction
+
 exampl(1)
 exampl()
 exampl(1,2,3)
 l=list('a',%s,%t);
 exampl(1,l(2:3))
- ]]></programlisting>
+]]></programlisting>
     </refsection>
     <refsection role="see also">
         <title>参照</title>
         <simplelist type="inline">
             <member>
-                <link linkend="function">function</link>
+                <link linkend="argn">argn</link>
             </member>
             <member>
-                <link linkend="varargout">varargout</link>
+                <link linkend="function">function</link>
             </member>
             <member>
                 <link linkend="list">list</link>
             </member>
+            <member>
+                <link linkend="varargout">varargout</link>
+            </member>
         </simplelist>
     </refsection>
 </refentry>
index 5e128fb..0736b47 100644 (file)
             出力引数を<literal>varargout(i)</literal>に保存することができます.
         </para>
         <para>
-            <literal>[X1,...Xn,varargout]= function ex()</literal> も
+            <literal>[X1,...,Xn,varargout] = function ex()</literal> も
             使用可能です.
             この場合,<literal>Xi</literal>引数は,
             <literal>varargout(i)</literal>と同様に
             関数内で代入される必要があります.
         </para>
         <para>
-            出力引数の実際の総数は,<link linkend="argn">argn(1)</link>で取得できます.
+            出力引数の実際の総数は,<code>argn(1)</code>で取得できます.
         </para>
     </refsection>
     <refsection>
         <para>
             <literal>varargout</literal> 変数は関数内で作成され,
             <link linkend="list">list</link>に代入される必要があります.
-            varargout が唯一の形式上の出力変数の場合,
+            <literal>varargout</literal> が唯一の形式上の出力変数の場合,
             リストには最低でも一つのエントリを含む必要があります.
         </para>
     </refsection>
     <refsection>
         <title>例</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 function varargout=exampl()
   varargout=list(1,2,3,4)
 endfunction
@@ -77,14 +77,17 @@ exampl1()
         <title>参照</title>
         <simplelist type="inline">
             <member>
-                <link linkend="function">function</link>
+                <link linkend="argn">argn</link>
             </member>
             <member>
-                <link linkend="varargin">varargin</link>
+                <link linkend="function">function</link>
             </member>
             <member>
                 <link linkend="list">list</link>
             </member>
+            <member>
+                <link linkend="varargin">varargin</link>
+            </member>
         </simplelist>
     </refsection>
 </refentry>
index d51c9ec..5108039 100644 (file)
@@ -1,23 +1,23 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA - 
- * 
+ * Copyright (C) INRIA -
+ *
  * This file must be used under the terms of the CeCILL.
  * This source file is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
- * are also available at    
+ * are also available at
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="tree2code" xml:lang="en">
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="tree2code" xml:lang="pt">
     <refnamediv>
         <refname>tree2code</refname>
         <refpurpose>gera a definição ASCII de uma função Scilab</refpurpose>
     </refnamediv>
     <refsynopsisdiv>
         <title>Seqüência de Chamamento</title>
-        <synopsis>txt=tree2code(tree,prettyprint)</synopsis>
+        <synopsis>txt = tree2code(tree, prettyprint)</synopsis>
     </refsynopsisdiv>
     <refsection>
         <title>Parâmetros</title>
@@ -25,7 +25,9 @@
             <varlistentry>
                 <term>tree</term>
                 <listitem>
-                    <para>uma árvore macro (vinda de macr2tree)</para>
+                    <para>
+                        uma árvore macro (vinda de <function>macr2tree</function>)
+                    </para>
                 </listitem>
             </varlistentry>
             <varlistentry>
     </refsection>
     <refsection>
         <title>Descrição</title>
-        <para>Dada uma função Scilab carregada "tree" (retornada por macr2tree),
-            tree2code permite gerar novamente o código.
+        <para>
+            Dada uma função Scilab carregada "tree" (retornada por <function>macr2tree</function>),
+            <function>tree2code</function> permite gerar novamente o código.
         </para>
     </refsection>
     <refsection>
         <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 tree=macr2tree(cosh);
 txt=tree2code(tree,%T);
 write(%io(2),txt,'(a)');
index 2e697e1..5ca92cd 100644 (file)
@@ -10,7 +10,7 @@
  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
  *
  -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="varargin" xml:lang="en">
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="varargin" xml:lang="pt">
     <refnamediv>
         <refname>varargin</refname>
         <refpurpose>variável do número de argumentos de saída em uma lista de
             lista vazia
         </para>
         <para>
-            <literal>y= function ex(varargin)</literal> pode ser chamada com
+            <literal>function y= ex(varargin)</literal> pode ser chamada com
             qualquer número de argumentos de entrada. Dentro da função
             <literal>ex</literal> argumentos de entrada podem ser recuperados em
-            <literal>varargin(i)</literal>
-            ,<literal>i=1:length(varargin)</literal>
+            <literal>varargin(i)</literal>, <literal>i=1:length(varargin)</literal>
         </para>
         <para>Se não for o último argumento de entrada da função,
             <literal>varargin</literal> é um argumento de entrada normal, sem nenhum
             significado especial.
         </para>
         <para>
-            O número de argumentos de entrada real é dado por <link linkend="argn">argn(2)</link>.
+            O número de argumentos de entrada real é dado por <code>argn(2)</code>.
         </para>
     </refsection>
     <refsection>
         <title>Observações</title>
         <para>
-            Sintaxe de argumento nomeada, como <literal>foo(...,key=value)
-            </literal>
-            ,é incompatível com o uso de varargin. A razão é que os nomes
+            Sintaxe de argumento nomeada, como <literal>foo(...,key=value)</literal>, é incompatível com o uso de <literal>varargin</literal>. A razão é que os nomes
             (i.e. keys) associados aos valores value não são armazenados na lista
-            varargin. Considere por exemplo:
+            <literal>varargin</literal>. Considere por exemplo:
         </para>
-        <para>function
-            foo(varargin),disp([varargin(1),varargin(2)]),endfunction
-        </para>
-        <para>foo(a=1,b=2)</para>
-        <para>O Scilab responde: 1. 2.</para>
-        <para>foo(b=1,a=2)</para>
-        <para>O Scilab responde: 1. 2.</para>
+        <programlisting role="no-scilab-exec"><![CDATA[
+function foo(varargin)
+    disp([varargin(1),varargin(2)])
+endfunction
+        ]]></programlisting>
+        <screen>
+            -->foo(a=1,b=2)
+            
+            1.    2.
+            
+            -->foo(b=1,a=2)
+            
+            1.    2.
+        </screen>
         <para>O resultado é o mesmo, mas os argumentos foram invertidos.</para>
     </refsection>
     <refsection>
         <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
-deff('exampl(a,varargin)',['[lhs,rhs]=argn(0)'
-                          'if rhs>=1 then disp(varargin),end'])
+        <programlisting role="example"><![CDATA[
+function exampl(a,varargin)
+    [lhs,rhs]=argn(0)
+    if rhs>=1 then
+        disp(varargin)
+    end
+endfunction
+
 exampl(1)
 exampl()
 exampl(1,2,3)
 l=list('a',%s,%t);
 exampl(1,l(2:3))
- ]]></programlisting>
+]]></programlisting>
     </refsection>
     <refsection>
         <title>Ver Também</title>
         <simplelist type="inline">
             <member>
-                <link linkend="function">function</link>
+                <link linkend="argn">argn</link>
             </member>
             <member>
-                <link linkend="varargout">varargout</link>
+                <link linkend="function">function</link>
             </member>
             <member>
                 <link linkend="list">list</link>
             </member>
+            <member>
+                <link linkend="varargout">varargout</link>
+            </member>
         </simplelist>
     </refsection>
 </refentry>
index 039dd5d..4a10632 100644 (file)
             extraídos da lista <literal>varargout</literal> definida na função.
         </para>
         <para>
-            <literal>varargout= function ex()</literal> pode ser chamado com
+            <literal>varargout = function ex()</literal> pode ser chamado com
             qualquer número de argumentos de saída. Dentro da função
-            <literal>ex</literal> , argumentos de saída podem ser armazenados em
+            <literal>ex</literal>, argumentos de saída podem ser armazenados em
             <literal>varargout(i)</literal>.
         </para>
         <para>
-            <literal>[X1,...Xn,varargout]= function ex()</literal> também pode
+            <literal>[X1,...,Xn,varargout] = function ex()</literal> também pode
             ser usado. Neste caso, as variáveis <literal>Xi</literal> devem estar
             atribuídas na função tanto quanto <literal>varargout(i)</literal>.
         </para>
         <para>
-            O número total real de argumentos de saída é dado por <link linkend="argn">argn(1)</link>
+            O número total real de argumentos de saída é dado por <code>argn(1)</code>
         </para>
     </refsection>
     <refsection>
         <para>
             A variável <literal>varargout</literal> deve ser criada dentro de
             uma função e atribuída a uma <link linkend="list">list</link>. Se
-            varargout for a única variável de saída formal, a lista deve conter pelo
+            <literal>varargout</literal> for a única variável de saída formal, a lista deve conter pelo
             menos uma entrada.
         </para>
     </refsection>
     <refsection>
         <title>Exemplos</title>
-        <programlisting role="example"><![CDATA[ 
+        <programlisting role="example"><![CDATA[
 function varargout=exampl()
   varargout=list(1,2,3,4)
 endfunction
@@ -65,6 +65,7 @@ function [a,b,varargout]=exampl1()
   b='second'
   varargout=list(1,2,3,4)
 endfunction
+
 exampl1()
 [a,b]=exampl1()
 [a,b,c]=exampl1()
@@ -74,14 +75,17 @@ exampl1()
         <title>Ver Também</title>
         <simplelist type="inline">
             <member>
-                <link linkend="function">function</link>
+                <link linkend="argn">argn</link>
             </member>
             <member>
-                <link linkend="varargin">varargin</link>
+                <link linkend="function">function</link>
             </member>
             <member>
                 <link linkend="list">list</link>
             </member>
+            <member>
+                <link linkend="varargin">varargin</link>
+            </member>
         </simplelist>
     </refsection>
 </refentry>