Tagged Questions
3
votes
1answer
32 views
Recursive Multiple subscripts and superscripts with xparse (Modified Version)
How can I modify the command below to obtain a version
(of the question: recursive multiple subscript and superscript with xparse)
which does not stack the sub/superscripts horizontally but moves all ...
8
votes
2answers
64 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
$ ...
11
votes
2answers
131 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 ...
10
votes
1answer
81 views
How do you get a scriptscriptstyle-sized prime?
As you go from \displaystyle to \scriptstyle to \scriptscriptstyle, letters and numbers, for instance, shrink. Weirdly, to my mind, the prime symbol (') shrinks from \displaystyle to \scriptstyle, ...
6
votes
2answers
57 views
The \prescript command from the mathtools package gives incorrect alignment
The spacing I'm getting with the \prescript command from the mathtools package seems wrong. Here is a MWE:
\documentclass{article}
\usepackage{amsmath,mathtools}
\begin{document}
...
5
votes
2answers
71 views
\left( and \right) too big when surrounding a sum (etc.) with no superscript; exacerbated by substack
When I write
\varphi^{-1}\left(\bigcap_{\substack{\mathfrak{p} < B \\ p \text{ prime}}} \mathfrak{p}\right)
I get something like this:
Apparently it's leaving symmetric amounts of room for ...
1
vote
1answer
81 views
Can't turn off fontified subscripts in Emacs 24
Under Emacs 24.3 and Auctex, the sub/superscript fontification is occurring outside math modes. This appears in either Beamer or normal LaTeX docs.
Per this question, I've included the following ...
2
votes
1answer
85 views
Subscript and superscript in lstlisting?
I need to use subscript and superscript in a lstlisting block. lstlisting can replace strings by Latex commands, but is it also possible to replace some kind of regular expression like
...
2
votes
1answer
185 views
How to control line spacing and subscript location in captions?
I just started using mhchem and am having problems with captions. Subscripts from mchem overlap with superscripts. I can think of two possible solutions (and trivially not using mchem in captions):
...
3
votes
1answer
186 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, ...
4
votes
3answers
236 views
Subscripts and superscripts for Physiology paper
I'm writing a medicine/physiology article.
I was writing the manuscript in Microsoft Word, but have recently discovered LaTeX for rendering math equations, which it does superbly; and wanted to learn ...
3
votes
2answers
80 views
Leftidx problem: upper indices have different height
When using the leftidx package to create the same upper index on both sides of \Bbbk[G], the indices have different height and look ugly. Minimal example:
\documentclass{article}
\usepackage{leftidx}
...
21
votes
3answers
419 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 ...
14
votes
3answers
250 views
By default, how much do ^ and _ raise and lower the text box in superscript and subscript respectively?
I'm trying to define a set of commands for superscript and subscript, but cannot use the characters ^ and _ in doing so. I've been able to define the correct font size by using ...
7
votes
1answer
76 views
Can I detect whether my macro is being used inside a subscript or superscript?
I defined this macro:
\newcommand{\foldeq}[1]{\sim_{#1}}
Later on, I noticed that when it's used inside a subscript, it looks a little bit hard to tell whether it's $\sim f$ or $\sim_f$. ($\sim f$ ...
10
votes
2answers
245 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
3answers
181 views
Mixed superscript, subscript and widehat
What is the correct way to write this equation and make both L_s matrices look the same? I tried this but the widehat and superscript L_s matrix' subscript is positioned slightly lower than the ...
9
votes
1answer
85 views
Capture a macro's subscripts/superscripts by the macro
Is it possible to capture sub-/superscripts added to a macro by the macro itself?
Consider the following example:
\newcommand{\fx}[1]{f(x)}
\fx{x} % -> f(x)
\fx{x}^2 % -> f(x)²
Now the ...
1
vote
1answer
201 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
213 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 ...
2
votes
1answer
412 views
Index Exponent with LaTeX
Please, how can i write
C i,j
in LaTeX (i as an index and j an an exponent)?
I know just that:
C^j
C_i
4
votes
1answer
264 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 ...
4
votes
1answer
135 views
Strange interaction between amsmath and setspace
Compiling the MWE below, you will observe in the output the following phenomenon (you may have to zoom in):
Comment amsmath out. Then, the spacing beteen lines is such that the subindex of the ...
5
votes
1answer
352 views
Squeeze superscripts and subscripts around bracketed expressions in display math
Consider a bracketed term in display math, like this.
Is there any way to squeeze the space between the super/sub-scripts and the bracketed term? e.g.
where I've modified the image to create the ...
5
votes
2answers
549 views
Subscript vertical position dependent on presence of superscript - how to change? [duplicate]
Possible Duplicate:
Subscripts for primed variables
If I have a variable which is always subscripted but only sometimes superscripted, the vertical position of the subscript varies. For ...
5
votes
0answers
342 views
How to lower the superscripts (and raise the subscripts) [duplicate]
Possible Duplicate:
tex4ht problems with footnotes
I am preparing a document using XeLaTeX, unicode-math and Asana Math OTF (turned on by \setmathfont{Asana-Math.otf}). I've noticed that ...
5
votes
1answer
264 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 ...
1
vote
1answer
157 views
A macro which is similiar to \prescript but it can be used in text mode
How to define a macro, say \pretextsuperscript, to get a presuperscript ahead a word in text mode?
Just simply write \textsuperscript{2}hormone and \textsuperscript{2}population is incorrect. Why say ...
11
votes
4answers
502 views
Multiple tensor indices with breqn package
When I try to use the tensor style file to create multiple tensor indices with the breqn style file, I run into the following problem shown in this (minimal) code:
\documentclass{article}
...
3
votes
1answer
422 views
Defining a newcommand with sub- or superscript and avoiding “double subscript” error
I often use shortcuts defined via \newcommand. However sometimes it causes a "double subscript" problem if a shortcut contains a subscript and I try to add one more subscript when using it.
I am ...
2
votes
1answer
152 views
relative hspace in newcommand
I'm trying to create a symbol of a gray triangle with a black border. I managed to do so using:
\newcommand{\factor}{{\color{gray} \blacktriangledown}\hspace{-1.6ex}\triangledown}
However, the two ...
8
votes
5answers
3k views
How to properly subscript in a superscripted fraction?
the title says it all. It attached a MWE to display the different relative sizes of a subscript within a normal fraction and a superscripted fraction. As you can see, in the superscripted fraction the ...
14
votes
4answers
3k 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 ...
5
votes
1answer
1k views
Writing (mixed) tensors
Does anybody know about a specific package for handling tensors? Consider, for example, a contraction of the type
...
4
votes
2answers
391 views
sub- and superscripting together in text mode
I want to use sub- and superscript together in text mode.
I've found this macro to solve the problem
\def\textsubsuperscript#1#2{\rlap{\textsubscript{#1}}\textsuperscript{#2}}
But it doesn't works ...
5
votes
4answers
970 views
Problem adding subscripts and superscripts [duplicate]
Possible Duplicate:
Cursive text after _
I need to have some subscripted and superscripted text in my thesis document. But when I try to do it the way as H_{2O} or S^{2}. I get an error at ...
0
votes
1answer
183 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 ...
10
votes
3answers
11k views
Superscript and Subscript together
I would like to show both super and subscript together some text.
I tried this sometext\textsuperscript{1}\textsubscript{2}
But 2 does not show up right below 1.
Thanks for your help. Also ...
1
vote
2answers
230 views
How to make contextual framed letters get proportional size automatically?
I am creating a question sheet using a method (I don't know the exact name, maybe bubble sheet format) as follows:
My question is how to improve the appearance such that the framed letters get ...
3
votes
2answers
199 views
Can super/sub-scripts bind more tightly than macro expansion?
By "bind more tightly" I refer to the order in which operations are carried out by default.
Experimenting shows that if \ab is ab and \cd is cd then \ab^\cd is ab^cd. I would like it to be ...
12
votes
1answer
215 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 ...