New answers tagged

2

here is the bibtex entry for one of the items in the bibliography of the cited article, as delivered by mathscinet. the tags for the various elements are the "official" ones used with amsplain, but not all are recognized (see below). zbl is not included in the mathscinet database, nor is arxiv, but ZBL and ARXIV would be appropriate tags. amsplain does ...


4

You can use aligned or alignedat: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \begin{split}\label{mylabel} y &= a + b + c\\ &\quad \!\begin{alignedat}[t]{2} &+ (5 - 3) &&\times (10 - 5) \\ &+ (10 - 30) &&\times (10 - 1) \\ ...


1

Use \span to merge cells. You need one \span per & you want to ignore. For example, your sample output could be produced like this: \begin{align*} \text{really really really long equation} \span \span &= a \\ a &= b & b &= c \\ c &= d & d &= e \end{align*}


2

Perhaps this is a solution: \gobble the content away with a \RenewEnviron{proof}{}{} that has no \BODY command, i.e. the \BODY is 'thrown away'. I used the first proof environment to show some content and then redefined proof, the second content isn't display any longer then. \documentclass{article} \usepackage{amsthm} \usepackage{environ} ...


2

You're missing an \end{split} statement before \intertext. \documentclass{article} \usepackage{amsmath} % for "align" and "split" environments and "\intertext" macro \begin{document} \begin{align} \begin{split} a&=xxxxxxxxxxxxx\\ &=xxxxxxxxxxxxxxx\label{1} \end{split} % <--- new \intertext{and} \begin{split} b&=yyyyyyyyyyyyy\\ ...


3

Actually, I think that the problem is that you are "misusing" \tfrac because it is meant to fractions in in-line text. If instead you use \frac then the latex markup is simpler your problem goes away: The code: \documentclass{amsart} \begin{document} \textbf{With tfrac} \begin{equation} ...


6

Why not : \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \begin{equation} X=\tfrac{2J^2}{4J^2+U^2\!/4} \sin^2\bigl({\scriptstyle t\,\sqrt{4J^2+U^2\!/4}}\bigr) \end{equation} \end{document}


5

I think maybe you'll have too great a contrast betwwen different parts of your formula. I suggest using the\medmath command, from nccmath, which reduces displaymath by about 80 %. Compare: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathtools, nccmath} \begin{document} \begin{align*} X & ...


5

Do you mean like this? \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[ascii]{inputenc} \usepackage{amsmath} \begin{document} \begin{equation} X=\tfrac{2J^2}{4J^2+U^2/4} \scriptstyle \sin^2\bigl(({\sqrt{4J^2+U^2/4}})t\bigr) \end{equation} \end{document} Or maybe you prefer this (bigger “sin”, amended spacing, resized ...


0

I suggest dropping tabular; I don't think you want table, either. \documentclass{article} \usepackage{amsmath} \newcommand{\ncons}{{\mathrm{ncons}}} \newcommand{\pder}[2]{\frac{\partial#1}{\partial#2}} \begin{document} \begin{equation} \mathbf{M}=\pder{\mathbf{f}_{T}}{\ddot{\mathbf{q}}} \bigg|_{q=q_{e}} \hspace{1em minus 1em} ...


1

Some comments about your code, listed in no particular order: \partial does not take an argument. Hence, don't write \partial{\mathbf{f}_{T}}; go for the simpler \partial\mathbf{f}_T. You won't get an error message if you add an extra layer of braces; however, doing so does clutter up the code needlessly. None of the \substack directives are needed. ...


0

The array environment is like a math version of tabular. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{table}[hptb!] \begin{equation} \begin{array}{ccc} \mathbf{M}=\frac{\partial{\mathbf{f}_{T}}}{\partial{\mathbf{\ddot{q}}}} \Bigr|_{\substack{q=q_{e}}} & ...


3

Why not use a simpler code like this: \documentclass[a4paper, 11pt]{book} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{align} \mathbf{M} & =\frac{\partial{\mathbf{f}_{T}}}{\partial{\mathbf{\ddot{q}}}} \Biggr|_{q=q_{e}} & \mathbf{C} & ...


1

equation can't be used in a c - like cell -- use p for this. However, I recommend an array or alignat* environment rather for this setup, since the equation will also display an equation number which might not be requested at all. I also changed from \frac to \dfrac. Most likely, the text-likely exponents should be typeset with \text{ncons} etc., but I ...


2

You can use \substack from the mathtools package, as that command is designed exactly to stack multiple subscripts. If you want more spacing between the two lines, you can add e.g. \\[0.3ex] (or any other amount) instead of \\ in the argument to the \substack command. \documentclass[preview,border=2mm]{standalone} % Only to get minimal output ...


2

You can try this, with align and aligned: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} & R_\mathrm{in}=R_{B}\parallel [r_{\pi}+(\beta+1)R_{E}]\\ &R_\mathrm{out}=R_{C}\\ &A{u} \!\begin{aligned}[t] & =V_\mathrm{out}/V_\mathrm{in}\\ % & =[-g_{m}(R_{C}\parallel R_{L})]/[1+(g_{m}+1/r_{\pi})R_{E}] ...


2

Package mathtools, which upgrade amsmathdefine for such purposes math environment multlined. by it you can obtain: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} & R_{in}=R_{B}\parallel [r_{\pi}+(\beta+1)R_{E}]\\ & R_{out}=R_{C}\\ & A{u}=V_{out}/V_{in}\\ &\begin{multlined}[t] =[-g_{m}(R_{C}\parallel ...


2

(Too long for a comment, hence posted as an answer.) The code snippet you posted isn't compilable by itself. In order to reproduce the error message you report, I had to augment it as follows: \documentclass{article} \usepackage{amsmath} % for 'align' environment \begin{document} \begin{equation} \begin{align} \frac{\partial P}{\partial t} = \mu(N,I)P - ...


2

welcome to tex.sx. you have specified the option [fleq] instead of [fleqn], but i suspect that is just a typo. however, you haven't specified any alignment point, so it is assumed that these lines will be aligned at the right, since it's usually the case that alignment is on a sign of relation, in the middle. to align on the left, put an & at the ...


1

Because this is typical non-LaTeX specific question (because this is question of type: give me a code, I don't want to think about it), I can reply: use simply \pmatrix or \matrix. Edit The result exactly the same as in the answer above can be accomplished by the code: \def\mmatrix#1#2#3{\left#1\matrix{#2}\right#3} $$ \pmatrix {\alpha_1 \cr \alpha_2 ...


0

Does this solution also works for you ? It seems to be a lot simpler and the result seems to be the same. \documentclass{article} \usepackage{amsmath,graphicx} \newcommand{\boverdot}[1]{\overset{\scalebox{.5}[.2]{$[$} \boldsymbol{.} \scalebox{.5}[.2]{$]$}}{#1}} \begin{document} $a_{\boverdot{i}}$ \end{document}


2

I adapted \bunderline from my answer (putting square brackets around the underline of a letter (in math mode)) at the cited question into \boverdot. It works in all math styles. \documentclass{article} \usepackage{stackengine,graphicx,scalerel,amsmath} \stackMath \def\tinylb{\smash{\scalebox{.25}{$\SavedStyle[$}}} ...


12

A column vector is just a matrix with one column (from a typesetting point of view ;-)), so just use one of the various matrix possibilities and typeset with \\ to switch to the next row. Of course, mathmode is needed for this. \documentclass{article} \usepackage{mathtools} \begin{document} $ \begin{pmatrix} \alpha_{1} \\ \alpha_{2} \\ \vdots \\ ...


4

You can do all starred environments by doing the appropriate definitions at begin document: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{autonum} \makeatletter \newcommand{\restore@Environment}[1]{% \AtBeginDocument{% \csletcs{#1*}{#1}% \csletcs{end#1*}{end#1}% }% } ...


1

If you are free to use LuaLaTeX, adding the following seven lines of code to your preamble will automatically replace all instances of {align*} with {align} "on the fly", before TeX's "eyes" start their processing. This way, LaTeX will never "see" align* environments, as all of them will have been converted to align environments. \usepackage{luacode} ...


2

I don’t know if I understand correctly what you are asking for, but see if this works for you: \documentclass{article} \usepackage{amsmath} \usepackage{cleveref} \usepackage{autonum} % this gives the errors % Command \align* already defined. {\begin{align}}{\end{align}} % Environment align* undefined. \begin{align*} % \newenvironment{align*} % ...


0

Found it myself \begin{flalign} &\sum\limits_{m=1}^{M_j}\sum\limits_{t=0}^{T} x_{jmt}=1 &(j=0,\dots,J+1) \end{flalign} This does the trick.


1

Something like the following? (Observe that \mid gives better spacing than | does.) \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} P(z_{n+1}=t \mid z_{1},\dots ,z_{n}; \alpha) = \begin{cases} \frac{n_t}{n+\alpha} & \text{if table $t$ is occupied}\\ \frac{\alpha}{n+\alpha} & \text{if table $t$ is ...


3

Have your choice! \documentclass{article} \usepackage{amsmath} \usepackage{geometry} \usepackage{nicefrac} \begin{document} \begin{align*} \rho(T) & = \rho_{0}\exp\left[\left(\frac{T_{0}}{T}\right)^{\tfrac{1}{d+1}}\right]\\ \rho(T) & = \rho_{0}\exp\left[\left(\frac{T_{0}}{T}\right)^{\frac{1}{d+1}}\right]\\ \rho(T) & = ...


8

A larger size for the exponent can be used, e.g. via \tfrac. Or the fraction expression can be written with a slash: \documentclass{article} \usepackage{amsmath} \usepackage{geometry} \begin{document} \begin{equation} \rho(T) = \rho_{0}\exp\left[\left(\frac{T_{0}}{T}\right)^{\tfrac{1}{d+1}}\right] \end{equation} \begin{equation} \rho(T) = ...


3

There is no single "best" way to make an equation look "good". For the equation at hand, I'd like to suggest you use "inline" or "slash" fractional notation. That way, T will be rendered at "textstyle" size and symbols in the subscripts and the superscripts will be rendered at "scriptstyle" size. \documentclass{article} \begin{document} \[ \rho(T) = ...


1

amsmath macro \operatorname is designed to use the same font as the one used by \DeclareMathOperator. It is a fact of life that this font is hardcoded in both LaTeX and AMSmath source code (more precisely fontmath.ltx or amsopn.sty) to use the so-named 'operators' math font. This happens via \def\operator@font{\mathgroup\symoperators} You can customize ...


1

The CD environment can't work with babel-spanish without some countermeasures. Strategy 1: \shorthandoff \documentclass{article} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{amsmath,amscd} \begin{document} \begin{equation} \begin{CD} A \\ @VVV \\ B \end{CD} \end{equation} \begin{equation} \shorthandoff{<>} \begin{CD} A ...


4

The amsmath changelog has always been in the README linked from https://www.ctan.org/pkg/latex-amsmath so I kept to that for now at least. changes since 2000 are V. CHANGE LOG (REVERSE CHRONOLOGICAL ORDER) 2016-03-03 amsmath.dtx 2.15a One missing % added to mathstrut handling. 2016-02-20 amsmath.dtx 2.15 Updates for new \mathchardef handling ...


4

Your problem is: $p( \bar{E} \cap \bar{F}) = p( \bar{E \cup F}) = 1 - p(E \cup F) = 1 - p(E) - p(F) + p(E \cap F) = 1 - p(E) - p(F) + % ------------------- p(E)p(F\) %right here % ------------------- = (1-p(E))(1-p(F)) = p( \bar{E})p( \bar{F})$ p(E)p(F\). That's your problem. \) exits math mode. \( ... \) is an alternative to $ ... $. Where you've put ...


1

Tough, as many big formulas. Shoving everything to the left doesn't seem to be the best solution, but you can do it, just remembering to add some &. I also propose a centered solution with a dirty trick for getting the trailing dots aligned to each other in the longer lines. \documentclass{article} \usepackage{amsmath,mathtools} % this is just for the ...



Top 50 recent answers are included