Hot answers tagged

10

(This is an edited version of an answer I posted on Math Stack Exchange. The original question was about doing math without handwriting due to disability. link.) (Context: I have a chronic pain condition and typing is very painful.) I use a system based on NatLaTeX to dictate all of my formal mathematics, including anything in that I'm going to turn in ...


8

I'd forego the use of \displaystyle, setting the entire construction using amsmath's cases: \documentclass{article} \usepackage{amsmath} \begin{document} Consider the following: \[ P\bigl[ \tfrac{1}{2} +\mu \bigr] = \begin{cases} 0 & \text{if }\mu <-\tfrac{1}{2} \\ \tfrac{1}{2} + \mu & \text{if }-\tfrac{1}{2} \leq \...


5

Here's a solution that uses the dcases environment provided by the mathtools package. It works like cases, except that all contents are rendered in \displaystyle automatically. The screenshot also shows the output of the corresponding cases environment. \documentclass[12pt,a4paper]{article} \usepackage{mathtools} \begin{document} Consider the following: \[...


5

Here's a solution that aligns three columns, adapted from this answer. \documentclass{article} \usepackage{amsmath} \begin{document} Consider the following: \[ P\Big[\frac{1}{2}+\mu \Big] = \setlength{\arraycolsep}{0pt} \renewcommand{\arraystretch}{2} \left\{ \begin{array}{l @{\quad} l r l} 0 & \text{if } & \mu &{}< -\dfrac{1}{...


3

Loading amsmath naturally switches \frac to \tfrac when in "inline math" (or text style) and \dfrac under "display math" (or display style). This provides a better layout: \documentclass{article} \usepackage{amsmath} \begin{document} See $\frac{1}{2}$, or \[ \frac{1}{2} \quad e^{\frac{1}{2}}. \] \end{document} However, you can update \frac to ...


2

You can't use _ in the argument to \text. You should better use \mathrm and \xrightarrow: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{equation} 2I_{x}S_{z} \xrightarrow{\ang{90}\ \mathrm{Pulse}_{I_y}} \end{equation} \end{document}


2

Really it is the same question: \documentclass[preprint,showpacs,preprintnumbers,amsmath,amssymb]{revtex4} \usepackage{amsmath} \newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}} \begin{document} \begin{center} $\let\left\relax\let\right\relax \def\frac#1#2{((#1)/(#2))} \frac{2 (\alpha +3) (2 \alpha +5) (10 \alpha +17) (10 \alpha +19) (...



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