Edit by ManuelKuehner
! LaTeX Error: Bad math environment delimiter.
I am confused how to make the below formula in LaTeX:
I have been trying the below code, but it leads to an error:
\documentclass[runningheads,a4paper]{llncs}
\usepackage{amssymb}
\setcounter{tocdepth}{2}
\usepackage{graphicx}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{url}
\usepackage{float}
\usepackage{booktabs}
\usepackage{multirow}% http://ctan.org/pkg/multirow
\usepackage{hhline}% http://ctan.org/pkg/hhline
\usepackage{lipsum}
\setcounter{secnumdepth}{5}
\begin{document}
\begin{equation}
P(AttackĀ¦Asset) = \[\frac{\,\ attack,\ asset}\]
\end{equation}
\end{document}
Best Answer
Asset
andAttack
are words and not variables I guess so I used\text
from theamsmath
package (loaded bymathtools
). Both are famous and standard packages for math stuff.\[
and\]
inside a math environment -- I guess it's just copy and paste from somewhere. This was an error. See What are the differences between $$, \[, align, equation and displaymath?.I didn't know the funny arc symbol so I looked in detexify.