Search found 4 matches

by pkledgrape
Wed Mar 28, 2012 1:16 am
Forum: General
Topic: Using output of one (new)command as input of another
Replies: 0
Views: 1473

Using output of one (new)command as input of another

Eventually, I'm trying to draw playing cards using tikz; I can do this very nicely typing everything out every single time, but it would be nice to just have a command like
\card{3}{H}
which would draw a 3 of hearts for me.

As such: I've defined two commands, \suit and \suitcolor, as follows ...
by pkledgrape
Sun Sep 11, 2011 4:13 pm
Forum: General
Topic: Messing with Command Arguments
Replies: 1
Views: 1830

Messing with Command Arguments

Ok, I know this isn't the most TeX-like of coding, but I'm trying to make a mini-package for instructors of this one course at my Uni, and I'd like to make it very readable.

What I am looking for: a way to make a command that takes one input from its left side, and one from its right side.

I know ...
by pkledgrape
Sat May 07, 2011 10:42 pm
Forum: General
Topic: Making a command that can take input from the left
Replies: 2
Views: 2031

Making a command that can take input from the left

Thanks for your reply! I now know more about the motivations and backend of LaTeX.

Ok, so \atop (and \atopwithdelims) are how \choose, in particular, is made - and based on what the linked document says, this is exactly why people prefer \binom now.

Maybe I should not be so cagey about what I'm ...
by pkledgrape
Sat May 07, 2011 7:19 pm
Forum: General
Topic: Making a command that can take input from the left
Replies: 2
Views: 2031

Making a command that can take input from the left

I'm inspired by the format of {n \choose k} (which I know is not as preferred as \binom{n}{k}, but it suggests to me that what I hope to achieve is possible). So perhaps let's recreate that as the minimal example?

I want to write a new command which will take its first input from the left, and its ...