New answers tagged

3

You can do it, but I see no point: if the superscripts and subscripts should be outside the scope of the overline, place them outside the argument. Note that the k feature of xparse I'm using is classified as experimental and may disappear in the future (not really likely). \documentclass{article} \usepackage{xparse} \newcommand{\mset}[1]{\makemset#1} \...


2

Here's a LuaLaTeX-based solution. It scans the input for instances of \mset{...} and rearranges the argument "on the fly", so that only leading single or multiple letters are part of the argument of \mset. Whitespace before or after the left-hand curly brace is allowed. \documentclass{article} \newcommand{\mset}[1]{\overline{#1}} \usepackage{luacode} \...


3

Even with your definition, you can use \mset R_2^1 and it will work as you want. In any case, in case you definitely want \mset{R_2^1} you can use \newcommand*\mset[1]{\overline#1} Which will work as you want, and it will even work with the \mset R_2^1 syntax.


0

The described behaviour is caused by setting LeftMargin in the document settings Local Layout. This is because InsetLayouts (which control the layout of sub/superscripts, among other things) inherit the global margin settings, with no possibility to adjust the margin to their own values (missing feature). A bug report ticket has been raised at http://www....


5

The following implementation of \myprime may be what you're looking for. \newcommand\myprime{\mkern-3.5mu\raise0.6ex\hbox{$\scriptstyle\prime$}} The \mkern-3.5mu instruction shifts the material to the left, while \raise0.6ex raises it a bit. \documentclass{article} \usepackage{newpxtext,newpxmath} % Palatino clone text and math font \newcommand\myprime{...


2

Perhaps I am missing the boat here, but it seems to me like the desired output (that of sub and superscripts mashed leftward en masse) is particularly difficult to mentally digest, because associated things that I would expect to be vertically aligned are not. So I will take the liberty of suggesting a slightly different approach. My goal is that sub- and ...


2

I'm not sure I fully understand your setup. To me, it looks like you're OK with the second expression, viz., $\ushort{\bm{\proj{\Omega}}}_{Ll\mathrm{h}1,\xi}^{\mathrm{K}k[b]2}$ except that it can't be used, as is, in "moving" arguments of instructions such as \section and \caption. To fix this situation, I suggest you (a) load the etoolbox package and (b)...


2

Although this should be fixed for consistensy in mathtools, a fix could be to do something like this, as my original comment mentioned: \documentclass[11pt]{article} \usepackage{mathtools} \begin{document} \begin{align} % Original code, \prescript at wrong height \prescript{*}{}{\left(X^*\right)} \cong X \cong \left(\prescript{*}{}{X}\right)^*\\ % Just ...


2

Use the fouridx package instead: Edit: I also included the suggestion by the O.P. to smash the parentheses in order to have lower *s \documentclass{article} \usepackage{mathtools} \usepackage{fouridx} \begin{document} \[ \fourIdx{*}{}{*}{}{\!(X})\quad (\fourIdx{*}{}{*}{}{\!X)} \] \[ \fourIdx{*}{}{*}{}{\!\smash{(}X})\quad (\fourIdx{*}{}{*}{}{\!X\...



Top 50 recent answers are included