arrays.tex 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %\documentclass[english,onecolumn,final]{svjour2}
  2. \documentclass{article}
  3. \usepackage{graphicx}
  4. \usepackage{tikz}
  5. \usepackage{pgflibraryshapes}
  6. \usetikzlibrary {shapes}
  7. \usepackage{calc}
  8. \usepackage{color}
  9. \definecolor{invisible}{gray}{1.0}
  10. \definecolor{green}{rgb}{0.0,1.0,0.0}
  11. %\input{commands.tex}
  12. %define counters
  13. \newcounter{mynum}
  14. %\renewcommand\normalsize{\fontsize{20pt}{20pt}\selectfont}
  15. \setlength{\textwidth}{20cm}
  16. \setlength{\textheight}{30cm}
  17. \pagenumbering{arabic} % but no page numbers are printed because:
  18. \pagestyle{empty} % this is actually already in the kernel
  19. \newcommand{\MainDocDir}{..}
  20. \begin{document}
  21. \newcommand{\coordinatesys}[5]{
  22. \path #1 coordinate (xy);
  23. \draw [-latex,very thick](xy) +(0,0) -- +(4,0);
  24. \draw [-latex,very thick](xy) +(0,0) -- +(0,4);
  25. \draw (xy) +(0,2.2) -- +(1.1,2.2);
  26. \draw (xy) +(1,0) -- +(1,2.3);
  27. \draw [-latex] (xy) +(1.5,1.7) -- +(1.1,2.1);
  28. \draw (xy) +(3,1.5) node {#5};
  29. \draw (xy) +(2.5,3.5) node {#2};
  30. \draw (xy) +(3,0.2) node {#3};
  31. \draw (xy) +(0.2,4.2) node {#4};
  32. }
  33. \newcommand{\coordinatedreid}[6]{
  34. \path #1 coordinate (xy);
  35. \draw [-latex,very thick](xy) +(0,0) -- +(4,0);
  36. \draw [-latex,very thick](xy) +(0,0) -- +(0,4);
  37. \draw [-latex,very thick](xy) +(0,0) -- +(3,1.5);
  38. \draw (xy) +(0,2) -- +(1,2);
  39. \draw (xy) +(1,0) -- +(1,2);
  40. \draw (xy) +(1,2) -- +(2.1,2.5);
  41. \draw (xy) +(1,0) -- +(2,0.5);
  42. \draw (xy) +(1,0.5) -- +(2,0.5);
  43. \draw (xy) +(2,0.5) -- +(2,2.6);
  44. \draw [-latex] (xy) +(2.5,2.65) -- +(2.1,2.55);
  45. \draw (xy) +(3.5,2.6) node {#6};
  46. \draw (xy) +(3.7,1.5) node {#5};
  47. \draw (xy) +(2.5,3.5) node {#2};
  48. \draw (xy) +(3,0.2) node {#3};
  49. \draw (xy) +(0.2,4.2) node {#4};
  50. }
  51. \newcommand{\texpic}{
  52. \begin{tikzpicture}
  53. %\draw [-latex,very thick](0,0) -- (10,0);
  54. %\draw [-latex,very thick](0,0) -- (0,10);
  55. \coordinatesys{(0,0)}{POST}{source(0)}{synapsennr.(1)}{nr. des postneurons}
  56. \coordinatesys{(6,0)}{S}{source(0)}{synapsennr.(1)}{Gewichtsstaerke}
  57. \coordinatesys{(0,-6)}{DELAY-LENGTH}{source(0)}{synapsennr.(1)}{?}
  58. \coordinatedreid{(6,-6)}{DELAYS}{source(0)}{delay(1)}{?(2)}{synapsennr.}
  59. \end{tikzpicture}
  60. }
  61. \color{invisible}
  62. .\\
  63. .
  64. \color{black}
  65. \texpic
  66. \color{invisible}
  67. .
  68. \end{document}