texniccenter のエラーレポート

texniccenter のエラーレポート

私はこれを texniccenter で書きましたが、Ctrl + F7 を実行すると、「未定義の制御シーケンス」というエラーが表示されました。何が間違っているのかわかりません。コードに何か問題があるのでしょうか? また、パッケージ「bbm」をダウンロードして最初に追加しましたが、何も機能しません。誰か助けてくれませんか? このフォーラムでは、これがあまりばかげた話ではないことを願っています。

\documentclass{article}
\usepackage{amsmath}
\usepackage{bbm}
\begin{document}
\section{Problems}
\label{sec:Problems}
\begin{flushleft}
This approach helps a lot since equality cases can be easily obtained.
The left side's >equality case is $r = 1$.
The right side's equality case occur when $y = rx$ passes
through the interior of exactly $n$ squares.
Such cases occur when $r$ is either an
integer, reciprocal of an integer, $r \geq n$ or $0 < r \leq 1/n$.
  $\blacksquare$
\end{flushleft}

2.Determine all functions $f : \mathbb{R} \to \mathbb{R}$ such that
\[f(xy+f(x))=f(x)f(y)+x , \ \ \ \forall x,y \in  \mathbb{R}.\] 
\end{document}

これは私が書き留めたものです。ここの配置はかなり醜く、その点についてはお詫びしますが、醜い方が間違ったコードよりはましです。また、エディターを使用するのは今回が初めてです。通常、私は math SE、MO などの \LaTeX\ 対応プラットフォームで書き込みます。また、「このアプローチ...」の部分は別の問題の終わりです。私はすべて省略しましたが、この部分はエラーが明確になるように残しました。また、ソリューションの最後に黒い四角形を表示したいので、それを表示しようとしましたが、これも「未定義の制御シーケンス:」になります。助けてください。どうもありがとうございます。

答え1

パッケージを使用する場合bbm、正しいコマンドは\mathbbm{R}ここにあります。ただし、あなたのためのいくつかのパッケージ\blacksquareamssymbよく使われ、パッケージ を含むパッケージをお勧めしますamsfonts。後者にはコマンド (\mathbb{R}) を現在使用しています。

次の MWE を使用することをお勧めします。

% arara: pdflatex

\documentclass{article}
\usepackage{amssymb}
\usepackage{mathtools} % not needed here, but it loads most of the stuff you will need. E.g. `amsmath`

\begin{document}
\section{Problems}
\label{sec:Problems}
\begin{flushleft}
This approach helps a lot since equality cases can be easily obtained.
The left side's equality case is $r = 1$.
The right side's equality case occurs when $y = rx$ passes
through the interior of exactly $n$ squares.
Such cases occur when $r$ is either an
integer, reciprocal of an integer, $r \geq n$ or $0 < r \leq 1/n$.
 $\blacksquare$
\end{flushleft}

2. Determine all functions $f : \mathbb{R} \to \mathbb{R}$ such that
\[f(xy+f(x))=f(x)f(y)+x , \quad \forall x,y \in  \mathbb{R}.\] 
\end{document}

ここに画像の説明を入力してください

関連情報