New answers tagged

0

I share your concerns. I often end up adding phantom subscripts in these case, which can be added to make the appearance more uniform. (In the presence of a subscript, the superscript moves up.) \documentclass{article} \usepackage{amsmath} \newcommand{\PP}{_{\vphantom{Lg}}} \begin{document} \[ L\PP^p \quad \left\|.\right\|_{L\PP^p} \quad \|.\|^{...


4

Try this: \documentclass{article} \usepackage{amsmath} \begin{document} \fbox{SK$_{i,\mathrm{GID}}$} \end{document}


1

I tracked the problem to the following: When you define the newcommands the command is not a single token, thus you cannot put a superindex if another exists. You need to add extra braces to your newcommands definitions \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{physics} \numberwithin{equation}{section} \...


1

What you need is some strategic placement of curly braces. Basically, you can't just type a^b^c in LaTeX, because it woudn't understand that the entire b^c part is supposed to be the superscript. Instead, you have to enclose that in braces, like this: a^{b^c}. The same thing happens in your equation - you just need to sprinkle in some more braces. The ...


5

The contents of a tabular environment are processed in text mode by default, even if the tabular environment occurs inside a display-math environment such as align*. Since the ^ character has a special meaning in TeX and LaTeX documents, you need to switch to math mode in order to get 2^{25} processed correctly, assuming you want to keep using a tabular ...


2

You can use \textsuperscript (but you shouldn't; the superscripts are relics of the Victorian age, that a well-known word processor arbitrarily inflicted to all users thereof). \documentclass{article} \usepackage{termcal} \makeatletter \renewcommand\@rdend[1]{\textsuperscript{\ifcase#1 th\or st\or nd\or rd\else th\fi}} \makeatother \newcommand{\WFClass}{% ...


4

You have the catcode change in the wrong place, \makeatletter does nothing here \newcommand{\subsup}{ \makeatletter \AtBeginDocument{ \check@mathfonts \fontdimen16\textfont2=2.5pt \fontdimen17\textfont2=2.5pt \fontdimen14\textfont2=4.5pt \fontdimen13\textfont2=4.5pt} \makeatother} you want \makeatletter \newcommand{\subsup}{ \AtBeginDocument{ \check@...


5

To make the math expression look better, I would not bother with either shifting up the large square brackets or with pulling down the exponent term. Instead, I would use inline-fraction notation to reduce the needlessly large vertical size of the exponent term; this adjustment will also let you use less-prominent square brackets. And, it will make the ...


Top 50 recent answers are included