Skip to content

Commit

Permalink
update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
oakoneric committed Oct 14, 2019
1 parent 9cec82a commit 4aede8b
Show file tree
Hide file tree
Showing 25 changed files with 4,400 additions and 0 deletions.
269 changes: 269 additions & 0 deletions cwl/mathoperatorsMathTUD.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
##################################################################################
# This work is licensed under the Creative Commons
# Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy
# of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or
# send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

# (c) Eric Kunze, 2019

# inspired by Henry Haustein, Daniel Graeveling
# https://github.com/henrydatei/TUD_MATH_BA

#######################################################################
# NEW MATH COMMANDS AND OPERATORS #
#######################################################################

#################################################
# new math commands

# >> special characters
\quer{arg}
\schlange{arg}
\dach{arg}

\epsilon
\phi
\varphi


\mit
\und
\bzw

\brackets{arg}

# >> sets and mappings
\menge{cont}
\set{\cont}
\card{set}
\ohneNull
\pows{set}

\N
\Z
\Q
\R
\Rn
\Rm
\Rd
\C
\K
\F

# Abbildungen mit Namen, einzeilig
\abb{name}{domain}[specific]{range}

# Abbildungen mit Namen, zweizeilig
\bigabb{name}{domain}{range}{preimage}{image}

# Abbildungen ohne Namen, zweizeilig
\bigabbnoname{domain}{range}{preimage}{image}


# >> logic
\follows
\equivalent
\defequiv
\defeq
\defqe

# >> linear algebra
\basisB
\darstMat{basis}{mapping}
\MBf
\one
\isomorph
\erz{arg}
\scal{arg1}{arg2}
\transpose{arg}
\trans{(arg)}

# >> groups / rings / fields
\normalteiler
\nichtnormal
\echtnormal

\ideal
\nichtideal
\echtideal

\einheit{ring}
\Rx

\polynom[R][X]
\polynomring{R}{X}
\polynomR
\Kx
\MinPol{L}{K}
\Sp{arg}
\No{arg}

# >> number theory
\teilt
\teiltnicht
\rest{n}

# >> metric spaces
\folge[index]{item}
\dist{x}{y}
\abs{arg}
\norm{arg}

# >> differentiation
\partdiff{var}
\ableitung{var}
\diff{var}
\dx
\dy
\da

# >> integration

# >> topology
\rand

# >> measure theory
\borel{set}

# >> numerical mathematics

# >> stochastic
\P
\ereignisF

\Erwartungswert
\EW[X]
\Varianz
\Var[X]
\Covarianz
\Cov{X}{Y}
\Correlation
\Corr{X}{Y}
\Normal

#################################################
# math operators
###### A
\Aff
\Aut
\Abb

###### B
\Bernoulli
\Bil
\Bin

###### C
\charak
\cl
\cond
\cdiff

###### D
\diam
\discr
\undef\div
\div
\diag

###### E
\Eig
\End
\eps
\Exp
\ext
\Ext

###### F
\Fix

###### G
\Gal
\GammaDist
\Geom
\ggT
\GL
\graph
\grad

###### H
\Hom
\Hau
\Hyper

###### IJK
\Image
\Inn
\inn
\Int
\id
\Ker
\kgV

###### LMN
\Lin
\LC
\Mat
\Minpol
\Multi
\negBin
\Norm
\normalenraum
\normalisator

###### OPQ
\ord
\Orth
\Out
\Poisson
\pr
\Quot
\quot

###### R
\rd
\rk
\rot
\rang

###### S
\sgn
\SL
\SO
\Span
\Spur
\SR
\Stab
\supp
\Syl
\Sym
\SU

###### T
\tangentialraum
\tr
\Typ
\typ

###### UVW
\UG
\Ugr
\Uni

###### XYZ
\ZR
\zentralisator
\zentrum
\Zwk


#################################################
# math symbols
# >> cupdot & bigcupdot for disjoint union of sets
\smallbullet
\cupdot
\bigcupdot

################################################################################
# END OF OPERARORS
################################################################################
8 changes: 8 additions & 0 deletions texmf/tex/latex/desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[LocalizedFileNames]
exercisesMathTUD.sty=@exercisesMathTUD.sty,0
maththeorems1MathTUD.sty=@maththeorems1MathTUD.sty,0
mathoperatorsMathTUD.sty=@mathoperatorsMathTUD.sty,0
mathworkMathTUD.sty=@mathworkMathTUD.sty,0
packagesMathTUD.sty=@packagesMathTUD.sty,0
maththeorems2MathTUD.sty=@maththeorems2MathTUD.sty,0
digressiontheoremMathTUD.sty=@digressiontheoremMathTUD.sty,0
62 changes: 62 additions & 0 deletions texmf/tex/latex/digressiontheoremMathTUD.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
\ProvidesPackage{digressiontheoremMathTUD}
\RequirePackage{tikz}
\usetikzlibrary{calc,arrows}
\RequirePackage[framemethod=TikZ]{mdframed}


\DeclareOptionX{name}{%
\newcommand*{\mytheoremname}{#1}%
}
\DeclareOptionX{cmd}{%
\newcommand*{\mytheoremcmd}{#1}%
}
\ProcessOptionsX

\makeatletter
\mdf@do@stringoption{digressiontitle=={Digression}}
\tikzset{
excursus arrow/.style={%
line width=2pt,
draw=cddarkblue!80,
rounded corners=2ex,
},
excursus head/.style={
fill=white,
font=\bfseries\sffamily,
text=cddarkblue!80,
anchor=base west,
},
}
\mdfdefinestyle{digressionarrows}{%
singleextra={%
\path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);
\path let \p1=(Q), \p2=(O) in (\x1,{(\y1-\y2)/2}) coordinate (M);
\path [excursus arrow, round cap-to]
($(O)+(5em,0ex)$) -| (M) |- %
($(Q)+(12em,0ex)$) .. controls +(0:16em) and +(185:6em) .. %
++(23em,2ex);
\node [excursus head] at ($(Q)+(2.5em,-0.75pt)$) {\textos{\mdf@digressiontitle}};},
firstextra={%
\path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);
\path [excursus arrow,-to] (O) |- %
($(Q)+(12em,0ex)$) .. controls +(0:16em) and +(185:6em) .. %
++(23em,2ex);
\node [excursus head] at ($(Q)+(2.5em,-2pt)$) {\textos{\mdf@digressiontitle}};},
secondextra={%
\path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);
\path [excursus arrow,round cap-]($(O)+(5em,0ex)$) -| (Q);},
middleextra={%
\path let \p1=(P), \p2=(O) in (\x2,\y1) coordinate (Q);
\path [excursus arrow](O) -- (Q);},
middlelinewidth=2.5em,middlelinecolor=white,
hidealllines=true,topline=true,
innertopmargin=0.5ex,
innerbottommargin=2.5ex,
innerrightmargin=2pt,
innerleftmargin=2ex,
skipabove=0.87\baselineskip,
skipbelow=0.62\baselineskip,
}
\makeatother

\newmdenv[style=digressionarrows,digressiontitle=\theoremname]{\theoremcmd}
56 changes: 56 additions & 0 deletions texmf/tex/latex/doodleboxMathTUD.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOODLE BOXES %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{doodleboxMathTUD}

\RequirePackage{tikz}
\usetikzlibrary{arrows,positioning,decorations.pathreplacing}
% Inspired by http://www.texample.net/tikz/examples/hand-drawn-lines/
\usetikzlibrary{decorations.pathmorphing}

\pgfdeclaredecoration{penciline}{initial}{
\state{initial}[width=+\pgfdecoratedinputsegmentremainingdistance,
auto corner on length=1mm,]{
\pgfpathcurveto%
{% From
\pgfqpoint{\pgfdecoratedinputsegmentremainingdistance}
{\pgfdecorationsegmentamplitude}
}
{% Control 1
\pgfmathrand
\pgfpointadd{\pgfqpoint{\pgfdecoratedinputsegmentremainingdistance}{0pt}}
{\pgfqpoint{-\pgfdecorationsegmentaspect
\pgfdecoratedinputsegmentremainingdistance}%
{\pgfmathresult\pgfdecorationsegmentamplitude}
}
}
{%TO
\pgfpointadd{\pgfpointdecoratedinputsegmentlast}{\pgfpoint{1pt}{1pt}}
}
}
\state{final}{}
}
\tikzset{handdrawn/.style={decorate,decoration=penciline}}
\tikzset{every shadow/.style={fill=none,shadow xshift=0pt,shadow yshift=0pt}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage{xcolor}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{environ}

\NewEnviron{doodlebox}[2]{%
% arguments: #1 line colour ; #2 fill colour
\begin{tikzpicture}[decoration=penciline, decorate]%
\pgfmathsetseed{1237}%
\node (n1) [decorate,draw=#1, fill=#2,thick,align=justify, text width=0.97\textwidth, inner ysep=2mm, inner xsep=2mm] at (0,0) {\BODY};%
\end{tikzpicture}%
}
\NewEnviron{doodle}[1]{%
% argument: #1 colour (fill colour automatically set)
\begin{tikzpicture}[decoration=penciline, decorate]%
\pgfmathsetseed{1237}%
\node (n1) [decorate,draw=#1, fill=#1!10,thick,align=justify, text width=0.97\textwidth, inner ysep=2mm, inner xsep=2mm] at (0,0) {\BODY};%
\end{tikzpicture}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Loading

0 comments on commit 4aede8b

Please sign in to comment.