Tagged Questions
5
votes
1answer
52 views
`\hfill`-like spacing in math mode without using `align`
In question 83509, a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some ...
0
votes
1answer
39 views
Centering a group of equations and text both which is used in \begin{align*}…\end{align*}
Say I am trying to center a group of equations, written in separate lines, with equality sign aligned one below another, which are defined by: $f(r)+1=g(r^2)+1=O(r)$ as $r\to 1$ by first using the ...
2
votes
1answer
34 views
Centering case-defined functions in the middle of the page and centering a figure(diagram)
I have two questions regarding centering:
I am trying to center a case-defined function, say defined as follows:
$f_i(z)=$ \begin{cases}\frac{1}{t}dist (z,\gamma_i ) &\text {if} z\in A_i(t)\\ ...
1
vote
4answers
181 views
Questions on basic LaTeX typesetting in mathematics
I have one or two elementary questions on basic LaTeX typesetting:
I know putting $$...$$ sign puts the mathematical expression in the middle (center), but what if I also want to center the ...
2
votes
2answers
103 views
Multiline formula with each column left-aligned
I am using LyX and I want a multiline and multicolumn display formula with each column aligned to the left.
But when I add a formula and add columns, some are aligned to the right and some are ...
4
votes
1answer
80 views
Alignment in algorithmic environment
I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I ...
8
votes
1answer
139 views
One-line equation with two columns
I try to write an equation with two similar formulas, i.e.
\begin{equation}
\qquad A_1 = B + C \qquad A_2 = D + E \qquad
\end{equation}
Of course, instead of \qquads I want to use something like ...
5
votes
3answers
184 views
How can I do this without the cases?
How can I do this without the cases?
$\begin{cases}
\dfrac{\partial u(x,y)}{\partial x}=2x=\dfrac{\partial v(x,y)}{\partial y} \\
\dfrac{\partial u(x,y)}{\partial y}=-2y=- \dfrac{\partial ...
9
votes
2answers
124 views
Math Spacing in the presence of a trailing/non-trailing comma
I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
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?.
...
14
votes
1answer
204 views
How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?
This question led to a new package:
underoverlap
Introduction
Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...
4
votes
2answers
133 views
Need some help with perfecting the layout
\documentclass{article}
\usepackage{amsmath}
\setlength{\parindent}{0pt}
\newcommand{\fac}{n!}
\newcommand\test[3]{\left(\begin{array}{@{\,}c@{\,}} #1 \\ #2 \end{array}\middle|\ \ #3 ...
1
vote
1answer
126 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
3answers
1k views
\hfill in math mode
Is there any easy way of declaring a new command which emulates \hfill in math mode. I don't want flalign or something similar. I want to use the command in the same way (and with the same freedom) I ...
6
votes
1answer
423 views
Tikz flowchart: center text + math in node
I'm trying to draw a flowchart with TikZ. In one of the decision "diamonds", I have both text and a bit of math between $.
\node [decision, below of=buildbid, node distance=1.8cm, aspect=8, minimum ...
4
votes
1answer
163 views
How can I align equations to the left?
I looked up a template to put my homework in a nice formatting, but I can't get it to look the way I want. More specifically, I want to:
Align to the middle whatever is after: \hspace{1in} .... (I ...
5
votes
1answer
110 views
How to use a math environment without the vertical extra space? [duplicate]
Possible Duplicate:
Remove vertical space around align
I would like to center two text lines with equations. Normally, one can do that with the align* environment. But I do not want the ...
8
votes
1answer
719 views
Negative Sign and Matrix Alignment
I am having trouble centering the elements of a matrix such that the negative sign is not taken into account during alignment. Additionally, I would also like the space between the left parenthesis ...
12
votes
4answers
423 views
How to edit the linear programming in LaTeX?
How to edit a linear programming as the following:
Max z = x1 + 12x2
s.t. 3x1 + x2 + 12x3 ≤ 5
x1 + x3 ≤ 16
15x1 + x2 = 14
xj ≥ 0, j=1,2,3.
I want the format to be ...
4
votes
3answers
348 views
hspace in tabular
How can I move the summation equation that appears at the bottom of column 3 to be centered with the column 3rd column. Using \hspace hasn't been successful thus far.
...
8
votes
1answer
157 views
How to force equation to be closer to the sum operator?
I would like to know if it is possible to force the equation to be closer to the operation sum? When there are a lot of subscript under the sum operator, it tends to pouch the equation to the right, ...
5
votes
1answer
84 views
Centering first line of an align environment (Simulating \multicolumn{2}{c})
I often need align environments where the first line is centered, e.g., when first introducing the types of the functions to be defined, then defining them.
I essentially want to obtain the effect ...
9
votes
4answers
600 views
Left-aligning specific text in math-mode
I currently have
via
\documentclass{scrartcl}
\KOMAoptions{
fontsize = 10pt ,
headings = normal ,
}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage{siunitx}
\begin{document}
...
5
votes
3answers
240 views
Math indentation environment
I'd often like to set formulas like
Is there some other way than doing this by manually inserting whitespace (with \quad etc.), i.e., something like
\begin{align*}
f( & 1 + g( & 2 + \\
...
3
votes
2answers
682 views
Centering dots in latex
How can I center the cdots on the third line to the surrounding equations?
$F(-\infty, x_2,\cdots, x_n)=C\big(0,F_2(x_2),\cdots, F_n(x_n)\big)=0$,\\
$F(x_1,-\infty,\cdots, ...
4
votes
1answer
139 views
How to typeset the definition of a complicated bijection with nice horizontal alignment?
Here is a typical example of what I am talking about:
\begin{align*}
\mathcal{L} &\simeq O^{-1}(T, S) \\
V &\mapsto f_V := \pi_S ...
4
votes
1answer
233 views
How to align equations when some inside are gathered
I have a set of equations where some are coupled with a brace and some text. I want all the equations aligned. Something like the following ASCII art:
S = LR
L = Ls \
| for s in {a, b}
...
2
votes
1answer
86 views
Aligning picture with displaymath
I have a small picture of a graph and I would like to align it with its adjacency matrix, defined within math environment, side by side on a page. I tried to use subfig package, but the matrix is then ...
4
votes
2answers
254 views
Equation environment for centered, equally-spaced columns of expressions
I want a environment for displaying rows and columns of mathematical expressions, such that the contents of each column is centered, and the columns are equally spaced. Rows must have optional ...
8
votes
1answer
540 views
\mathclap not centering
I'm trying to stack two symbols on top of each other (not \stackrel) using \mathclap in the mathtools package, but the symbols are not centering:
\mathclap{\rightleftharpoons}\circ
How do I get the ...
7
votes
3answers
211 views
Aligning different parts of an equation with certain spots in the line above
I am trying to get certain parts in the second line of an equation to line up with certain parts in the first line. For example,
X=AAA+BBB+CCC
= a + b + c
where here I am wanting the lower-case ...
4
votes
1answer
526 views
Align environment: take exact control of tab position
I was wondering if it is possible to take control of the exact position of the tab in an align environment.
Like so:
\begin{align}[2cm]
A &= x^3 + 14789\\
B &= f^6
\end{align}
Which should then ...
14
votes
2answers
6k views
Math inside tables and formatting
I'm trying to make a little summary of mathematic analysis, useful for my university, in LaTeX. I'm stuck in the problem of creating nice table, with alternate colouring containing equations with ...
6
votes
1answer
410 views
Alignment/whitespace to compensate for negative sign
I have two equations:
\begin{equation}
\begin{cases}
\begin{aligned}
a_x &= - \sin \alpha \cos \beta \\
a_y &= \cos \alpha \cos \beta
...
4
votes
3answers
657 views
\underbrace at a strange place, spanning array columns
Take a look at the following code:
$$\begin{array}{rr|r|c|l}
vd_2:&\raisebox{0pt}[0pt]{\makebox[0pt][l]{$\overbrace{\phantom{b_1\dots b_{n-l_{k-1}-2k}\hspace{2\arraycolsep}b_{n-l_{k-1}-2k+1}\dots ...
20
votes
5answers
2k views
Best way to create an system of equations enviroment?
I am trying to write a few system of equations, and I want the terms to be nicely spaced as below
2x + y + 3z = 10 \\
x + y + z = 6 \\
x + 3y + 2z = 13
Now using some ...
2
votes
1answer
2k views
How can I use an align environment flush right?
Is there an option analogous within the align environment to the left align for right align, i.e. fralign.
MWE:
\documentclass{article}
\usepackage[fleqn]{amsmath} % Instead have [freqn].
...
7
votes
2answers
2k views
Dynamically size arrow \mapsto in function definition
I have the following diagram:
However, this looks a bit ugly, I would like a version that looks a little bit better. For example, size the last arrow such that the T_\phi is moved to the right.
...
3
votes
2answers
1k views
Multiple Tab stops in Math Split?
I am using mathmode with split. How can you use multiple tab stops. I want to span an equation across multiple lines, but then the last few I want to indent even more.
\[
\begin{split}
some& ...
7
votes
2answers
723 views
Array with labeling columns
Is there an intelligent way to label (or name) columns in a matrix? I would like to have something like
\[M=\left[\begin{array}{c|cc}
1 & 2 & 3\\
4 & 5 & 6
...
4
votes
3answers
163 views
Format math definition
$$
A = \{ x_{1}y_{1}z_{1}...x_{k}y_{k}z_{k} : x_{i}, y_{i}, z_{i} \in \{0, 1\}, k \geq 1, \text{ and } x < y < z \text{ where } x = x_{1}...x_{k},
y = y_{1}...y_{k}, \text{ and } z = ...
13
votes
7answers
619 views
Aligning polynomial terms
In LaTeX align, I'm struggling to align polynomial terms and assume there's an easy way to do it. But I cannot find the simple/elegant solution. What I would like is something like this:
x1 + x2 ...
4
votes
3answers
8k views
How can I use an align environment flush left?
Is there a way possible to imitate the align environment for math mode commands, without having all writing being placed toward the center on the output page?
MWE:
\documentclass{article}
...
2
votes
2answers
338 views
Multi horizontal alignment in mathmode
I would like to realize an alignment like the following:
formulaformula1
formulaformulaformula2
formula3
formula4
So I would like formulaformula1 and formulaformulaformula2 to ...
1
vote
5answers
179 views
Mixed vertical alignments under math-mode
I would like to present something as follows which is mainly under math-mode:
Label1...
name1 ::= choice11... comment11.
| choice12.. comment12..
| chocie13. ...
4
votes
3answers
119 views
2 left alignments under cases
I would like to align something under cases as follows:
value1 if condition
value2 line1ofvalue2... otherwise
line2ofvalue2..
line3ofvalue2.
First, there are ...
5
votes
2answers
514 views
Remove additional space around \underbrace{…}
How do I remove the additional space that is added when using \underbrace{...}, to get the same width in both lines:
\documentclass{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
...
1
vote
2answers
182 views
How to add a sequential number on the right hand of a mathematical formula?
I often use $$...$$ to write mathematical formulae. I would like to know how to add a sequential number on the right hand of the formulae. I want them to be right adjusted at the right edge of the ...
2
votes
1answer
279 views
Standard math environment for equally-spaced columns of expressions?
I often need a display environment which would let me easily present equally-spaced expressions in the same line, with content on successive lines appearing centred at the same x-coordinate as content ...
3
votes
2answers
246 views
Figure with long list of predicates and conjunctions (\wedge)
I have a figure with a long list of predicates connected with \wedge, here is the code:
\begin{figure}[h]
\small{
$
Defined\_in(subject\_state, concrete\_subject) ...
