为什么此行会导致未定义的控制序列错误?
\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}
答案1
interval
只需阅读@Bernard 评论中所写的包第 3 页的指南。http://ctan.mirror.garr.it/mirrors/CTAN/macros/latex/contrib/interval/interval.pdf\dfrac
。当您使用选项时,您还会看到不良结果。
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}
\usepackage{interval}
\title{Amsmath example}
\author{ShareLaTeX Templates}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
$c \in \interval{3q/8}{7q/8}$
\vskip 1cm
$c \in \interval{\frac{3q}{8}}{\frac{7q}{8}}$
\vskip 1cm
$c \in \interval{\dfrac{3q}{8}}{\dfrac{7q}{8}}$
\end{document}