From bd90e427596eee2b2a2dd4a15b04f6e60239357b Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 29 May 2012 22:53:15 +0000
Subject: fdsymbol (29may12)

git-svn-id: svn://tug.org/texlive/trunk@26722 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/fdsymbol/fdsymbol.sty | 127 ++++++++++++++++------
 1 file changed, 96 insertions(+), 31 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/fdsymbol/fdsymbol.sty')

diff --git a/Master/texmf-dist/tex/latex/fdsymbol/fdsymbol.sty b/Master/texmf-dist/tex/latex/fdsymbol/fdsymbol.sty
index 0c1d8e838b8..32e61b0e1bc 100644
--- a/Master/texmf-dist/tex/latex/fdsymbol/fdsymbol.sty
+++ b/Master/texmf-dist/tex/latex/fdsymbol/fdsymbol.sty
@@ -6,7 +6,7 @@
 %%
 %% fdsymbol.dtx  (with options: `style')
 %% 
-%% Copyright (c) 2011 by Michael Ummels <michael.ummels@rwth-aachen.de>
+%% Copyright (c) 2012 by Michael Ummels <michael.ummels@rwth-aachen.de>
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -24,7 +24,7 @@
 %% and the derived files fdsymbol.pdf and fdsymbol.sty.
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{fdsymbol}[2011/08/28 v0.7 FdSymbol support package]
+\ProvidesPackage{fdsymbol}[2011/11/01 v0.8 FdSymbol support package]
 
 \RequirePackage{xkeyval}
 \newcommand*\fdsy@choicekey[3]{%
@@ -61,7 +61,15 @@
     \renewcommand\fdsy@bweight@small{Bold}%
   \fi
 }
-\ExecuteOptionsX{largedelims=false}
+\newif\iffdsy@sfop
+\fdsy@choicekey{opstyle}{serif,sans}{%
+  \ifcase\@tempb\relax
+    \fdsy@sfopfalse
+  \or
+    \fdsy@sfoptrue
+  \fi
+}
+\ExecuteOptionsX{largedelims=false,opstyle=serif}
 \ProcessOptionsX
 \@ifpackageloaded{amsmath}{}{\RequirePackage{amsmath}}
 \@ifpackageloaded{textcomp}{}{\RequirePackage{textcomp}}
@@ -181,22 +189,19 @@
 \SetSymbolFont{narrows}{bold}{U}{FdSymbolD}{b}{n}
 \SetSymbolFont{largesymbols}{bold}{U}{FdSymbolE}{b}{n}
 \SetSymbolFont{delimiters}{bold}{U}{FdSymbolF}{b}{n}
-\let\mathcal\undefined
 \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
 \SetMathAlphabet{\mathcal}{bold}{OMS}{cmsy}{b}{n}
-\let\mathbb\undefined
 \DeclareMathAlphabet{\mathbb}{U}{msb}{m}{n}
-\let\Bbbk\undefined
-\newcommand{\Bbbk}{\mathbb{\mathchar"717C}}
-\let\mathfrak\undefined
 \DeclareMathAlphabet{\mathfrak}{U}{euf}{m}{n}
 \SetMathAlphabet{\mathfrak}{bold}{U}{euf}{b}{n}
-\newcommand\fdsy@bold{bold}
-\newcommand\fdsy@text[1]{%
+\let\Bbbk\undefined
+\newcommand{\Bbbk}{\mathbb{\mathchar"717C}}
+\def\fdsy@bold{bold}
+\newcommand*\fdsy@text[1]{%
   \ifx\fdsy@bold\math@version
-    \text{\bfseries#1}%
+    \text{\normalfont\bfseries#1}%
   \else
-    \text{\mdseries#1}%
+    \text{\normalfont\mdseries#1}%
   \fi
 }
 \fdsy@setslot{0}
@@ -485,9 +490,21 @@
   \fdsy@DeclareAlias{\rightanglemdot}{symbols}{\mathord}
 \fdsy@DeclareSymbol{\prime}{symbols}{\mathord}
 \fdsy@DeclareSymbol{\backprime}{symbols}{\mathord}
-\fdsy@DeclareSymbol{\smallprod}{symbols}{\mathop}
-\fdsy@DeclareSymbol{\smallcoprod}{symbols}{\mathop}
-  \fdsy@DeclareAlias{\amalg}{symbols}{\mathbin}
+\iffdsy@sfop
+  \fdsy@DeclareSymbol{\varsmallprod}{symbols}{\mathop}
+  \fdsy@DeclareSymbol{\smallprod}{symbols}{\mathop}
+  \fdsy@DeclareSymbol{\varsmallcoprod}{symbols}{\mathop}
+    \fdsy@DeclareAlias{\varamalg}{symbols}{\mathbin}
+  \fdsy@DeclareSymbol{\smallcoprod}{symbols}{\mathop}
+    \fdsy@DeclareAlias{\amalg}{symbols}{\mathbin}
+\else
+  \fdsy@DeclareSymbol{\smallprod}{symbols}{\mathop}
+  \fdsy@DeclareSymbol{\varsmallprod}{symbols}{\mathop}
+  \fdsy@DeclareSymbol{\smallcoprod}{symbols}{\mathop}
+    \fdsy@DeclareAlias{\amalg}{symbols}{\mathbin}
+  \fdsy@DeclareSymbol{\varsmallcoprod}{symbols}{\mathop}
+    \fdsy@DeclareAlias{\varamalg}{symbols}{\mathbin}
+\fi
 \fdsy@DeclareSymbol{\smallint}{symbols}{\mathop}
 \fdsy@DeclareSymbol{\checkmark}{symbols}{\mathord}
 \fdsy@DeclareSymbol{\lightning}{symbols}{\mathord}
@@ -1592,16 +1609,49 @@
 \fdsy@DeclareSymbol{\dbigodot}{largesymbols}{\mathop}
 \fdsy@DeclareSymbol{\tbigoast}{largesymbols}{\mathop}
 \fdsy@DeclareSymbol{\dbigoast}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\tprod}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\dprod}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\tcoprod}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\dcoprod}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\tsum}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\dsum}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\tosum}{largesymbols}{\mathop}
-  \fdsy@DeclareAlias{\tmodtwosum}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\dosum}{largesymbols}{\mathop}
-  \fdsy@DeclareAlias{\dmodtwosum}{largesymbols}{\mathop}
+\iffdsy@sfop
+  \fdsy@DeclareSymbol{\tvarprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\tvarmodtwosum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\dvarmodtwosum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\tmodtwosum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\dmodtwosum}{largesymbols}{\mathop}
+\else
+  \fdsy@DeclareSymbol{\tprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarcoprod}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarsum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\tmodtwosum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\dmodtwosum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\tvarmodtwosum}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarosum}{largesymbols}{\mathop}
+    \fdsy@DeclareAlias{\dvarmodtwosum}{largesymbols}{\mathop}
+\fi
 \fdsy@DeclareSymbol{\tint}{largesymbols}{\mathop}
 \fdsy@DeclareSymbol{\dint}{largesymbols}{\mathop}
 \fdsy@DeclareSymbol{\tiint}{largesymbols}{\mathop}
@@ -1652,8 +1702,17 @@
   \fdsy@DeclareAlias{\tointclockwise}{largesymbols}{\mathop}
 \fdsy@DeclareSymbol{\dlcircleleftint}{largesymbols}{\mathop}
   \fdsy@DeclareAlias{\dointclockwise}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\tsumint}{largesymbols}{\mathop}
-\fdsy@DeclareSymbol{\dsumint}{largesymbols}{\mathop}
+\iffdsy@sfop
+  \fdsy@DeclareSymbol{\tvarsumint}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarsumint}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tsumint}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dsumint}{largesymbols}{\mathop}
+\else
+  \fdsy@DeclareSymbol{\tsumint}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dsumint}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\tvarsumint}{largesymbols}{\mathop}
+  \fdsy@DeclareSymbol{\dvarsumint}{largesymbols}{\mathop}
+\fi
 \let\intop\tint
 \let\ointop\toint
 
@@ -1690,11 +1749,16 @@
 \fdsy@DeclareOperator{\bigotimes}{\dbigotimes}{\tbigotimes}
 \fdsy@DeclareOperator{\bigodot}{\dbigodot}{\tbigodot}
 \fdsy@DeclareOperator{\bigoast}{\dbigoast}{\tbigoast}
+\fdsy@DeclareOperator{\prod}{\dprod}{\tprod}
+\fdsy@DeclareOperator{\varprod}{\dvarprod}{\tvarprod}
+\fdsy@DeclareOperator{\coprod}{\dcoprod}{\tcoprod}
+\fdsy@DeclareOperator{\varcoprod}{\dvarcoprod}{\tvarcoprod}
 \fdsy@DeclareOperator{\sum}{\dsum}{\tsum}
+\fdsy@DeclareOperator{\varsum}{\dvarsum}{\tvarsum}
 \fdsy@DeclareOperator{\osum}{\dosum}{\tosum}
+\fdsy@DeclareOperator{\varosum}{\dvarosum}{\tvarosum}
 \fdsy@DeclareOperator{\modtwosum}{\dmodtwosum}{\tmodtwosum}
-\fdsy@DeclareOperator{\prod}{\dprod}{\tprod}
-\fdsy@DeclareOperator{\coprod}{\dcoprod}{\tcoprod}
+\fdsy@DeclareOperator{\varmodtwosum}{\dvarmodtwosum}{\tvarmodtwosum}
 \fdsy@DeclareIntegral{\iint}{\diint}{\tiint}
 \fdsy@DeclareIntegral{\iiint}{\diiint}{\tiiint}
 \fdsy@DeclareIntegral{\iiiint}{\diiiint}{\tiiiint}
@@ -1720,6 +1784,7 @@
 \fdsy@DeclareIntegral{\lcircleleftint}{\dlcircleleftint}{\tlcircleleftint}
 \fdsy@DeclareIntegral{\ointclockwise}{\dointclockwise}{\tointclockwise}
 \fdsy@DeclareIntegral{\sumint}{\dsumint}{\tsumint}
+\fdsy@DeclareIntegral{\varsumint}{\dvarsumint}{\tvarsumint}
 
 \def\intkern@{\mkern-8.5mu\mathchoice{\mkern-1mu}{}{}{}}
 \def\intdots@{\mkern-6mu%
@@ -1925,14 +1990,14 @@
 \DeclareMathSymbol{<}{\mathrel}{relations}{"24}
 \DeclareMathSymbol{>}{\mathrel}{relations}{"25}
 \iffdsy@largedelims
-  \DeclareMathSymbol{|}{\mathord}{delimiters}{"B6}
+  \DeclareMathSymbol{|}{\mathord}{delimiters}{"B7}
   \DeclareMathSymbol{(}{\mathopen}{delimiters}{"01}
   \DeclareMathSymbol{)}{\mathclose}{delimiters}{"07}
   \DeclareMathSymbol{[}{\mathopen}{delimiters}{"13}
   \DeclareMathSymbol{]}{\mathclose}{delimiters}{"19}
   \DeclareMathSymbol{/}{\mathord}{delimiters}{"AA}
 \else
-  \DeclareMathSymbol{|}{\mathord}{delimiters}{"B5}
+  \DeclareMathSymbol{|}{\mathord}{delimiters}{"B6}
   \DeclareMathSymbol{(}{\mathopen}{delimiters}{"00}
   \DeclareMathSymbol{)}{\mathclose}{delimiters}{"06}
   \DeclareMathSymbol{[}{\mathopen}{delimiters}{"12}
-- 
cgit v1.2.3

