summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/settings.tex27
1 files changed, 20 insertions, 7 deletions
diff --git a/common/settings.tex b/common/settings.tex
index 94f97d6..7ba155b 100644
--- a/common/settings.tex
+++ b/common/settings.tex
@@ -59,6 +59,7 @@
\usetikzlibrary{shapes.arrows}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{decorations.pathreplacing}
+\usetikzlibrary{math}
\usepackage{pgf-umlsd}
% Circuits
@@ -88,6 +89,17 @@
%\renewcommand{\floatpagefraction}{0.66}
%\renewcommand{\textfraction}{0.10}
+% Custom functions
+\tikzmath{
+ function sinc(\x) {
+ if abs(\x) < .001 then { % (|x| < .001) ~ (x = 0)
+ return 1;
+ } else {
+ return sin(\x r)/\x;
+ };
+ };
+}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Symbols
@@ -97,6 +109,7 @@
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bm}
+\usepackage{trsym}
% Quotes
\usepackage{csquotes}
@@ -216,14 +229,14 @@
% Exercises
\usepackage{exsheets}
-\SetupExSheets{
- headings = block-subtitle,
- headings-format = \bfseries\sffamily,
- subtitle-format = \bfseries\sffamily,
- counter-within = chapter,
- counter-format = ch.qu\IfQuestionSubtitleT{:},
+\SetupExSheets{
+ headings = block-subtitle,
+ headings-format = \bfseries\sffamily,
+ subtitle-format = \bfseries\sffamily,
+ counter-within = chapter,
+ counter-format = ch.qu\IfQuestionSubtitleT{:},
toc-level = {subsection},
- % solution/print = true % uncomment for tutors
+ % solution/print = true % uncomment for tutors
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%