Tag Info

Hot answers tagged

6

Use a minipage \documentclass{article} \usepackage{amsmath} \begin{document} We make the further assumption that \begin{equation}\label{eqn:assumption} \begin{minipage}{0.9\textwidth} There is a bounded linear operator $B:X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$ \end{minipage} \end{equation} ...


5

\documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} Z = \begin{cases} 1 & \text{if the outcome is a success} \\ 0 & \text{if the outcome is a failure} \end{cases} \end{equation} \begin{equation} Z = \begin{cases*} 1 & if the outcome is a success \\ 0 & if ...


4

You have to pay attention to proper nesting of braces and \left ... \right pairs, your second example is incorrect in this sense. Just avoid using \left ... \right since they are evil, and you'll be fine: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \usepackage{amsfonts} ...


4

You're using the definition of \unit incorrectly. \newcommand{\unit}[1]{..} specifies that \unit will take a single mandatory argument. If you don't provide an explicit brace (in the form of \unit{..}), then the first token will be taken as the argument: \unit[{dB}_{SPL}] So in the above, [ is taken as the argument and therefore the above is replaced ...


3

In my opinion it makes little sense having two numbers for a single mathematical object (the system of equations). Anyway, if you really want this, use empheq (and alignat as the inner environment, because align would spread the parts too much): \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{empheq} \begin{document} ...


3

Whenever your document has extensive math, you should load amsmath. However, just to answer your question, the simplest way is to use, once in a lifetime, the “forbidden” $$. After all, we know what we're doing in this particular case. \documentclass[leqno]{article} \usepackage{lipsum} \begin{document} \lipsum*[2] \begin{equation} ...


3

A closer look at class option leqno reveals that it loads leqno.clo with just one redefinition: \ProvidesFile{leqno.clo} [1998/08/17 v1.1c Standard LaTeX option (left equation numbers)] \renewcommand\@eqnnum{\hb@xt@.01\p@{}% \rlap{\normalfont\normalcolor \hskip ...


3

A few possible improvements to previous (Tohecz's) solution: since you load mathtools (in that case, needless to load amsmath), you can define an \abs command that can have either an optional argument: \big, \Big and the like, or a star version that implicitly adds a pair of \left…\right. This will result in a cleaner syntax. You also can use the ...


3

If you need flexibility in how the brace is drawn then you could use tikz as well: Code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{pgf,tikz} \usetikzlibrary{arrows,calc,decorations.pathreplacing} \usepackage{mathtools} \usepackage{xparse} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} % ...


2

Others have now posted answers, but for the record this what I had in mind. It works with all the standard classes. \documentclass{article} \makeatletter \let\r@eqnnum\@eqnnum \input{leqno.clo} \let\l@eqnnum\@eqnnum \newcommand{\leqnos}{\let\@eqnnum\l@eqnnum} \newcommand{\reqnos}{\let\@eqnnum\r@eqnnum} \reqnos \makeatother \begin{document} ...


1

You want to typeset only the main part without the subscript and the underbrace to get the required height of the delimiters, which can be done with \vphantom. The syntax of \dunderbrace is \dunderbrace<left><body>_<subscript><right> where <left> is the left delimiter (in your case |), <body> is to be underbraced, ...


1

You should never stack math display environments; instead of consecutive equation environments use gather: \documentclass{beamer} \usetheme{Frankfurt} \begin{document} \begin{frame} \begin{itemize} \item blah \begin{gather} a=b\\ b=c\\ c=d \end{gather} \end{itemize} \end{frame} \begin{frame} \begin{itemize} \item blah blah blah blah blah blah blah blah ...


1

A small simplification of the code with the overload option of empheq, and a variant if you want to emulate the numcases environment. Also it's pointless to load amsmath as empheq loads mathtools which loads it: \documentclass{article} \usepackage{amssymb} \usepackage[overload]{empheq} \begin{document} \begin{alignat}{2}[left=\empheqlbrace] & u_t = ...


1

Rather strange usage of align, but the result similar to the original one. Additional decreasing may be obtained by an optional parameter of \\, e.g. \\[-1pt], but I do not reccomend it in this case. \documentclass{article} \usepackage{amsmath} \begin{document} Original \begin{equation}\label{20} P_{\ell}^k\geq -P_\ell^{\max}\cdot Z_\ell^k~~\forall ...


1

Here's a solution that (a) uses a gather environment to collect the three equations, (b) uses \phantom{-} at the start of the first equation to help achieve a natural alignment of the first and second rows, (c) doesn't split the third equation across two lines, and (d) uses \smash[t]{...} on the fractional term at the start of the third equation to achieve ...


1

Although the answer of Werner totally and correctly adresses the question of how to technically solve the problem, there is a big drawback: the use of units and brackets wished by the questioner is simply wrong. Please note that [X] reads as the unit of X. So something like this would be correct: $[I] = \mathrm{A}$ or better $[I] = \si{\ampere}$. Read: "The ...


1

For example (the value is only exemplary): \documentclass{article} \usepackage{amsmath} \begin{document} We make the further assumption that \begin{equation} \label{eqn:assumption} \text{\begin{tabular}{p{0.85\linewidth}} There is a bounded linear operator $B\colon X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$ ...


1

When using Pandoc to get PDF outputs, it goes through Latex. Using the following gets numbered equations by default: \begin{align} x=y \end{align} But you'll have to be willing to give up using the $$ marker for an equation.



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