![Erro "Sequência de controle indefinida. [\end{flalign*}]" que não consigo corrigir](https://rvso.com/image/347935/Erro%20%22Sequ%C3%AAncia%20de%20controle%20indefinida.%20%5B%5Cend%7Bflalign*%7D%5D%22%20que%20n%C3%A3o%20consigo%20corrigir.png)
Na verdade, recebo o erro duas vezes na mesma linha. Não consigo descobrir o que está causando isso. Meu código:
\documentclass{article}
\usepackage[left=1in, top=1in, bottom=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{flalign*}
\textbf{14c)} \quad & \text{Let } V(x,y) \text{ be "} x \text{ has visited } y \text{",} &\\
& \text{where } x \in \{ \text{students in this class} \} \text{ and } y \in \{ \text{places} \} &\\
& \exists x (V(x, \text{Alaska}) \land \neg V(x, \text{Hawaii})) &\\
\textbf{d)} \quad & \text{Let } L(x,y) \text{ be "} x \text{ has learned at least } y \text{ programming languages",} &\\
& \text{where } x \in \{ \text{students in this class} \} \text{ and } y \in \R &\\
& \forall x (L(x, 1)) &\\
\textbf{e)} \quad & \text{Let } T(x,y) \text{ be "} x \text{ has taken every course offered by } y \text{",} &\\
& \text{where } x \in \{ \text{students in this class} \} \text{ and } y \in \{ \text{departments in this school} \} &\\
& \exists x,y (T(x,y))
\end{flalign*}
\end{document}
O erro: 2.tex:80: Sequência de controle indefinida. [\end{flaign*}]
Responder1
Provavelmente é o que você precisava ( \R
agora é definido como quadro-negro R):
\documentclass{article}
\usepackage[left=1in, top=1in, bottom=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand\R{\mathbb{R}}
\begin{document}
\begin{flalign*}
\textbf{14c)} \quad & \text{Let } V(x,y) \text{ be "} x \text{ has visited } y \text{",} &\\
& \text{where } x \in \{ \text{students in this class} \} \text{ and } y \in \{ \text{places} \} &\\
& \exists x (V(x, \text{Alaska}) \land \neg V(x, \text{Hawaii})) &\\
\textbf{d)} \quad & \text{Let } L(x,y) \text{ be "} x \text{ has learned at least } y \text{ programming languages",} &\\
& \text{where } x \in \{ \text{students in this class} \} \text{ and } y \in \R &\\
& \forall x (L(x, 1)) &\\
\textbf{e)} \quad & \text{Let } T(x,y) \text{ be "} x \text{ has taken every course offered by } y \text{",} &\\
& \text{where } x \in \{ \text{students in this class} \} \text{ and } y \in \{ \text{departments in this school} \} &\\
& \exists x,y (T(x,y))
\end{flalign*}
\end{document}
Responder2
A mensagem de erro, conforme relatada no arquivo de log, é
! Undefined control sequence.
<argument> ...is class} \} \text { and } y \in \R
&\\ & \forall x (L(x, 1)) ...
l.17 \end{flalign*}
o que deixa bem claro qual é o problema: o comando \R
não tem definição por padrão e deve ser definido, possivelmente com
\newcommand{\R}{\mathbb{R}}
ou
\newcommand{\R}{\mathbf{R}}
de acordo com suas preferências estilísticas.
Você pode considerar o uso de uma lista, em vez desse flalign
ambiente complicado.
\documentclass{article}
\usepackage[
left=1in,
top=1in,
bottom=1in,
showframe,
]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{enumitem}
\newcommand{\R}{\mathbb{R}}
\begin{document}
\begin{enumerate}[
leftmargin=3.5em,
labelwidth=2.5em,
labelsep=1em,align=right,
]
\item[\bfseries 14c)]
Let $V(x,y)$ be ``$x$ has visited $y$'', where
$x \in \{ \text{students in this class} \}$
and $y \in \{ \text{places} \}$ \\*
$\exists x (V(x, \text{Alaska}) \land \neg V(x, \text{Hawaii}))$
\item[\bfseries d)]
Let $L(x,y)$ ``$x$ has learned at least $y$ programming languages'',
where $x \in \{ \text{students in this class} \}$ and $y \in \R$, \\*
$\forall x (L(x, 1))$
\item[\bfseries e)]
Let $T(x,y)$ be ``$x$ has taken every course offered by $y$'',
where $x \in \{ \text{students in this class} \}$ and
$y \in \{ \text{departments in this school} \}$ \\*
$\exists x,y (T(x,y))$
\end{enumerate}
\end{document}
A showframe
opção é responsável pelas linhas finas ao redor do bloco de texto, comente para a versão de produção.