Why does this line causes undefined control sequence error?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\title{Amsmath example}
\author{ShareLaTeX Templates}
\date{June 2017}
\begin{document}
\maketitle
\section{Introduction}
$c \in \interval[{3q/8, 7q/8})$
\end{document}
\interval
(or causes it to be defined). So the error we get is pretty natural. Maybe you were hoping to use the command from tex.stackexchange.com/a/135529/35864? In that case you just forgot to include the relevant code in your preamble.interval
package, but the syntaxt uses two arguments