1
vote
1answer
74 views

Problem with latex math expression

I've been trying to write p = sqrt2^(sqrt2) like this $p= \sqrt 2^ (\sqrt2)$. And, the output I am getting is not what I am looking for. How can I write this properly?
2
votes
1answer
47 views

Latex matrix of real numbers R^3x3

I trying to write R^3x3 (for a matrix 3 columns and 3 rows) in Latex using this: \mathbb{R}^3x3 But all this does is put the first 3 in the power and then writes x3 next to it in normal text.I ...
7
votes
1answer
91 views

Changing font size in equations changes superscript size in text (LATeX)

I used \DeclareMathSizes{12}{20}{14}{10} to make my equations larger than the default output of LATeX (the parameters mean, as far as I understand, {font size}{equation regular text size}{equation ...
9
votes
2answers
329 views

Is there a convention for making text as an index in math

Taking an example from category theory, given a category "C", the opposite category is usually denoted "C^op". Where "op" is an abbreviation for opposite. Now there are three ways to put this in ...
18
votes
2answers
299 views

How to prevent superscripts from moving under \sqrt?

When I put an expression with superscripts under a \sqrt, the superscripts (here "vis") move down a bit. How can I prevent that, so that it looks consistent no matter whether it's under a root or not? ...
8
votes
0answers
166 views

Einstein summation convention [closed]

In Einstein's summation convention, it is sometimes necessary to have subscript and superscript indices in a certain order. If you just use ^ and _, these indices would appear on top of one another, ...
24
votes
3answers
623 views

Strange default exponent positioning?

Why is this red exponent so far away from the right parenthesis? To my eye it is too far away. \documentclass{article} \usepackage{xcolor} \begin{document} ...
4
votes
2answers
114 views

How to define a command \exponent that transforms $\exponent^e$ to $a^eb^ec^e$?

I have tried to define a command $\exponent$ that would look for next exponent and would put a copy of this exponent after a, another after b and a last one after c. $\exponent^e$ would transform to ...
4
votes
3answers
682 views

Alternatives to asterisk and star for superscripts

While writing a paper, I find myself exhausted with superscript symbols to denote similar types of variables. I have used x, x^\ast (i.e. x*), x^\star and x'. I can't use symbols which sit right on ...
7
votes
2answers
136 views

What's the “opposite” of \limits?

If I write something like $\bigwedge^k$ inline, I get the desired effect -- the k is typeset up and to the right like an exponent, rather than immediately above the wedge. If I'm in a displayed ...
6
votes
3answers
224 views

Super and subscripts with \DeclarePairedDelimiter

I defined a macro for the supremum norm by \DeclarePairedDelimiter{\supnorm}{\|}{\|_\infty} which works nicely. However, as soon as I want to place a superscript like \supnorm{f}^2 things look ...
9
votes
1answer
214 views

Consistent vertical positioning of superscripts

This is somehow a follow-up question to this one. I've got the following math expression: \nabla_y u_0^{(i)}\nabla_y v^{(i)} However, no matte, whether I enclose the v in curly brackets or not (as ...
7
votes
3answers
205 views

Force inline-type superscript for display equations (but display-type subscript)

I am trying to create a macro \jjoin for a mathematical operator which roughly produces the following behaviour: Inline: \bigvee^{(J)}, subscript (typically i \in I) goes in the usual position (as in ...
7
votes
2answers
190 views

Automatically Raising Subscripts

I have the following expression J_{ne}\boldsymbol{\mathsf{J}}_{ne}^{-1} which is awkward in the sense that as the second (sans-serif) J has a superscript that the subscripted indices are lower than ...
4
votes
1answer
193 views

How to put a subscript in a superscript

How can I write the following thing? a^(b_c), b being a superscript of a, and c being a subscript of b.
9
votes
2answers
154 views

recursive multiple subscript and superscript with xparse

How can I define a new command with xparse, something like this: \NewDocumentCommand\tensorkor{ m >{\SplitList{,}}o >{\SplitList{,}}o } { ????? } that i can execute $ ...
12
votes
2answers
405 views

Differences in vertical positioning of superscripts and subscripts depending on grouping (`{ }`): Why? Caveats? Workarounds?

This question about {(x+y)}^2 vs (x+y)^2 drew my attention to the slightly different vertical positioning of super- and subscripts for such expressions. Compare (x+y)^8_8 (left) and {(x+y)}^8_8 ...
8
votes
1answer
193 views

Why doesn't \mathord work to turn an Acc atom into Ord?

Writing ${\dot X^a}^b$ produces a very cryptic "double superscript" error: this has been explained here on this forum: the reason is that {\dot X}^a generates an Acc atom and that, for a reason that ...
3
votes
1answer
751 views

Combining Textstyle and Displaystyle

In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, ...
10
votes
2answers
3k views

My prime symbol is not superscript

I'm learning math mode and having an issue here with the prime symbol. $y\in[0,1]^{d\prime}$ In this inline math formula, the prime symbol is supposed to be superscript, but it shows up at the ...
3
votes
1answer
191 views

superscript asterisk on the left side of different symbols (math mode)

I need to add superscript asterisks to the left side of different symbols like +,\cdot,\leq,\mathbb{R}. I read several different solutions to similar questions, which recommended either \prescript, ...
9
votes
6answers
276 views

math shorthand macro: avoid extra space from empty superscript

I find myself writing $\{0,1\}^x$ a whole lot, so I want to define a shorthand macro: \def\zo#1{\{0,1\}^{#1}} However, sometimes I need $\{0,1\}$ with no superscript. If I write \zo{} I get a tiny ...
22
votes
3answers
1k views

maths nested superscripts and subscripts displayed incorrectly inline

I am having a strange bug when using nested superscripts and subscripts in inline math (displaystyle works fine). This behaviour is the same independently of the font used or the compiler (orginally ...
10
votes
2answers
583 views

Weird relative positioning of superscript and subscript with \dot, \bar

Minimal working example: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ {A^\mu}_\nu \] \[ {\bar{A}^\mu}_\nu \] \end{document} The result is. Why is the placement of ...
10
votes
1answer
502 views

Fractions in superscripts are placed too low

I have noticed that "tall" superscripts seem to be placed awkwardly low in math mode; their baseline is so close to the main baseline that confusion has happened. \documentclass{article} ...
1
vote
1answer
476 views

Combining \operatorname with \mathnormal and \mathrm

Related Question: Typesetting the square of a mathematical operator \operatorname converts its argument into a function symbol with appropriate spaces on the left and on the right. However, I ...
2
votes
2answers
927 views

Sub-/Superscripts in Headings/Normal Text [duplicate]

Possible Duplicate: How to typeset subscript in usual text mode? I sometimes want to typeset something simple like $N_2$ or $3^2$ in a Heading, other times in a paragraph of normal text. I ...
11
votes
3answers
884 views

Statistical significance stars

What's wrong with my code for three stars (***)? It's so ugly compared to my ** and *. \documentclass{article} \newcommand{\oneS}{\ensuremath{{}^{\textstyle *}}} ...
4
votes
1answer
527 views

Better looking nested subscripts and superscripts

I have a situation where I need to subscript a superscript in math mode (and actually, subscript that subscript in some cases). (Please don't waste time telling me to change my notation; this is the ...
2
votes
1answer
158 views

Global change of notation

Consider the MWE below. In the first notation the superindex is higher than necessary since the lower end of the brackets is taken as reference point for the box in which the superindex is set. This ...
13
votes
1answer
7k views

normal high asterisk in equation mode

I was looking back at some of the equations that I had written and noticed that the asterisks weren't behaving how I was expecting it to (I also understand that my expectations may differ from other ...
9
votes
1answer
175 views

Best and recommended way to write prime on i in $i^{th}$

I have two $i^{th}$ and $i^{\prime th}$ and it is hard to see prime in $i^{\prime th}$. I would like to know the opinion of expert LaTeX users about this. I wonder what is the best and recommend way ...
8
votes
3answers
169 views

Is appending superscripts possible?

Let's say I want to write N^{eT}, but have N^e as a predefined command \Ne. Thus, I want to append the character T to the superscript of \Ne. Is this possible? (Note that I don't want to write ...
2
votes
2answers
5k views

How to make a superscript on the upper left hand corner of a letter? [duplicate]

Possible Duplicate: Left and right subscript How can I make a superscript on the upper left hand corner of a letter?
8
votes
1answer
228 views

Enriching \to^*

I am trying to enrich $\to^*$ with a $w$ above it, and the cleanest look I could get was with the {\smash {\overset w \rightarrow}}^* command. However, I believe this to be a pretty ugly solution, and ...
8
votes
1answer
251 views

Nice-looking $x_i^j$

When I write $x_i^j$, the j is very high up, and it looks ugly. (This problem is especially apparent in the New Century Schoolbook font.) I know that TeX is capable of automatically lowering it, ...
6
votes
1answer
378 views

Redefine the default depth of superscript and subscript document-wide

The behavior of subscript and supscript operator _ and ^ is like a blackbox to me, I am curious if I could redefine the behavior of them globally for a document. I searched the forum and found ...
4
votes
2answers
253 views

How do I specify 8^(a - b) in math mode

$8^(a - b)$ produces only a superscripted (; the rest of the power is not superscripted. How can I superscript the whole (a-b) portion?
6
votes
3answers
302 views

Emitting LaTeX a “token” at a time, handling superscripts

I am outputting LaTeX from another source language, but one that only gives me things a source-token at a time. Thus, I may get a token corresponding to “begin superscript” and then I will later get ...
1
vote
1answer
670 views

Position of Exponent Relative to Base

I'm having a problem in that the position of an exponent, relative to the base, is too low. For example, with capital letters or mathbb the top of the exponent is almost in line with the top of the ...
13
votes
5answers
1k views

Double superscript error involving tilde

When I write {{\tilde{C}}^{0}_{har}}^{\Gamma} (or the same with fewer curly brackets) in Tex I obtain a double superscript error and I can't solve it. Does someone know how to fix this?
15
votes
3answers
8k views

Double superscript error

I'm a relative beginner with Lyx. When I type in this code I'm hoping for T' to be followed by superscripts and subscripts. Instead I get a "double superscript" error when I try to view the pdf \[ ...
16
votes
4answers
6k views

How to typeset indices before a symbol?

I know how to write a usual index with the help of the underscore, but I seem to be unable to find out how to write an (upper/lower) index in front of a letter/text. These kind of indices are common ...
6
votes
1answer
2k views

Writing (mixed) tensors

Does anybody know about a specific package for handling tensors? Consider, for example, a contraction of the type ...
3
votes
2answers
3k views

Arrow with an asterisk superscript and text above?

I'm trying to create an arrow (or \mapsto) that has text above it and also an asterisk superscript — where the asterisk is only a superscript for the arrow, if that makes sense. I've been trying ...
0
votes
1answer
201 views

Which one should be chosen for making a transposition of matrices: `fourIdx`, `leftidx`, `tensor`, `subsupscripts`, `mathtools`?

I want to get a transposition symbol of matrices like ^t(1 2 3), as title. I used the macro \prescript (in mathtools) at present. There is no any problem occured, these packages' macros work well. I ...
4
votes
2answers
1k views

Position of superscript when superscriptd item has \hat over it

I am trying to typeset he following inline math for a camera-ready document: $\hat{\boldsymbol \Sigma}_{P}^{-1} \hat{\boldsymbol \Sigma}_{G}$ It appears that the superscript -1 is aligned ...
12
votes
1answer
237 views

Is there a way to stop the vertical spread of multiple super- and sub-scripts?

I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were ...