texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.85k stars 346 forks source link

Add amsthm to the AMS packages menu item #3798

Closed tmelorc closed 2 months ago

tmelorc commented 2 months ago

When using the AMS Packages from LaTeX menu, the following two lines of code are inserted:

\usepackage{amsmath}
\usepackage{amssymb}

But IMHO (and based on this TEX.SE answer) it would be good to add also the amsthm package.

Regards.

octaeder commented 2 months ago

Quick Start wizard also offers amsthm, so this might be reasonable maybe replace amsmath with mathtools, @sunderme I could provide a PR.

sunderme commented 2 months ago

Any other comments on what it should be ? I have no opinion on this.

tmelorc commented 2 months ago

Quick Start wizard also offers amsthm, so this might be reasonable maybe replace amsmath with mathtools, @sunderme I could provide a PR.

I don't know if mathtools is a basic package, I mean, if we do a minimal/basic LaTeX install, would it be installed? Otherwise some new user could get problems.

octaeder commented 2 months ago

mathtools is part of miktex and texlive, so the package manager can load it if needed. mathtools loads amsmath. I would expect both packages to be available. @dbitouze any hints?

dbitouze commented 2 months ago

@octaeder I don't know if mathtools is provided by the minimalist TeX distributions (like TinyTeX, for which I haven't found the list of packages). In TeX Live, it's part of the "latexrecommended" collection and it's a package I would indeed recommend.

octaeder commented 2 months ago

For R users tinyTeX loads packages automatically like MiKTeX does. So both may start with an empty repo. Hence the question is if one will have same problems regardless of amsmath or mathtools.