# Tag Info

5

You need to fix all errors before looking at the alignment, TeX's error recovery is designed to let it continue, not to make any reasonable output at the point of the error. Your expression is just too long to fit on one line in 2 column, here are a couple of possibilities: \documentclass[10pt,twocolumn]{article} \usepackage{amsmath} \begin{document} ...

3

With the gathered environment. Better using mathtools instead of amsmath (it's an extension that loads amsmath and fixes two bugs in it). Here is how: \documentclass[12pt]{article} \usepackage{mathtools} \usepackage[showframe]{geometry} \begin{document} \begin{align} \text{catxxxxxxxxxxxxxxxxxxxx} &= \text{dog}\\ ...

12

\documentclass[12pt]{memoir} \usepackage{amsmath} \begin{document} Here we see \begin{align} \text{cat} &= \text{$$dog$$}\\ \text{$$dog$$} &= cute \intertext{and if we remove $$dog$$ we get\vspace{-\baselineskip}}\\ \text{cat} &= cute \end{align} \end{document}

2

An indirect solution. Offsets definition provided by hf-tikz allows more flexibility in customizing the frame size. \documentclass{article} \usepackage{amsmath} \usepackage[customcolors]{hf-tikz} \tikzset{offset definition 1/.style={ above left offset={-0.4,0.6}, below right offset={0.4,-0.5}, }, offset definition 2/.style={ above left ...

3

You can \addstackgap in the definition. The optional argument (here 20pt) can be changed to suit. This gap is an addition to the existing equation height/depth (rather than a replacement to it, which a \rule would be). \documentclass{minimal} \usepackage{empheq} \usepackage{stackengine} \begin{document} ...

4

\documentclass{minimal} \usepackage{empheq} \begin{document} \newcommand*\widefbox[1]{\fbox{\rule[-1.8cm]{0pt}{4cm}\hspace{1em}#1\hspace{1em}}} \begin{empheq}[box=\widefbox]{align*} a&=b \tag{*}\\ E&=mc^2 + \int_a^a x\, dx \end{empheq} \end{document}

5

The command \nsim is listed in table 69 of the Comprehensive LaTeX Symbol List, under the caption AMS Negated Binary Relations In section 1.1 of the document, we find “AMS” means to use the AMS packages, viz. amssymb and/or amsmath. Actually most of the symbols with that tag require amssymb and this is the case for \nsim. Note that the result ...

2

If you would like some reference: In DIN EN ISO 80000-2 (draft) the preferred writing for number sets is bold upright ($\mathbf{Q}$). As an remark, the possibilities seen from @karlkoeller ($\mathds{Q}$) is shown first and than the one from @David Carlisle ($\mathbb{Q}$). In the older DIN 1302 $\mathds{Q}$ is shown first and $\mathbf{Q}$ as coequal ...

3

Since you specifically mention designing symbols using other techniques, here is an alternative. I import Karl's accepted solution just to show the comparison of the two. In the present solution, I use stacks to overlay glyphs, and I use the scalerel package to allow things to scale to the different math styles. \documentclass{article} ...

5

If you want to use only those two symbols from pxfonts without loading it, add the following lines in your preamble: \DeclareSymbolFont{symbolsC}{U}{pxsyc}{m}{n} \SetSymbolFont{symbolsC}{bold}{U}{pxsyc}{bx}{n} \DeclareFontSubstitution{U}{pxsyc}{m}{n} \DeclareMathSymbol{\medcirc}{\mathbin}{symbolsC}{7} \DeclareSymbolFont{symbolsZ}{OMS}{pxsy}{m}{n} ...

1

\documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{arydshln} \begin{document} This is my matrix $\left(\, \begin{array}{ : c : c : }\hdashline \sin x & \cos x\\\hdashline B & A \\\hdashline \end{array}\,\right)$ \end{document}

1

On a one-off basis, you can replace the pmatrix environment by a BMAT (from the easybmat package). However, BMAT requires more details about the columns, so this won't work if you have multiple matrices with different sizes. \documentclass{article} \usepackage{amsmath} \usepackage{easybmat} \renewenvironment{pmatrix}{\left(\begin{BMAT}(b){l.cr}{t.cb}} ...

1

The eqnarray environment is intended to a "left-center-right" aligned array of equations. You must mark the alignments with & signs (change every = to &=& ): \dfrac{d }{dx} \dfrac{y'}{\sqrt{1+(y')^2}} &=& 0\\ \Rightarrow \dfrac{d }{dx} \dfrac{f'(x)}{\sqrt{1+(f'(x))^2}}&=&0\\ \Rightarrow \displaystyle\int_b^a \dfrac{d }{dx} ...

6

The alignat environment from »amsmath« makes alignment easier. And »physics« simplifies the typesetting of derivatives. \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{physics} \begin{document} \begin{alignat}{2} && \dv{x}\,\frac{y'}{\sqrt{1+(y')^2}} &= 0 \\ \Rightarrow\qquad ...

4


3

you are already using amsmath: \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \dfrac{d }{dx} \dfrac{y'}{\sqrt{1+(y')^2}} &= 0\\ \Rightarrow \dfrac{d }{dx} \dfrac{f'(x)}{\sqrt{1+(f'(x))^2}} &=0\\ \Rightarrow \displaystyle\int_b^a \dfrac{d }{dx} \dfrac{f'(x)}{\sqrt{1+(f'(x))^2}} \,dx ...

4

\sqrt command requires an argument. Type \sqrt{} instead of \sqrt. Try also \sqrt{\phantom{16}} to have a more pretty root symbol.

10

The symbol for the square root is available as \surd: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} 2x\times8x&=144 &&|\ \text{simplify}\\ 16x^2&=144 &&|\ \surd\\ 4x&=12 &&|\ {\div\; 4}\\ x&=\frac{12}{4}=\underline{\underline{3}}\quad \end{alignat*} \end{document} ...

6

run with xelatex or lualatex: \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \begin{document} \begin{align*} 4x\times8x&=144&\text{| }&\text{simplify}\\ 32x^2&=144&\text{| }&\text{√}\\ 32x&=12&\text{| }&\div\space 32\\ x&=\frac{12}{32}=\frac{3}{8}=\underline{\underline{0.375}} \end{align*} ...

3

Very nicely written question, Nasser. As Torbjørn T. said, this is a LyX GUI issue. You can post an enhancement request at http://www.lyx.org/trac/. You might be interested in going to Tools > Preferences > Look & Feel > Display and turning Instant Preview to "on". Then the correct equation numbers will be displayed when you are not editing the ...

0

Another option is to use align, and then use \nonumber, as mentioned in http://mirrors.dotsrc.org/ctan/info/math/voss/mathmode/Mathmode.pdf. Example: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} a &=b \nonumber \\ b &=c \label{eq:test} \end{align} Equation \eqref{eq:test} shows that $a=c$. \end{document}

3

For the selected structures, use as first optional argument the counter of the structure you initially subordinated to the section counter, so the selected structures will share the counter. For example, after yo do \newtheorem{thm}{Theorem}[section] the counter thm for the Theorem structure is subordinated to the section counter, and defining ...

1

That is the symbol for "the next step is" as explained here (last sentence of the section), and seems to be a (not so common) replacement for => in A => B => C

4


0

You could use an array environment inside an align or align* environment. The first row of the array material should be left-justified, and the second row should be right-justified; the {} and @{} terms in the code below are there to help fine-tune the alignment. A (probably advantageous) side-effect of this approach is that the middle line -- i.e., the ...

0

One can do that with alignat: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \pagestyle{empty} \begin{document} \begin{subequations} \begin{alignat}{2} f_0 & = & \sum_{\mu, \lambda=-\infty}^\infty blabla bla bla & {}\\ ...

2

You could use alignat instead of align: Additionally you could use \rlap from the mathtools package to not have the last line effect the alignment of the previous lines: Notes: I inserted an additional {} to ensure that the \times is treated as a binary operator. Code: alignat \documentclass{article} \usepackage{amsmath} \begin{document} ...

1

The new tabstackengine package can also do this, including different column alignments, as in the 2nd example. One bug I need to still resolve in the package is that - characters are taken as binary minus signs, rather than unary negative signs. The workaround is to enclose them in braces, as I did here. \documentclass{article} \usepackage{tabstackengine} ...

5

You can use the pmatrix* environment of the mathtools package: \documentclass{article} \usepackage{mathtools} % loads amsmath and some very useful complements \begin{document} $\begin{pmatrix*}[r] -1 & 1 & -2\\ 0 & -1 & 4\\ 0 & 0 & 1 \end{pmatrix*}$ \end{document}

7

The \xrightarrow command from the amsmath package sounds like what you want. It takes one compulsory argument, which is the text you put over the arrow, for example: \xrightarrow{?} will draw an arrow like \to with a question mark above it. You can also pass an optional argument to place some text below it. For example: \xrightarrow[!]{?} will place ...

Top 50 recent answers are included