New answers tagged

1

You have to load amsmath: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \frac{E}{A}=\dot{\widetilde{x}}^2+e^{-2\widetilde{x}}-2e^{-\widetilde{x}} \\ \frac{V}{A}=e^{-2\widetilde{x}}-e^{2\widetilde{x}}\approx -1+\widetilde{x}^2 \end{gather*} \end{document} The reason is that without amsmath, the math extension font is ...


3

Here's a start, with \Ss{}{}{}. EDITED to work with displaystyle stuff, too. EDITED to automatically work with subscripting styles, as well. FIXED obvious bug that macro did not behave properly if superscript length exceeded subscript length. \documentclass{article} \usepackage{amsmath,stackengine,scalerel} ...


0

For example, you can try this: \def\sf#1_#2^#3{% \setbox1=\hbox{$\scriptstyle#2$}% \setbox2=\hbox{$\scriptstyle#3$}% \ifdim\wd2>\wd1 \dimen0=\wd2 \else \dimen0=\wd1 \fi \setbox2=\hbox to\dimen0{\hss\box2}% \setbox1=\hbox to\dimen0{\hss\box1}% #1_{\box1}^{\box2} } $\sf x_{100}^{2}$ \bye


5

I'm not sure what's the purpose of this, but here it is: \documentclass{article} \usepackage{mathtools} \DeclareRobustCommand{\subsup}[3]{{% \mathpalette\makesubsup{{#1}{#2}{#3}}% }} \makeatletter \providecommand{\@firstofthree}[3]{#1} \providecommand{\@secondofthree}[3]{#2} \providecommand{\@thirdofthree}[3]{#3} \newcommand{\makesubsup}[2]{% ...


1

Regardless of how you are implementing mathmode, this will move the superscripts closer to what they precede: ^g\!p = {}^g\!R^l_l+{}^g\!o_l This will work inside single or double $, inside align, etc. If the issue was simply that you didn't want the superscripts appended to the symbols before them, then you have your answer already by inserting the {}. ...


6

Or \resizebox of the same package graphicx ... \documentclass{article} \usepackage{graphicx} \newdimen\antes \setlength{\antes}{4em} \gdef\mb#1{\resizebox{\antes}{!}{#1% \global\addtolength{\antes}{-.15\antes}}} \begin{document} $\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{% \mb{2}^{\mb{2}^{\mb{2}^{\mb{2}^{\mb{2}}}}}}}}}}}$ \end{document}


6

You could use \scalebox command from the graphicx package and make a macro that does this. But, as mentioned by @cfr in the comments to your question, readability very quickly becomes an issue. \documentclass{article} \usepackage{graphicx} \newcommand\aesuper[2][0.90]{^{\scalebox{#1}{$\scriptstyle#2$}}} \begin{document} \[ ...


7

Perhaps, instead of $DM_i_j$ you need to type $DM_{i_j}$ or ${DM_i}_j$ depending of what you have in mind.



Top 50 recent answers are included