Guest User

Untitled

a guest
Jun 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. documentclass[a4paper,fleqn,leqno]{article}
  2. usepackage{polyglossia}
  3. usepackage{tikz,tikz-3dplot,graphicx}
  4. usepackage{array,multirow,tabu}
  5. newcolumntype{C}[3]{@{hspace*{#1}}>{centeringarraybackslash}p{#2}@{hspace*{#3}}}
  6. newcolumntype{R}[2]{>{raggedleftarraybackslash}p{#1}@{hspace*{#2}}}
  7. newcolumntype{L}[2]{@{hspace*{#1}}>{raggedrightarraybackslash}p{#2}}
  8. begin{document}
  9.  
  10. {renewcommandarraystretch{1.1}
  11. begin{tabular}{|C{0pt}{100pt}{0pt}|C{0pt}{200pt}{0pt}|}
  12. hline
  13. multicolumn{1}{|C{0pt}{100pt}{0pt}|}{Modulační signál} & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \
  14. hline
  15. moduluje amplitudu nosného signálu & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \
  16. hline
  17. moduluje frekvenci nosného signálu & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \
  18. hline
  19. end{tabular}}\[1cm]
  20.  
  21. {tabulinesep=1.2mm
  22. begin{tabu}{|c|c|}
  23. hline
  24. Modulační signál & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \hline
  25. moduluje amplitudu nosného signálu & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \hline
  26. moduluje frekvenci nosného signálu & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \hline
  27. end{tabu}}
  28.  
  29. end{document}
  30.  
  31. tikzset{my pic adjust/.style={%%
  32. baseline=(current bounding box.center),
  33. execute at end picture={path (current bounding box.north) -- ++ (0,4pt);
  34. path (current bounding box.south) -- ++ (0,-4pt);
  35. }%
  36. }}
  37.  
  38. tikzset{my pic adjust/.style={%%
  39. baseline=(my center),
  40. execute at end picture={path (current bounding box.north) -- ++ (0,4pt);
  41. path (current bounding box.south) -- ++ (0,-4pt);
  42. path (current bounding box.center) -- ++ (0,#1) coordinate (my center);
  43. }%
  44. },
  45. my pic adjust/.default=0pt,
  46. }
  47.  
  48. documentclass[a4paper,fleqn,leqno]{article}
  49. usepackage{polyglossia}
  50. usepackage{tikz,tikz-3dplot,graphicx}
  51. usepackage{array,multirow,tabu}
  52. newcolumntype{C}[3]{@{hspace*{#1}}>{centeringarraybackslash}p{#2}@{hspace*{#3}}}
  53. newcolumntype{R}[2]{>{raggedleftarraybackslash}p{#1}@{hspace*{#2}}}
  54. newcolumntype{L}[2]{@{hspace*{#1}}>{raggedrightarraybackslash}p{#2}}
  55. tikzset{my pic adjust/.style={%%
  56. baseline=(my center),
  57. execute at end picture={path (current bounding box.north) -- ++ (0,4pt);
  58. path (current bounding box.south) -- ++ (0,-4pt);
  59. path (current bounding box.center) -- ++ (0,#1) coordinate (my center);
  60. }%
  61. },
  62. my pic adjust/.default=0pt,
  63. }
  64.  
  65. begin{document}
  66.  
  67. {renewcommandarraystretch{1.1}
  68. begin{tabular}{|C{0pt}{100pt}{0pt}|C{0pt}{200pt}{0pt}|}
  69. hline
  70. multicolumn{1}{|C{0pt}{100pt}{0pt}|}{Modulační signál} &
  71. tikz[my pic adjust=-2pt] draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \
  72. hline
  73. moduluje amplitudu nosného signálu & tikz[my pic adjust=4pt] draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \
  74. hline
  75. moduluje frekvenci nosného signálu & tikz[my pic adjust=4pt] draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \
  76. hline
  77. end{tabular}}\[1cm]
  78.  
  79. {tabulinesep=1.2mm
  80. begin{tabu}{|c|c|}
  81. hline
  82. Modulační signál & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \hline
  83. moduluje amplitudu nosného signálu & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \hline
  84. moduluje frekvenci nosného signálu & tikz draw[domain=-(pi/2):((7/2)*pi),smooth,variable=x,thick,scale=0.5] plot ({x},{sin(x r)}); \hline
  85. end{tabu}}
  86.  
  87. end{document}
  88.  
  89. documentclass[a4paper,fleqn,leqno]{article}
  90. usepackage{polyglossia}
  91. usepackage{tikz}
  92. usepackage{makecell, tabularx}
  93.  
  94. begin{document}
  95.  
  96. begin{center}
  97. setcellgapes{5pt}
  98. makegapedcells
  99. tikzset{line/.style={draw=red, very thick, domain=-pi/2:7*pi/2, samples=60}}
  100.  
  101. begin{tabularx}{.88linewidth}{| >{raggedright}X | l |}
  102. hline
  103. Modulačnínewline
  104. signál
  105. & tikz[baseline=(current bounding box.center)]
  106. draw [line] plot (0.5*x,{sin(x r)}); \
  107. hline
  108. moduluje amplitudu nosného signálu
  109. & tikz[baseline=(current bounding box.center)]
  110. draw[line] plot (0.5*x,{sin(x r)}); \
  111. hline
  112. moduluje frekvenci nosného signálu
  113. & tikz[baseline=(current bounding box.center)]
  114. draw[line] plot (0.5*x,{sin(x r)}); \
  115. hline
  116. end{tabularx}
  117. end{center}
  118. end{document}
Add Comment
Please, Sign In to add comment