The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

1

Welcome! You could just put them in a picture into two scopes which are shifted relative to each other. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english, russian]{babel} \usepackage[a4paper, total={170mm, 257mm}, left=2cm, right=1cm, top=1cm, bottom=1.5cm, bindingoffset=0cm]{...


4

One way is the following: reduce spaces in matrices with \setlength\arraycolsep{2pt} \renewcommand\arraystretch{0.8} reduce s sep distance from 4em to 3em reduce space between trees titles and trees, for example \textit{Generator $(13)$} \vspace{-\baselineskip} Considering above I got the following result: Complete MWE, which gives above ...


0

This is an old question, but I thought that future searchers might appreciate this alternative, which in complex situation is much easier than splitting out the phantoms over the tab stops. It uses pgf, which has \pgfsys@begininvisible and \pgfsys@endinvisible for this purpose. \documentclass{article} \usepackage{pgf} \usepackage{amsmath} \makeatletter \...


5

You can box the numbers to a certain width. \documentclass[12pt,a4paper,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[left=4cm,right=2.5cm,top=2cm,bottom=2cm,bindingoffset=6mm]{geometry} % Style for Chapterheadings \usepackage{...


1

You can combine the \MoveEqLeft command for the first line ( I grouped the first two lines) with the geometry package to have more sensible default matgins (unless you use \marginpar and the medium-sized fractions from nccmath: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{mathtools, amssymb, nccmath} \begin{document} \begin{...


2

One way is to write denominator in the last equation in two lines: \documentclass{article} \usepackage{mathtools, nccmath} \newcommand\di{\mathrm{d}} %---------------- show page layoutdon't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \renewcommand*\ShowFrameColor{\color{red}} %---------------------------------...


1

You can set this in a regular align* with the left-hand side in a zero-width box (\mathrlap). Then you can insert a space to your liking, which will move the right-hand side according to your needs. Below I've used 5em, so change this to suit your needs. \documentclass{article} \usepackage[ margin=1in, landscape ]{geometry}% Just for this example \...


2

This code will store the rows and round the number up to a multiple of #1 (the desired number of columns). Next, with a nested cycle, it picks up the entries number 1+0*n, 1+1*n, ..., 1+(#1-1)*n 2+0*n, 1+1*n, ..., 2+(#1-1)*n ... n+0*n, n+1*n, ..., n+(#1-1)*n where n is the final number of rows, storing each new row with items separated by &. Finally ...


0

I rather use alignat because allows aligning the equals\inequality signs also: \begin{alignat}{3} \max_x &\quad& z = \sum_{j=1}^n c_i x_j && & \\ \text{subject to: } &\quad& \sum_{j=1}^n a_{ij} x_j && \leq b_i &\quad \forall i=1,m\\ &\quad& x_j ...


6

The \intertext command adds the normal formula space set with the spacebefore and spaceafter keys from \setupformula. \setupformula [spacebefore=small, spaceafter=none] \starttext \startformula \startmathalignment \NC a \EQ b \NR \intertext{\midaligned{and}} \NC b \EQ c \NR \stopmathalignment \stopformula \stoptext


0

What about the following? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{align} S &= \frac{1}{2} + &\frac{1}{4} + &\frac{2}{8} +&\frac{3}{16} + &\frac{5}{32} + &\frac{8}{64} + &\frac{13}{128} + \dots\\ \frac{1}{2}S &= &\frac{1}{4} + &\frac{1}{8} + &...


1

You can use \resizebox (graphicx package) to shrink overlarge equations (among other things), but you first need to put them into a variable width box. Varwidth won't do it (I tried). Of course you could just use a minipage with a larger (predetermined) width, especially if you intend to add equation numbers. \documentclass{article} \usepackage{array} ...


2

Use a top aligned for splitting the first equation: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} A &= \begin{aligned}[t] B + C + D + E &(\alpha + \gamma + \delta + \epsilon\\ &+\delta) \end{aligned} \\ &= B + C + D + E\alpha + E\gamma + \dotsb \end{split} \end{...


1

\documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \begin{document} \begin{align*} d(a, b) & \le d_0(a, b)\\ \iff \dfrac{y}{1+y} & \le y\\ \iff y & \le y+y^2\\ \iff 0 & \le y^2 \end{align*} \end{...


3

You can have what you want (I think) with alignat*and, in addition the alignment of the \therefore symbols. I replaced the fraction 1/2 with a medium-size fraction, which look better, in my opinion. \documentclass{article} \usepackage[utf8]{inputenc}% \usepackage{nccmath} \usepackage{mathtools, amssymb} \begin{document} \begin{alignat*}{2} \sum_{k=1}^n 1 ...


6

Slightly more complicated than Steven's answer but allows you to add equation numbers and so on if needed. (You can see the difference from the fact that here more space is allocated for the line that has the \sum in it.) \documentclass{article} \usepackage{mathtools,amssymb,eqparbox} \begin{document} \begin{align*} \sum_{k=1}^n 1 &= n\\ \sum_{k=m}^n 1 &...


7

\documentclass{article} \usepackage{mathtools,amssymb} \begin{document} \begin{align*} \sum_{k=1}^n 1 &= n\\ \newline \sum_{k=m}^n 1 &= n+1-m\\ \sum_{k=1}^n k &= \begin{aligned}[t] S &= 1+2+3+\dots+n\\ &= n + (n-1) + (n-2) +\dots+ 1\\ \mathllap{\therefore 2S} &= (n+1) + (n+1) + (n+1) +\dots+ (n+1)\\ &= n(n+1)\\ \mathllap{\...


0

Using \hfill is a much easier solution, for example: \left\{ \begin{smallmatrix} x^3+y^3+z^3 \hfill & = & 1 \\ x^2+y^2+z^2 \hfill & = & 0 \\ x^3+x^2+y+z \hfill & = & -1 \end{smallmatrix} \right.


Top 50 recent answers are included