I'm sure this is simple but I can't find a solution for this. I have a table defined with a custom column to align along the decimal point. As a result, the content is being treated as being in math mode. Because the table is large, I'd like to reduce the size of the font in each cell, but normal font size commands do not work in math mode. I tried using the relsize command in the column definition but that doesn't seem to work. So is it possible to control the font size in math mode? Thanks in advance!
Two solutiions might work: 1) relsize has a \mathsmaller command (see the doc in relsize.sty itself) 2) The nccmath package (from the ncctools bundle) has medium-sized math commands, which reduce the size by 20%, which is usually sufficient.
Thanks for the suggestions! I did try \mathsmaller but it didn't work very well. Because I use dcolumn to create new column type, every digit is treated separately so in order to get 0.66 to be consistent, I need:
I couldn't get the nccmath package working. Its conflicting with another package, and I don't want to debug the file at this point to figure out what its mad at. Amsmath causes an error as well so something is grumpy. As a work around I forced the data to be the same size and switched back to normal column types.
I'd have to say this is one area where a WYSIWYG editor is a better solution than hand sculpting a document in latex...I don't have to debug my file to get it working, it may look bad, but at least it will print...
a quick solution is provided by \everymath. In the following modification of your example I temporarily set \scriptstyle for all inline math, limit the effect by \begingroup ... \endgroup: