# Tag Info

0

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*}\renewcommand\arraystretch{2.1} \frac{2}{3} &= 0.66666\,66667 ~(-) \\ \frac{2}{3 \cdot 3 \cdot 9} &= 0.02469\,13580 ~(+) \\ \frac{2}{3 \cdot 5 \cdot 9^2} &= 0.00164\,60905 ~(+) \\ \frac{2}{3 \cdot 7 \cdot 9^3} &= ...

1

As possible starting point: \documentclass{article} \usepackage{array,siunitx} \usepackage{mathtools} \begin{document} \begin{center} \begin{tabular}{>{$}c<{$}} \begin{aligned} \frac{2}{3} & = \num{0,6666666667}\ (-) \\ \frac{2}{3\cdot 3\cdot 9} & = \num{0,0246913580}\ (+) \\ \frac{2}{3\cdot 3\cdot ...

3

I would construct this in a regular array, provided that there is no requirement for the construction to break across the page boundary. Here is such an implementation: \documentclass{article} \usepackage{array} \begin{document} \renewcommand{\arraystretch}{2.1}% http://tex.stackexchange.com/q/31672/5764 \begin{array}{ >{\displaystyle}r @{} ... 0 aligned equations are typically centered by default, so without more information about your preamble it's hard to know for certain what the problem is. That said, it's most likely that the problem arises from passing fleqn as an option to the document class. Removing this makes display math (including align environments) centered instead of left-aligned. ... 1 Made to work in all math styles. \documentclass{article} \usepackage{amsmath,scalerel,stackengine} \def\xyz#1{\ThisStyle{% \setbox0=\hbox{\SavedStyle#1}% \stackon[1\LMpt]{\SavedStyle#1}{\rule{\wd0}{.5\LMpt}}% \rule[-1\LMpt]{.5\LMpt}{\dimexpr\ht0+2.5\LMpt}}} \begin{document} P_{30:\xyz{20}}\quad \xyz{1234}\quad \scriptscriptstyle\xyz{567890} ... 1 You can use actuarialangle, see the “Comprehensive list of symbols”, Table 251; for the package documentation, texdoc actuarialangle \documentclass{article} \usepackage{actuarialangle} \begin{document} \[ P_{30{:}\actuarialangle{20}} \end{document}

2

The command \showthe works exactly like \the (see The \the command), with the difference that TeX stops compilation for showing the resulting token list, instead of delivering it to the input stream. So \showthe\abovedisplayskip would interrupt the TeX run (if found in an interactive session) printing > 12.0pt plus 3.0pt minus 9.0pt. l.10 ...

0

To have the numbering on the right, you have to replace \documentclass[english]{amsart} by \documentclass[english,reqno]{amsart} (See Placing equation numbers on the right) Edit : and like @Mico said, juste comment your numberwithin commands

12

Yes, of course. \documentclass{article} \begingroup \catcode+=\active \gdef+{\mathbin{\mathrm{blurb}}} \endgroup \AtBeginDocument{\mathcode+="8000 } \begin{document} $x+y$ \end{document} Of course you can think to better definition for the “math active” +. ;-)

10

Nest aligned properly; I defined a compute environment for convenience, also removing as much useless space as possible. \documentclass{article} \usepackage{mathptmx} \usepackage{amsmath} \newenvironment{compute} {\left.\kern-\nulldelimiterspace\!\aligned} {\endaligned\right\rbrace} \begin{document} \begin{equation*} \begin{compute} \begin{compute} ...

8

The following solution uses nested array environments, with the contents of all columns right-aligned. The innermost array, which is terminated by the first large curly brace, features a single column of type r. The next array features two such columns; note that its lower-left cell is empty. The outermost array also has two columns of type r, and its ...

4

Here's a tcolorbox solution (instead of mdframed) The \tcboxmath command can be used inside of an equation or as a standalone box, the configuration of colors etc. is quite simple with colframe and colback etc, either using tcbset or locally in the optional argument. \documentclass{article} \usepackage{mathtools} \usepackage[most]{tcolorbox} ...

2

Something like this? If you don't like the vertical bar, consider replacing \mid with \setminus. \documentclass{article} \usepackage{amsmath} % for 'align*' environment \begin{document} \begin{align*} x+2 &= 2 \qquad \mid -2\\ x\phantom{{}+2} &= 0 \end{align*} \end{document} Addendum: If your systems of equations tend to be more involved ...

2

Something like this: It is easy, just replace shape circle with ellipse: \documentclass{book} \usepackage{amsmath,amsfonts,amssymb,amsthm} \usepackage{mathptmx} \usepackage{calc} \usepackage{tikz} \usetikzlibrary{tikzmark,calc,,arrows,shapes,decorations.pathreplacing} \tikzset{every picture/.style={remember picture}} ...

3

Your equation will become shorter if you will move summation limits below and on the top of it symbol by use \limits after symbol \sum. Based on MWE from @Bernard answer: \documentclass{ieeetran} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum[2] \begin{align}%\MoveEqLeft[12] TPR ...

2

To left align a moderately long equation, you can use the align environment, and the \MovEqLeft[number of ems](default is 1em), or, for the equation to begin at the left margin, the flalign environment. Needless to load amsmath since mathtools does it: \documentclass{ieeetran} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum[2] ...

0

If you will use equation with {split} inside, \noindent will not help you, because equation will appear a little higher then top of page. Add showframe option to geometry package and put this code in your document: \clearpage \noindent $\begin{split} \left(a^{B^{B^{B}}}\right) \\ bb \end{split}$ Here is a solution which helped me How to place amsmath ...

1

The \left. and \right\} instructions have to be placed outside the array environment. \documentclass{article} \begin{document} $\left. \begin{array}{r} \frac{1}{2}( \pi_b+ \pi_a) \pi_b\\[1ex] {}+\frac{1}{2} \pi_b(1-\pi_a-\pi_b) \end{array} \right\} =\pi_b/2$ \end{document}

2

With array you can obtain the following: \documentclass{article} \usepackage{amsmath} \begin{document} \arraycolsep=1pt \begin{array}{cccc} \mathbf{A} & \mathbf{x} & = & \mathbf{b} \\ \begin{bmatrix} 1 & 0 \\ 0 & 1 \\ \end{bmatrix} & \begin{bmatrix} x_1 \\ x_2 ...

2

as i said in a comment, don't do it. if you are submitting this document to a well-edited math journal, it will be reversed. however, if you must, this should work: \documentclass{article} \usepackage{amsmath} \begin{document} some text \vfill So that abutting triangles do not double-paint pixels, a bias of 1 is subtracted from edges that are top'' or ...

3

A Tikz solution \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} [%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% node distance =.7cm ]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \node (A) {$\textbf{X}_{\textbf{n}}$}; \node (B) ...

4

Here are ways to do it, with the cases environment. In the second way, you can have the 1 centred easily with \hfill (thanks to @Mico's suggestion): \documentclass{article} \usepackage{amsmath} \begin{document} \label{xput_vc} \text{Throughput}_{VC} = \begin{cases} 1 & \scriptstyle N_{VC} \leq ...

6

A demo of what can be done with pstricks and with tikz-cd: \documentclass{article} \usepackage{amsmath} \usepackage{pst-node} \usepackage{tikz-cd} \usepackage{auto-pst-pdf} \begin{document} % $\psset{arrows=->, arrowinset=0.15, linewidth=0.5pt, nodesep=3pt, labelsep=2pt, rowsep=0.6cm, colsep = 1.1cm, shortput=nab} \everypsbox{\scriptstyle} ... 5 Another option is tikz-cd: \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \[ \begin{tikzcd} X_n \arrow[r,"\text{a.s.}"] \arrow[d,shift right=.15em,equal,"D"] & X \arrow[d,equal,"D"]\\ Y_n & Y \end{tikzcd}$ \end{document} The argument to \arrow (in brackets) has the direction, possible options like ...

1

This is only a sketch. Some tuning probably needed. (I am assuming, that it is about probability, not commutative diagrams). \documentclass{article} \usepackage{graphicx} \begin{document} \def\eqD{\stackrel{D}{=}} \def\roteqD{\rotatebox{-90}{$\eqD$}} $\begin{array}{c@{}c@{}c} X_n&\;\stackrel{\mathrm{a.s.}}{=}\;&X\\[-7pt] \roteqD ... 7 This is a commutative diagram, for which the Xy package is particularly useful. \documentclass{article} \usepackage{amsmath} \usepackage[all]{xy} \begin{document} \[ \xymatrix{ X_n\ar[r]^{\text{a.s.}} \ar@{=}[d]^D & X\ar@{=}[d]^D\\ Y_n & Y }$ \end{document} The package is really versatile for drawing ...

2

You can do it like this \text{\footnotesize $N_{VC} \leq N_{slave}$}

2

Here is a much simpler code with alignedat and cases environments. Use the bm package to have bold Greek letters.You don't need all those pairs of { }. Also note font commands such as \rm,\bf`, &c. shouldn't be used as they're plain TeX commands, and they don't work well w.r.t. New Font Selection Scheme (N.F.S.S.) which has been new for more than 20 ...

2

This answer is similar to the one by Enrico, but is using aligned instead of alignedat. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{aligned} & \textrm{Dot product:} && \sigma_{ij} n_j \Leftrightarrow \mathbf{\sigma n} \\ & \textrm{Double dot product:} && \begin{cases} ...

5

MathType is not really doing a good work: it's much simpler to type in LaTeX directly. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignedat}{2} &\text{Dot product:} &\quad& \sigma_{ij}{n_j} = \sigma\mathbf{n} \\ &\text{Double dot product:} &\quad& \begin{cases} ...

4

You should do two things: use \documentclass[fleqn]{article} (or whichever document class you're using), but also use gather instead of align. align and its cousins are for vertically aligning text around some specified character, usually =, but gather is for a general list of equations. (You can also use gather* to get an un-numbered version.) ...

3

Your coding style is, shall we way, not exactly tidy. Here's a minimalist fix-up that should get you going, at least for a little while. Good news: after the code clean-up, the equation numbers show up on the right-hand edge. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{natbib} \usepackage[section]{placeins} \usepackage{graphicx} ...

2

If you want to make your MWE work, then add \usepackage{graphicx} to the preamble. Otherwise \resizebox will not be defined. I suggest using multline though. I also adjusted the typography of the vectors, \vec{r_{ij}} → \vec{r}_{ij}. \documentclass[aps,pre,reprint]{revtex4-1} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \lipsum[1] ...

3

Just remove the external pairs of braces. What are they here for? If you really need them, make several groups. Reduce the distance form the frame to the ledt margin of the text inside, and align the enumeration on the left margin with the enumitem package. Finally, if you reduce the font size, do it outside math mode: ...

1

This can be quite easily done using the tried and tested tikzmark idea, demonstrated throughout this site, for example How to draw arrows between circled coefficients of polynomials using tikz and How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)? Here's the output: and the code: % arara: pdflatex % ...

7

If a binary relation such as = is used at the end or start of math list it does not get the additional space at the end of the list. align is designed to be used with &= and adds a {} at the start of the second column, so the effective list is ${}=def$ and you get space either side of the =. There are some rare occasions where it is convenient to move ...

2

Version 1: I don't know what precisely you want to change, but maybe the following can be a starting point for further improvements: \begin{equation*} \tikz[baseline]{\node(d13) {$\hat{\underline{\theta}}_{k+1}$}} = \tikz[baseline]{\node(d14){$\hat{\underline{\theta}}_{k}$}} + ...

5

It's easy to do with pstricks: just use the commands \circlenode and join them by an arc node connection, inside the psmatrix environment: \documentclass[x11names]{article} \usepackage[utf8]{inputenc} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document} \[ \begin{psmatrix} \psset{linewidth=0.5pt, linecolor=Coral1,arrows=<->, ...

1

Since Micro replaced his \phantom (more or less) based answer, here is my minipage solution: \documentclass{article} \usepackage{amsmath} \begin{document} \noindent\fbox{\parbox{\textwidth}{\refstepcounter{equation}% \begin{minipage}[t]{0.33\textwidth} \begin{align*} a_1 &= \frac{x}{h},\\ a_2 &= \frac{h \rho v}{\mu},\\ a_3 &= \frac{k}{2}, ...

4

Try: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{aligned} a_1 & = \frac{x}{h}, &\qquad b_1 & = \frac{h}{h}, &\qquad c_1 & = \frac{\mu t}{\rho h}, \\ % a_2 & = \frac{h \rho v}{\mu}, &\qquad b_2 & = \frac{h_0^2 \rho p}{\mu^2} & c_2 & = \frac{h \rho ...

2

Here's a solution that uses an array environment to align the rows and columns. \documentclass{article} \usepackage{array} % for "\newcolumntype" and "\extrarowheight" macros \newcolumntype{L}{>{\displaystyle}l} \begin{document} \setlength{\extrarowheight}{2.5ex} % extra vertical space between rows \begin{array}{ r @{{}={}} L @{\qquad} ...

1

A single . can be used as the partner of a bracket, e.g.: \left| \frac{b}{c} \right. \left. \frac{b}{c} \right| There is also \middle in order to scale something in the middle of an expression, e.g.: \left. a * b = c \middle| :b \right. However, in your case, probably you should use some way to align your computation across several lines. This can be ...

1

Since the OP does not provide an MWE, it took a little bit to determine that the problem arises when trying to use the OP's syntax with the amsmath package loaded. The amsmath package redefines \dot, presumably for the best, but in this case not so much. If one needs this syntax (or an alternate-equivalent stackengine syntax) to co-exist with amsmath, then ...

2

I'm not sure this is the best way to present the data. However, a dirty trick seems to give what you're looking for. \documentclass{article} \usepackage{amsmath} \newcommand{\rb}[1]{\raisebox{3.5ex}{$\displaystyle#1$}} \begin{document} \begin{align} & \rb{\text{Replenishment Indicator:}} & \rb{O_t} & \rb{{}=\{1,\text{if }t=\sum_{\kappa=1}^k ...

2

align can be found in the amsmath guide. Note that the ampersands define what to align. In this situation, put & before the "=" of each equation. \begin{align} m_{1,1}^i &= \sum (x - \bar{x}^i) (y - \bar{y}^i)\text{,} \\ m_{2,0}^i &= \sum (x - \bar{x}^i)^2 \text{ and} \\ m_{0,2}^i &= \sum (y - \bar{y}^i)^2 \text{ } \forall \text{ } ...

5

The gathered environment, used within math mode, is what you're looking for. \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage[utf8]{inputenc} \begin{document} $$\begin{gathered} 3(a-x) = 3.5x + a - 1 \\ 3a - 3x = 3.5x + a - 1 \\ a = \frac{13}{4}x - \frac{1}{2} \end{gathered}$$ \end{document} ...

1

If you want to write text in math mode use \text{æ,ø,å}. See also Umlauts in math mode and utf-8 characters in latex math mode

2

Your input has several errors: the environment is called multline $$and$$ should not appear inside it several braces are not matched up correctly Here is a possibly correct version \documentclass{article} \usepackage{amsmath} \begin{document} \begin{multline} ...

2

Some comments: In the input, I would not split parts of one and the same cell across different matrix environments, as doing so messes up the spacing around plus and minus symbols. For the line break in the third equation, do consider inserting the line break earlier, i.e., right after the 2x2 (inverted) matrix. This point is also made in egreg's answer. ...

4

I would not split the wide matrix across two lines, but break at the multiplication, which is a more natural break point. You can use the same idea for the different break style. \documentclass[11pt]{book} \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} \usepackage{amsmath,amsthm} \begin{document} ...

Top 50 recent answers are included