2
votes
1answer
54 views

Subscript in macro

I would like to define a new command like the following. The latex when compiling should emit I_{wr} when given without arguments, or the optional arguments should come as a subscript. ...
8
votes
1answer
95 views

Subscript spacing in newtxmath (comma issue)

I've found a strange behavior of newtxmath package. Using my code with documentclass[12pt]all commas are glued to the next letter, which can be hard to read: When I changedocumentclass[11pt] ...
2
votes
1answer
88 views

how do I get a hyphen in \mathrm

A simple question I think, but if I write $\omega{\mathrm{anti-Stokes}}$, the hyphen looks an awful lot like a minus sign. If I naively try $\omega{\mathrm{anti\hyp{}Stokes}}$ (I think \hyp{} requires ...
1
vote
4answers
161 views

Is there a way to make math mode subscripts automatically non-italic?

I'm currently working on a report where the majority of subscripts will be non-italic. The way I know how to do this currently is via \mathrm{}, which is an absolute horror when you have to do it many ...
2
votes
1answer
40 views

consistently increased line spacing when subscripts occur in paragraph

The question is about consistent vertical spacing in a paragraph of text that includes some math using subscripts. Concretely, in the example I feel that there is not enough vertical space between ...
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, ...
4
votes
2answers
200 views

\overline and \widehat with subscript

I would like to create commands to produce overlines (respectively wide hats or arrows) with a subscript at the end. The commands \overline{X}^{1} \widehat{X}^{2} \overrightarrow{X}^{3} do not ...
3
votes
1answer
83 views

Subscript without text in math mode

I want e.g. \bigtriangleup as a subscript in math mode, but I do not want it as the subscript of any preceding symbol as | as in |_{\bigtriangleup}. I tried with _{\bigtriangleup} which does not work. ...
4
votes
1answer
88 views

tilde mark over letters in exponents or subscripts in math mode under revtex4-1

A space between the tilde mark and a letter is relatively higher in exponent or subscript in math mode. For instance, the tilde mark appears differently spaced over the letter z in the two following ...
3
votes
1answer
84 views

How to adjust the alignment of a mathematical expression in a text section? e.g. argmax

I am using the following definition to generate the argmax operator: \DeclareMathOperator*{\argmax}{\arg\!\max} However the problem is when I use it in a part that some text exists because of the ...
1
vote
3answers
58 views

Numbered letters [duplicate]

I've been looking for a while now, for something I think is very basic. How can I use, for instance, "v0" with the 0 smaller next to the v. Like this: I can't find it, mainly because I'm not sure ...
3
votes
1answer
174 views

Mathptmx - number subscript too large

I don't know if this is actually intentionally, but if I use the font: \usepackage{mathptmx} and type e.g.: \beta_{8,t} it looks kind of weird, because the 8 is so much larger than t. If I use ...
4
votes
2answers
92 views

Prevent spacing in sub or super scripts with eulervm

When typing formulas to explain physics, sometimes non spaced text in super or subscripts is helpful. $q_{heat}$ To prevent spacing in subscripts, I often used \textit in math mode: ...
6
votes
2answers
420 views

Putting \hat over first character of subscripted variable

I'm using a set of commands to define abstractions of mathematical notations that often occur during my thesis such as: \newcommand{\DNoise}{n_d} which would equal some distortion noise. This allows ...
3
votes
2answers
279 views

Double subscript caused error during compilation

I have in code: $\varphi(x) = \sum_{k=1}^ra_k\mathds{1}_{B_k}(x) $ but pdflatex commmand generates often: ? ! Undefined control sequence. l.1354 ...rc \xi)(\omega) = ...
4
votes
1answer
199 views

Using \phantom in subscript with the bayesnet TikZ library

I'm using the bayesnet TikZ library to draw a graphical model. Node variables might have different size, say $v_0$ and $v_{N-1}$ and the result is that some bubbles are bigger than others. I am trying ...
7
votes
2answers
265 views

A new line inside subscript

I have formula: \[ A_k = \bigcup_{I \subset \{ 1,...,k \} \text{card} J = K} B_j\] which generates I would like ask how to make the new line inside subscript. It should look like formula below: ...
0
votes
2answers
451 views

Subscript of sum [duplicate]

How can I make a subscript for sum in latex like the following picture: I tried \sum_{q_i} but that doesn't make the result I want. It makes the following result:
3
votes
2answers
168 views

Can I have a dot and a double subscript at a single letter?

I cannot get a double subscript to a letter that has a dot on it. I only get what is in the first line of the picture, but what I want is the upper left with the dot only on the v. Note that the ...
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 ...
6
votes
2answers
209 views

When substack and array doesn't work

I am trying to write a formula. But both substack and array cannot fulfil my needs (as far as I know how to use them). The first is how I want it to look like. But I need an i'\neq i below the ...
6
votes
2answers
199 views

Derivatives: enter “evaluated at” vertical bar with multiple values as subscripts

Sorry for the long title, but how do I enter evaluated at (for a derivative), with multiple valuation criteria at the bottom of the the big | line? Thanks!
3
votes
1answer
290 views

Subscript spacing

I have a question similiar to the post: How to change default for spacing around binary relations?. In particular, I would like to make subscripts look less cramped. According to another post ...
2
votes
1answer
86 views

Lower indices height

Adding a subscript to a dagged variable, the subscript is lower than when it is added to an undagged variable. Here's an example: $c^{\dagger}_R c_R c^{\dagger}_R c_R c^{\dagger}_R c_R c^{\dagger}_R ...
1
vote
1answer
317 views

Equivalent symbol not working and subscript on vertical line

I have couple of issues here. I am making a presentation on beamer and I am using the following code: \begin{align*} & F_{in} = \int \frac{\partial Q}{\partial s}|_{in} ds, ...
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 ...
13
votes
2answers
870 views

divides, not divides and cardinalities

In group theory it happens very often that you want to say: "The order of $H$ divides / does not divide the order of $G$." But the length of | is then always the same: $ |H| | |G| $ produces |H|||G| ...
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.
7
votes
1answer
126 views

(Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages

This was brought to my attention by our colleague, Lover of Structure, but since it affects my scalerel package (which began using the mathstyle package to detect the current math style, as of version ...
4
votes
1answer
203 views

Increase the space between operator in subscript/superscript

I need to increase the space globally between operators in subscripts/superscripts. Example: \sum_{x=4} I need a little more space before and after the = symbol in the subscript. It is required ...
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 ...
5
votes
2answers
172 views

Double subscript error with \newcommand?

Disclaimer: I know of Defining a newcommand with sub- or superscript and avoiding "double subscript" error but this only gives a work-around, but no explanation to my question. Here's a ...
2
votes
1answer
174 views

Using \limits in a customized \overset for superscript together with \sideset for subscript

I am trying to create a notation for a certain space. I am using a customized \overset in mrf's answer in this thread to suppress the extra vertical space. I still want the subscript on the right ...
7
votes
1answer
176 views

How to automatically add \! in subscripts?

This code \documentclass{article} \usepackage{fouriernc} \begin{document} $a_1$ $a_{\!1}$ \end{document} produces this output: I like the spacing on the lower one much more. Is there a way to ...
3
votes
2answers
219 views

Fonts and calibration in math mode

Anyone have any ideas on how to obtain the small + in the subscripts, shorter \overline on the \mathbb{N} and the fat \verts on the semi norm on the bottom as seen in the following notation?
1
vote
1answer
359 views

Subscript in beamer class using frames and equations

\documentclass{beamer} \usepackage[latin1]{inputenc} \usepackage{textpos} \usetheme{CambridgeUS} \usepackage[british,UKenglish,USenglish,english,american]{babel} \begin{document} \begin{frame} ...
7
votes
1answer
769 views

TikZ: Controlling text within nodes and placing nodes in text

Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it. ...
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, ...
16
votes
1answer
478 views

Which command should I use for textual subscripts in math mode?

Textual subscripts like in W_{total} should be typeset in an upright text font (so that code isn't good practice), as has been discussed in various questions here. Now there are several ways to ...
4
votes
2answers
165 views

Different vertical position of summation limits in consecutive \sum

When I use different summation indices in a double sum the limits are not vertically aligend, for instance: \begin{equation} \Delta K_T^i = \sum_{t=1}^{T}\sum_{k=1}^{m}{\Delta K_t^{i,k}} = ...
12
votes
1answer
298 views

Typesetting Subscript: Which is correct?

Which one is correct? p_1 or p_1^{}
2
votes
0answers
33 views

Short form for textup in math mode [duplicate]

Possible Duplicate: Using simple quotes “” instead of \text{} For subscripts I usally use \textup but if you have many of them it's much to write and read. \documentclass{article} ...
1
vote
1answer
349 views

Space between letter and lowercase in latex math mode

is there a way to remove the space between the variable and the lowercase letter as standard in math environment? by now i'm using this: \begin{equation} a\;b_{\! c}\;d \end{equation} Without \! ...
7
votes
2answers
360 views

Problem of different spaces between subscripts and letters in math mode

In math mode, the spaces between subscripts and letters are not always the same, but depending on the preceding letters! See e.g. (different colours indicate different spaces) Is it the feature of ...
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 ...
4
votes
1answer
264 views

subscript is set too low in math-mode with xits-math

I use unicode-math with xits-math as math font and asana-math for math double-struck symbols. I compile with lualatex, and my packages are from TeXlive 2011. Now, when use asana-math mixed with xits, ...
8
votes
1answer
151 views

Wrong positioning of subscripts on bold math letters

I just noticed that for kpfonts and times (and probably other fonts since it does not seem to be font-related), the subscripts on boldface letters like V are (I would say) wrong. Is there an ...