6
votes
1answer
42 views

Ignoring specific ampersand formatting on a specific line of an align block

I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
3
votes
1answer
61 views

Underlining fractions

I need to be able to underline equations involving fractions, which are aligned using the alignedat environment from amsmath. To be able to underline at all, I'm using the solution from this question ...
4
votes
5answers
83 views

Right superscript dot

I would like to achieve the following: a dot right of an expression with this minimal example \documentclass{article} \usepackage{amsmath} \usepackage{accents} \newcommand{\dotr}[1]{% ...
5
votes
1answer
55 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 ...
2
votes
0answers
97 views

LaTeX is not compiling consistently

I am really new to LaTeX, so it's possible I'm making some egregious error that I'm not aware of, but my documents are compiling inconsistently. By that I mean it compiles correctly maybe one in ...
2
votes
3answers
87 views

Grouping two lines inside align environment to put smth. to the left of them

I have an equation which is alligned at 1st equal sign like this: \begin{align} a &= b + c \nonumber\\ d &= e + f \label{eq1}\\ %this is row 1 g &= h + i \nonumber\\ %this is ...
9
votes
4answers
157 views

Curved arrow describing a step in a mathematical derivation

Is it possible to achieve something like this in LaTeX? I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I ...
2
votes
2answers
39 views

“\bar allowed only in math mode” error

When I run \begin{align*} \textit{m}(A) &=a&, \\ \textit{\bar{A}} &=1-a& \\ \textit{m}(B) &=0& &\text{for} B \neq A \text{ or} B \neq \bar{A} \end{align*} I get the ...
2
votes
1answer
95 views

Proper way to typset minimum value of variable in formula?

To typeset a value with a subscript I use this: $U_{\text{res}}$ Which results in: Now I'd like to write "the minimum value of Ures", how would I correctly typeset that? The first thing I tried ...
2
votes
2answers
119 views

Breaking a long math expression

I am trying to type long expression by using parenthesis inserting some sentences, as an example I have a expression like product of \documentclass{12 pt}{article} \begin{document} \begin{multline} ...
2
votes
1answer
49 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 ...
0
votes
0answers
89 views

why wont this \therefore command work? [closed]

I want to type this but I am getting an error message \begin{align} % (15) &a_n = \int_{0}^{1} (X - 1) \sin (n \pi X) \mathrm{dx} = \frac{-1}{n \pi} \\\\ \nonumber \therefore ~~~~ &V(X,T) ...
4
votes
1answer
85 views

Making large substack more readable?

I have the following code: \[\mathcal{I}(A,B) = \inf_{\substack{h : M\times I\rightarrow M\\ h(\cdot,t) \;homeomorphism\\ h(x,0) = ...
2
votes
1answer
53 views

How to automatically scale `\mid` within delimiters

\mid within \left and \right delimiters is expected to be automatically scaled, but today I noticed such behavior: L = \sup \left\{ \sum_{x \in F} a(x) \mid F \subset X,\, |F| < \infty \right\}, ...
3
votes
1answer
70 views

Text inside Math

I tried doing this: \usepackage{amsmath} $x^2 \text{something} y^2$ but that just came out like: x^2somethingy^2 Anyone know how to fix this issue? I need to have text inside my math ...
2
votes
5answers
282 views

Real numbers symbol in XeTeX

How can I get the 'real number' sign (something like \mathbb{R} with the amssymb package in LaTeX) in XeTeX?
7
votes
1answer
115 views

Why do math operators not behave like normal control sequences?

From my experience, most control sequences function as an implicit group, for example g^\textrm{th}. However, if we look at the example below, the first line throws an error while the second line ...
6
votes
4answers
145 views

Centering equations within alignat command

I want to centre the formula inside the equals. So far I have \begin{alignat*}{2} v_2(16)&=\frac{2}{5}[v_3(32)+v_3(8)] &&= 0, \\ v_2(4)&=\frac{2}{5}[v_3(8)+v_3(2)] &&= ...
3
votes
1answer
223 views

Using `\allowdisplaybreaks` locally for a single chapter / single equation

I do have a longer paper. In one chapter I got several multiline equations, which I wrote using the align environment from amsmath-package. Actually those are quite long computations which should ...
2
votes
1answer
66 views

Enforcing baseline alignment for multiple overbraces in math mode

What is the easiest way to vertically align overbraces in math? In the following example... \documentclass{article} \usepackage{amsmath} \begin{document} \begin{math} *(m, n) = (\overbrace{n - ...
4
votes
2answers
76 views

Spacing numbers in two equations equally

I have this weird requirement, to align two sets of numbers, one under another, in groups of three. Here is how it should look: I tried the following: \begin{align*} x_F &= 1.368 &808 ...
2
votes
1answer
131 views

amsmath split environment results in error “Missing } inserted.”

The following compiles fine, but outputs a pdf with a line too long. \documentclass{article} \usepackage{amsmath} \def\group#1{\left ( #1 \right )} \begin{document} $$ %\begin{split} \group{\neg ...
0
votes
1answer
74 views

Type of file to select for writing Math Thesis if I use latex from Kile

if I write a math. thesis using latex from Kile, then, while opening a new file in Kile, what is the option should I choose: article/book/report? Thank you!
3
votes
1answer
53 views

Error with dcases*

I'm using LaTeX to write up my math notes and have been fairly successful implementing most of the styles I'm trying to figure out. I seem to be having trouble with the environment dcases* though. ...
1
vote
1answer
86 views

Problem with text mode in \substack

I have defined a differential command in this way \let\underdot\d \renewcommand{\d}{\ifmmode\mathop{}\!\mathrm{d}\else\expandafter\underdot\fi} so that I don't loose the text accent (I don't know ...
5
votes
1answer
281 views

Seeking advice for my clumsy math homework template [closed]

I typed my math homework with LaTeX. This was my first try on making some document with LaTeX. I can Google for math symbols, so it's okay, but the overall structure is really clumsy; especially ...
15
votes
2answers
231 views

How to remove an unwanted white space at the last end of a horizontal curly brace?

You can see there is an unwanted white space at the last term below. \documentclass[border=12pt]{standalone} \usepackage{amsmath} \begin{document} $ ...
9
votes
1answer
152 views

How can I make an overset symbol at the same size and height as \bar except with a different symbol?

Apologies for the cryptic title, but I was not sure how best to phrase the question in one sentence. I am essentially trying the create a vector symbol with \rightharpoonup as the top instead of the ...
12
votes
2answers
259 views

What is the mandatory argument of alignedat for?

alignedat has a mandatory argument. But Herbert (in his mathmode.pdf) wrote as follows, I have made a trial and error, I noticed that the largest number that can be passed is 1073741823 and no ...
7
votes
2answers
106 views

How to align terms in separate lines in this case?

I want to get another variant for the alignment points in my question answered by Hendrik Vogt, see How to construct a long equation that is split in LHS and RHS to occupy a narrow column?. ...
8
votes
2answers
131 views

Lower overbrace in math enviroment

I would like to achieve the following inside an math environment But i can't get the text below the equation \operatorname{min} \left| \overbrace{\text{Hadamard product}}^{\begin{pmatrix} X \circ X ...
6
votes
2answers
80 views

Space added after \right

I have a problem regarding the space added by \right.. I have read this answer regarding the topic, where @egreg proposes a macro that deletes this space. However, when using this in my own ...
3
votes
1answer
96 views

Left numbered equation inside list environment

I use the mathtools package with the leqno option in the memoir class. When inside a list environment, the equation label is misaligned. \documentclass{memoir} \usepackage[leqno]{mathtools} ...
3
votes
1answer
71 views

Make a postfix operator with suppressable spacing?

I would like to create a postfix unary operator that normally leaves \medmuskip between the operand and postfix operator. It's easy enough to do this using, for example, ...
2
votes
0answers
43 views

Difference between \mathrm, \operatorname and \text? [duplicate]

Possible Duplicate: What’s the difference between \mathrm and \operatorname? I am a beginner of latex, and am always having a hard time differentiate these commands since they seem always ...
2
votes
1answer
187 views

How can long formulas be written more beautifully?

How do you write a long formula in a more beautiful manner for the better, all my formulas in lines with the same length. formulas are long with slightly smaller text. Is it better to be done ...
4
votes
2answers
144 views

Equation does NOT go new lines, while using \newline

I've been trying to typset an equation which, at a certain point, spans several lines, but is a single step (so no numbering may occur). For this I used newline, but this doesn't seem to work. How do ...
1
vote
1answer
128 views

How can I write a long equation in multi line scaled to text width?

I want to write a long equation over several lines, but result looks highly irregular. How can write this equation better, preferably with all equation occupying the same wide? ...
9
votes
1answer
60 views

\@ifnextchar inside pmatrix?

I created a function which handles a superscript followed after the function. I do that by using \@ifnextchar^. Everything works well, except in any pmatrix environment. Why? As a quick-and-dirty ...
8
votes
1answer
140 views

Correct usage of \ifmmode

Seems that there is some subtlety in using \ifmmode that I am not aware of. For some reason, using: \newcommand{\hlcodeA}[1]{\ifmmode\else\small\fi\texttt{\hilight{#1}}}% is not quite identical ...
3
votes
2answers
315 views

Why does \mathrm{\varphi} work, but \text{\varphi} does not?

This: \documentclass{article} \usepackage{amsmath} \begin{document} $\mathrm{\varphi}$ \end{document} Versus: \documentclass{article} \usepackage{amsmath} \begin{document} $\text{\varphi}$ ...
6
votes
2answers
201 views

A medium dot in math mode

Is there a nice way to produce a medium-sized dot to use in a formula like this: $x_{i\cdot} = \sum_{j} x_{ij}$ The \cdot is not very visible.
11
votes
1answer
121 views

Compatibility between amsmath and exscale

Both the amsmath package and the exscale package define the delimiter macros \big, \Big, \bigg and \Bigg based on the internal macro \bBigg@. However, as the following minimal example reveals the ...
4
votes
3answers
166 views

Command to uppercase the first letter of a maths command

This question is a bit similar to Command to uppercase the first letter of each word in a sentence. What I want is to build a new command for being used just at math mode, using the ...
2
votes
1answer
362 views

New line in a math block [duplicate]

Possible Duplicate: Linebreak in equations I am very new to latex, its been a super frustrating I spend almost close to two hours on getting a new line inside the math block \[{P(g(X) \neq ...
18
votes
2answers
1k views

\boxed{}, TikZ and colored equation background

I wonder if someone could provide me with a simple MWE for using TikZ together with \boxed to produce a colored equation background. If possible with rounded corners. I am using \boxed{} inside the ...
4
votes
1answer
815 views

Equations didn't fit

I created a presentation with University of Hamburg beamer theme, which can be found here. However, in a slide, I wrote long equations but they did not fit and I cannot fix this problem. This is the ...
2
votes
1answer
356 views

Missing $ error in math mode

I have the following LaTeX code (beginning from line 80): \begin{definition} $\hat{n}_{v}$ = \begin{cases} $n_{v}$ & \text{ if } $v \in$ \text{connected component of size} $< ...
7
votes
1answer
264 views

operator name for kernel

I'm trying to define \newcommand{\ker}{\operatorname{ker}} just after \begin{document} in order to have a nice way to write the kernel of an application but the command is ignored and I don't know why ...
1
vote
1answer
237 views

Sqrt with fraction in root argument [duplicate]

Possible Duplicate: Nice-looking p-th roots How can I move the root higher for this formula ? The fraction in the root is typeset to low: \documentclass{minimal} \begin{document} ...

1 2 3