Math & ScienceUnable to use \subsetneq

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
JoseM
Posts: 2
Joined: Tue Sep 02, 2008 5:58 pm

Unable to use \subsetneq

Post by JoseM »

Hello,

I'm using MikTex 2.7 (complete version) with TexnicCenter 1 beta 7.50. I'm unable to use the \subsetneq command - the output dvi file doesn't produce the symbol. Is there any package I need to install or enable? How do I do that? I have the full Miktex (about 1.2 GB!) so I don't think that's the issue.

Thanks,

Jose

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Unable to use \subsetneq

Post by Stefan Kottwitz »

Hi Jose,

welcome to the board!
Just load the amssymb package:

Code: Select all

\usepackage{amssymb}
Stefan
LaTeX.org admin
JoseM
Posts: 2
Joined: Tue Sep 02, 2008 5:58 pm

Re: Unable to use \subsetneq

Post by JoseM »

Thanks, Stefan! That was easy.
fotios_g
Posts: 2
Joined: Fri Nov 01, 2013 11:34 pm

Unable to use \subsetneq

Post by fotios_g »

I have a similar problem with XeLaTeX

Code: Select all

\documentclass[a4paper,oneside,titlepage,12pt]{article}

\usepackage[cm-default]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{xgreek}

\setmainfont[Mapping=tex-text]{DejaVu Sans}
In document section I have some text and some equations (works fine)
when I add the line $A \subsetneq B$ I get an error message (\subseteq produces no error)

Thank you for any ideas
Last edited by cgnieder on Sat Nov 02, 2013 4:43 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Unable to use \subsetneq

Post by Johannes_B »

Code: Select all

\documentclass[a4paper,oneside,titlepage,12pt]{article}

\usepackage[cm-default]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{xgreek}

\setmainfont[Mapping=tex-text]{DejaVu Sans}
\begin{document}
$A \subsetneq B$
\end{document}
Is this giving you an error? I don't see one, there is just a warning to inform you, that cm-default is obsolete.
Are your packages up-to-date? Is your distribution up-to-date?

Maybe try to make a minimal working example. This helps to find the real error.

Best regards
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
fotios_g
Posts: 2
Joined: Fri Nov 01, 2013 11:34 pm

Unable to use \subsetneq

Post by fotios_g »

This is a basic version of text.

Code: Select all

\documentclass[a4paper,oneside,titlepage,12pt]{article}

\usepackage[cm-default,no-math]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{amsmath}
\usepackage{xgreek}

\setmainfont[Mapping=tex-text]{DejaVu Sans}
\parindent=0in

\begin{document}

$A \subseteq B$ \\
\\
$C \subsetneq D$

\end{document}
Here is the error I get in basic version of text.

Code: Select all

! Undefined control sequence.
l.16 $C \subsetneq
D$
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.
Underfull \hbox (badness 10000) in paragraph at lines 14--17
[]
[1
] (./basic.aux) )
The first equation is displayed right and the second as CD with no symbol in between.
Last edited by localghost on Sat Nov 02, 2013 7:04 pm, edited 2 times in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Unable to use \subsetneq

Post by localghost »

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX. Please read what our administrator thinks about that.
Board Rules wrote:A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
Such kind of x-posting without notification represents a direct violation of our rules and has to be prevented absolutely in future questions.
Post Reply