TransWikia.com

Importing bigplus and bigtimes from mathabx package

TeX - LaTeX Asked by jms547 on April 17, 2021

Similar to my question here: I want to import bigplus and bigtimes from the mathabx package but not use the whole package as it alters the look of int, partial etc.

There are a lot of solutions out there for similar problems but I don’t know where to start adapting them to my own needs as they seem like magic LaTeX incantations! Can anyone give me a particular solution, or help me understand how to adopt a general solution?

If possible I would like to avoid relying on the amsmath package because the journal class file I’m using does not play well with amsmath (very frustrating but I cannot do anything about this!).

Thanks!

2 Answers

Here's how to do it:

documentclass{article}%

DeclareFontFamily{U}{mathx}{hyphencharfont45}
DeclareFontShape{U}{mathx}{m}{n}{
<-6> mathx5 <6-7> mathx6 <7-8> matha7
<8-9> mathx8 <9-10> mathx9
<10-12> mathx10 <12-> mathx12
}{}
DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
DeclareMathSymbol{bigplus}{mathop}{mathx}{"90}
DeclareMathSymbol{bigtimes}{mathop}{mathx}{"91}

begin{document}

[ A bigplus B qquad Cbigtimes D]%

end{document} 

enter image description here

Correct answer by Bernard on April 17, 2021

I include the mathabx font tables at the end, so that you can see that the bigplus and bigtimes are part of the the mathx subset of mathabx, occupying slots "A0 and "A1.

documentclass{article}
% Setup the mathx font (from mathxbx.sty)
DeclareFontFamily{U}{mathx}{hyphencharfont45}
DeclareFontShape{U}{mathx}{m}{n}{
      <5> <6> <7> <8> <9> <10> gen * mathx
      <10.95> mathx10 <12> <14.4> <17.28> <20.74> <24.88> mathx12
      }{}
DeclareSymbolFont{mathx}{U}{mathx}{m}{n}

% Define a subset character from that font (from mathabx.dcl)

DeclareMathSymbol{bigplus}{1}{mathx}{"A0}
DeclareMathSymbol{bigtimes}{1}{mathx}{"A1}

usepackage{fonttable}
begin{document}

texttt{mathabx} subset

[
A bigtimes B
]
[
B bigplus A
]

tinyclearpage
fonttable{mathx10}clearpage
fonttable{matha10}clearpage
fonttable{mathb10}
end{document}

enter image description here

Answered by Steven B. Segletes on April 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP