ERRO DE LATEX: DELIMITOR DE AMBIENTE DE MATEMÁTICA RUIM. (tudo em maiúsculas)

ERRO DE LATEX: DELIMITOR DE AMBIENTE DE MATEMÁTICA RUIM. (tudo em maiúsculas)
\documentclass[letterpaper, twoside, 12pt]{book}
\usepackage{amsmath,amsfonts,amsthm}
\usepackage{notes}
\usepackage{hyperref}

\title{MATH 3142 Notes | Spring 2016}
\date{Updated: \today}
\author{Your Name Here\\ UNC Charlotte}

\begin{document}

\maketitle


\setcounter{chapter}{9}
\chapter{The Euclidean Space \texorpdfstring{\(\mathbb R^n\)}{Rn}}


\section{The Linear Structure of \texorpdfstring{\(\mathbb R^n\)}{Rn}
and the Scalar Product}

\begin{proposition}[10.2]
  Let \(\mathbf u,\mathbf v,\mathbf w\in\mathbb R^n\)
  and \(\alpha,\beta\in\mathbb R\). Then both of the following hold:
  \[
    \langle \mathbf u,\mathbf v\rangle=\langle \mathbf v,\mathbf u\rangle
  \]
  \[
    \langle \alpha\mathbf u+\beta\mathbf w,v\rangle
      =
    \alpha\langle \mathbf u,\mathbf v\rangle+\beta\langle \mathbf w,\mathbf v\rangle
  \]
\end{proposition}
\begin{proof}

\end{proof}

\begin{lemma}[10.4]
  For \(\mathbf u,\mathbf v\in\mathbb R^n\), \(\mathbf u,\mathbf v\) are
  orthogonal if and only if
  \(\|\mathbf u+\mathbf v\|=\|\mathbf u\|^2+\|\mathbf v\|^2\).
\end{lemma}
\begin{proof}

\end{proof}

\begin{lemma}[10.5]
  For \(\mathbf u,\mathbf v\in\mathbb R^n\) where \(\mathbf v\not=\mathbf 0\),
  define \(\lambda=\frac{\langle \mathbf u,\mathbf v\rangle}{\langle \mathbf v,\mathbf v\rangle}\)
  and \(\mathbf w=\mathbf u-\lambda\mathbf v\). Then \(\mathbf v,\mathbf w\)
  are orthogonal and \(\mathbf u=\mathbf w+\lambda\mathbf v\).
\end{lemma}
\begin{proof}

\end{proof}

\begin{theorem}[10.6, The Cauchy-Schwarz Inequality]
  For any two vectors \(\mathbf u,\mathbf v\in\mathbb R^n\),
  \[
    |\langle \mathbf u,\mathbf v\rangle|
      \leq
    \|\mathbf u\|\|\mathbf v\|
  .\]
\end{theorem}
\begin{proof}

\end{proof}

\begin{theorem}[10.7, The Triangle Inequality]
  For any two vectors \(\mathbf u,\mathbf v\in\mathbb R^n\),
  \[
    \|\mathbf u+\mathbf v\|
      \leq
    \|\mathbf u\|+\|\mathbf v\|
  .\]
\end{theorem}

\begin{exercise}[3]
  Show that for \(\mathbf u\in\mathbb R^n\), \(\alpha\in\mathbb R\):
  \begin{enumerate}[(a)]
    \item \(\|\mathbf u\|=0\) if and only if \(\mathbf u=\mathbf 0\).
    \item \(\|\alpha\mathbf u\|=|\alpha|\|\mathbf u\|\).
  \end{enumerate}
\end{exercise}
\begin{proof}

\end{proof}

\begin{exercise}[4]
  For \(\mathbf u,\mathbf v\in\mathbb R^n\) verify the identity
  \[
    \|\mathbf u-\mathbf v\|^2
      =
    \|\mathbf u\|^2+\|\mathbf v\|^2-2\langle \mathbf u,\mathbf v\rangle
  .\]
\end{exercise}
\begin{proof}

\end{proof}

\begin{exercise}[9]
  Let \(\mathbf u\in\mathbb R^n\) and suppose \(\|\mathbf u\|<1\).
  Show that for \(\mathbf v\in\mathbb R^n\),
  \(\|\mathbf v-\mathbf u\|<1-\|\mathbf u\|\) implies
  \(\|\mathbf v\|<1\).
\end{exercise}
\begin{proof}

\end{proof}

\begin{exercise}[10]
  Let \(\mathbf u\in\mathbb R^n\) and \(r>0\). Suppose \(\mathbf v,\mathbf w\in\mathbb R^n\)
  are at a distance less than \(r\) from \(\mathbf u\). Prove that if
  \(0\leq t\leq 1\), then the point \(t\mathbf v+(1-t)]\mathbf w\) is also
  at a distance less than \(r\) from \(\mathbf u\).
\end{exercise}
\begin{proof}

\end{proof}

\end{document}

A marcação acima está causando o erro estranho no título:LATEX ERROR: BAD MATH ENVIRONMENT DELIMITER.

Errors:

./foo.tex:121: LATEX ERROR: BAD MATH ENVIRONMENT DELIMITER. [\end{document}]
./foo.tex:121: Extra }, or forgotten $. [\end{document}]
./foo.tex:121: Extra }, or forgotten $. [\end{document}]
./foo.tex:121: Missing $ inserted. [\end{document}]
./foo.tex:121: Missing } inserted. [\end{document}]
./foo.tex:121: Missing } inserted. [\end{document}]

Observe que está totalmente em maiúscula, ao contrário do erro que posso obter ao adicionar um extra $no documento. Na verdade, adicionar qualquer tipo de ambiente parece estar causando o erro. Para tornar as coisas mais bizarras, esse erro não parece ocorrer ao compilar, digamos, no Overleaf.

Como é específico do sistema, não tenho certeza se uma solução será encontrada. Pelo que vale, estou usando o Ubuntu 14.04 LTS. Pelo menos, alguém sabe por que estou recebendo o erro em letras maiúsculas?

Responder1

Embora \(e \)sejam comandos robustos, é mais seguro usá-los $para mover argumentos como títulos de capítulos e seções. Este parece ser um caso em que estes comandos eram insuficientemente robustos.

Responder2

Apenas adivinhando pela mensagem de erro, pois nenhum exemplo é fornecido aqui

%\RequirePackage[2014/01/01]{latexrelease}
\documentclass{book}

\begin{document}
\tableofcontents
\chapter{a \(x\) b}

xxx

\pagebreak
xx

\section{x}
x
\end{document}

Um dos seus sistemas é anterior a 2015 e, portanto, \(é frágil, por isso deve ser usado como \protect\(nos títulos. o outro sistema é 2015 ou 2016, que \(é robusto.

Você pode emular o sistema antigo removendo o comentário da chamada requirepackage e vendo o erro.

informação relacionada