Search found 2 matches

by yoopits
Thu Sep 29, 2011 12:23 am
Forum: Math & Science
Topic: Programming Language Variables
Replies: 3
Views: 4811

Re: Programming Language Variables

I figured that efg was being treated like 3 variables; or perhaps that the f was being treated like the symbol for "function". I also ran across \mathrm, \mathit, and so forth.

The main thing, though, was to find a way to define a multi-letter variable. So thank you for the macro. That gives me an ...
by yoopits
Wed Sep 28, 2011 3:27 am
Forum: Math & Science
Topic: Programming Language Variables
Replies: 3
Views: 4811

Programming Language Variables

(I'm new to TeX and LaTeX) I would like to create math expressions with multi-letter variable names as used in programming languages. For example, in
a^2 + efg^2
I would like "efg" to be treated like a single variable, just like "a".

Can anyone help? Is there something I should read concerning this?