1
## Copyright (C) 2008 Muthiah Annamalai
3
## This program is distributed in the hope that it will be useful,
4
## but WITHOUT ANY WARRANTY; without even the implied warranty of
5
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6
## GNU General Public License for more details.
8
## You should have received a copy of the GNU General Public License
9
## along with this program; If not, see <http://www.gnu.org/licenses/>.
1
## Copyright (C) 2008 Muthiah Annamalai <muthiah.annamalai@mavs.uta.edu>
3
## This program is free software; you can redistribute it and/or modify it under
4
## the terms of the GNU General Public License as published by the Free Software
5
## Foundation; either version 3 of the License, or (at your option) any later
8
## This program is distributed in the hope that it will be useful, but WITHOUT
9
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13
## You should have received a copy of the GNU General Public License along with
14
## this program; if not, see <http://www.gnu.org/licenses/>.
13
17
## @deftypefn{Function File} infoskeleton(@var{prototype}, @var{index_str}, @var{see_also})
14
## @cindex infoskeleton
15
## The function @var{infoskeleton} generates TeXinfo skeleton documentation of the
16
## given @var{prototype}. Optionally @var{index_str} and @var{see_also}
18
## Generate TeXinfo skeleton documentation of @var{prototype}.
20
## Optionally @var{index_str} and @var{see_also} can be specified.
19
22
## Usage of this function is typically,
89
92
## generate the code
90
93
fprintf("## -*- texinfo -*-\n")
91
94
if ( length( retval ) > 0 )
92
fprintf("## @deftypefn{Function File} {@var{%s} = } %s (", \
95
fprintf("## @deftypefn{Function File} {@var{%s} = } %s (", ...
95
fprintf("## @deftypefn{Function File} { } %s (", \
98
fprintf("## @deftypefn{Function File} { } %s (", ...
120
123
fprintf("## @seealso{%s}\n",seealso);
121
124
fprintf("## @end deftypefn\n");
124
## infoskeleton( ' [x,y,z]=infoskeleton(func , z , z9 , jj, fjh, x) ')
125
## infoskeleton('[V,Q] = eig( A )','linear algebra','eigs, chol, qr, det')
126
## infoskeleton( 'function [x,y,z] = indian_languages ( x) ')
127
%!demo infoskeleton( ' [x,y,z]=infoskeleton(func , z , z9 , jj, fjh, x) ')
128
%!demo infoskeleton('[V,Q] = eig( A )','linear algebra','eigs, chol, qr, det')
129
%!demo infoskeleton( 'function [x,y,z] = indian_languages ( x) ')