Search found 3 matches

by ThermanMerman
Fri Jan 11, 2008 7:33 pm
Forum: General
Topic: Trouble with \newcommand
Replies: 7
Views: 5859

Re: Trouble with \newcommand

The last one worked for me as well. Maybe I just typed wrong on the first attempt. Anyway, it's working now so thanks to both of you! :)
by ThermanMerman
Fri Jan 11, 2008 6:42 pm
Forum: General
Topic: Trouble with \newcommand
Replies: 7
Views: 5859

Trouble with \newcommand


Try
\newcommand\ans[1]{\underline{\underline{#1}}}
and use it in the usual way:
\ans{250}


I'm afraid it didn't work properly. It returned 0250 with the double lines only under the first 0.


Perhaps you may find useful the \uuline or even the \uwave commands in the ulem package. Put ...
by ThermanMerman
Fri Jan 11, 2008 6:03 pm
Forum: General
Topic: Trouble with \newcommand
Replies: 7
Views: 5859

Trouble with \newcommand

I'm using LaTeX for math assignments, and I ran into a problem with the following.

The desired effect is (making two lines under the answer)
\underline{\underline{250}}
Not wanting to punch in all that every time (I mean, it takes like 4 seconds!) I tried this
\newcommand{\ans}{\underline ...