Advertisement
Guest User

Untitled

a guest
Feb 9th, 2025
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. \documentclass[a5paper, twoside]{article}
  2. \usepackage[top=1cm, left=1.15cm, right=1.2cm, bottom=1cm]{geometry}
  3. \usepackage{amsmath, amssymb, mathptmx, cmupint} % math support
  4. \usepackage{titlesec, graphicx, fancyhdr, tocloft} % section, font formatting
  5. \usepackage{tasks, array, multicol, multirow} % tables
  6. \usepackage{import}
  7. \usepackage{tikz, subfig}
  8. \usetikzlibrary{calc, signalflowdiagram, signalflowarrows, signalflowoperators, signalflowblocks, shapes.geometric, arrows}
  9.  
  10. \usepackage{signalflowdiagram}
  11.  
  12. \renewcommand{\normalsize}{\small}
  13. \DeclareMathSizes{9pt}{8pt}{5pt}{5pt} % (text size, math size, script size, scriptscript size)
  14. \makeatletter
  15. \renewcommand{\scriptstyle}{\small}
  16. \renewcommand{\scriptscriptstyle}{\small}
  17. \makeatother
  18. \renewcommand{\thesection}{\arabic{section}}
  19. \titleformat{\section}{\small\bfseries}{\thesection}{1em}{\hspace{3mm}}
  20. \titlespacing*{\section}{0pt}{2mm}{1mm}
  21. \titleformat{\subsection}{\small\bfseries\itshape}{}{0em}{}
  22. \titlespacing*{\subsection}{0pt}{-1mm}{0mm}
  23.  
  24. \setlength{\parskip}{0pt} % No extra paragraph spacing
  25. \setlength{\parindent}{0pt} % No paragraph indentation
  26.  
  27. \def\smath#1{\text{\scalebox{1.2}{$#1$}}}
  28. \def\myfrac#1#2{\smath{\frac{#1}{#2}}}
  29. \newcommand{\intd}{\; \textrm{d}\,}
  30. \DeclareMathAlphabet{\altmathcal}{OMS}{cmsy}{m}{n}
  31. \newcommand{\altF}{\scalebox{1.2}{$\altmathcal{F}$}}
  32. \newcommand{\altZ}{\scalebox{1.2}{$\altmathcal{Z}$}}
  33. \newcommand{\altL}{\scalebox{1.2}{$\altmathcal{L}$}}
  34.  
  35. % Tables
  36. \NewTasksEnvironment[label = \arabic*, label-format = \small, item-format = \small, item-indent = 8mm, label-width = 3mm, label-offset = 5mm, column-sep = 2mm, after-item-skip = 1.5mm, before-skip = 1mm, after-skip = 5mm, after-item-skip = 1.5mm]{numtask}
  37. \NewTasksEnvironment[label = ,item-indent = 0mm, item-format = \small, label-width = 0mm, label-offset = 0mm, column-sep = 2mm, before-skip = 1mm, after-skip = 5mm, after-item-skip = 1.5mm]{emtask}
  38. \NewTasksEnvironment[label = \alph*, label-format = \small, item-format = \small, item-indent = 8mm, label-width = 3mm, label-offset = 5mm, column-sep = 2mm, after-item-skip = 1.5mm, before-skip = 1mm, after-skip = 5mm, after-item-skip = 1.5mm]{alphtask}
  39.  
  40. % Header
  41. \setlength{\headheight}{2.5cm} % space between top of page and header
  42. \setlength{\headsep}{3mm} % space between header and content
  43. \pagestyle{fancy}
  44. \renewcommand{\sectionmark}[1]{\markright{#1}} % headerdisplay
  45. \fancyhf{}% Clear any pre-existing header/footer settings
  46. \fancyhead[LE,RO]{\small{\thepage}}% page number (odd on right, even on left)
  47. \fancyhead[RE]{\small{\nouppercase{Wiskunde formules}}} % text (even)
  48. \fancyhead[LO]{\small{\nouppercase{Wiskunde formules}}} % text (odd)
  49. \fancypagestyle{plain}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}\renewcommand{\footrulewidth}{0pt}}
  50.  
  51.  
  52. % Table of Contents
  53. \renewcommand{\contentsname}{\huge \textrm{Inhoud}}
  54. \setcounter{tocdepth}{1} % Include only sections
  55. \renewcommand{\cftdotsep}{1}
  56. \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
  57. \renewcommand{\cftsecfont}{\normalfont} % section titles font
  58. \renewcommand{\cftsecpagefont}{\normalfont} % page numbers font
  59. \setlength{\cftbeforesecskip}{0pt} % Remove extra spacing
  60. \renewcommand{\cftsecindent}{0em} % No indentation
  61. \renewcommand{\cftsecnumwidth}{2.5em} % Space for section numbers
  62.  
  63. \tikzset{
  64. block/.style = {draw, rectangle, minimum height = 0.75cm, minimum width = 0.75cm},
  65. sum/.style = {draw, circle, node distance = 2cm},
  66. input/.style = {coordinate},
  67. output/.style = {coordinate},
  68. triangle/.style = {draw, anchor=center, path picture={\draw (0, 0.5) -- (0, -0.5) -- (0.75, 0) -- cycle;} }
  69. }
  70.  
  71. \begin{document}
  72.  
  73. \subsection*{Discreet Systeem}
  74.  
  75. \begin{tikzpicture}[auto, >=triangle 45]
  76. \centering
  77. % First system: Summation
  78. \draw
  79. node at (-0.1,0) {\Large \textopenbullet}
  80. node [input, name=input1] at (0,0) {}
  81. node at (-0.1,1) {\Large \textopenbullet}
  82. node [input, name=input2] at (0,1) {}
  83. node [sum] at (1.5,0) (sum) {\Large$+$}
  84. node at (3.1,0) {\Large \textopenbullet}
  85. node [output, name=output1] at (3,0) {};
  86.  
  87. \draw[->] (input1) -- (sum);
  88. \draw (input2) -- (1.5,1);
  89. \draw[->] (1.5,1) -- (sum);
  90. \draw[->] (sum) -- (output1);
  91.  
  92. % Second system: Delay block
  93. \draw
  94. node at (3.9,0) {\Large \textopenbullet}
  95. node [input, name=input3] at (4,0) {}
  96. node [block] at (5.5,0) (block1) {\Large$T$}
  97. node at (7.1,0) {\Large \textopenbullet}
  98. node [output, name=output2] at (7,0) {};
  99.  
  100. \draw[->] (input3) -- (block1);
  101. \draw[->] (block1) -- (output2);
  102.  
  103. % Third system: Another Summation
  104. \draw
  105. node at (7.9,0) {\Large \textopenbullet}
  106. node [input, name=input4] at (8,0) {}
  107. node [triangle] at (9.5,0) (amp) {$\alpha$}
  108. node at (11.1,0) {\Large \textopenbullet}
  109. node [output, name=output3] at (11,0) {};
  110.  
  111. \draw[->] (input4) -- (amp);
  112. \draw[->] (amp) -- (output3);
  113.  
  114. \node[above] at (0,0.1) {$x_1[n]$};
  115. \node[above] at (0,1.1) {$x_2[n]$};
  116. \node[above] at (3.1,0.1) {$y[n]$};
  117. \node[above] at (4,0.1) {$x[n]$};
  118. \node[above] at (7,0.1) {$y[n]$};
  119. \node[above] at (8,0.1) {$x[n]$};
  120. \node[above] at (11,0.1) {$y[n]$};
  121.  
  122. \end{tikzpicture}
  123.  
  124. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement