* Management of Docbook tags <note>, <caution>, <warning>, <important> and
<tip>. See bug #10505.
+* Function help_skeleton extended to propose the <revhistory>, <latex>, <note>,
+ <caution>, <warning>, <important> and <tip> tags in examples.
Xcos
====
' <title>' + _('Calling Sequence') + '</title>'
' <synopsis>' + Call + '</synopsis>'
' </refsynopsisdiv>'];
+
//Arguments
if size(args,'*') >0 then
txt=[txt;
' <refsection>'
- ' <title>' + _('Parameters') + '</title>'
+ ' <title>' + _('Arguments') + '</title>'
' <variablelist>']
for a=args'
txt=[txt;
' <term>' + a + '</term>'
' <listitem>'
' <para>'
- _(' Add here the parameter description.')
+ _(' Add here the input/output argument description.')
' </para>'
' </listitem>'
' </varlistentry>']
' </variablelist>'
' </refsection>'];
end
+
//Description
txt=[txt;
' <refsection>'
_(' Add here a paragraph of the function description. ')
_(' Other paragraph can be added ')
' </para>'
+ ' <para>With a latex expression'
+ ' <latex>'
+ ' \begin{eqnarray}'
+ ' f(x,a,r) = \frac{1}{r^{-a}\Gamma(a)} \int_0^x t^{a-1} \exp\left(-rt\right) dt'
+ ' \end{eqnarray}'
+ ' </latex>'
+ ' </para>'
+ ' </refsection>'];
+
+ // More information
+ txt=[txt;
+ ' <refsection>'
+ ' <title>' + _('More information') + '</title>'
+ ' <note><para>A note about foo</para></note>'
+ ' <caution><para>A caution about foo</para></caution>'
+ ' <warning><para>A warning about foo</para></warning>'
+ ' <important><para>An important about foo</para></important>'
+ ' <tip><para>A tip about foo</para></tip>'
' </refsection>'];
+
//Example
txt=[txt;
' <refsection>'
_(' Add here scilab instructions and comments')
' ]]></programlisting>'
' </refsection>'];
+
//See Also
txt=[txt;
' <refsection>'
' </member>'
' </simplelist>'
' </refsection>'];
+
//Authors
txt=[txt;
' <refsection>'
_(' Add here the function bibliography')
' </para>'
' </refsection>'];
+
+ // History
+ txt = [txt;
+ ' <refsection>'
+ ' <title>' + _('History') + '</title>'
+ ' <revhistory>'
+ ' <revision>'
+ ' <revnumber>X.Y</revnumber>'
+ ' <revdescription>Function foo added</revdescription>'
+ ' </revision>'
+ ' </revhistory>'
+ ' </refsection>'];
+
//Used functions
txt=[txt;
' <refsection>'