Hot answers tagged

5 votes

Vertical spacing around plain display math vs `amsmath` environments such as `gather`

The space above a math display is either \abovedisplayskip or \abovedisplayshortskip depending on whether the last line of the previous paragraph overlaps the equation. However AMS alignments are ...
David Carlisle's user avatar
4 votes

Multi-Line Equation Alignment Across 5 Lines

I'd use split and vertically align all the + signs. A local command easily does the job, and \pder vastly simplifies the input. \documentclass{article} \usepackage{amsmath} \newcommand{\pder}[2][]{\...
egreg's user avatar
  • 1.1m
3 votes

Submatrices with in a pmatrix

The package nicematrix has tools designed to address that kind of problem. \documentclass{article} \usepackage{nicematrix} \begin{document} $P = \begin{pNiceArray}[margin]{c@{\qquad}ccc} 0 & \...
F. Pantigny's user avatar
  • 36.6k
3 votes
Accepted

align env - some symbols are non-italic?

The commands \rm, \it, \bf and similar two-letter font changing commands have been deprecated for almost 30 years. Moreover, they didn't take arguments, being declarations. The correct syntax 30 years ...
egreg's user avatar
  • 1.1m
3 votes
Accepted

Insert equation labels inside a tikz(cd) diagram

The easiest solution would be where the tikzcd is using an unnumbered display math environment, i.e. equation* or \[ … \] and we will just place nodes with the equation number in it. This seems to be ...
Qrrbrbirlbel's user avatar
3 votes

Multi-Line Equation Alignment Across 5 Lines

...just shifted the alignment within the aligned environment: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{aligned} \frac{\partial}{\partial t}&\...
Werner's user avatar
  • 595k
2 votes

\tag is not allowed in eqnarray

You asked, Is there a solution to this? Short answer: Yes. Slightly longer answer: Don't use eqnarray environments. Instead, be sure to load the amsmath package and to use align environments. ...
Mico's user avatar
  • 490k
2 votes

Adjust default spacing of elements in math mode

You need to employ the Plain-TeX \def directive instead of the LaTeX \renewcommand directive. That said, I would define the new version of \int to take two arguments rather than three, as the version ...
Mico's user avatar
  • 490k
1 vote
Accepted

Breaking Long Radical Over Multiple Lines

Rather than splitting the contents of the radical I'd use a fractional exponent. By nesting split inside align, you get the equation numbers centered between the lines. Don't use pxfonts, that's ...
egreg's user avatar
  • 1.1m
1 vote

Breaking Long Radical Over Multiple Lines

Instead of creating superlong lines (vinculi?) which span two lines, I suggest you switch to [...]^{1/2} notation, with the opening bracket on one line and the ]^{1/2} term on the other. I would also ...
Mico's user avatar
  • 490k
1 vote

align env - some symbols are non-italic?

You can use the fixdif package, which redefines \d macro in math mode. \documentclass{article} \usepackage{fixdif} \usepackage{amsmath} \begin{document} \begin{align*} \d x_{\tau} &= R(u) v \d\...
Stephen's user avatar
  • 2,558
1 vote
Accepted

Small fractions in the iopart document class

You can define \tfrac as {\textstyle\frac{a}{b}} if amsmath is not usable.
David Carlisle's user avatar
1 vote

= is not rendered at all and \neq as /

Going top-to-bottom: it's a bad idea to silence warnings, in general; in the particular case, classicthesis is no longer really compatible with scrrprt, use book instead; there is no adrianstyle in ...
egreg's user avatar
  • 1.1m
1 vote

= is not rendered at all and \neq as /

As @WillieWong explained in a comment, it does not make sense to first load Palatino, Beramono, eulermath and than use lmodern to switch from these fonts. If you want to use the Latin Modern fonts, ...
cabohah's user avatar
  • 8,258
1 vote
Accepted

How can I add a dot under Chinese characters and paragraph?

If you're using xelatex, you can use \CJKunderdot of the xeCJKfntef package (documented with xeCJK). \documentclass{ctexbook} \usepackage{amsmath} \usepackage{indentfirst} \usepackage{xeCJKfntef} \...
mbert's user avatar
  • 2,521
1 vote
Accepted

Adjust default spacing of elements in math mode

Assuming you really want to do this, it is a job for \RenewDocumentCommand and its embellishment argument type. \documentclass{article} \usepackage{amsmath} \makeatletter \RenewDocumentCommand{\int}{...
egreg's user avatar
  • 1.1m
1 vote

Multi-Line Equation Alignment Across 5 Lines

In addition to shifting the alignment point in the first row to the left, you may want to rearrange the additive terms on the RHS so that it becomes immediately clear that 15 of the 17 terms can be ...
Mico's user avatar
  • 490k

Only top scored, non community-wiki answers of a minimum length are eligible