Newsgroups: comp.text.tex
>I want to define a style, say relax, as simple as this: > >\newcommand{\relax}[1]{ >\textsf{#1} >} > >When I use "\relax{some words}", the font didn't change. How can I >fix it? thanks
when reporting a problem, tell us what you actually wrote, or tell us about any error messages you encountered: \newcommand\relax produces an error since \relax is already defined.
if you ignored an error message on defining \relax, then the result is expected. the command \relax says "do nothing" (to first order).
Note: if you want to write your commands on several lines, terminate the lines with comment signs.
\newcommand{\fred}[1]{% \textsf{#1}% }
works, and doesn't convert unprotected line ends into spaces in your output.
Robin Fairbairns, Cambridge