From dab2ceca82ec581e3d1c115a9aab0781d3ffad73 Mon Sep 17 00:00:00 2001 From: "dth@taiga.ai" Date: Sat, 18 Feb 2023 21:10:59 +0100 Subject: [PATCH 1/3] :memo: add tex installation command --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bca3c71..7e0a5cd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ Tikz diagrams ## pdflatex -* install dependencies (apt installable) +* install dependencies: + * `sudo apt-get install texlive-latex-extra` * `texlive` * `texlive-latex-extra` * `pdf2svg` From 574c144c84b97718ed834ffbd2829c7ab8216f18 Mon Sep 17 00:00:00 2001 From: "dth@taiga.ai" Date: Sat, 18 Feb 2023 21:11:31 +0100 Subject: [PATCH 2/3] :recycle: use firefox in make svg (linux) --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 1ff7b39..66d62f0 100644 --- a/makefile +++ b/makefile @@ -6,4 +6,5 @@ clean: svg: pdflatex -shell-escape diagram.tex - explorer.exe diagram.html + firefox diagram.html + # explorer.exe diagram.html From c498d1d874374c326cc14403f61647f91403ff3c Mon Sep 17 00:00:00 2001 From: "dth@taiga.ai" Date: Sat, 18 Feb 2023 21:12:39 +0100 Subject: [PATCH 3/3] :boom: add initial audio diagram --- diagram.tex | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 diagram.tex diff --git a/diagram.tex b/diagram.tex new file mode 100644 index 0000000..2938d53 --- /dev/null +++ b/diagram.tex @@ -0,0 +1,88 @@ +\documentclass[ + crop,tikz,convert={ + outext=.svg, + command=\unexpanded{ + pdf2svg \infile\space\outfile + } + }, + multi=false] +{standalone}[2012/04/13] + +% \usepackage{tikz} +%\usetikzlibrary{...}% tikz package already loaded by 'tikz' option above +\usetikzlibrary{positioning} + +\makeatletter + +\begin{document} + + \begin{tikzpicture}[ + rounded corners=2pt, + inner sep=5pt, + line width=.6pt, + node distance=.8cm] + + % background grid & fill + % \fill[white] (0,0) rectangle (15,8); + \fill[black!40!white] (-9,-9) rectangle (9,9); + \draw[step=1cm,gray,very thin] (-9,-9) grid (9,9); + + \node (0) {mixer}; + \node[right=of 0] {right}; + \node[below right=of 0] {below right}; + \node[below=of 0] {below}; + \node[below left=of 0] {below left}; + \node[left=of 0] {left}; + \node[above left=of 0] {above left}; + \node[above=of 0] {above}; + \node[above right=of 0] {above right}; + + % sources y=7 + \node (jack) at (0) [draw] {mini-jack}; + % \node (microphone) at (3.5,7) [draw] {microphone}; + % \node (soundcard) at (6,7) [draw] {DJ Soundcard}; + + % mixer y=5 + % \node (mixer) at (3.5,5) [draw] {mixer}; + % \node (mixer) {origin} [draw] {mixer}; + % \node (headphones) at (6,5) [draw] {headphones}; + + % % amps y=3 + % \node (subamp) at (2,3) [draw] {sub amp}; + % % \node (topamp) at (5,3) [draw] {top amp}; + + % % speakers y=1 + % \node [draw] (subl) at (1,1) {sub-L}; + % \node [draw] (subr) at (3,1) {sub-R}; + % \node [draw] (topl) at (5,1) {top-L}; + % \node [draw] (topr) at (7,1) {top-R}; + + % % wiring (sources - mixer) + % \draw (jack.south) -- (mixer.north) node[midway,above] {$C_1$}; + % \draw (microphone.south) -- (mixer.north) node[midway,above] {$C_2$}; + % \draw (soundcard.south) -- (mixer.north) node[midway,above] {$C_3$}; + % \draw (soundcard.south) -- (headphones.north) node[midway,above] {$C_4$}; + + % % wiring (amps - speakers) + % \draw (mixer.south) -- (topl.north) node[midway,above] {$C_5$}; + % \draw (mixer.south) -- (topr.north) node[midway,above] {$C_5$}; + % \draw (mixer.south) -- (subamp.north) node[midway,above] {$C_6$}; + + % % wiring (amps - speakers) + % \draw (subamp.south) -- (subl.north) node[midway,above] {$C_7$}; + % \draw (subamp.south) -- (subr.north) node[midway,above] {$C_7$}; + + % % cable legend + % \node (legend) at (11,4) [draw, text width=6cm] { + % \textbf{Cables} (top to bottom)\\ + % $C_1$ - stereo-mini-jack - 2xRCA\\ + % $C_2$ - mhicrophone - mono jack\\ + % $C_3$ - 2xRCA - 2xRCA\\ + % $C_4$ - stereo-jack - headphones\\ + % $C_5$ - speakON - speakON\\ + % $C_6$ - mono jack - mono jack\\ + % $C_7$ - speakON - XLR\\ + % }; + + \end{tikzpicture} +\end{document}