Tag Info

Hot answers tagged

20

You can use \[ x \mathrel{+}= \frac{\partial C}{\partial x} \] that will add no space between the + and the = signs and treat the whole block as a single relation symbol. Of course a definition will do better: \newcommand{\pluseq}{\mathrel{+}=} \newcommand{\minuseq}{\mathrel{-}=} and a \pluseq b \minuseq c would print


12

The operators + and - in += and -= should be relational operators as seen in egreg's answer, because TeX does not set a space between +/- and = and the whole expression +=/-= becomes a relational symbol regarding the spacing before and after. This answer tries an automatic solution. The + and - symbols are made active in math mode only. Then the active ...


4

The amsmath package already provides for this with \sideset: \documentclass{article} \usepackage{amsmath} \newcommand{\vsum}[1]{% \sideset{}{_{#1}}\sum } \newcommand{\sumn}{\vsum{n}} \begin{document} \begin{align*} E &= \sumn_{0}^{\infty} f(n) \\ F &= \vsum{m}_{-\infty}^{\infty} g(m) \\ G &= \vsum{\text{Ridiculously long ...


3

A suggestion for \sumn, using the sum code from Werner's answer here I generously gifted an optional argument defaulting to n if omitted. \documentclass[12pt]{article} \newcommand{\sumn}[1][n]{% \sum_{-\infty}^{\infty}\mathop{}_{\mkern-5mu {#1}}% } \usepackage{mathtools} \begin{document} \begin{align*} E &= \sumn f(x) \\ F &= \sumn[m] ...


1

A basic definition would be \newcommand*\sumn{\mathrlap{\mathord{\phantom{{}\sum}}_{m}}\sum\limits} altough it may collide with the following math. A partial solution would be to use normal arguments \newcommand*\sumn[3][m]{\sum\limits_{#2}^{#3}\mathord{\vphantom{\sum}}_{#1}} With the power of xparse it's easy, altough it might look long because we ...


1

There are two choices: 1) install esint.sty (precise method depends on which LaTeX distro one uses); or 2) in LyX go to Document -> Settings... -> Math Options and uncheck "Use esint package automatically". This option will only work if you are not using any of the 'advanced' integral signs that esint provides (double integrals, path integrals, etc.), but ...



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