%%%%%%%%%%%%%%%%%%%%%%%
% calculusymbols
% This file contains definitions of the various symbols used for notes
% for calculus.  These are required to
% allow for easy changes as well as making sure consistent fonts
% appear in text and formulas.  These commands will work either
% in math mode or regular text.  In regular text, however they
% should be followed by a \<space> to create the interword space.
% For example, the variable \X\ was ...
\newcommand{\mathset}[1]{\ensuremath{\mathbb{{#1}}}}%For Z, Reals, etc.
\newcommand{\mylim}[2]{\displaystyle\lim_{{#1}\rightarrow{#2}}}
% Define commands for the term global/absolute and local/relative so
% these can be changed all at once.  Commands starting with a capital
% are for the capitalized versions.  The commands starting with other
% are to refer to the other terminology used which you are not using.
% Uncomment whichever block you want.  Logically it makes sense to
% either use absolute-relative or global-local.  The commands use
% absolute and relative in their names because \global is a LaTeX command.
% Absolute-Relative:
% We use the xspace package to take care of the spaces which may or may
% not be needed after the command.
\usepackage{xspace}
\newcommand{\absolute}{absolute\xspace}
\newcommand{\Absolute}{Absolute\xspace}
\newcommand{\otherabsolute}{global\xspace}
\newcommand{\Otherabsolute}{Global\xspace}
\newcommand{\relative}{relative\xspace}
\newcommand{\Relative}{Relative\xspace}
\newcommand{\otherrelative}{local\xspace}
\newcommand{\OtherRelative}{Local\xspace}
% Global-Local pairs
%\newcommand{\absolute}{global\xspace}
%\newcommand{\Absolute}{Global\xspace}
%\newcommand{\otherabsolute}{absolute\xspace}
%\newcommand{\Otherabsolute}{Absolute\xspace}
%\newcommand{\relative}{local\xspace}
%\newcommand{\Relative}{Local\xspace}
%\newcommand{\otherrelative}{relative\xspace}
%\newcommand{\OtherRelative}{Relative\xspace}

%Define differential with better spacing for integration
\def\d#1{\,d#1}

%Define a command to allow circling of numbers.
\usepackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,draw,inner sep=2pt] (char) {#1};}}

% Define a command to make a circled LH for L'hopital's rule
\newcommand{\lh}{\circled{\text{\tiny{LH}}}}  

% Provides \cancel command for showing term cancelling.
\usepackage{cancel}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:
