New answers tagged

5

Here is one suggestion with pmatrix. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} D_{i,t} = \begin{pmatrix} \ln(\text{Deal value}) \\ \text{Loan Maturity} \\ \text{Loan Type} \\ \text{Credit Rating of the Loan} \\ \text{Coupon Rate} \end{pmatrix} \end{equation} \end{document} If one wants to avoid the use of \text in ...


5

Some suggestions: In an equation environment, you're automatically in (display-) math mode. No point in entering math-mode twice. (As you've found out the hard way, one can't re-enter math mode if one is already in math mode...) Don't neglect to use subscripts as needed. (I kept V_o, but I have a hunch that V_0 might be more appropriate.) For ...


6

First of all, empty lines are not allowed in displayed math environments (like equation), remove those. Second, you are in math mode, so there is no need for $\infty$, \infty alone is correct. Finally, the \emph doesn't really do anything useful I think, I would remove them and the dollar signs. \documentclass{article} \usepackage{amsmath} \begin{document} ...


2

This is a single equation, not a collection of equations that are being aligned, so I would use equation*, the * suppresses the equation number, and do the alignment with split, as below. This way, if I later find I need to refer to this equation and add a number all I need do is change the outer environment to equation and add a \label command. ...


2

Either use \begin{align*}...\end{align*} or use \nonumber for a specific equation to be suppressed in an align environment. This might get tedious if all equations in an align environment should be unnumbered. General rule: An environment or command with * most times means: 'Do not number' The same is true for alignat and alignat* environments and ...


2

The star form \begin{align*}...\end{align*} suppresses the equation number: \documentclass[conference]{IEEEtran} \usepackage{amsmath} \begin{document} \begin{align*} f_{n}(\beta,\lambda)&= \lambda(1-\lambda/n)^{n-1} \int_{0} ^{1} g_{n}(\beta,\lambda)d\alpha \\ & \leq \lambda(1-\lambda/n)^{n-1}\int_{0}^{1} ...


3

Don't use \\ for ending lines, except where specifically needed (tabular, array or similar environments) and never leave a blank line before an equation. Narrow columns and cases don't go along well, so you have only one possibility: splitting the lines, one part with the value, one with the condition. More generous vertical space will help the reader in ...


3

First and most important: never use eqnarray for any reason whatsoever. Second: never leave a blank line before a display. Third: LaTeX doesn't force anybody to use \left and \right in front of each parenthesis or bracket; if your editor does it automatically, disable the feature. Fourth: from the chosen breaks, I guess you're writing in a two column ...


3

Since \overline spans the full character width already, one can treat the A and B seperately, in terms of their overlines. \documentclass{article} \begin{document} \[ \overline{A}\overline{\overline{B}} \] \end{document}


5

The following example solves the reversed bars with \phantom and \rlap: \documentclass{article} \begin{document} \[ \overline{A\overline{B}} \mbox{ vs.\@ } \rlap{$\phantom{A}\overline{\phantom{\overline{B}}}$} \overline{AB} \] \end{document}


2

Your TeX distribution is a little bit outdated and that causes your problem. Please see The following lines: Mine system: Version 3.14159265-2.6-1.40.16 ... (preloaded format=pdflatex 2016.1.29) ... Your system: 3.14159265-2.6-1.40.16 ... (preloaded format=pdflatex 2016.1.10) ... % ...


4

It appears that the macro code for xetex/dvipdfm(x) only inserts the link in the first choice of a mathchoice (so it works in displaystyle only) You could use \mbox or a similar construct that forces text size so avoids the mathchoice internally or a possibly better fix is here I disabled amstext package \iffirstchoice@ test so the macros can not tell ...


3

Numbered entities do not need an additional \hypertarget, because hyperref already sets an anchor at the place of \refstepcounter. A \label is enough to catch the anchor. \hyperref[<label>]{<text>} can be used to set arbitrary text pointing to the label. Unnumbered entities are more tricky. Since there is usually no anchor, an anchor can be ...


1

You wrote: However, when I use it along with \begin{step}, \begin{claim}, or \begin{myclaim}, there two additional round parentheses appear. Is there a way to get rid of those round braces? Don't surround the corresponding \hypertarget{...}{} statements with square brackets ([ and ]). Otherwise, amsthm will interpret the material as indicating the ...


7

Since you're loading the amsmath package, you could make use of that package's \tagform@ macro to achieve your objective. Note that you will not be able to use \eqref to create cross-references to equations; I suggest you load the cleveref package and use \cref instead. \documentclass{scrbook} \usepackage{amsmath,amssymb,amsthm} \makeatletter ...


5

This may be what you want. \usepackage{etoolbox} \AtEndEnvironment{proof}{\setcounter{claim}{0}} Here we reset the claim counter after each proof environment. \documentclass{article} \usepackage{amsmath}% \usepackage{amsthm}% \usepackage{amsfonts}% \usepackage{amssymb}% \theoremstyle{plain} \newtheorem{theorem}{Theorem} \theoremstyle{remark} ...


5

You can break across lines, with the DeclarePairedDelimiter from mathtools. Adapting a code in the documentation, I define a \brkbraces command, the argument of which accepts & and line breaks, as follows: \documentclass{article} \usepackage{mathtools} \newcommand\MTkillspecial[1]{% helper macro \bgroup \catcode`\&=9 \let\\\relax% \scantokens{#1}% ...


1

I like the following solution: \documentclass{article} \usepackage{mathtools} \usepackage{showframe} \begin{document} \begin{align*} u(x) = & \begin{dcases} 1 - \frac{1}{2}\left(\frac{r}{a}\middle)^{-\frac{1}{2}} \middle\{1 + O(1 + \tan ϑ) \middle\} + O\middle(\left(\frac{r}{a}\right)^{\frac{1}{2}}\right) ...


0

I'd profit of the fact that the first line is much shorter than the second one: \documentclass{article} \usepackage{showframe} % just for the example \usepackage{amsmath} \begin{document} \begin{equation*} u(x) = \begin{cases} \begin{array}{@{}l@{}} 1 - \frac{1}{2}\left(\frac{r}{a}\right)^{-\frac{1}{2}} \{ 1 + O(1 + \tan \vartheta) \} + ...


2

How about one of these solutions? \documentclass{article} \usepackage{mathtools} \usepackage{showframe} \begin{document} \begin{align*} & u(x) = \\ & \begin{cases} 1 - \frac{1}{2}\left(\frac{r}{a}\right)^{-\frac{1}{2}} \left\{ 1 + O(1 + \tan ϑ) \right\} + O\left(\left(\frac{r}{a}\right)^{\frac{1}{2}}\right) \text{as } ϑ\downarrow ...


1

Probably you are using mathabx, which also have vertical negation bars in its symbols: \documentclass{article} %\documentclass{llncs} \usepackage{amsmath} %\usepackage{amssymb} \usepackage{mathabx} \begin{document} \[\nVdash\nsubseteq\] \end{document} Without package mathabx: \documentclass{article} %\documentclass{llncs} \usepackage{amsmath} ...


3

You are using the wrong tool: use a nested aligned, instead. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} 1\geq\sum_{\substack{asdfaf,\\ asfasf,\\ asfadf } }x_{j} \qquad \begin{aligned}[t] \forall j &\in A\cup B\\ &\cup C\cup D \end{aligned} \end{equation*} \end{document}


6

unicode-math should be loaded after all font-packages (well, packages, that load fonts as well, like amsmath etc.) are loaded, to provide the corresponding changes. The unicode-math package states (see section 3 Getting started): Load unicode-math as a regular LATEX package. It should be loaded after any other maths or font-related package in case it ...


7

I suggest increasing \arraystretch, and using the \mfrac command (medium sized fraction, about 80 % of \displaystyle), from nccmath. If you want all columns to have the qame width, it can be done with the eqparbox package. Also, note \max is a math operator, so you don't need to code _{\mathrm{max}}: \documentclass{article} \usepackage{mathtools, array, ...


5

First of all, you can use \frac instead of \dfrac to shrink fractions in a matrix environment. One option, inspired by this answer, uses the tabstackengine package: \documentclass{article} \usepackage{tabstackengine} \stackMath \begin{document} \[ \setstackgap{L}{1.1\baselineskip} \fixTABwidth{T} Q= \parenMatrixstack{ \frac{1}{\Delta ...


1

The proof environment provided by svmono does not include the automatic QED symbol. Instead it provides a clumsy method for manually adding a tombstone. You can solve the issue by loading amsthm, so long as you continue to use svmono methods for defining new theorem-like environments. \documentclass[12pt,sectrefs]{svmono} \usepackage{amsmath} ...


1

Write this: \begin{align*} & \phantom{{}={}}\text{long string of variables}\\ & = \text{another long string of variables} \end{align*} or this (as suggested by @daleif): \begin{align*} &\text{long string of variables}\\ ={} & \text{another long string of variables} \end{align*}


1

You're using the wrong tool. \documentclass[fleqn,10pt]{elsarticle} \usepackage[margin=1in,left=0.75in,right=0.75in]{geometry} \usepackage{amsmath} \usepackage{mathrsfs} \usepackage{lipsum} \begin{document} \lipsum*[2] \begin{quotation}\raggedright\noindent $\def\comma{,\penalty0 \quad}\binoppenalty=10000 \mathscr{F}_{1}(a_{3}V_{3}+V_{10}, V_{3})\comma ...


2

If you don't need them to auto-scale, here is a pdflatex solution. See ADDENDUM for scalable version. \documentclass[12pt]{article} \usepackage{scalerel,mathtools} \newsavebox{\foobox} \newcommand{\slantbox}[2][.5] {% \mbox {% \sbox{\foobox}{#2}% \hskip\wd\foobox \pdfsave \pdfsetmatrix{1 0 #1 1}% ...


16

This is a bug (sorry ask @egreg who did it:-) until a fix is made available you can use $\dots\relax \left. a \right.$ Rather than change the document, you can fix the definition of \striplong@ as follows \documentclass{article} \usepackage{amsmath} {\catcode`\@=11 \uccode`9=`\l \uccode`8=`\o % \uppercase{\gdef\striplong@#1#2#3#4\relax{% ...


1

The cases environment, provided by the amsmath package, is the way to go: \documentclass{article} \usepackage{amsmath} % for 'cases' environment and '\text' macro \begin{document} \[ f(x,y)= \begin{cases} 1 & \text{si $I(x,y) < T$}\\ 0 & \text{sinon} \end{cases} \] \end{document}


2

Maybe this is the desired output: documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} &\! % or \max would be a bit to the right \max_{\lambda,\lambda_0} M \\ &\forall i \in \{1,\dots,n\}, &&\frac{y_i f(\mathbf{x}_i)}{\|\vec{\lambda}\|} \geq M \\ && \Leftrightarrow {} & y_i ...


2

The following solution nests an aligned environment inside an align* environment. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} &\max_{\lambda,\lambda_0} M\\ &\,\forall i \in \{1,\dots,n\}, \begin{aligned}[t] &\frac{y_i f(\mathbf{x}_i)} {\|\vec{\lambda}\|} \geq M \\ &\Leftrightarrow y_i ...


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 ...



Top 50 recent answers are included