# Tag Info

5

\documentclass[11pt,b5paper]{scrreprt} \usepackage[left=2.8cm,right=2.8cm]{geometry} \usepackage{amsmath,amsfonts} \begin{document} \noindent\hrulefill X\hrulefill \begin{gather} \mathbf{R} = \notag\\ \begin{bmatrix} \mu + n_x^2 \left( 1 - \mu \right) & n_x n_y \left( 1 - \mu \right) - n_z \nu & n_x n_z \left( 1 - \mu \right) + ...

0

The Keplerfonts for text and math: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath,bm} \usepackage{kpfonts} \usepackage[math]{blindtext} \usepackage[utf8]{inputenc} \begin{document} \begin{align*} y_{it} &= \mathbf{x'_{\mathit{it}}}\bm{\beta} + \mathbf{z'_\mathit{i}} \bm{\alpha} + \varepsilon_\mathit{it} \\ &= ...

0

Here is a sample of three different math fonts: fourier, based on Adobe Utopia, completed by heuristica to have optical smallcaps, superior and inferior figures, and oldstyle figures. MinionPro, based on Adobe's Minion Pro opentype font that comes with Adobe Reader. mathdesign's garamond option, based on URW Garamond No 8, completed by garamondx to have ...

0

I used the bm package for the bold greek. The font looks like stix. \documentclass{article} \usepackage{amsmath,stix,bm} \begin{document} \begin{equation*} \begin{split} y_{it} &= \mathbf{x'}_{it}\bm{\beta} + \mathbf{z'}_i \bm{\alpha} + \varepsilon_{it} \\ &= \mathbf{x'}_{it}\bm{\beta} + c_i + \varepsilon_{it} \end{split} ...

1

You have to use {\boldsymbol\beta}:

4

Simple I’d write it as plain text Meeting at 5:00 Or if you need it in math mode with \text $\text{5:00} + \text{1:00} = \text{6:00}$ But I can’t see a reason for that since times arn’t math and the colon can be misread as divide: 5:30 = 5/30 = \frac{5}{30}. Advanced You could even define a command to have a globe appearance that can be change later ...

0

It is my personal taste, you might not agree with me. Here is my rule of thumb. We know that the first line of all items of "list" (enumerate, itemize, etc) are left aligned. So if the item starts with a multi-line aligned equation, use aligned environment (plus t passed to its optional argument) rather than align*. See my the second item in my example ...

0

The problem is simply that you can't use align inside equation (and LaTeX will show you an error message that should tell you something is wrong with this). Just delete the $$and$$ lines. This should work fine: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \mathbf{x_{t}=f_{t}(x_{t-1},u_{t})}\\ ...

4

\documentclass[border=12pt,preview]{standalone} % change it back to your document class \usepackage{mathtools} \begin{document} \section*{side-by-side} \begin{align} x_{t} &= f_{t}(x_{t-1},u_{t}) & y_{t} &=g_{t}(x_{t},v_{t}) \label{eq:label1} \end{align} Please see equation~\ref{eq:label1} on page~\pageref{eq:label1}. \section*{split with ...

4

\documentclass{article} \usepackage{mathtools} \begin{document} \boldmath \begin{align} \begin{aligned} x_t &= f_t(x_{t-1},u_t)\\ y_t &= g_t(x_t,v_t) \end{aligned}\label{eq:state-space&obs-equ} \end{align} \unboldmath \begin{align} x_t &= f_t(x_{t-1},u_t) & y_t &= g_t(x_t,v_t) \end{align} \end{document} However, it is not a ...

6


14

This is because Word has no descenders, while A long word and Another long word both have a descender (g). Here are some options: \documentclass{article} \usepackage{amsmath} \begin{document} $\underbrace{\text{A long word}}_{=a}$, $\underbrace{\text{Another long word}}_{=b}$, $\underbrace{\text{Word}}_{=c}$ $\underbrace{\text{A long word}}_{=a}$, ...

3

In my opinion you don't need the one liner sharing alignment with the four line display: they are separate by three lines of text and, moreover, the one liner is a general formula. However, there's no guesswork involved: just squash the material on the outside. \documentclass{article} \usepackage{mathtools} \newcommand{\LHS}[1]{\mathllap{#1}} ...

5

I don't know which package you need to use multialign, nor the purpose of that environment. I was able to reproduce the desired output with standard align environment, and without adding spaces with \. The macro \intertext (from amsmath) does the trick, but only for special cases such as the example you posted, in which the separate equations you want to ...

1

You could simply not use the \text{...} "wrapper" in the second argument of \DeclareMathOperator*} macro. Instead, just write \newcommand\myspacer{\quad} \DeclareMathOperator*{\minimize}{minimize\myspacer} \DeclareMathOperator*{\subjto}{subject\ to\myspacer} The macro \myspacer is set to \quad for now. If you wish to change it to \qquad or \, that's ...

4

You can set the problem in an array to adjust the spacing. For consistency, it's best to define this as an environment: \documentclass{article} \usepackage{amsmath,array,environ} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} \newcolumntype{R}{>{\displaystyle}r} ...

5

LaTeX by default uses scriptstyle for sums inside fractions. You can change the sums to displaystyle like this: $\langle \mu_{m} \rangle = \frac{{\displaystyle \sum_{-J}^{J}}{-g\mu_{\beta}M_{J}B.\exp{\left(\frac{-g\mu_{\beta}M_{J}B}{kT}\right)}}} {{\displaystyle \sum_{-J}^{J}}{\exp{\left(\frac{-g\mu_{\beta}M_{J}B}{kT}\right)}}}$ PLEASE, use \langle ...

4

\documentclass[preview,border=12pt,12pt]{standalone} % please change it back to your article class below %\documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax% don't use this line in your production \begin{align*} n & \propto \exp(-U/kT) \\ \Rightarrow \quad n &= A \exp(-U/kT) ...

8

Something like this. Put & right after n's. Update: commented by barbara beeton. Thanks. Code \documentclass[12pt]{article} \usepackage[paper size={10cm,3cm}]{geometry} \usepackage{amsmath} \begin{document} \begin{align} n& \propto \exp(-U/kT) \notag \\ \Rightarrow \quad n& = A \exp(-U/kT) \notag \end{align} \end{document}

2

Here's a solution with thmtools \documentclass{article} \usepackage{amsthm,amssymb,thmtools} \declaretheoremstyle[ spaceabove=6pt plus 6pt, spacebelow=6pt plus 6pt, headfont=\itshape, bodyfont=\normalfont, postheadspace={ }, qed=\protect\thisproofqed, ]{proof} \declaretheorem[ name=\protect\thisproofname, style=proof, numbered=no, ...

6

Here is a direct solution just using the AMS packages. We just set up a new environment, which is proof but containing a redefinition of the \qedsymbol. \documentclass{article} \usepackage{amsthm,amsmath,amssymb} \newcommand*{\myproofname}{My proof} ...

5

I also tend to use ntheorem as Bernard show. Just wanted to add how I'd do this with amsthm: \documentclass[a4paper]{memoir} \usepackage{amsthm} \newenvironment{proof*}[1][\proofname]{ \renewcommand\qedsymbol{\rule{3mm}{3mm}} \begin{proof}[#1]}{\end{proof}} \begin{document} \begin{proof} sfadf \end{proof} \begin{proof}[Proof of ...] sfadf ...

5

This is quite easy with the ntheorem package. Moreover, it manages correctly the placement of end-of-proof symbols when the proof ends in a displayed equation. I added the cleveref package to show how it manages reference types (if the cited theorem were to become a proposition, for instance, its reference would be changed accordingly): ...

6

From the amsmath user guide: The split environment is designed to serve as the entire body of an equation, or an entire line of an align or gather environment. There cannot be any printed material before or after it within the same enclosing structure. In particular, you can't have \left\{ to the left and \right. to the right of the split material. ...

0

As \raisetag doesn't seem to work properly here the align environment looks like a decent solution: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} A = &\left( B \right. \notag \\ &\phantom{(} \left. + C \right) \end{align} \end{document}

1

I'd do something like this \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} A &= \Bigl( B \notag \\ &\phantom{= \Bigl(} + C \Bigr) \end{align} \end{document} or using split \documentclass{article} \usepackage{amsmath} \begin{document} \begin{split} A &= \Bigl( B \\ ...

3

This is what you may need actually. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} I\left(a;\frac{1}{a}\right) &= I\left(\frac{1}{a};a\right) \\ I\left(a;\frac{1}{a}\right) &= -I\left(a;\frac{1}{a}\right) \\ \hbar I\left(a;\frac{1}{a}\right) &= 0 \end{align*} \end{document}

0

Thanks Andrew, that helped a lot! My final solution, for reference is (no section numbering, \g as environment shorthand): \documentclass[10pt,a4paper]{article} \usepackage{amsfonts} \usepackage[fleqn]{amsmath}%fleqn for align left \let\ul=\underline \newenvironment{Gather}[1]{\subsection*{\underline{#1}}% \minipage{\textwidth}\csname ...

3

You could try something like the following: \documentclass[10pt,a4paper]{article} \usepackage{amsfonts} \usepackage[fleqn]{amsmath}%fleqn for align left \let\ul=\underline \newenvironment{Gather}[1]{\subsection{\underline{#1}}% \minipage{\textwidth}\csname gather*\endcsname} {\csname endgather*\endcsname \endminipage} \begin{document} ...

3

According to page 58 of the TeXBook: TeX will not deal with dimensions whose absolute value is 230 sp or more. In other words, the maximum legal dimension is slightly less than 16384 pt. This is a distance of about 18.892 feet (5.7583 meters), so it won’t cramp your style. Your overfull hboxes are no larger than 9000pt, so a width of around ...

4

shamelessly stealing the code from @Mico, and second-handedly from @egreg, here is a small adaptation that has the descriptions of the steps left-aligned, which i think is what the question is really asking for. i have added one step, which takes the math content of the first line of the alignment as an argument, and forces that line to a fixed width, which ...

4

Assuming you want to use the multialign environment that was defined by @egreg in an answer to your posting How to Align systems, all you need to do is to rearrange some of the & alignment symbols. Observe that one must not have all-blank lines in an align environment (or one, such as multialign, that's derived from align and friends). Separately, I ...

6

If you want to carry over the alignment, the easiest way is to define your own environment: \documentclass{article} \usepackage[pass,showframe]{geometry} % just to show the page margins \usepackage{amsmath} \makeatletter \newenvironment{multialign} % a copy of flalign* {\setcounter{multialign}{0}% ...

1

\documentclass[preview,border=12pt,12pt]{standalone} % disable this line and change to the article below. %\documentclass[12pt]{article} \usepackage{amsmath} \usepackage{enumitem} \setlist[enumerate,1]{itemsep=12pt,label=\textbf{\arabic*.},start=9} \begin{document} \begin{enumerate} % One ---------------- \item \$\! \begin{aligned}[t] x-2x+4-6x &= ...

5

Converting my comment into an answer: If centering of a group of equations is required, with no particular alignment, the gather environment (or its starred, unnumbered variant, gather*) should be used: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \hat{W}_i =\sum_{j\neq i} \hat{G}_j \tag{lsys} \\ \hat{G}_i ...

3

The ellipsis package does \AtBeginDocument{% \DeclareRobustCommand{\dots}{% \ifmmode\mathellipsis\else\expandafter\textellipsis\fi}% } which is wrong, because it reinstates the LaTeX kernel definition without taking into account that other package might have redefined it. The package author's aim is ensuring that in text mode the redefined ...

0

This is a solution I used some time ago. It adds \ellipsisbeforegap and \ellipsisaftergap just because I needed it. You can delete it. \documentclass{scrartcl} \usepackage{mathtools} \usepackage{ellipsis} \makeatletter \renewcommand*{\mathellipsis}{% \mathinner{% \kern\ellipsisbeforegap% {\ldotp}\kern\ellipsisgap% ...

7

\normallineskiplimit (and friends) are used in two places in latex, they are used in \@arrayparboxrestore \lineskip\normallineskip \baselineskip\normalbaselineskip so that inside \parbox and minipage and tabular p columns the baselineskip is restored to a normal state even if used in a context where they ave non standard values. \displaylines ...

1

Here's another difference I notice. According to the AMS User Guide (p. 6 and p. 29 in the Version 2.0 copy I have): The split structure should constitute the entire body of the enclosing struc- ture, apart from commands like \label that produce no visible material. The split environment is designed to serve as the entire body of an equation, or ...

4

You've not understood that to have two alignment groups, you need three &. I replaced amsmath with mathtools (which loads the former), in order to use the \mathclap command, to have better horizontal spacing around the (aligned) Σ's. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{geometry} ...

4

One important difference is that split obeys to the centertags (default) or tbtags option. Here is an example \documentclass[twocolumn]{article} \usepackage[ % tbtags, % leqno, ]{amsmath} \begin{document} \begin{align} a&=b\\ \begin{split} c&=d+{}\\ &=e+{}\\ &=f \end{split}\\ g&=h \end{align} \end{document} Now the same with ...

Top 50 recent answers are included