@c This file is part of Maxima -- GPL CAS based on DOE-MACSYMA

@ifhtml
@macro fname {name}
@*@ @ @ @ @t{\name\}
@end macro
@end ifhtml
@iftex
@macro fname {name}
@*@t{\name\}
@end macro
@end iftex
@ifinfo
@macro fname {name}
@*\name\
@end macro
@end ifinfo

@ifhtml
@macro figure {file}
@image{../figures/\file\}
@end macro
@end ifhtml
@iftex
@macro figure {file}
@center @image{../figures/\file\, 10cm}
@end macro
@end iftex
@ifinfo
@macro figure {file}
(Figura \file\)
@end macro
@end ifinfo

@c Macros for cross references

@ifhtml
@macro mref {nodename}
@code{@ref{\nodename\}}
@end macro

@macro mxref {nodename, text}
@code{@ref{\nodename\, \text\}}
@end macro

@macro mrefdot {nodename}
@code{@ref{\nodename\}}.
@end macro

@macro mxrefdot {nodename, text}
@code{@ref{\nodename\, \text\}}.
@end macro

@macro mrefcomma {nodename}
@code{@ref{\nodename\}},
@end macro

@macro mxrefcomma {nodename, text}
@code{@ref{\nodename\, \text\}},
@end macro

@macro mrefparen {nodename}
@code{@ref{\nodename\}})
@end macro

@end ifhtml

@c Non html versions of the macros

@ifnothtml

@macro mref {nodename}
@code{\nodename\}
@end macro

@macro mxref {nodename, text}
@code{\text\}
@end macro

@macro mrefdot {nodename}
@code{\nodename\}.
@end macro

@macro mxrefdot {nodename, text}
@code{\text\}.
@end macro

@macro mrefcomma {nodename}
@code{\nodename\},
@end macro

@macro mxrefcomma {nodename, text}
@code{\text\},
@end macro

@macro mrefparen {nodename}
@code{\nodename\})
@end macro

@end ifnothtml
