Jürgen Spitzmüller avatar Jürgen Spitzmüller committed eb80bc2

Fix for issue #180: Add an option (to beamerarticle only) to disable auto-loeading of amssymb package.

Comments (0)

Files changed (5)

base/beamerarticle.sty

 % See the file doc/licenses/LICENSE for more details.
 
 \RequirePackage{beamerbasercs}
-\ProvidesPackageRCS $Header$
+\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamerarticle.sty,v 7063f09e9019 2010/05/01 16:39:27 rivanvx $
 
 
 \RequirePackage{beamerbasemodes}
 \DeclareOption{noxcolor}{\PassOptionsToPackage{noxcolor}{beamerbasearticle}}
 \DeclareOption{notheorems}{\PassOptionsToPackage{notheorems}{beamerbasearticle}}
 \DeclareOption{noamsthm}{\PassOptionsToPackage{noamsthm}{beamerbasearticle}}
+\DeclareOption{noamssymb}{\PassOptionsToPackage{noamssymb}{beamerbasearticle}}
 \DeclareOption{envcountsect}{\PassOptionsToPackage{envcountsect}{beamerbasearticle}}
 \DeclareOption{activeospeccharacters}{\PassOptionsToPackage{activeospeccharacters}{beamerbasearticle}}
 

base/beamerbasearticle.sty

 %
 % See the file doc/licenses/LICENSE for more details.
 
-\ProvidesPackageRCS $Header$
+\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamerbasearticle.sty,v 4a510a8c7341 2011/10/22 12:18:43 rivanvx $
 
 
 \newif\ifbeamer@articleutf
 \newif\ifbeamer@articleactive
 \beamer@articleactivefalse
 
+\newif\ifbeamer@amssymb
+\beamer@amssymbtrue
+
 \DeclareOption{utf8}{\beamer@articleutftrue}
 \DeclareOption{hyperref}{\beamer@articlehyperreftrue}
 \DeclareOption{noxcolor}{\beamer@articlexcolorfalse}
 \DeclareOption{nodefaultblocks}{\beamer@blocksfalse}% obsolete. use notheorems
 \DeclareOption{notheorems}{\beamer@blocksfalse}
 \DeclareOption{noamsthm}{\beamer@blocksfalse\beamer@amsfalse}
+\DeclareOption{noamssymb}{\beamer@amssymbfalse}
 \DeclareOption{envcountsect}{\beamer@countsecttrue}
 \DeclareOption{activeospeccharacters}{\beamer@articleactivetrue}
 

base/beamerbasefont.sty

 %
 % See the file doc/licenses/LICENSE for more details.
 
-\ProvidesPackageRCS $Header$
+\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamerbasefont.sty,v f39336aafb3c 2010/10/26 18:09:31 rivanvx $
 
+\ifbeamer@amssymb
 \RequirePackage{amssymb}
 % For \blacktriangleright; not explicitly required by article, but can cause
 % weird situations if users find that symbols works in presentation, but not
 % in article mode.
+% However, some classes or font packages clash with amssymb, so allow to
+% disable auto-loading optionally.
+\fi
 
 \mode
 <presentation>

base/beamerbasemodes.sty

 %
 % See the file doc/licenses/LICENSE for more details.
 
-\ProvidesPackageRCS $Header$
+\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/beamerbasemodes.sty,v efa082c6111d 2010/05/01 11:27:03 rivanvx $
 
 %
 % Global Declarations used by beamer in all modes
 \newbox\beamer@tempbox
 \newif\ifbeamer@blocks
 \newif\ifbeamer@ams
+\newif\ifbeamer@amssymb
 \newif\ifbeamer@countsect
 \beamer@blockstrue
 \beamer@amstrue
+\beamer@amssymbtrue
 \beamer@countsectfalse
 \newcount\beamer@tempcount
 \newcounter{beamerpauses}

doc/beamerug-nonpresentation.tex

   \item
     \declare{|activeospeccharacters|} will leave the character code of the pointed brackets as specified by other packages. Normally, \beamer\ will turn off the special behavior of the two characters |<| and |>|. Using this option, you can reinstall the original behavior at the price of possible problems when using overlay specifications in the |article| mode.
   \item
+    \declare{|noamssymb|} will suppress the automatic loading of the |amssymb| package. Normally, \beamer\ will load this package since many themes use AMS symbols. This option allows you to opt-out from this behavior in article mode, thus preventing clashes with some classes and font packages that conflict with |amssymb|. Note that, if you use this option, you will have to care for yourself that |amssymb| or an alternative package is loaded if you use respective symbols.
+  \item
     \declare{|noamsthm|} will suppress the loading of the |amsthm| package. No theorems will be defined.
   \item
     \declare{|notheorem|} will suppress the definition of standard environments like |theorem|, but |amsthm| is still loaded and the |\newtheorem| command still makes the defined environments overlay-specification-aware. Using this option allows you to define the standard environments in whatever way you like while retaining the power of the extensions to |amsthm|.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.