Math & ScienceEmptySet

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
xgen
Posts: 3
Joined: Wed Jan 23, 2013 11:43 pm

EmptySet

Post by xgen »

Hello,

I did not use LaTex a long time, so it may have forgotten something
I have MikTex 2.9, LaTex+AmsTex
I can not get a empty set sign using \varnothing
instead of normal empyset sign I have just a "?" on a page
\emptyset works, but :-( I don't like them
maybe I've forgot some package?

Code: Select all

\documentclass[a4paper,12pt]{book}
\usepackage{latexsym}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{amsfonts}
\usepackage{euscript}
\usepackage[T2A]{fontenc}
\usepackage[cp1251]{inputenc}
\usepackage[russian]{babel}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

EmptySet

Post by svend_tveskaeg »

First: Welcome to the LaTeX Community!

If I compile the following code using pdflatex, I get the attached output:

Code: Select all

\documentclass[a4paper,12pt]{book}

\usepackage[russian]{babel}
\usepackage[cp1251]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{amsfonts}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{latexsym}
\usepackage{euscript}

\begin{document}
$\varnothing$
\end{document}
Comments:

* Please provide a minimal working example next time.
* It is a good idea to load babel, inputenc, and fontenc as the first three packages, in the mentioned order.
* It is often a good idea to pass options to the document class; they are then applied to all possible packages. In this case, I would use

Code: Select all

\documentclass[a4paper,12pt,russian]{book}

\usepackage{babel}
Attachments
test.pdf
Output.
(5.11 KiB) Downloaded 286 times
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
xgen
Posts: 3
Joined: Wed Jan 23, 2013 11:43 pm

Re: EmptySet

Post by xgen »

Thanks a lot,

a couple of hours of night work - the problem is not in LaTex or AmsTex,
I have a same pdf file using pdflatex, but
problem is in dvi viwer YaP:
font msbm10 is missing

how can I get it?
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

EmptySet

Post by svend_tveskaeg »

No idea but why not compile with pdflatex and view the PDF file (with Foxit Reader in Windows or, e.g., Evince in Linux)?

Update
It seems that you can get it from CTAN: http://www.ctan.org/tex-archive/fonts/c ... akoma/ttf/
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
xgen
Posts: 3
Joined: Wed Jan 23, 2013 11:43 pm

Re: EmptySet

Post by xgen »

Thanks a lot

I don't know how, but I've found missing font
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

EmptySet

Post by cgnieder »

svend_tveskaeg wrote:* It is a good idea to load babel, inputenc, and fontenc as the first three packages, in the mentioned order.
This is not quite true. One should load »fontenc« before »inputenc« (and both are unnecessary when using XeLaTeX od LuaLaTeX but that's another story). I was unable to find the reference I base my claim on, though :( What I do have is a nice summary of both packages: fontenc vs inputenc.

Best
site moderator & package author
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

EmptySet

Post by svend_tveskaeg »

cgnieder wrote:One should load »fontenc« before »inputenc«
True. I simply switch the two packages. :oops:

Thanks for pointing it out.

Update
Suggestions on the following pages support your claim:

* http://tex.stackexchange.com/questions/ ... 8-inputenc (BSK's answer);
* http://www.dickimaw-books.com/latex/nov ... utenc.html.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply