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 use macros like \varphi or \vartheta quite often, and I've recently discovered, there is also a \varnothing which is a bit like the \emptyset.

My question is: How or where can I get a list of symbols beginning with \var*

And in general, is there a way, I can get XeLaTeX print out commands that are defined?

share|improve this question
Why not grep the sources? The problem then (more or less) reduces to knowing which are primitives and which are defined - but this is easily solvable with The TeXbook. (Of course, some formats might redefine things - both primitives and macros, e.g. \input - but then, source2e.pdf to the rescue!) –  mbork May 10 at 16:50
It's not possible to dump the commands that are defined, at least from within TeX; the only way is do a memory dump and look at it (I wouldn't try myself). –  egreg May 10 at 17:16
add comment

2 Answers 2

up vote 6 down vote accepted

It depends on used classes and packages. If you are interested on possibilities, The Comprehensive LaTeX Symbol List http://www.ctan.org/tex-archive/info/symbols/comprehensive/ should be a good starter. In the index you have about one hundred names starting with \var.

share|improve this answer
hmm, this is what I've pretty much came up with also. I though there might be a LaTeX command, that would allow me to print such variables, etc. Kinda like it's possible in Matlab, etc... –  polemon May 10 at 17:33
OK, I've tried many things suggested in here, and searching the document is the best option (with a good viewer, like evince). –  polemon May 11 at 21:25
add comment

Partial answer

Searching for var on all files used by TeXstudio for autocompletion I found this list (note that not all of them begins with var):

share|improve this answer
add comment

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.