# Tag Info

1

As noted in comments the amsmath and breqn documentation have several good examples, also the mathtools package has extended versions of several of the amsmath alignments. But the usual style here is to answer inline rather than refer to manuals, so this is a document giving the basic usage of the environments you mention. \documentclass{article} ...

3

I know this was a long time ago, but how about using Sam Buss's macro that is supposed to work for Gödel numbers. See http://www.logicmatters.net/latex-for-logicians/symbols/corner-quotes-for-godel-numbers/ \documentclass{article} \usepackage{amssymb} \newbox\gnBoxA \newdimen\gnCornerHgt \setbox\gnBoxA=\hbox{$\ulcorner$} \global\gnCornerHgt=\ht\gnBoxA ...

8

Easy enough: use aligned: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{aligned} x + 2 &= 3\\ % First equation -2 &= -2\\ % Second equation \hline x &= 1 \end{aligned} \end{equation*} \end{document} Better yet, use also booktabs and \midrule: \documentclass{article} \usepackage{amsmath,booktabs} ...

14

Here's a solution that uses an array environment and takes care to preserve the appropriate amounts of spacing around operators of type mathbin ("+" and "-") and mathrel ("="). It also uses the macro \midrule (from the booktabs package) to get nice spacing around the horizontal line. \documentclass{article} \usepackage{array,amsmath,booktabs} ...

5

Use a tabular \documentclass{article} \usepackage{amsmath,array} \begin{document} \begin{tabular}{>{$}r<{$}@{\,}>{$=}l<{$}} x + 2 & 3 \\ -2 & -2 \\ \hline x & 1 \end{tabular} \end{document}

2

The \mathpunct{} (without : inside {}) is the definition of \colon. Link1 Both : and \colon typeset a colon, but \colon is a punctuation symbol, while : is considered as a relation symbol as regards to spacing. Link2

2

Here are unicode math macros I think I'll try to use: \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \setmathfont{Asana Math} \usepackage{newunicodechar} % roots: \newunicodechar{√}{\sqrt} \newunicodechar{∛}{\sqrt[3]} \newunicodechar{∜}{\sqrt[4]} % full differential: \newunicodechar{ｄ}{\,\mathrm{d}} % superscripts: ...

6

It's easy with newunicodechar \documentclass{article} \usepackage[intlimits]{amsmath} \usepackage{ifxetex} \ifxetex \usepackage{unicode-math} \removelimits{\int} \else \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \fi \usepackage{newunicodechar} \newunicodechar{√}{\sqrt} \ifxetex\else % these are already available with unicode-math ...

4

Use \DeclareMathOperator{operatorcommandname}{operator name} in the preamble for function or operator names that should be printed upright. \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\sinc}{sinc} \DeclareMathOperator{\si}{si} \begin{document} \begin{align} \si(x) &= \dfrac{\sin(x)}{x} \\ \sinc(x) &= \si(\pi x) ...

1

Going with simplicity, and the most common use case for the win I'm copying my edits here as the answer. According to How can LaTeX code in a data file be read by pgfplotstable? it is impossible to insert expandable material in headers to be formatted by pgfplotstable. Therefore, as in percusse comment use column name key to access and format any column ...

3

You can't use \left and \right across& which limits the scope. Also, it is not a good idea to use \left and \right, use \big brothers family from amsmath. These need not be balanced. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{split} \left\{\right.&(a,b) \mid \\ &\left. a \in A, b \in B\right\} ...

2

Have a look at http://ctan.sharelatex.com/tex-archive/macros/latex/contrib/physics/physics.pdf 2.5 Derivatives I use it and i am very happy with this package. EDIT: \documentclass{article} \usepackage{amsmath} \usepackage{physics} \usepackage{amssymb} \begin{document} \begin{align} \left(\int\limits_{-\infty}^\infty e^{-x^2} \dd{x} \right)^2 ...

0

Short Description Here are three solutions -- see the example. Links http://ctan.org/pkg/amsmath http://ctan.org/pkg/mathtools Example \documentclass{article} \usepackage{mathtools} % also loads amsmath \usepackage{parskip} \begin{document} \section{Using \texttt{flalign}} \begin{flalign} \text{Proof} && a &= b &&\\ ...

0

This is my take formatting the MWE. Among other things, it replaces \item with \tag. \documentclass[12pt]{article} \usepackage[leqno]{amsmath} \usepackage{enumitem} \usepackage{amssymb} \newcommand{\mytext}[1]% #1 = same as intertext {&\rule[-0.5\baselineskip]{0pt}{1.5\baselineskip}\textrm{#1}&\\} ...

1

As a follow up to @Werner's excellent explanation, as I was using R I created a sanitise function to use instead of the default xtable::sanitize function that escapes these appropriately. The package optiRum can be downloaded for the sanitise function to be used.

0

I use \text{-} for a shorter minus sign.

4

You can underline the whole equation or colour it..... using tcolorbox. \documentclass[14pt,a4paper,headlines=6,headinclude=true]{scrartcl} \usepackage{amsmath,amssymb,stmaryrd} \usepackage{empheq} \usepackage[theorems,skins]{tcolorbox} \newtcbox{\underlined}[1][]{nobeforeafter,math upper,tcbox raise base, enhanced ...

2


5

You can use the Latin Modern fonts, provided you fix the largesymbols font: \documentclass[border=10]{standalone} \usepackage{lmodern} \usepackage{amsmath} \DeclareFontFamily{OMX}{lmex}{} \DeclareFontShape{OMX}{lmex}{m}{n}{ <-> lmex10 }{} \SetSymbolFont{largesymbols}{normal}{OMX}{lmex}{m}{n} \begin{document} \fontsize{1000}{1000}\selectfont ...

Top 50 recent answers are included