Questions tagged [subscripts]
{subscripts} are smaller characters appearing set slightly below the normal line.
768
questions
1
vote
2
answers
196
views
there is a subscript bug in beamer [closed]
I am making my slides with beamer but when I put two mathematical modes (??) it fails and I tried everything and I can't find the answer to solve it.
- Objetivo general
- Al$_2$
this works fine, ...
2
votes
3
answers
218
views
Subscripting a custom \mathbin operator
I have a custom binary operator
\newcommand{\foo}{\mathbin{\bullet^*}}
I now need to subscript sometimes, but clearly I get
instead of
Is there a way to make mathbin pass the subscript to its ...
1
vote
0
answers
20
views
Overriding default subscript/superscripts with the tensor package
I wonder if it is possible to override the default sub/superscript commands with the ones coming from the tensor* package. So I would like TeX to read d^*_E as \tensor*{d}{^*_E}.
The reason why I am ...
5
votes
2
answers
452
views
Subscripts in fractions on an exponent look terrible
It seems that whenever we have a fraction in an exponent, the denominator looks terrible. For example,
The K in the subscript looks unduly large. This is definitely a bug or something. Is there any ...
1
vote
2
answers
122
views
How to compact an expression in subscript vertically?
I thought LaTeX would figure out by default that it should adjust some settings for the base of the logarithm in $\log_{2\sqrt[6]x}{1994}$ but it doesn't. The root symbol is too tall and extends too ...
0
votes
1
answer
119
views
Locally delete ^ and _ in braces
I want to delete ^ and _ in a braces like \left( and \right) so that size change of braces ignores super and subscripts.
I want to define it as a macro, but use of xstring package does not allow me to ...
3
votes
2
answers
72
views
Automatically typeset subscripts upright - how to make it compatible with greek letters?
I am looking for a way to typeset subscripts (that may contain greek letters and umlauts) upright, as a default, when using math-mode.
Upright subscripts as a default have been asked for before, and ...
2
votes
2
answers
207
views
Control height of subscript in LaTeX
I have a problem with the following code
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\operatorname{P}_{\widehat{Y}} \quad \operatorname{P}_{Y} \\
\end{align*}
\end{...
14
votes
2
answers
2k
views
Is it bad style to write x^2, 2^\frac{1}{2} and 2^\sqrt{2}?
Is it considered bad style to write:
x^2, 2^\frac{1}{2} and 2^\sqrt{2} (without curly brackets around the superscript)
instead of:
x^{2}, 2^{\frac{1}{2}} and 2^{\sqrt{2}}?
The same for subscripts.
3
votes
1
answer
93
views
Change height of superscripts and depth of subscripts
How do I change the height of the superscripts (to make them higher) and the depth of the subscripts (to make them lower) in math mode formulas in LaTeX? For the subscripts I have tried the following ...
2
votes
1
answer
74
views
Wider accent with lmodern
I'd like to create wider accents which are visible.
The accepted answer to this question is the ideal solution; it uses the accents package.
My problem appears if I use this solution with the Latin ...
0
votes
3
answers
51
views
How to change height and depht for superscript and subscript outside math mode?
To display in a decent way both superscript and subscript after some text I'm using these commands
\rlap{\textsuperscript{}}\textsubscript{}
and it works.
I'm looking for a way to increase the ...
1
vote
1
answer
53
views
\mathchoice in subscript/superscript
I attempted to redefine certain math relations using \mathchoice so that they don't need to be grouped when used as subscripts and superscripts just like how they behaved originally. However, the MWE ...
2
votes
1
answer
49
views
apply bar or tilde to symbol only (ignore subscript)
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
$ \bar{S_{i,k}} $
\end{document}
What I want is to span the bar only over the letter S. Obviously, the solution to this is $\bar{...
1
vote
1
answer
57
views
Superscript on top and subscript on bottom in equation
\documentclass[12pt]{article}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[latin1]{inputenc}
\begin{document}
\begin{equation}
u_{k}^{i} = \frac{\...
0
votes
0
answers
32
views
Italics for subscripts (indexes) or use roman (upright)?
How do you place the indices of e.g. resistors in an electrical network?
For $R_1$, $R_2$ (resistor values): here the 1 and 2 are up (roman).
So should you place $R_A$ or place R_\text{A}. In most ...
2
votes
3
answers
192
views
How do I overset and underset with prescript, superscript, and subscripts?
I am trying to make over/underset play nicely with scripts. However, the alignment is wrong, and I am not sure how to fix it.
If I put the prescript in the overset and underset, i.e. \underset{\beta}{\...
0
votes
2
answers
65
views
Creating operator with arguments above and below
I am working with creating an operator which has too look like this:
I wanna make clear that I need to change the arguments many times in my document because I am showing relation properties between ...
1
vote
0
answers
65
views
Vector Notation Latex [duplicate]
Does someone know how can I write this type of notation in Latex?
4
votes
2
answers
196
views
Different spacing of only superscript vs superscript and subscript + mathrm vs operatorname
I'd like to have superscript terms (gt) on the same line in the whole equation, but after I write the equation:
$\mathbf{T}^{\mathrm gt}=\{\mathbf{T}^{\mathrm gt}_1,\mathbf{T}^{\mathrm gt}_2,\ldots,\...
0
votes
1
answer
32
views
Add vertical space inside \underset
I have this code:
\begin{equation*}
\underset{\z \in \mathbb{R}^n}{\min}\ \underset{\y \in \mathbf{B}^{n-1}_{\infty}}{\max} \ \left\{\frac{1}{2} \right\} .
\end{equation*}
This results into ...
1
vote
3
answers
45
views
Subscript under subset sign [duplicate]
How can one achieve a sub-index and super-index over a subset sign, as in the following image:
I have not found any resources online. Thanks!
2
votes
2
answers
194
views
What is this superscript problem with omega and Omega?
I get the problem explained below with Overleaf and Texstudio.
The MWE is
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\noindent The coding
\begin{verbatim}
$\Omegaˆ+$ and $\...
4
votes
3
answers
292
views
Subscripts position in \sum and \sup
I am trying to write the following formula
I have written this code on Overleaf but I don't like the result
\[
||u||_{\ell^p} =
\begin{cases}
\big(\sum_{n=1}^{\infty} |u_n|^p\big)^{\...
10
votes
2
answers
623
views
A subscript that is closer to the tip of the nabla symbol
With the command \nabla_x f(x, y), I have
I think this is not aesthetic. Is there a way to get the subscript closer to the tip of nabla symbol? Something looks like
Thank you so much for your ...
0
votes
0
answers
85
views
How to write undertext in alignment environment [duplicate]
Couldn't find as answer to this question in the site:
I want to write $A_i=\cap_{g\in G} gH_ig^{-1}$, But it shows me(in overleaf) this -
While I want the $g\in G$ be UNDER the $\cap$.
3
votes
2
answers
151
views
Double subscript nagging from Overleaf
I'm trying to write a derivative wrt to time i.e. dot, in a bold face matrix, which uses the leftindex environment, but Overleaf nags about double subscript (even though it shows it correctly). Can ...
3
votes
2
answers
253
views
add subscript when expression already has a subscript
A subscript to a subscript can be accomplished by a_{b_c} in a way that the c is really subscript to b, and both together subscript to a. However, {a_b}_c behaves differently (either b and c appear at ...
2
votes
2
answers
143
views
Subscript right below (not to the right of) superscript in tables
I'm trying to get the subscript right below the superscript, in a table in Latex. I'm using this code:
\begin{table}[htbp]
\centering
\begin{threeparttable}
\caption{To evaluate the statistical ...
0
votes
1
answer
73
views
Reason for \in positioning, and possible fix?
All the tex layouts I've seen thus far produce something like:
In displaystyle the off-centering (or centering?) of the \in symbol isn't very noticable, however it is in scriptstyle. Also:
The same ...
0
votes
0
answers
29
views
\rlap in subscript leads to larger subscript [duplicate]
MWE:
\documentclass{article}
\usepackage{xcolor}
\begin{document}
$M_{\theta}$ % correct size theta
$M_{\rlap{\ensuremath{\theta}}}$ % too large theta
\end{document}
Why does this happen? How can I ...
1
vote
2
answers
130
views
How to define a command that can be used as a superscript without {} and that can have a subscript
I have used \theta hundreds of times in my document. Now I decided that I would like all thetas to be in red color.
So I would like to redefine the command \theta to create a red theta.
MWE:
\...
0
votes
1
answer
53
views
How to write subindex with subset in greek letters
I'm having a hard time to write a "a vector of parameters with subindex".
Here is what I have:
$\underset{\sim}{\hat{\theta}_0}$
%or
$\underset{\sim}{\hat{\theta_0}}$
%or
$\underset{\sim}{\...
1
vote
0
answers
38
views
Double subscript error on ${\tilde a_0}_0$? [duplicate]
${a_0}_0$ compiles fine: ${a_0}_0$
${\tilde a_0}_0$ yields a "double subscript" error.
Why is that and how can I fix it?
0
votes
0
answers
62
views
A better \sum limits display style?
Consider the following
y_j=\sum_{k=0}^n \sum_{i=\max(-k,1-j)}^{\min(k,n-j)} x_{j+i}
I do not like the second summation limits style. Is there any better alternative to this?
0
votes
0
answers
48
views
redefine subscripts [duplicate]
The code a_x_y is undefined in pdflatex, it could mean a_{x_y}, {a_x}_y, a_{xy}, or a_x{}_y.
Is there a way to define a_x_y as a_{xy} by default, as is in XeTex?
4
votes
1
answer
139
views
operatorname vs text in subscripts
I often see things like \lambda_{\min} or \lambda_{\max} in papers. To me, it seems that the "min" and "max" are not used as operators, but rather as text, so it would be better to ...
1
vote
1
answer
60
views
How to achive that subscripts/superscripts are scaled with the font size in a robust command?
I would like to use smaller fonts for the subscripts and superscripts in a user-defined LaTeX command. Do you have any ideas how to scale down the subscripts/superscripts proportionally? My MWE is the ...
1
vote
1
answer
37
views
How to make subscript follow the large angle instead of aligning with the bottom line of the equation?
I have the following latex code and I don't know how to align the subscript f with the \rangle.
Making the langle and rangle bigger is also possible but I didn't find a solution. I've tried to use ...
4
votes
3
answers
261
views
Tables containing Young diagrams
I would like to make a table containing Young diagrams and some other text. Also
I would like some of the diagrams to have subscripts or superscripts. Here is my first attempt. Does anyone know how ...
0
votes
1
answer
45
views
A (somewhat) picky subscript notation? [closed]
This is probably a weird question, but I will ask it anyway. I am trying to find a certain syntax for the following notation. I have
However, I want to write j = i +1.
These do not look good:
A ...
0
votes
1
answer
164
views
LyX and jlcode: subscript, superscript and other special characters
I am trying jlcode within a LyX document in order to insert Julia codes. Here is an exemple of the .tex file in the case of an elementary program:
%% LyX 2.3.6 created this file. For more info, see ...
0
votes
0
answers
28
views
Allow consecutive subscripts/superscripts for UTF-8 typing [duplicate]
Is is possible to allow consecutive subscripts/superscripts? I’m discovering the joy of typing UTF-8 characters easily from my keyboard (thanks bépo) and I’d love to be able to type x²ˣ instead of x^{...
2
votes
0
answers
28
views
Lowering the superscript [duplicate]
Is it possible to lower the superscript in
to achieve something like this?
9
votes
2
answers
373
views
Adjust italic correction for a math symbol for subscripts
I am using the DejaVu math font and noticed that the zero in f_0 is very far away from the f.
% !TeX program = lualatex
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{texgyredejavu-...
0
votes
2
answers
50
views
How to align a title with an subscript below of it
Right now, I have this code:
\documentclass{book}
\renewcommand\sfdefault{cmss}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[top = 2.54cm, bottom = 2.54cm, left = 1.5cm, right = 1.5cm]{...
5
votes
3
answers
381
views
How to make indices (math mode super- and sub-script) uniform size?
I use Latex primarily to write tensor algebra, typically with a variety of latin and greek indices depending on the context. Normally this is fine, but I have noticed that occasionally some of the ...
1
vote
0
answers
29
views
Recommendations for multiletter subscripts in an equation [closed]
Are there recommendations for multiletter subscripts in equations?
I need to use fr for "friction" and the plain old _{fr} doesn't look very good.
\documentclass[border=1mm]{standalone}
\...
2
votes
1
answer
88
views
Spacing of subscripts on subscripted variables that themselves appear in subscripts
I'm trying to improve the spacing on and around the eta symbol that I typeset below. I use the symbol to denote elasticity (in economics). Eta will appear in expressions that can grow quite long, and ...
1
vote
1
answer
56
views
Double superscript. error from Maple latex code after updating
All my files no longer compile after running my program due to such errors now
Double superscript. \left(-x^{2}+1\right) y^{\prime}^{2}
I have not updated TeXlive recently. Last time I updated it ...