Hot answers tagged

6

I've simplified your implementation using \alt<os>{<default>}{<other>} which sets <default> on the given overlay specification and <other> otherwise. \documentclass{beamer} \usefonttheme[onlymath]{serif} \usepackage{mathtools} \begin{document} \begin{frame} \frametitle{An equation} \[ \alt<3>{\frac{1}{\rho }...


5

Use alignat* to choose the alignment points manually. A little trickery is needed for the last line: \documentclass{article} \usepackage{mathtools}% loads amsmath \begin{document} \begin{alignat*}{2} \mathit{countingUp} \wedge \mathit{counter} &< 100 &&\to [\mathit{counter} \leftarrow \mathit{counter} + 1] \\ \neg \mathit{countingUp}...


5

Nobody likes to read a wall of text where the really important details are hidden among so many symbols, so I propose a different solution. %\documentclass[12pt, a4paper, oneside]{CUIThesisV} \documentclass[12pt, a4paper, oneside]{book} \usepackage{amsmath,amssymb,amsthm} \begin{document} \begin{equation} \label{C2eq61} \mathit{MI}(E_i,E_j,E_k^a,E_l^{ma})= ...


5

I’m not sure I’m understanding what you’re asking for, but is it something like this? \documentclass{article} \usepackage{newcomputermodern} % Or your font of choice. \usepackage{amsmath} % Already loaded. \begin{document} \begin{equation} \begin{aligned} Q_{K_4} &= [l_1,(l_2,l_3),(l_4,l_5),(l_2,l_6,l_4),(l_5,l_6,l_3)].[l_2,l_3,(l_6,l_4),(l_6,l_5)].[l_4,...


4

This will work: \documentclass[border=12pt,preview]{standalone} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax \begin{align*} a_1&=\phantom{0}4 = 4 + 3 \times 0 \\ a_2&=\phantom{0}7 = 4 + 3 \times 1 \\ a_3&=10 = 4 + 3 \times 2 \\ a_4&=13 = 4 + 3 \times 3 \\ a_5&=16 = 4 + 3 \times 4 \\ a_6&...


4

The screenshot you posted would appear to be based on a gather* environment. However, your code employs an align* environment, with = set as the alignment point in all four rows. For the equation at hand, I think it's preferable to align the rows on the = symbols than to simply center them. Some suggestions: Never encase a display math environment -- such ...


4

Long math expression in the equation environment cannot be broken into multi lines. For this you had to use one of amsmath environments as are align, gather, etc. Since i haven't used document class, instead of it I use book (in hope that it default size of the \textwidth is approximately the same as at CUIThesisV, see if the following suggestion works for ...


3

First and foremost, you need to issue an \allowdisplaybreaks directive before the start of the 17-line align environment. (Don't use equation, since equation doesn't allow line breaks to begin with.) I would further like to recommend that you get rid of all (yes, all) 106 \left and 106 \right sizing directives, as they contribute nothing useful, but do ...


3

Delete the last \\ inside align (the one after \gamma\delta).


3

You can use either alignat or array. The first solution has already been proposed; I use {} after every &= for uniformity, even if just one would suffice. Using array spares this and the result is the same. On the other hand, array would be much easier if you also need other alignment points, say to go up to a11 \documentclass{article} \usepackage{...


3

With alignat: \documentclass[border=12pt,preview]{standalone} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax \begin{alignat*}{2} a_1 & =&4 &= 4 + 3 \times 0 \\ a_2 & = & 7&= 4 + 3 \times 1 \\ a_3 & ={}&10 &= 4 + 3 \times 2 \\ a_4 & = &13 &= 4 + 3 \times 3 \\ a_5 & = &...


2

Unfortunately you not provide any information about your document. So we don't know the size of \textwidth, used fonts etc. This has strong influence on equation formatting (if there is enough space for equation number or it is necessary to make more breaks): He case with bigger \textwidth: \documentclass{article} \usepackage{geometry} % for bigger \...


2

If you want the = to the left of & use ={}& to get the relation spacing. Also use \mathrm (or \mathit) for multi-letter identifiers. Use alignat rather than align to avoid adding space between the columns. \documentclass{article} \newcommand\hash{\mathrm{hash}} \newcommand\enc{\mathrm{enc}} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} ...


2

Two possibilities. In the first, a bit of visual formatting is needed to push the second line a bit to the right. \documentclass{amsart} \usepackage{mathtools} \begin{document} \begin{multline*} \frac{E(N(\theta_{q}))}{\mathcal{E}(N)} = \frac{1}{f(L)} \Bigl[ 2\arctan(\cot(q/2)) -2 \arctan(\cot(q/2)+f(L)) \\ \qquad % visually determined +(\cot(q/2)+f(L)) \...


2

I show the changes on the line between the two % comment lines. It involves raising the | by a point, \smashing the result, and kerning left with a \! afterwards. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} &&&&&&&&&&&&&&x&&+&&\frac{x^3}{3}&&+&...


2

If I understood the desired output this is one way \documentclass{article} \usepackage{amssymb} \begin{document} \[ \begin{array}{rl} &p\\ &p \to q \\ \cline{2-2} \therefore & q \end{array} \] \end{document} but I believe there are dedicated packages for logical proofs.


2

In a way, I'm surprised that \cmidrule works at all outside of tabular-like and array environments. The fact the use of \cmidrule doesn't throw an immediate error message is not an indication that what you're doing can or should be expected to produce the result you're hoping to get. If you must use \cmidrule, do typeset the equations in question in an array ...


1

You could use gather* and the first four lines in a nested align*, but the result would not be pretty. You can make the last row to be half before the arrow and half after it. In the code, \tv stands for “textual variable”. Using a semantic command will allow to change the typographical realization of all these objects in one swoop by modifying just the ...


1

If you want to reduce vertical space in this example or in a similar case add negative space before, for example with \\[-2ex] In addition to the excessive space you notice booktabs adds vertical space both sides of the \cmidrule so it is harder to correct. \documentclass{article} \usepackage{amsmath} %\usepackage{booktabs} \begin{document} \begin{align*...


1

I propose these improvements with align* and eqparbox, so that the middle term is centred between the \leq signs: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{amsmath} \usepackage{eqparbox} \newcommand\eqmathbox[2][M]{\eqmakebox[#1]{$\displaystyle#2$}} \begin{document} \textbf{Théoriquement :}\\ On sait que l'...


1

For the particular problem that you have, it seems it will work if you just let the conditions of the "second line" protrude to the left. Which means that it is a perfect time for \mathllap. (You will need to load the mathtools package.) You can wrap the quantifiers on the bottom line in \mathllap \mathllap{\forall p,q\in \S{P},(i,j) \in E : p \ni ...


1

I propose this layout, based on the multlined environment (frommathtools) and the linegoal package, which measures the relaining soace on the line: \documentclass{amsart} \usepackage{mathtools} \usepackage[verbose]{linegoal} \usepackage{showframe} \renewcommand{\ShowFrameLinethickness}{0.2pt} \begin{document} \[ \frac{{E}(N(\theta_{q}))}{\mathcal{E}(N)} = ...


1

With tabularx: \documentclass[12pt, a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{booktabs, tabularx} \NewExpandableDocumentCommand\mcx{O{1}m} {\multicolumn{#1}{>{\centering\arraybackslash}X}{#2}} \NewExpandableDocumentCommand\mclbf{O{1}m} {\multicolumn{#1}{>{\bfseries}...


1

This is unrelated to tabularx, you are using the standard tabular*. personally I would use a tabular here as forcing the table to be full width just makes the columns further apart and the table harder to read (this is almost always the case for any table) But if you you do want the table full width, you can hide the width of the spanning entries so the ...


1

I've tidied up the code a bit, removing any of the forced spaces that you inserted. \documentclass{beamer} \usepackage{amsmath,xcolor,transparent} \usetheme{metropolis} \begin{document} \begin{frame}[t, plain]{Die Definition der Mandelbrot-Menge} \begin{align*} \only<2->{\transparent{0.6}} z_0 & \only<2->{\transparent{0.6}} = 0, &...


1

Do you mean like this? \documentclass[a4paper, 12pt]{report} \usepackage{amsmath} \begin{document} \(\begin{aligned} \text{By the quotient rule,}\quad f'(x)&=\frac{v(x)u'(x)-u(x)v'(x)}{(v(x))^2}\\ &=\frac{(2x-2)(2)-(2x+2)(2)}{(2x-2)^2}\\ &=\frac{4x-4-4x+4}{(2x-2)^2} \end{aligned}\) \end{document}


Only top voted, non community-wiki answers of a minimum length are eligible