0

I'm trying to save the definition of the square brackets since the package MnSymbol redefines it. I think the redefined ones are aesthetically ugly.

I'm looking for a solution similar to this. A simple and understandable solution is preferable.

How can I apply that solution to the parentheses definition?


\documentclass{standalone}

\usepackage{graphicx} \usepackage{MnSymbol}

\begin{document} with MnSymbol: \scalebox{2}{\Big[42\Big]} \end{document}


with MnSymbols

without MnSymbols

Bernard
  • 271,350

1 Answers1

1

This solution isn't particularly straightforward, but it works.

Open LaTeX source code (e.g. in source2e.pdf) and copy the relevant lines. Modify largesymbols to oldlargesymbols to avoid problems.

%! TEX program = pdflatex
\documentclass{standalone}

\usepackage{MnSymbol}

\DeclareSymbolFont{oldlargesymbols}{OMX}{cmex}{m}{n} \DeclareMathDelimiter{[}{\mathopen} {operators}{"5B}{oldlargesymbols}{"02} \DeclareMathDelimiter{]}{\mathclose}{operators}{"5D}{oldlargesymbols}{"03}

\begin{document}

without MnSymbol: $\Big[42\Big]$

\end{document}

The high-level documentation of the font-setting commands are in fntguide.pdf.

user202729
  • 7,143
  • 1
    Doesn't seem very elegant as you have to copy paste code, while you should be able to avoid? – user202729 Dec 31 '21 at 08:51
  • Although it looks like that LaTeX has a very complex system to select font on \everymath built on top of TeX's font select system, I haven't been able to figure out how to e.g. get the current font. – user202729 Dec 31 '21 at 14:00