[Tex/LaTex] Graphing with Ipe

ipe

I am new to the TeX Stackexchange, so I want to apologize beforehand if I do not comply with the question-writing customs/rules.

My question is about the graphing program for LaTeX Ipe. I have downloaded it from the webpage, and when using it I am having trouble to insert math-mode text. For example, I click the "insert math" option, and write \mathbb{R} and it does not print out. Instead an error pops out saying:

***! Undefined control sequence.
<recently read> \mathbb 

l.57 $\mathbb
             {R}$%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Overfull \hbox (170.0pt too wide) in paragraph at lines 61--62
[][] 
 []
[1
{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}] (ipetemp.aux) ) 
Here is how much of TeX's memory you used:
 1410 strings out of 493673
 17230 string characters out of 3143954
 75428 words of memory out of 3000000
 4817 multiletter control sequences out of 15000+200000
 5467 words of font info for 20 fonts, out of 3000000 for 9000
 1025 hyphenation exceptions out of 8191
 23i,5n,35p,213b,119s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Progra
m Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Program Files/
MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on ipetemp.pdf (1 page, 17215 bytes).
PDF statistics:
 18 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 13 words of extra memory for PDF output out of 10000 (max. 10000000)***

I am also having trouble to print \mathscr{R} and other symbols.

Furthermore, the math appears to being printed in "inline" mode, instead of in "display mode". Can anyone please help me with this?

Thank you very much, and again, I apologize if the format of my question is not in line with the norms of the site.

Best Answer

Given that the question was answered in the comments, I will summarize the solution here so that it remains useful to other people. I thank Phelype Oleinik and marmot for the help.

So basically, to get the \mathbb{R} and \mathscr{R} printed out in Ipe, you have to include the \usepackage{amssymb, mathrsfs} in the preamble of the document. To such preamble, you access by clicking on the Edit button and going to Document properties. You can also access with Ctrl+Shift+P.

In regard to the second inquiry, when you insert math mode text in Ipe, the text will automatically print out in "inline" math mode. To get the display math mode, before entering the desired math text, you have to include \displaystyle as in regular Latex documents.

Hope that this is also useful to other people!

Related Question