I currently have a document with lots of different packages that seem to have problems to work together:

%\usepackage{gensymb} <- excluded due to error
%\usepackage{wasysym} <- excluded due to error
%\usepackage{tipa} <- excluded due to error

However, I want to use those symbols (most of them only once) in the document.

My current approach is to generate a PDF with only one symbol:

\documentclass[varwidth=true, border=2pt]{standalone}

%Additional package
\usepackage{ wasysym }


and then include it with

\includegraphics[height=12.3pt, keepaspectratio]{symbols/Bowtie.pdf}

however, I have the feeling that this might change the size of the symbol and its relative position to the baseline (e.g. for a degree symbol).

Is there a better way to use those packages together? Does (for the listed packages) the order influence if I can compile it?

More specific

When I include \usepackage{wasysm} I get:

! LaTeX Error: Command \diameter already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.4 \newcommand{\diameter}{20}

I don't know how to fix that. I tried savesym:


however, this did not have any effect.


This example is not so minimal ... I am working on it to make it smaller

\usepackage{relsize} % mathlarger
\allowdisplaybreaks         % allow align enviornment to break


\usepackage{subfig}         % multiple figures in one

\usetikzlibrary{shapes, calc, shapes, arrows}


                        pdfborder={0 0 0.5},
                        linkbordercolor={0 0.61 0.50},   
                        citebordercolor={0 0.61 0.50}]{hyperref}  %{0.57 0.74 0.57}
\usepackage[nameinlink,noabbrev]{cleveref} % has to be after hyperref, ntheorem, amsthm


% Packages for symbols

% Begin document                                                    %
Here are many symbols:

    \item \Bat from marvosym,
    \item \textblank from textcomp,
    \item $\mathds{1}$ from dsfont,
    \item $\dotsint$ from esint,
    \item $\celsius$ from gensymb
    \item $\diameter$ from wasysym,



LaTeX Font Warning: Font shape `TS1/aer/m/n' undefined
(Font)              using `TS1/cmr/m/n' instead on input line 82.


! LaTeX Error: Too many math alphabets used in version normal.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.88     \item $\mathds{1}
                          $ from dsfont,

1 Answer 1


If you just need \Bowtie from wasysym, you can just define it by looking what's done in the package:


so you just need to know what \wasyfamily does:


So you can avoid loading wasysym by doing, in your document:

% a command to access the wasysym font
% here the symbols you need from wasysym

(using \symbol{...} is preferable to doing \char... that might lead to surprises).

You can do similarly for symbols from other packages like marvosym.

For instance, \Stopsign from marvosym can be defined without loading the package:

% a command to access the marvosym font
% here the symbols you need from marvosym

IPA symbols from tipa are much more complex to define without loading the package. I'd avoid gensymb; its symbols are available elsewhere anyhow.

How to find the numbers?

Martin Scharrer's texdef script is very handy for the job of finding out how symbols are defined. From a terminal window do

texdef -t latex -p wasysym Bowtie

and you'll receive the answer

macro:->\mbox {\wasyfamily \char 49}


texdef -t latex -p wasysym wasyfamily


macro:->\fontencoding {U}\fontfamily {wasy}\selectfont 

For \Stopsign it's similar

> texdef -t latex -p marvosym Stopsign

\long macro:->\mvchr {33}


> texdef -t latex -p marvosym mvchr

\long macro:#1->{\mvs \char #1}

and finally

> texdef -t latex -p marvosym mvs

\long macro:->\fontfamily {mvs}\fontencoding {U}\fontseries {m}\fontshape {n}\selectfont 

which I converted to the better \usefont{U}{mvs}{m}{n}


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .