Closed briochemc closed 3 years ago
Indeed this also appears in regular formulas occasionally to allow for super-/subscripts left of a symbol. E.g. with so-called "twisted type groups" in abstract algebra, one has things like a group of type $^2D_4$
appear (see e.g. here: https://irandrus.files.wordpress.com/2012/06/periodic-table-of-groups.pdf). So in that sense, a symbol can have four "decorations", not just two. Of course in LaTeX this can't in general be expressed / distinguished cleanly...
Another common scientific use is isotopes, like 14C often LaTeX'd with $^{14}$C
for example.
Would it be possible to allow for things like
$^2$
without anything on the left? It does not seem possible currently... Minimal throwing example:
This is possible, I did expect it to be valid LaTeX though ^^'. I will need to experiment a bit to see what work well.
It look like the sub/superscript are not associated to the following character but to an empty space:
$_3^2 C_4$
$_3^2 V_4$
$_3^2 L_4$
$_3^2 A_4$
$M^2_3 C_4$
$V^2_3 C_4$
$V {}^2_3 C_4$
$L^2_3 C_4$
gives me
Maybe this just needs
\mathrm
(and\textrm
?) to be implemented as a work around?
This was implemented in #27, but I forgot to release a new version. This should be available once the release get to the general registry.
Maybe this just needs \mathrm (and \textrm?) to be implemented as a work around?
This was implemented in #27
I think only \mathrm
was implemented and not \textrm
, right?
I think only
\mathrm
was implemented and not\textrm
, right?
Hum... I implemented \mathrm
that just put stuff in roman font.
How is \textrm
supposed to differ? Quick search show me that it preserves space, but I may be missing something more subtle.
Not really much difference I agree. You could make \textrm
behave the same as \mathrm
I guess? 🤷
FWIW, I know that some specific LaTeX configurations make them look different, e.g., if you look carefully at the subscript A below (using an EGU journal template):
Would it be possible to allow for things like
$^2$
without anything on the left? It does not seem possible currently... Minimal throwing example:I stumbled upon this error trying to write unit exponents in LaTeX, e.g.,
"3.2 km hr$^{-1}$"
(where thekm
andhr
are in text mode). Maybe this just needs\mathrm
(and\textrm
?) to be implemented as a work around?