[Tex/LaTex] Conflict between \mathabx and \amssymb

amssymbincompatibilitymathabxsymbols

I need to use \ldbrack and \rdbrack symbols from the package \mathabx, but when I use the \mathabx with the \amssymb package (previously installed) it is causing me an issue with symbols: \subseteq, \cap, \cup, etc

\documentclass{book}   
\usepackage{amssymb} 
\usepackage{mathabx}

\begin{document}

This a example, 

$$A\subseteq B=\emptyset A\cap B\cup C$$

$$x + y \ldbrack z \rdbrack$$
\end{document}

The following picture was created using \mathabx and \amssymb.

Imagen1

And the following picture was created using only \amssymb.

Imagen2

Please notice that on imagen 1, \cap, \cup, etc; are different and I require the other ones.

Is there a way to use both packages without mess up my document symbols?
Thanks.

Best Answer

The mathabx package is not compatible with amssymb; besides, it changes all math symbols.

You can use, instead, stmaryrd.

\documentclass{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{stmaryrd}

\begin{document}

\begin{gather*}
A\subseteq B=\emptyset \\
A\cap B\cup C \\
x + y \llbracket z \rrbracket
\end{gather*}

\end{document}

enter image description here

If you want to import the symbols from mathabx, according to the guidelines in Importing a Single Symbol From a Different Font you can do as follows.

\documentclass{book}
\usepackage{amsmath}
\usepackage{amssymb}

\DeclareFontFamily{U}{matha}{}
\DeclareFontShape{U}{matha}{m}{n}{
  <-5.5>    matha5
  <5.5-6.5> matha6 
  <6.5-7.5> matha7
  <7.5-8.5> matha8
  <8.5-9.5> matha9
  <9.5-11>  matha10
  <11->     matha12
}{}
\DeclareSymbolFont{matha}{U}{matha}{m}{n}
\DeclareFontSubstitution{U}{matha}{m}{n}
\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{<-> mathx10}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}

\DeclareMathDelimiter{\ldbrack}{4}{matha}{"76}{mathx}{"30}
\DeclareMathDelimiter{\rdbrack}{5}{matha}{"77}{mathx}{"38}

\begin{document}

\begin{gather*}
A\subseteq B=\emptyset \\
A\cap B\cup C \\
x + y \ldbrack z \rdbrack
\end{gather*}

\end{document}

enter image description here

Related Question