I think a macro would do the trick and have been trying The image is not showing up and I am getting an error.
@macro dispimg {imgnm} File Name: \imgnm\ @center @image{\imgnm\,10cm,,,.png} @end macro @set imgnm ./q208--files/208--2051 @dispimg{@value{imgnm}} > Sent: Thursday, May 30, 2019 at 5:36 PM > From: "Christopher Dimech" <dim...@gmx.com> > To: "Christopher Dimech" <dim...@gmx.com> > Cc: "help-texinfo gnu" <help-texinfo@gnu.org> > Subject: Re: [help-texinfo] Calling User Defined functions > > > I think I have made a mistake. What I want to do is call the following > thing everytime by just passing the parameters. > > > @float Figure,fig-208-2051 > @center @image{@value{imgnm},@value{imgsz},,,.png} > @caption{@value{explan} > @flushright > @* Label: @t{@value{fignm}} > @c Return to @ref{identification--of--hazards,, @value{idh}}. > @end flushright > } > @shortcaption{@value{shtc}.} > @end float > > Is there any simpler way to call the same sequence of commands but using > just different parameters for me to display many figures? > > > > > > Sent: Thursday, May 30, 2019 at 5:08 PM > > From: "Christopher Dimech" <dim...@gmx.com> > > To: "help-texinfo gnu" <help-texinfo@gnu.org> > > Subject: [help-texinfo] Calling User Defined functions > > > > I have produced a simple function put I do not know how to use it. > > Tried checking the manual but have not been able to find where it > > mentions how user define functions can be used. > > > > @deffn Command disp-expr imgnm > > The name of the image is @var{imgnm} > > @end deffn > > > > >