# Tag Info

1

\documentclass{beamer} \usepackage[T1]{fontenc} \usefonttheme[onlymath]{serif} \renewcommand\sfdefault{cmbr} \begin{document} \begin{frame} Some text, $x^2 + y^2 = r^2$ \end{frame} \end{document}

1

To define a hyphen for use as part of a hyphenated name in a macro, I used the command \def\mymathhyphen{{\hbox{-}}}. This gives the usual en-dash.

1

\usepackage{amsmath} \usepackage{amssymb} ... $r\sim[0,1]$ or $r\thicksim[0,1]$

7

The mathtools package already has the necessary tool to do that (don't load amsmath: mathtools already does it): \documentclass[12pt]{article} \usepackage{mathtools} \newcommand\logeq{\mathrel{\vcentcolon\Leftrightarrow}} \begin{document} $A \logeq A$ \end{document}

10

Package colonequals provides a vertically centered colon: \ratio. Both \ratio and \Leftrightarrow are of kind \mathrel, therefore TeX will not put additional space between them: \documentclass{article} \usepackage{colonequals} \newcommand*{\logeq}{\ratio\Leftrightarrow} \begin{document} $A \logeq B$ \end{document} P.S. It does not matter ...

3

Maybe this? \documentclass[12pt]{article} \usepackage{amsmath} \newcommand\logeq{\mathrel{\raisebox{.66pt}{:}}\Leftrightarrow} \begin{document} $A \logeq A$ \end{document}

0

You can use flalign* environment for getting the desired result Code: \documentclass[11pt,a4paper,oneside]{report} \usepackage[T1]{fontenc} \usepackage{fouriernc} \usepackage{mathtools} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{flalign*} N &=\frac{\theta _{1}-\theta _{2}}{f}\left( \left( \theta ...

4

Another solution using low level functions: \documentclass{article} \usepackage{amsmath,siunitx,xparse} \NewDocumentCommand{\mySI}{O{}mom}{% \IfNoValueTF{#3} {\SI[#1]{#2}{#4}} {\SI[parse-numbers=false,#1]{\num[parse-numbers=true]{#2}\douncert{#3}}{#4}}% } \NewDocumentCommand{\douncert}{m}{% ^{% \vbox{ \def\myrow##1{\num{##1}} ...

2

If you want something that produces the same vertical spacing as the O.P.'s example, you can try the stackengine package: \documentclass[12pt,preview,border=3mm]{standalone} \usepackage{amsmath} \usepackage{stackengine} \setstackEOL{\\} \begin{document} $\text{shaft} = ... 6 Sometimes the low-level commands are just nicer in my opinion: \documentclass{article} \begin{document} \[ \mathrm{shaft = 20^{+0.080\atop +0.005} mm}$ \end{document} If you use amsmath, it will nag but does compile. However, it has been said it's better to use the higher-level macros with LaTeX, and so borrowing from Gonzalo's answer from a previous ...

3

I agree with tohecz that you may need to do some basic reading regarding how to work with LaTeX. I hope this is what you want: \documentclass{article} \usepackage{mathtools} \begin{document} A=\begin{bmatrix} X_{t_{k}} & Y_{t_{k}} & \dot{X}_{t_{k}} & \dot{Y}_{t_{k}} \end{bmatrix}^{T} ...

5


8

amssymb defines emptyset \documentclass{article} \usepackage{amsmath,amssymb} \newcommand{\Emptyset}{\text{\o}} \begin{document} \verb|\text{\o}|: $\text{\o}$ % \verb|amssymb|'s \verb|\emptyset|: $\emptyset$ % \verb|\varnothing|: $\varnothing$ % A custom new command \verb|\Emptyset|: $\Emptyset$ ...

Top 50 recent answers are included