Talk:TeX/def

Missing of definition of macros with optional parameters. Except of that, a good page


 * Optional parameters are provided in Latex by e.g. \newcommand[1][default for param1]{Got ``#1"}. (And there is a package (optparam?) for more optional parameters.) If you are Latex user, you should use \newcommand*, anyway. In TeX, you have to program optional parameters yourself, using e.g. some \ifx and \futurelet 90.180.192.165 (discuss) 08:24, 2 December 2012 (UTC)

Please add more examples on roughly how a defined macro will show at output.

Please provide examples (or a link to a different page) for calling a command with 2 or more arguments...

Could someone please provide a reference for the statements:

The first argument must be delimited by two square brackets

Note that there should not be any space after parameter text

These statements are not consistent with the \Tex book (texbook: http://www.ctex.org/documents/shredder/src/texbook.pdf, chapter 20), nor are they consistent with experimentation.