Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to create extensions in LaTeX. What I really want to do is be able to write \myOwnCommand and have something happen to it, like a new class and functions in programming. It would be great to write the instructions of a game, for example \dice3 and have a little image of a dice and the face with three dots appear.

I have seen people using \newcommand{\XXXXXXX}{XXXXXX}, but i'm not sure how to actually do it.

share|improve this question

migrated from stackoverflow.com May 27 '13 at 13:09

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner May 27 '13 at 14:02
    
A little tutorial: en.wikibooks.org/wiki/LaTeX/Macros –  John Wickerson May 27 '13 at 14:09
    
Did you try Googling "latex newcommand"? –  Ryan Reich May 27 '13 at 15:52

1 Answer 1

it's rather simple. check it out

and -by the way- your question belongs to TeX SE site which is only a hint for future tex/latex questions.

TeX SE site

share|improve this answer
    
Thank you very much! –  user1895443 May 26 '13 at 20:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.