Macro

exercise No. 13

Q:

Create a user defined command \mysalute expecting two parameters to be used in the following way:

\mysalute{Mr.}{Jim Bean}

The formatting expectation is:

Mr Jim Bean

Mind the user's name to become boldface.

Tip

Read about \newcommand optionally allowing for parameters.

A:

\newcommand{\mysalute}[2]{Hello #1 \textbf{#2}}