GeneralSymbol Typesetting fails

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lgawarec
Posts: 4
Joined: Mon Aug 06, 2012 5:44 pm

Symbol Typesetting fails

Post by lgawarec »

I try to compile the following file.

Code: Select all

\documentclass{article}
\usepackage{mnsymbol}

\def\ci{\perp\!\!\!\perp} % from Wikipedia
\newcommand{\independent}{\protect\mathpalette{\protect\independenT}{\perp}} % symbols-a4, p.106
\def\independenT#1#2{\mathrel{\rlap{$#1#2$}\mkern2mu{#1#2}}}

\begin{document}
  $\upmodels$ % mnsymbol
  $\independent$
  $\ci$
\end{document}
I obtain this error:

Code: Select all

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.2 <
     !-- saved from url=(0061)http://www.tug.org/texmf-dist/tex/latex/mnsymb...
Can anyone please help?

Thanks.
Last edited by Stefan Kottwitz on Mon Aug 06, 2012 6:26 pm, edited 1 time in total.

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: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Symbol Typesetting fails

Post by Stefan Kottwitz »

Hi lgawarec,

welcome to the board!

Obviously you don't use the correct file mnsymbol.sty.

The error at the end of your .log file shows a HTML comment. It seems that you downloaded and saved it in HTML format. Better use the MiKTeX package manager to install MnSymbol.

Very good that you posted a test example! The document is correct. When I tried it, I did not get an error, the result is this output:
symbol.png
symbol.png (1000 Bytes) Viewed 3881 times
Some remarks:
  • Better write

    Code: Select all

    \usepackage{MnSymbol}
    with this capitalization, otherwise LaTeX would print a warning, as MnSymbol is the correct name.
  • Your MiKTeX version 2.7 is pretty old, better update it. It's no longer supported, as the author wrote in the MiKTeX blog. So even package installation via the standard way might not be possible.
Stefan
LaTeX.org admin
lgawarec
Posts: 4
Joined: Mon Aug 06, 2012 5:44 pm

Re: Symbol Typesetting fails

Post by lgawarec »

Thank you for helping me out with this specific problem and with my MiKTeX system. I updated MiKTeX to version 2.9 and all works well.

L. Gawarecki
Post Reply