I would like to use a small image in an equation, where a symbol like
\alpha might otherwise be. Is there a nice way to do this?
It won't scale nicely with font size, but a simple approach is straightforward. The image should have a tight bounding box, which you can achieve with tools like pdfcrop.
With the suggestions from the comments, I wrote a better solution.
The symbol scales like a capital X for subscript and subsubscripts.
|show 8 more comments|
Yes, you can. There is nearly no difference between a image and a symbol. Just define a command for convenience. You can also use
However, you may need to redefine the depth of the box, and refine the spacing using
A full example (suppose a
Mikael and Leo both gave good answers so I won't repeat that information.
If you need the image centered with respect to binary operators, fractions, and the like, then you can use