Why Isn't $\mathbb{R}$ Working in MikTeX?

  • Thread starter Thread starter flyingpig
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the issue of using the command $\mathbb{R}$ in MikTeX, specifically addressing the error message related to an undefined control sequence. Participants explore the necessary packages to include for proper functionality and share their experiences as novices in LaTeX.

Discussion Character

  • Homework-related, Technical explanation, Exploratory

Main Points Raised

  • One participant encounters an error when trying to use $\mathbb{R}$, indicating an undefined control sequence.
  • Another participant suggests that the command $\mathbb$ is defined in AMS packages, recommending the inclusion of either amssymb or amsfonts.
  • A novice participant asks how to introduce the necessary package into their document.
  • Multiple participants provide a sample document structure that includes the amsfonts package, which resolves the initial issue.
  • One participant questions whether they are restricted to using only one package and expresses confusion about including amsmath, which they believe does not exist.
  • Another participant clarifies that there is no known limitation on the number of packages and corrects a typo regarding the command for including packages.
  • Participants mention that MikTeX can automatically find and install packages when referenced.
  • One participant acknowledges a typo in their previous message and expresses gratitude for the assistance received.
  • Areas of Agreement / Disagreement

    Participants generally agree on the need to include specific packages to use $\mathbb{R}$, but there is some uncertainty regarding the limitations on package usage and the existence of certain packages like amsmath.

    Contextual Notes

    Some participants express confusion about package commands and their functionality, indicating a lack of familiarity with LaTeX syntax and package management in MikTeX.

flyingpig
Messages
2,574
Reaction score
1

Homework Statement




On MikTeX, can't enter $\mathbb{R}$

Gives me a statement that says

Code:
! Undefined control sequence.
<recently read> \mathbb 
                        
l.14 $\mathbb
             {F}$
?

No idea what that means?
 
Physics news on Phys.org
\mathbb is defined in one of the AMS packages, so you probably have to include amssymb or amsfonts or something like that.
 
I am a novice in this, how do I introduce that package?
 
Following should work:

Code:
\documentclass{article}
\usepackage{amsfonts}
\begin{document}
$\mathbb{R}$
\end{document}
 

Attachments

  • amsfont.jpg
    amsfont.jpg
    1.5 KB · Views: 955
hotvette said:
Following should work:

Code:
\documentclass{article}
\usepackage{amsfonts}
\begin{document}
$\mathbb{R}$
\end{document}

That worked, but am I restricted to only one package? Again novice here.

I tried adding \userpackage{amsmath}, but amsmath doesn't exist. I am trying to add an array here.

thanks
 
flyingpig said:
That worked, but am I restricted to only one package? Again novice here.

I tried adding \userpackage{amsmath}, but amsmath doesn't exist. I am trying to add an array here.

thanks

I'm not aware of any limitation on how many packages can be used. Whenever I include a reference to a new package MiTek automatically finds and installs it. Btw, I noticed a typo in your last post. It should be \usepackage not \userpackage.

Suggestion: the userguides you can find on the web are quite helpful. Just do a Google search and you'll find a number of them.

There is also a Google Latex user group that can be quite helpful:

http://groups.google.com/group/latexusersgroup
 
Last edited:
hotvette said:
I'm not aware of any limitation on how many packages can be used. Whenever I include a reference to a new package MiTek automatically finds and installs it. Btw, I noticed a typo in your last post. It should be \usepackage not \userpackage.

Suggestion: the userguides you can find on the web are quite helpful. Just do a Google search and you'll find a number of them.

There is also a Google Latex user group that can be quite helpful:

http://groups.google.com/group/latexusersgroup

Yes you are right, I added an "r". I also have looked online, but I thought there was something wrong with it because it didn't work initially and it was the "r" and I thought the package doesn't even exist.

Thanks
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K