New answers tagged

0

It looks like you're using an align environment, or maybe an aligned environment, but failed to provide alignment points (& characters). Moreover, you may have meant to create 2 separate columns of material, with expressions involving (x-x_0) on the left and those involving (x_0) on the right. In the following, the material within each column is aligned ...


2

If each and every item in a numbered list consists of exactly one displayed equation (possibly covering two or more lines), I believe it's dubious typographic practice to mark the equations with both an item number and an equation number. Choose one marking system or the other, but not both. Pointless redundancy should be avoided at (nearly) all cost, ...


3

I see no need for the & symbol before \forall i,j,t in the second row. A \quad or \qquad spacing directive should suffice. I would use an aligned environment inside an equation environment; this setup generates a single equation number, with the optional argument of aligned ([t] or [b] indicating whether the equation number should be placed at the top ...


1

From your sketch I assume that you only want long equations to go into the margins. You can easily widen the line at the appropriate equations using changepage's adjustwidth: \documentclass{scrbook} \usepackage[utf8]{inputenc} \usepackage[includemp, showframe, paperwidth=18.90cm, paperheight=24.58cm, top=2.170cm, ...


2

Reducing the left margin in the \tcolorbox, some spacing adjustments, and a medium sized formula; is it better? \documentclass{beamer} \mode<presentation> { % \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... % \usecolortheme{default} % or try albatross, beaver, crane, ... % \usefonttheme{default} % or try serif, structurebold, ... \...


2

As this example shows you should use a multi-line display such as gather and never one display math following another or at the start of a paragraph. \documentclass{article} \showoutput \showboxdepth=3 \begin{document} \noindent These equations have inconsistent spacing if this line ``pushes down the first.'' \[a\] \[a\] \[a\] \noindent These have ...


3

You were almost there! All you need to change is to replace the display-math setting with an inline-math setting, i.e., replace the \[ ... \] wrapper with $ ... $. \documentclass{article} \usepackage{systeme} \begin{document} \begin{itemize} \item $\systeme*{3 - 4x > 5,6 + 9x \leq 1}$ \item $\systeme*{3x -6 > 2x,2x - 6 > 5x}$ \end{itemize} \end{...


2

Here are two solutions for horizontally and vertically centred systems: \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{mathtools} \usepackage{systeme} \usepackage{showframe} \renewcommand{\ShowFrameLinethickness}{0.2pt} \begin{document} \mbox{} \begin{itemize} \item \makebox[\linewidth]{$ \systeme*{3 - 4x > 5,6 + 9x \leq 1} $} \...


2

I add my answer using the enviroment cases instead of systeme package with the simple common package amsmath. \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \begin{document} \begin{itemize} \item $\mathrel{\mkern-15mu}\begin{cases} 3 - 4x > 5&\\ 6 + 9x \leq 1 \end{cases}$ \item $\mathrel{\mkern-15mu}\begin{cases} 3x -6 > 2x&\\ ...


1

I just added \unvovers, \setbeamercovered{transparent} and replaced \stackrel by overset to obtain \documentclass{beamer} \mode<presentation> { % \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... % \usecolortheme{default} % or try albatross, beaver, crane, ... % \usefonttheme{default} % or try serif, structurebold, ... \...


1

Depending what you want to get automatized, you could create a new command. I would suggest something like: \newcommand\equationlist[2]{ % Params are the equation and the label \begin{equation} #1 \label{eqn:#2} \end{equation} where: \begin{itemize}[labelindent=20pt,leftmargin=*,widest=$M_x$,align=left,itemsep=0pt] ...


7

You should not leave a blank line between \end{equation} and \begin{conditions} or the description might be detached from the equation. Nor you should have a blank line before \begin{equation} under any circumstance. On the other hand, such a long description of variables is quite likely to produce bad page breaks, be it detached or not from the equation. ...


1

You can still set the equation using IEEEeqnarray with only 2 columns, positioning the - and + via a left overlap: \documentclass{article} \usepackage{IEEEtrantools,mathtools} \begin{document} \begin{IEEEeqnarray}{rl} \phi(x, y, z) = \frac{V}{2\pi}\Biggl( \arctan &\Biggl[\frac{(x_2 - x) (z_2 - z)}{y\,\sqrt{y^2 + (x_2 - x)^2 + (z_2 - z)^2}}\...


3

There is an indent on the line where the conditions environment begins. In your example, the conditions environment is defined as \newenvironment{conditions}[1][where:] {% #1\tabularx{\textwidth-\widthof{#1}}[t]{ >{$}l<{$} @{${}={}$} X@{} }% } {\endtabularx\\[\belowdisplayskip]} So when the conditions environment is called with the ...


2

I propose 1. to use the various matrix environments,; 2. to use the medsize environment from nccmath for the exponent (it is ~80 % of \displaystyle): \documentclass[12pt]{article} \usepackage{amsmath, nccmath} \begin{document} \begin{equation} \begin{bmatrix}\bigl(\gamma\bigr) - {\Bigl(\dfrac{\alpha}{\beta}\Bigr)}^{\begin{medsize}\begin{pmatrix}\dfrac{\...


2

The problem you were having with split is that you cannot have a line break between a matching { and }, or between \left and \right. I rewrote your equation slightly so that the parentheses spanning the line break set an explicit size instead of \left and \right, and removed the unnecessary braces around the expression to be integrated. I also removed most ...


1

The automatic equation splitting mechanism are not perfect according to what I know, so I'd do it manually. Also, since you have a variable d in your equation, you have even more reasons to typeset differential d's upright. I would not overdo it with \left and \right. Since you do not provide us with a complete document, I had to guess, and hope that the ...


1

@scottkosty mentions 2 relevant bug reports 1 and 2, and the latter suggested passing in "reqno" as a document class option. This changes the equation labeling to the right side (instead of the left as shown) and avoids overlapping the equation label with the equation. Since I'm OK with right side equation label, this solves the issue for me.


1

Some further web-search gave me the answer. 1 ) Remove \break 2 ) Add \noindent before the first equation Correct code: \begin{multicols}{2} \noindent \begin{equation} \label{eq:va} \begin{aligned} \textbf{v}_a = \begin{pmatrix} {\alpha_1} \\ {\alpha_2} \\ {\vdots} \\ {\alpha_{T-1}} \\ {\alpha_T} \end{pmatrix} \end{aligned} \end{equation} \begin{...


3

With the help of two minipages: \documentclass{article} \usepackage{amsmath} \begin{document} \noindent \begin{minipage}{0.5\textwidth} \begin{equation} \label{eq:va} \begin{aligned} \textbf{v}_a = \begin{pmatrix} {\alpha_1} \\ {\alpha_2} \\ {\vdots} \\ {\alpha_{T-1}} \\ {\alpha_T} \end{pmatrix} \end{aligned} \end{equation} \...


2

I think you need only one column of & alignment points. Observe the use of explicit parenthesis-sizing instructions and of \mleft and \mright in lieu of \left and \right; they serve mainly to conserve on horizontal whitespace. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,mleftright,derivative} \begin{document} \begin{align} [u_t]: \quad \...


5

You are supposed to end the box with \tikzmarkend. In your example the fill is only roughly what it should be because you have the large dimensions in (10.8,-1.8)(0,0.7). The second box comes from the second \tikzmarkin. If you use \tikzmarkend instead, you do no longer need add the large dimensions by hand. \documentclass{article} \usepackage{amsmath} \...


1

Something like this? Employ \usetagform{indented} to switch to the alternative tag format, \mytag{...} to generate the alternative tag, and \usetagform{default} to switch back to the default tag format. \documentclass[a4paper,12pt,numbers=noenddot]{scrartcl} \usepackage{mathtools} % for '\newtagform' and '\usetagform' macros \newtagform{indented}{}{\hspace*...


1

If you really need this you can add the space to the command that sets the tag: \documentclass{article} \usepackage{amsmath} \begin{document} zzz \begin{equation} 1=0 \end{equation} \makeatletter \def\tagform@#1{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr)\hspace{1cm}}} \makeatother zzz \begin{equation} 1=0 \end{equation} \end{document} Or ...


3

A short code with pstricks: each value is made an \rnode, and these nodes are linked by a node connection with the relevant shape (\ncarc) with a label above: \documentclass[svgnames]{article} \usepackage{nccmath} \usepackage{pst-node} \begin{document} \[ f(0) = \rnode{1}{1},\; f(1)= \rnode{2}{3},\; f(2)= \rnode{3}{5},\; f(3)= \rnode{4}{7} \psset{...


4

I have added some examples - they are not perfect but a start. % Based on https://tex.stackexchange.com/questions/34452 and https://tex.stackexchange.com/questions/35717 % Remark: Please compile at least 2 times (otherwise the arrow position may be wrong). \documentclass{article} %\usepackage{amsmath} \usepackage{tikz} %\usetikzlibrary{calc} \newcommand{\...


0

You can accomplish this with the align* environment, the fleqn and alignedleftspaceno options of amsmath, and a \@mathmargin of zero. To break a long equation, insert a split. If you just want equations flush left without alignment points, you can use the lgather environment from mathtools. The fleqn option should go to amsmath or whatever package loads ...


8

You could nest a couple of rcases environments inside a cases environment. \documentclass{article} \usepackage{mathtools} % for 'rcases' env. \usepackage[T1]{fontenc} \usepackage{newtxtext,newtxmath} % optional \begin{document} \[ k(x)= \begin{cases} \begin{rcases} \phantom{-}x+3, & -3\le x\le -2\\ -x-1, & -2\le x\le -1\\ 0, & \phantom{-}\...


1

Like this? (red lines indicate text borders) \documentclass[12pt, fleqn]{article} \usepackage[letterpaper, margin=1in]{geometry} \usepackage{newtxtext} \usepackage{mathtools,amssymb,amsthm} \setlength{\mathindent}{0pt} % <---- \begin{document} \[ \mathrm{Entropy}(D) = -\sum\limits_{d \in D} p(d) \log_{2}p(d) \] some text? \[ \...


1

You can keep it much simpler. I use a displaymath environment, so there will be no page break. Inside it I use two minipages, one for the equations and one for the image. The equations just need aligned. Quite important: add ties between the name and its symbol like in susceptible~(S) so the symbol will not be detached from the name at a line break. I ...


0

Simplest way is to add space in front, and using just align*. You could repeat it multiple times as you need. \begin{align*} f(x,y) & = a\\ & = b\\ & \, + c\\ & \; + d\\ & \: + e\\ & \ + f \\ &\quad + g\\ &\qquad + g \end{align*}


1

I propose one of these solutions: one using flalign* and the measuredfigure environment, from threeparttable, the other using a simple  align* environment nested in a fleqn environment defined by nccmath and the \ffigbox command from floatrow. Unrelated: I simplified the typing of the derivatives in Leibniz' notation with the \diff command, from esdiff. ...


3

An extra { (and missing \left and \right)? \documentclass[11pt]{article} \begin{document} \begin{equation} g(x)=\frac{1}{8x^3}\left[\frac{(x^2+2x)^{n+1}}{n+1}-\frac{x^{2n+2}}{n+1}-x^4\left(\frac{(x^2+2x)^{n-1}}{n-1}-\frac{x^{2n-2}}{n-1}\right)\right] \end{equation} \end{document}


2

Unfortunately, I suspect it is a bug/limitation of the Cloze type of questions. This MWE % \documentclass{article} \usepackage[T1]{fontenc} \usepackage{moodle} \begin{document} \begin{quiz}{Test cloze} \begin{cloze}{Multiple questions} A $x$ is \begin{multi}[vertical] One two three \item* one $u^1$ \item two \...


3

You could use a \parbox, although you will need to specify a width. I used \widthof from the calc package, but you don't have to be that precise. Note that \parbox takes you out of math mode. \documentclass[12 pt,handout,notheorems]{beamer} \usepackage{pgfpages} \pgfpagesuselayout{resize to}[a4paper,landscape] \usetheme{Boadilla} \usefonttheme{...


5

You could replace the aligned environments with gathered environments -- and remove the & alignment points. The main difference to an array-based solution is that the contents are typeset in display-math mode by default, which implies a slight increase in line spacing. \documentclass[12pt,handout,notheorems]{beamer} \usepackage{pgfpages} \...


9

You can use an array. \documentclass[12 pt,handout,notheorems]{beamer} \usepackage{mathtools} \usepackage{pgfpages} \pgfpagesuselayout{resize to}[a4paper,landscape] \usetheme{Boadilla} \usefonttheme{professionalfonts} %To get the accents aligned correctly, albeit in Computer Modern Roman \usepackage{amsmath} \usepackage{mleftright} \usefonttheme{...


0

You can use the command \numberwithin from amsmath. This command takes two arguments, both supposed to be counters. Using \numberwithin{<counter1>}{<counter2>} will reset <counter1> every time <counter2> is increased. It will also redefine how a number from <counter1> is displayed, representing it in the form "x.y", where x is ...


4

As you can put whatever you want in a table environment, it is simpler to put inside an flalign*. I added the caption package to have a more decent spacing under the caption. \documentclass[]{article} \usepackage{bm, amssymb, mathtools} \usepackage{caption, colortbl} \captionsetup{skip=4pt} % bold in math mode \newcommand{\matr}[1]{\bm{#1}} % Plücker ...


2

I would like to suggest that you employ an array environment with 3 columns. This saves you from having to enter and exit math mode lots and lots of times. \documentclass{article} \usepackage[french]{babel} \usepackage{bm,amssymb,amsmath,booktabs} \usepackage{array} % for '\newcolumntype' macro \newcolumntype{L}{>{$}l<{$}} \newcolumntype{C}{>{$}c&...


3

You can make a one column table (for the rules) and fill the contents manually. \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{amsmath,amssymb,bm} % bm after amsmath \usepackage{booktabs} % bold in math mode \newcommand{\matr}[1]{\bm{#1}} % Plücker transforms \DeclareMathOperator{\rx}{rx} \DeclareMathOperator{\ry}...


1

If you like to referencing each equation in the system of equation, than see the following solution: \documentclass{article} \usepackage{amsmath} %---------------- show page layout. don't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \renewcommand*\ShowFrameColor{\color{red}} %------------------------------------...


0

Here's a self-answer - I'm not sure why I didn't think of it, but you can just fake the tags using align*. The right-hand tags don't line up with the tags from normal equations, but I find that not so bad. Of course, I'm very open to better suggestions, especially since someone else want to do the same thing but using the automatic equation numbers instead ...


0

This answer is WRONG. Refer to comments made by @egerg below. According to nccmath: fleqn numbering, nccmath should be loaded after hyperref. It seems that, in this case, amsmath should be loaded after hyperref as well. This means move any packages that implicitly load amsmath after hyperref. Here is the adjusted (partial) order: \usepackage{amssymb} % .....


1

Invert your use of equation and fleqn. That is, use If $\epsilon \ll 1$, \begin{equation} \begin{fleqn} \Gamma(1 + \epsilon) = 1 - \gamma\epsilon + O(\epsilon^2) \label{app:eq_gamma-exp} \end{fleqn} \end{equation}


4

The basic problem here was that amsmath was trying to set your equation tags in the default language, Arabic. Mixing Latin characters with Arabic script confused the bidirectional algorithm. If your Arabic font does not support parentheses in Arabic script, the only error you will get is a silent warning message buried in your log file. This is an ...


2

You can use matrices to access the expressions in the equation, and place some {} at the right places after & just like in ordinary arrays of the same purpose. calc can be used for the relative alignment. I didn't know if you want to have all the nodes terminate at the same horizontal positions, so I added both options. \documentclass{article} \...


1

Some comments and suggestions: First and foremost, change $-$ to just -. Be careful where you place the \hat accents. Please check if it should ro and \theta o or, rather, r_0 and \theta_0. I suggest you use \displaystyle in both the main numerator and main denominator and increase the "fence" sizes from \big to \bigg. \documentclass{article} \usepackage[...


4

I would use a single align* for this. This will ensure alignment at all the = signs. Only label has to be entered manually. \documentclass[11pt]{article} \usepackage{enumerate} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{align*} (t=1)\quad w^{(1)} &= (w_1^{(1)},w_2^{(1)},w_3^{(1)}) = (1,1,1)\\ (t=2)\quad w^{(2)} &= (w_1^{(2)},...


3

As a complement to Werner's fine answer, I propose a few refinements: \documentclass[11pt]{article} \usepackage{enumitem} \usepackage{amsmath} \usepackage{amssymb} \usepackage{showframe} \begin{document} \begin{enumerate}[label={($t=\arabic*)$},itemsep=0pt,leftmargin=*,align=left] \everymath{\displaystyle}% local setting \item $w^{(1)}_{\vphantom{1}} = (...


Top 50 recent answers are included