macros.texi 748 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. \input texinfo @c -*-texinfo-*-
  2. @node Top
  3. @top Test macro with include file and macro in macro
  4. @c makeinfo doesn't like:
  5. @c a new macro: @@<: @< !!!
  6. @c makeinfo doesn't like:
  7. @c @@aa without brace @aa
  8. The file included:
  9. @include file.texi
  10. File has been included.
  11. @macro macro1 {arg1, arg2 }
  12. result of a macro with \arg1\ and
  13. @include file.texi
  14. \arg2\
  15. @end macro
  16. Right. @macro1 { @samp{first arg
  17. no ?}, second arg}
  18. Now define macro2
  19. @macro macro2 { arg }
  20. With a doubles arg \arg\ and re \arg\
  21. @end macro
  22. Call macro2
  23. @macro2 { a simple @code{
  24. arg}
  25. }
  26. Call macro2 with 2 args
  27. @macro2 { arg with comma , here }
  28. Define macro3
  29. @macro macro3 { arg }
  30. @example
  31. /arg/
  32. /arg/
  33. @end example
  34. @end macro
  35. Call macro3
  36. @macro3 { an arg }
  37. @contents
  38. @bye