diff options
author | Karl Berry <karl@freefriends.org> | 2017-09-20 22:37:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-09-20 22:37:35 +0000 |
commit | 3d4c3dcda64d65d756189829d9880c0dd02531d4 (patch) | |
tree | 495eec4fa3e3e8cc3e10af52d0cbb27cc088690b /Master/texmf-dist/tex/latex/fnspe/fnspe.sty | |
parent | d9a254cf07ee23e20a7b959d2983f7260cb05d14 (diff) |
fnspe (20sep17)
git-svn-id: svn://tug.org/texlive/trunk@45360 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fnspe/fnspe.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/fnspe/fnspe.sty | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/fnspe/fnspe.sty b/Master/texmf-dist/tex/latex/fnspe/fnspe.sty index 409e1d11624..a1ca922bb8d 100644 --- a/Master/texmf-dist/tex/latex/fnspe/fnspe.sty +++ b/Master/texmf-dist/tex/latex/fnspe/fnspe.sty @@ -1,15 +1,15 @@ -% fnspe 1.1b +% fnspe 1.2a % This material is subject to the LaTeX Project Public License. % See https://www.latex-project.org/lppl/ for the details of that license. % % Useful commands for FNSPE students % % Created by Michal Zeman -% Updated on February 28, 2017 -% Uploaded on February 28, 2017 +% Updated on September 20, 2017 +% Uploaded on September 20, 2017 \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fnspe}[2017/02/27 Package for FNSPE CTU in Prague made by Michal Zeman] +\ProvidesPackage{fnspe}[2017/09/20 Package for FNSPE CTU in Prague made by Michal Zeman] \RequirePackage{xstring} \RequirePackage{bm} @@ -23,6 +23,8 @@ \RequirePackage{listings} \RequirePackage{physics} \RequirePackage{tikz} % For arrow and dots in \xvec +\RequirePackage{substr} +\RequirePackage{mathtools} \newif\if@isointerval\@isointervalfalse \DeclareOption{isointerval}{ @@ -64,6 +66,16 @@ \@isocomplextrue } +\newif\if@deftext\@deftextfalse +\DeclareOption{deftext}{ + \@deftexttrue +} + +\newif\if@defcolon\@defcolonfalse +\DeclareOption{defcolon}{ + \@defcolontrue +} + \ProcessOptions\relax \newlength\xvec@height% @@ -97,7 +109,8 @@ language=[LaTeX]TeX, breaklines=true, basicstyle=\tt\scriptsize, - morekeywords = [28]{ci,oi,lci,rci,rest,dif, hlf, degree, hem, htem, oover, realn, inte, ratin, compn, natun, impem, rot, dive, grad, lapl, varun, unit, expv, norm, abs, pder, tder,mat,curl,laplacian,divisionsymbol}, + morekeywords = [28]{ci,oi,lci,rci,rest,dif, hlf, degree, hem, htem, oover, realn, inte, ratin, compn, natun, impem, rot, dive, grad, lapl, varun, unit, expv, norm, abs, pder, tder,mat,curl,laplacian, divisionsymbol, + floor, ceil, df, allsetzero, allset, cclass, ccinf, ccof}, keywordstyle=\color{blue}, identifierstyle=\color{magenta}, } @@ -111,7 +124,7 @@ \begingroup \catcode`\_=\active -\gdef_#1{\IfSubStr{#1}{!}{\sb{\mathrm{\StrBehind{#1}{!}}}}{\sb{#1}} } +\gdef_#1{\IfCharInString{!}{#1}{\sb{\mathrm{\StrBehind{#1}{!}}}}{\sb{#1}} } \endgroup \mathcode`\_=\string"8000 \catcode`\_=12 @@ -157,6 +170,7 @@ \newcommand{\inte}{\ensuremath{\mathbb{Z}}} \newcommand{\ratin}{\ensuremath{\mathbb{Q}}} \newcommand{\natun}{\ensuremath{\mathbb{N}}} +\newcommand{\nnzero}{\ensuremath{\mathbb{N}_0}} \newcommand{\impem}{\hem \Rightarrow \hem} @@ -187,3 +201,18 @@ %\newcommand{\maxv}[1]{\vec{\mathcal{#1}}} %\newcommand{\maxs}[1]{\mathcal{#1}} +\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil} +\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor} + +\if@deftext +\newcommand{\df}{\stackrel{\mathclap{\normalfont{\mbox{\tiny def.}}}}{=}} +\else +\newcommand{\df}{\mbox{:=}} +\fi + +\newcommand{\allset}[1]{\{1,2,\ldots,#1\}} +\newcommand{\allsetzero}[1]{\{0,1,\ldots,#1\}} + +\newcommand{\cclass}{\mathscr{C}} +\newcommand{\ccof}[1]{\cclass^{#1}} +\newcommand{\ccinf}{\ccof{\infty}}
\ No newline at end of file |