Re: [help-texinfo] Calling User Defined functions

2019-06-01 Thread Gavin Smith
On Thu, May 30, 2019 at 07:48:56PM +0200, Christopher Dimech wrote:
> 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}}

Can you send a minimal failing example with all the input files you used 
to get the error?  Can you also post the output you are actually 
getting?



Re: [help-texinfo] Calling User Defined functions

2019-06-01 Thread Gavin Smith
On Thu, May 30, 2019 at 07:08:13PM +0200, Christopher Dimech wrote:
> 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
> 

This does not create a function you can call from Texinfo.  I suggest 
reading the Texinfo manual on how to define macros using the @macro 
command.