Tag Info

Hot answers tagged

7

I doubt too that a list is the correct environment, but if some reason you really want it, I would do it like this: \documentclass{article} \usepackage{enumitem,calc} \begin{document} \begin{description}[font=\normalfont,labelwidth=\widthof{Strangeness~},leftmargin=!] \item[Charm] $C\equiv N_c\equiv N(c)-N(\bar{c})$ \item[Strangeness] $S\equiv -N_s\equiv ...


6

Just use amsmath as package as one possibility or \binom{n}{k} as the quick alternative (requires amsmath or mathtools however too) matrix is defined by amsmath, so this environment needs the amsmath package. \documentclass{article} \usepackage{amsmath} \begin{document} \texttt{Bad example -- do not use this} \begin{equation} \left( \begin{matrix} n \\ ...


6

The report class uses chapter.equation numbering, enclosed by parentheses. If the equation number should be used alone without referring to the chapter number, then \counterwithout{equation}{chapter} can be used. It requires chngcntr package, however. \documentclass{report} \usepackage{amsmath} \usepackage{chngcntr} \begin{document} \chapter{First} ...


4

You can simply use \left(...\right) and nest two matrices inside it: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{pmatrix} v_a \\ v_y \end{pmatrix} \sim \mathcal{N} \left( \begin{matrix} \bar{v}_a \\ \bar{v}_y \end{matrix} \mathrel{,} \begin{bmatrix} \sigma_a^2 & \sigma_{ay} \\ ...


4

I was about to post this other possibility \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{enumitem} \begin{document} \begin{enumerate}[align=left, leftmargin=*, widest=Strangeness] \item[Charm] $C\equiv N_c\equiv N(c)-N(\bar{c})$ \item[Strangeness] $S\equiv -N_s\equiv -[N(s)-N(\bar{s})]$ \item[Bottomness] ...


4

\left and \right must be come in pairs, even if only one is needed. In this case the other delimiter is a period: \left\{ ... \right.. But code and result are so ugly, it is much easier to rewrite them from scratch. Package amsmath provides the environment cases, which is used here. The used symbols are based on some wild guesses (e.g., m as index, ...): ...


3

Not precisely what the O.P. requested, but I suggest to use an alignat environment rather. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{alignat}{4} &\text{Charmness} &\quad & C &\quad\equiv \phantom{-}N_{c} &\equiv \quad \phantom{-[} N(c)-N(\bar{c})\phantom{]} \\ &\text{Strangeness} ...


3

You can nest matrices, just use a matrix environment for the first column of N: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \begin{pmatrix} v_a\\ v_y \end{pmatrix} \sim \mathcal{N} \begin{pmatrix} \begin{matrix} \bar{v}_a\\ \bar{v}_y \end{matrix}, & \begin{bmatrix} ...


2

The answer by Adobe does solve the problem to some extent but is not quite effective. Especially when one sub numbering follows another, only the equation counter is incremented but the internal sub-counter is not incremented. \documentclass{IEEEtran} \begin{document} Numbered equation: \begin{IEEEeqnarray}{rCl} a & = & b \;. \label{eq:tTy} ...


2

Use package amsmath (mathtools), \dfrac and \text: \documentclass[12pt]{article} \usepackage{mathtools} \begin{document} \begin{equation} \Delta L = 0.412 \cdot h \dfrac{(\epsilon_\text{ref} + 0.3) \left( \dfrac{W}{h} + 0.264 \right)} {(\epsilon_\text{ref} - 0.258) \left( \dfrac{W}{h} + 0.8 \right)}\label{for:fringes} ...


2

The empheq package provides clever means to create nice equations. Using wrappers for some other setup requires some work to do (see section 6 Creating something new for examples and descriptions) I've decided to use a special reactempheq environment which uses the common equation counter but applies the (R1) format. The usual empheq environment is not ...


1

I am writing this answer based on another answer on this site and upon Christian Hupfer's answer here. There are many other useful points on that question too. %pdfLaTeX \documentclass{book} \usepackage{amsmath} \renewcommand\theequation{\arabic{equation}} \begin{document} \chapter{First} \section{First section} \subsection{First subsection} ...


1

Use the following command, \begin{equation} \dfrac{\Delta L}{h} = 0.412 \dfrac{(\epsilon_{ref} + 0.3)\left( \dfrac{W}{h} + 0.264 \right)} {(\epsilon_{ref} - 0.258)\left( \dfrac{W}{h} + 0.8 \right)} \label{for:fringes} \end{equation}


1

You can obtained the same result with the empheq package (needless to load amsmath in that case): \documentclass[12pt]{article} \usepackage{empheq} \usepackage{xcolor} % Colors \usepackage{soul} % Highlighting and strikeout \newcommand{\MA}[1]{{\sethlcolor{cyan}\hl{#1}}} %highlighting \newcommand*\hlbox[1]{% \colorbox{cyan!30!}{\quad#1\quad}} ...


1

Had the same Problem once. The important thing is that you label your equation inside the equation environment. Otherwise \ref{eqn:x}, \autoref{eqn:x}, \eqref{eqn:x} will give you something else. 1.1 This works: \begin{equation}\label{eqn:x} v=\frac{s}{t} \end{equation} 1.2 This too: \begin{equation} v=\frac{s}{t}\label{eqn:x} \end{equation} 2. This ...


1

In RL mode (arabic or farsi text) numbers should by coded using \I{123} to be typested in arabo-indic digits or extended arabo-indic digits. \textLR{123} to be typested in arabic digits. Here we can use (\I{\ref{eq:label}}). We can redefine \ref command like this \let\arref\ref \renewcommand{\ref}[1]{\I{\arref{#1}}}


1

With a two-pass approach one can avoid guessing at the widest label: \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} \newcounter{tabdesc} \newlength\tabdescwd \newenvironment{tabdesc} {\setlength{\tabdescwd}{0pt}\stepcounter{tabdesc}\let\item\tabdescitem \description[labelwidth=\thistabdescwd,font=\normalfont,leftmargin=!]} ...


1

A very simple solution with enumitem: \documentclass{article} \usepackage{enumitem} \usepackage[showframe]{geometry} \begin{document} \begin{enumerate}[wide=0pt, widest=Strangeness, leftmargin=*] \item[Charm] $C\equiv N_c\equiv N(c)-N(\bar{c})$ \item[Strangeness] $S\equiv -N_s\equiv -[N(s)-N(\bar{s})]$ \item[Bottomness] $\tilde{B}\equiv N_b\equiv ...



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