Document Classesproblems with amssymb

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
amathebest
Posts: 4
Joined: Sat Nov 17, 2007 3:11 pm

problems with amssymb

Post by amathebest »

problem: i want a average-symbol, subscript, like an index.
i tryed $_\O$, but \O not available in mathmode, so ich searched an found \diamter or \varnothing.
but this requires the amssymb-package. but if i load this package following error ocuured:
- command \square already defined
- commad \ggg already defined

my header:
-------------------------------------------------------------------------------------------
\documentclass[titlepage, a4paper, 12pt]{article}

%Schrift
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{ngerman}
\usepackage{arial}

%Seite
\textheight=22cm
\setlength{\oddsidemargin}{0cm}
\setlength{\textwidth}{16cm}
\setlength{\topmargin}{-0.5cm}
\setlength{\headheight}{1cm}
\setlength{\headsep}{1cm}
%\setlength{\footmargin}{-0.5cm}
%\setlength{\footheight}{1cm}
\setlength{\footskip}{2cm}
%\setlength{\parindent}{0pt}

%packages
\usepackage{ltablex, longtable, tabularx, array, multirow}
\usepackage[pdftex]{graphicx}
\usepackage{setspace}
\usepackage{xymtex, amsmath, units}
\usepackage{amssymb}
\usepackage[version=3]{mhchem}
\usepackage{fancyhdr}
%\usepackage{lastpage}
\graphicspath{{C:/_Dateien/Amadeus/Studium/PC/Oberflächenpraktikum/img/}}
%\includeonly{title}
\usepackage[bf, hang, nooneline]{caption}
%\renewcommand{\captionfont}{\small\itshape}
\setlength{\captionmargin}{20pt}
\renewcommand{\figurename}{Abb.}
\renewcommand{\tablename}{Tab.}

%Seite
\textwidth=16cm \textheight=22cm
\setlength{\oddsidemargin}{0cm}
\setlength{\parindent}{0pt}

\pagestyle{fancy}
\fancypagestyle{plain}{}
\rhead[\leftmark]{\protect\slshape Seite \textbf{\thepage}\ }
\lhead[\righthead]{Rose, Schneider}
%\chead{\includegraphics[scale=0.15]{TU.png}}
\chead{Praktikum Grenzflächenchemie}
\fancyfoot{}%fussnote entfernen
\cfoot{\includegraphics[scale=0.15]{TU.png}}

\hyphenation{}

-------------------------------------------------------------------------------------------

don´t know what to do...
need help!!!

thx amathebest

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

problems with amssymb

Post by gmedina »

Load the amssymb package before the xymtex package; i.e., use something like

Code: Select all

\usepackage{amsmath,amssymb}
\usepackage{xymtex}
\usepackage{units}
or

Code: Select all

\usepackage{amsmath,amssymb,xymtex,units}
By the way, the xymtex package is obsolote.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problems with amssymb

Post by localghost »

A newer version is available [1]. Replace the ngerman package by babel with the ngerman option. This is preferable. But then you have to change the way in defining new caption labels.

Code: Select all

\addto{\captionsngerman}{
  \renewcommand{\figurename}{Abb.}
  \renewcommand{\tablename}{Tab.}
}
Omit the driver option for the graphicx package. It will detect by itself which compiler is running. Set your type area with the geometry package. These manual changes should not be done. The \graphicspath command is not safe for work.

The best for German users is to use the KOMA-Script classes and packages. For future projects you should refer to this. Usage is strongly recommended and makes nearly all hints above obsolete.

[1] Downloading and installing xymtex


Best regards
Thorsten
amathebest
Posts: 4
Joined: Sat Nov 17, 2007 3:11 pm

Re: problems with amssymb

Post by amathebest »

Thanks a lot!!!

what a stupid mistake... amssymb before xymtex...

and to localghost: i changed my script to koma, i mean, it looks really better.

"For future projects you should refer to this. Usage is strongly recommended and makes nearly all hints above obsolete."

what did you mean? Do i need the \usepackage[ngerman]{babel} or xymtex (and so on) no more? Is this someway included in koma?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problems with amssymb

Post by localghost »

amathebest wrote: […] what did you mean? Do i need the \usepackage[ngerman]{babel} or xymtex (and so on) no more? Is this someway included in koma?

No, that was a bad mode of expression from me. Sorry for that. You will need babel always. It offers many interesting features like typesetting multilingual documents with correct hyphenation. And you will have to load other packages like xymtex by yourself furthermore. But with KOMA-Script you will get rid of many other problems like setting the type area. And you will get many additional options. Just refer to its documentation. Again sorry for this misunderstanding.


Best regards
Thorsten
amathebest
Posts: 4
Joined: Sat Nov 17, 2007 3:11 pm

Re: problems with amssymb

Post by amathebest »

Aha, now it´s clear. Thank you. i downloaded the koma documentation, but 260 sites, so it will take a little bit time to read. but koma looks reallly better, e.g. referring to global settings and so on.

Thanks for your help, no more questions.

Think this thread can be closed.
amathebest
Posts: 4
Joined: Sat Nov 17, 2007 3:11 pm

Re: problems with amssymb

Post by amathebest »

SORRY, one question: reffering to the bibliography:

my code:
-----------------------------------------
\bibliographystyle{plain}
%\bibliography{lit}
\begin{thebibliography}{99}
\bibitem{1} www.römpp.de
\bibitem{2} http://www.wikipedia.de
\end{thebibliography}
------------------------------------------

one error occured: I found no \bibdata command --- while reading C:\....

-> as afar as i understand this there are 2 possibilities for a bibliography:
1.) \bibliography{lit} : to load the bibliography from a file
2.) \begin{thebibliography}{99} : bibliography without loading from a file

but if i don´t use an extern file, why this error message???
(Although of this error i can create a complete pdf file, the error message occured while compiling, at the end of compiling there are no errors/warnings))
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problems with amssymb

Post by localghost »

Set the line with your bibliography style as comment. Bibliography styles are only for use with BibTeX, not with the normal thebibliography environment. There you have to format the entries by yourself.
Post Reply