# Tag Info

## New answers tagged equations

5

Here is one suggestion with pmatrix. \documentclass{article} \usepackage{amsmath} \begin{document} $$D_{i,t} = \begin{pmatrix} \ln(\text{Deal value}) \\ \text{Loan Maturity} \\ \text{Loan Type} \\ \text{Credit Rating of the Loan} \\ \text{Coupon Rate} \end{pmatrix}$$ \end{document} If one wants to avoid the use of \text in ...

2

I suggest you use a couple of aligned environments inside the align* environment. \documentclass{amsart} \usepackage{amssymb} % for "\blacksquare" macro \setlength{\oddsidemargin}{0.0in} \setlength{\evensidemargin}{0.0in} \setlength{\textwidth}{6.1in} \setlength{\topmargin}{0.0in} \setlength{\textheight}{9in} \begin{document} \begin{align*} ...

3

In this case you can exploit the symmetry between the two parts and use aligned: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} \begin{equation*} \openup\jot % make lines a little more far apart \begin{aligned}[t] x &= \dfrac{a+\sqrt{a^2-4b}}{2}\\ &= \dfrac{5+\sqrt{1}}{2}\\ &= \dfrac{5+1}{2}\\ &= ...

1

You can wrap the two formulas in minipages \documentclass[12pt,a4paper]{article} \usepackage[a4paper,vmargin=0.7in,hmargin=0.7in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath,amsfonts,amssymb} \usepackage{array,booktabs} \usepackage{parskip} \begin{document} \large \begin{minipage}{.5\textwidth} ...

8

Use align* instead, like so: \documentclass[12pt,a4paper]{article} \usepackage[a4paper,vmargin=0.7in,hmargin=0.7in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath,amsfonts,amssymb} \usepackage{array,booktabs} \usepackage{parskip} \begin{document} \begin{align*} x_1 &= \dfrac{a+\sqrt{a^2-4b}}{2} & x_2 &= ...

0

Here's a different way not shown in Barbara's suggested alternative. Here, the text is explicitly broken with a end-of-line delimiters, whereas the \parbox alternative is flushed to a box of specified size. \documentclass[12pt]{article} \usepackage{stackengine} \setstackEOL{\cr} \begin{document} \[ c\,dt = \Longunderstack[l]{average probability that a ...

0

I follow the steps 1 to 4 but I'm getting the following message, after try use it in Corel Draw X7 64 bits: Run-time error '-2147467259 (80004005)': Method 'ImportEx' of object 'IVGLayer' failed Is there something that I can do in order to fix this?

0

Matching \left and \right must be at the same level of grouping. You can't have \left[ in the argument to \underbrace and the matching \right] outside it. Use \biggl[ instead of \left[ and \biggr] instead of \right]. Remove the inner \left and \right that serve no purpose. According to your input you seem to want something like this: ...

6

First of all, empty lines are not allowed in displayed math environments (like equation), remove those. Second, you are in math mode, so there is no need for $\infty$, \infty alone is correct. Finally, the \emph doesn't really do anything useful I think, I would remove them and the dollar signs. \documentclass{article} \usepackage{amsmath} \begin{document} ...

4

You can not have blank lines in equation delete the three blank lines and the error will go.

9

Use a \parbox: \documentclass[twocolumn]{article} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \lipsum*[2] \partial_{ab}(i,j)= \begin{cases} 0, & \parbox[t]{.5\displaywidth}{ \raggedright if $(j,i,a)$ is immediately followed by the same job that follows $(j,i,b)$} \\ 1, & \text{otherwise} \end{cases} ...

1

If you (a) reduce the values of the length parameters \arraycolsep, \thickmuskip, and \medmuskip and (b) use the bmatrix environment of the amsmath package instead of array environments, the equation and the equation number fit on a single line. \documentclass[12pt]{report} \usepackage{amsmath} \usepackage[vmargin=25mm]{geometry} ...

1

I propose to use the medsize environment (about 80 % of \displaystyle), from nccmath. Also I simplified your code, using the bmatrix environment: \documentclass[12pt]{report} \usepackage{geometry} \usepackage{mathtools, nccmath} \geometry{ top=25mm, bottom=25mm, showframe } \newcommand{\sss}[2]{_{_{#1_{#2}}}} \begin{document} Some text some text some ...

1

If you use ~ instead of spaces the whole expression will stay together!

7

If you want to add text to just one slide, try \only<>{} \documentclass{beamer} \begin{document} \begin{frame} Complete SM lagrangian can be written as- \[\mathcal{L}_{SM}=\textcolor{blue}{i\overline{\psi}\gamma^{\mu}\mathcal{D}_{\mu}\psi}\only<1>{~\fbox{explain something}}\pause \textcolor{red}{ ...

2

To get the "displaystyle", i.e., large, fractional expressions to the right of the curly brace, either use \dfrac instead of \frac or employ the dcases environment (requires the mathtools package) instead of the "basic" cases environment. As the other comments and answers have already noted, used \boxed to enclose the equation in a rectangular frame. By ...

2

You could load the mathtools package and use the \newtagform macro to create a new, "hidden", tag form for equation numbers. With the code shown below, use \usetagform{hidden} to suppress the showing of equation numbers and use \usetagform{default} to revert to default mode. "Hidden" equation numbers will show when cross-referenced with \ref, \eqref, etc. ...

2

Answer to the updated question Regarding the frac part of the question: If you use the amsmath package then you can use \dfrac instead of \frac. This will make is larger. displaystyle - hence the d in \dfrac - is the technical term I think. Answer to the original question Normally you should show some effort of your own or at least provide a so ...

2

Speaking for myself, I can't help but remark that typesetting the three sub-equations side by side in a row looks plain awful. Either the font size has to be shrunk so drastically that the equations become well-nigh unreadable, or you need to introduce so many line breaks in the subscript terms as to impair readability. Continuing to speak for myself, I'd ...

5

The best solution is: don't do this ... equations become unreadable small: Code: \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{empheq, nccmath} \usepackage{showframe} \begin{document} $$\label{eq: time} T_{m}^{v+1} - T_{m}^{v}$$ \begin{subequations} ...

0

\documentclass[10pt,a4paper,titlepage]{book} \usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{showframe} \usepackage{cases} \usepackage{graphicx} \begin{document} \noindent \resizebox{\linewidth}{!}{\parbox{1.15\linewidth}{% \begin{subnumcases}{} ...

3

Use \displaystyle to force content to be set similar to display math: \documentclass{article} \usepackage{algpseudocode,amsmath} \DeclareMathOperator*{\argmax}{arg\,max}% http://tex.stackexchange.com/q/5223/5764 \begin{document} \begin{algorithmic}[1] \State $\displaystyle E_i = \argmax_{E \in \mathcal{E}} F(E)$ \State E_i = \argmax_{E \in ... 2 Three solutions: use the \medmath command from nccmath: it reduces the size to about 80 % of \displaystyle, replace subnumcases by an align environment inside subequations. The brace can be obtained as an option of the empheq environment, and the long line will be split with either aligned or multlined (from mathtools, which is loaded by empheq): Code: ... 0 With my setup, @Werner's solution works but inserts an extraneous space at the beginning of the line following the \end{equation*}. The following code, based on his answer, seems to work for me: \documentclass{article} \usepackage{amsmath,lineno} \expandafter\let\expandafter\oldequationstar\csname equation*\endcsname ... 7 Since you're loading the amsmath package, you could make use of that package's \tagform@ macro to achieve your objective. Note that you will not be able to use \eqref to create cross-references to equations; I suggest you load the cleveref package and use \cref instead. \documentclass{scrbook} \usepackage{amsmath,amssymb,amsthm} \makeatletter ... 18 Welcome to the site. We will appreciate the questions that have a minimal working example (code) that shows the efforts you have already put. Asking somebody to do things is frowned upon here. If you have no idea of how to start, you may put the following as a MWE \documentclass{article} \begin{document} %equation here \end{document} and ask for the ... 0 Column-like separation of equations is possible with multicols, but also with other structures that allow for boxing content. For example, using minipages or tabulars. As an example of the latter, consider: \documentclass{article} \begin{document} \noindent \begin{tabular}{@{}p{.5\linewidth}@{}p{.5\linewidth}@{}} A = B + C ... 5 You have a big error: you're missing the mandatory argument to array. However, there are better methods to accomplish what you want. \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \begin{equation*} M = \begin{dcases} \sqrt{1+0.6275 \frac{l^2}{Dt} -0.003375 \frac{l^4}{D^2 t^2}} & \text{if } \frac{l^2}{Dt} \leq 50 \\ 0.032 ... 2 A combination of subequations and \intertext, employed in the right combination. \documentclass{article} \usepackage{amsmath} \begin{document} \noindent some text \begin{subequations} \begin{gather} x = y\\ \intertext{some text} x = y \end{gather} \end{subequations} some text \end{document} If the intertext is very short, one can compress the ... 1 The amsmath package provides the subequations environment exactly for that purpose. Just enclosed the whole block in \begin{subequations} ... \end{subequations}. See section 3.11.3 of the documentation for more details. 2 I would use the align environment from mathtools here. Please have a look at the other small adjustments i made. \documentclass{article} \usepackage{mathtools} \usepackage{physics} \begin{document} \begin{align} \dv{x}{t} &= -r(x-x_{e})\\ \frac{\dd x}{9} &= -r\dd{t}\\ \int\frac{\dd x}{x-x_{e}} &= \int ... 0 There are a number of ways to create curved lines, including Beziers. I also switched to top alignment between the minipages and moved the tikzpicture baseline to the top. \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenx} \usepackage{amsmath} \usepackage[european]{circuitikz} \usepackage{showframe} \begin{document} \noindent ... 2 \equalignno is plain TeX so not defined in LaTeX. If you are using plain tex it should work. \font\bolditalmath=cmmib10 \newfam\zz \textfont\zz=\bolditalmath \def\mbi{\fam\zz} \let\mmb=\mbi %?? Test:\eqalignno{{\mbi x}(t + 1) = &\, {\mbi\Phi} (t){\mbi x}(t) + {\mbi{\mbi \Gamma}} (t){\mbi w}(t)&{\hbox{(1)}} \cr {\mmb z}(t) =&\, {\mbi ... 4 Use alignedat. In contrast to aligned you have to specify the number of column pairs there, i.e. \begin{alignedat}{2}. Also ever third column is right aligned so you need to insert an empty column before your second equals as in &&=. \documentclass{article} \usepackage{amsmath} \begin{document} \left\{ \begin{alignedat}{2} ... 1 there may be better ways to break these lines, but this may suffice. i've changed \left and \right to explicit \big braces to avoid "matching" problems, and i've grouped the three equations into an align environment to get better control over spacing between them. i'm not entirely happy with leaving \in at the ends of the first lines, but the second lines ... 1 Write this: \begin{align*} & \phantom{{}={}}\text{long string of variables}\\ & = \text{another long string of variables} \end{align*} or this (as suggested by @daleif): \begin{align*} &\text{long string of variables}\\ ={} & \text{another long string of variables} \end{align*} 1 The larger space is \belowdisplayskip which is used for the first equation. You could locally set it to \belowdisplayshortskip. But some multiline display environment is probably better: \documentclass{article} \usepackage{amsmath} \begin{document} Hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello ... 0 Not a nice solution, but it might work (just leave space between \end{} and \begin{}: \documentclass{article} \usepackage{amsmath} \begin{document} Hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello. \begin{equation*} AAAAAA \end{equation*} \begin{equation*} BBBBBB ... 2 You also can try \ArrowBetweenLines from mathtools: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{alignat*}{2} & & \smash[b]{\underbrace{\overline{xx\cdots x}}_\text{2n$}}-\smash[b]{\underbrace{\overline{yy\cdots y}}_\text{$n}} & = (\overline{\underbrace{zz\cdots ... 4 Maybe this. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{4} &\qquad& \smash[b]{\underbrace{\overline{xx\cdots x}}_\text{2n$}}-\smash[b]{\underbrace{\overline{yy\cdots y}}_\text{$n\$}} & = (\overline{\underbrace{zz\cdots z}_{n}})^2 \\ \Leftarrow\kern-4pt\Rightarrow&& \dfrac{x(10^{2n}-1)}{9} - ...

2

Encasing the argument of \sqrt macro in a \smash[b]{...} macro gets the stated job done. In addition, I think it's important to make sure that the three underbraces are all at the same depth. This may achieved by inserting \vphantom{y} in the xx and zz groups. For the finishing touch, I'd extend the square root's horizontal bar ever so slightly before ...

0

I faced the same problem with version 0.19 of cleveref (see the above comment by egreg). I fixed this behaviour by \crefalias{subequation}{equation} in the preamble. (Please drop a comment if this fix is somehow dirty or should be avoided)

0

To make the displayed equation start hard at the left edge of the text block, you should (a) load the amsmath package with the option fleqn (short for "flush left equation", I suppose) and (b) set the \mathindent length parameter to 0pt. \documentclass[11pt,a4paper]{report} \usepackage[fleqn]{amsmath} \setlength\mathindent{0pt} \begin{document} ...

2

both the figure and center commands add space. to avoid the space from center, instead use {\centering ... } (or \begingroup and \endgroup instead of the braces). if you really don't need the graphic to float, you could use the caption package and \captionof instead of figure. then you can control the spacing yourself.

1

With an bleeding edge chemmacros the following is possible: \documentclass{article} \usepackage{chemmacros}[2016/05/04] \chemsetup{ modules = {reactions} } \usepackage[colorlinks]{hyperref} % just for this example \usepackage[nameinlink,noabbrev]{cleveref} \begin{document} \begin{reaction} 2 H2 + O2 <=>> 2 H2O "\label{rct:water}" ...

1

Just add a space line between paragraph and the equation. This will solve line numbering problem.

0

An alternative with array package: \documentclass[tikz,varwidth,border=3mm]{standalone} \usepackage{mathtools} \DeclarePairedDelimiter\norm\lVert\rVert \begin{document} \[\renewcommand\arraycolsep{1pt} \begin{array}{lcl} min(\norm{[\hat{w}(k)-\hat{y}(k) & - & M^P \Delta \hat{u}^P (k)] - M \Delta\hat{u}(k)}_\psi^2 + ...

1

You can do that with the alignat* environment. Here are two layouts: \documentclass[a4paper, 11pt]{book} \usepackage[utf8]{inputenc} \usepackage{fourier, erewhon} \usepackage{mathtools} \DeclarePairedDelimiter\norm\lVert\rVert \begin{document} \begin{alignat*}{2} & \min\bigl(\norm{[\hat{w}(k)-\hat{y}(k)-{} & & M^P Δ\hat{u}^P (k)]-M ...

1

This worked great for me: \begin{align} V_{t}(K_{t},EF_{t}^{(s)})=&\max\limits_{\left\{ I_{\tau }\right\} _{\tau =0}^{\infty }}E\left\{ \sum_{\tau =0}^{\infty }\beta ^{\tau }\left[ \pi (K_{t+\tau },EF_{t+\tau }^{(r)})\right.\right.\nonumber\\ &\left.\left.-I_{t+\tau }-C(I_{t+\tau },EF_{t+\tau }^{(s)})\right] ...

3

Following solution uses your TikZ code but with some minor corrections. Now both matrices are inside the same figure and also the lower braces. To correctly align them inside the equation, (m1.west) is the baseline point. \documentclass{scrreprt} \usepackage{amsmath,bm} \usepackage{tikz} \usetikzlibrary{arrows,matrix,positioning,decorations.pathreplacing} ...

Top 50 recent answers are included