uwezi

analoga skalor

Mar 1st, 2019
176
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ?% -*- TeX:EN -*-
  2. \PassOptionsToPackage{xetex}{graphicx}
  3. \documentclass[swedish,a4paper,10pt,twoside,onecolumn,openany,final,xetex]{memoir}
  4. \XeTeXinputencoding utf-8 %
  5. %\usepackage[latin1]{inputenc}
  6. %\usepackage{xunicode}
  7. \usepackage{fontspec}
  8. \defaultfontfeatures{Ligatures={TeX}}
  9. \usepackage[detect-all,output-decimal-marker={.},group-digits=integer,group-separator={\,}]{siunitx}
  10. \usepackage{endnotes}
  11.  
  12. \usepackage{pdfpages}
  13. \usepackage{babel}
  14. \usepackage{url}
  15. \usepackage{tikz}
  16.  
  17. \usetikzlibrary{%
  18.   arrows,%
  19.   automata,%
  20.   shapes.misc,% wg. rounded rectangle
  21.   shapes.arrows,%
  22.   shapes.symbols,%
  23.   shapes.gates.logic.US,%
  24.   backgrounds,%
  25.   calc,%
  26.   chains,%
  27.   fit,%
  28.   matrix,%
  29.   patterns,%
  30.   positioning,% wg. " of "
  31.   scopes,%
  32. %  decorations.pathmorphing,% /pgf/decoration/random steps
  33.   shadows%
  34. }
  35.  
  36. \setlrmarginsandblock{20mm}{10mm}{*}
  37. \setulmarginsandblock{15mm}{25mm}{*}
  38. \setheadfoot{\onelineskip}{5\onelineskip}
  39. \setheaderspaces{*}{2\onelineskip}{*}
  40. \setlength{\footnotesep}{\onelineskip}
  41. \checkandfixthelayout
  42. \abnormalparskip{\onelineskip}
  43. \setlength{\parindent}{0pt}
  44.  
  45. \newcommand{\pmyarray}[1]{\pgfmathparse{\myarray[#1]}\pgfmathresult}
  46. % scaletics{inner radius}{length}{count}{labels}{tic spec}{format spec}
  47. \newcommand{\scaletics}[6]{%
  48.   \def\myarray{#4}
  49.  \foreach \tic [count=\cnt,evaluate=\cnt as \c using \cnt-1,evaluate=\tic as \ang using 135-\tic*90/#3,evaluate=\ang as \tang using \ang-90] in {0, 1,..., #3}
  50.  {
  51.    \draw[#5] ($(pivot)+(\ang:#1)$) -- ++(\ang:#2) node[rotate=\tang,anchor=south] {#6\pmyarray{\c}};
  52.  }
  53. }
  54.  
  55. % scalemtics{inner radius}{length}{count}{tic spec}{format spec}
  56. \newcommand{\scalemtics}[4]{%
  57.   \foreach \tic [count=\cnt,evaluate=\cnt as \c using \cnt-1,evaluate=\tic as \ang using 135-\tic*90/#3,evaluate=\ang as \tang using \ang-90] in {0, 1,..., #3}
  58.  {
  59.    \draw[#4] ($(pivot)+(\ang:#1)$) -- ++(\ang:#2);
  60.  }
  61. }
  62.  
  63. \newcommand{\scymkfivetwo}{%
  64.     \draw [black,very thin] (-28.5,0) rectangle (28.5,57);
  65.     \draw [black,very thin] (-12,0) -- (-12,15.5) arc (152.73:27.27:13.5) -- (12,0);
  66.     \draw [black,very thin] (-18,19) circle (1);
  67.     \draw [black,very thin] (+18,19) circle (1);
  68.     \path (0,15.5) coordinate (pivot);
  69.     \path (-25,25) node [anchor=south west, inner sep=0pt] {\footnotesize\sffamily YMK-52};
  70. }
  71.  
  72. \newcommand{\sckmsixsix}{%
  73.     \draw [black,very thin] (-30.5,0) rectangle (30.5,55);
  74.     \draw [black,very thin] (-8.5,0) -- (-8.5,15) arc (0:90:3.5) arc (163.7:16.3:12.5) arc (90:180:3.5) -- (8.5,0);
  75.     \draw [black,very thin] (-12,15) circle (1);
  76.     \draw [black,very thin] (+12,15) circle (1);
  77.     \path (0,15) coordinate (pivot);
  78.     \path (-22,27) node [anchor=south west, inner sep=0pt] {\footnotesize\sffamily KM-66};
  79. }
  80.  
  81. \pagestyle{empty}
  82. \begin{document}
  83.  
  84.  \begin{tikzpicture}[x=1mm,y=1mm]
  85.    \scymkfivetwo
  86.    \scaletics{28}{4}{10}{{"0","1","2","3","4","5","6","7","8","9","10",}}{thick}{}
  87.    \scalemtics{28}{2}{100}{very thin}
  88.  \end{tikzpicture}
  89. %
  90.   \begin{tikzpicture}[x=1mm,y=1mm]
  91.    \scymkfivetwo
  92.    \scaletics{28}{4}{3}{{"0","1","2","3",}}{thick}{}
  93.    \scalemtics{28}{2}{30}{very thin}
  94.    \scalemtics{28}{4}{6}{thick}
  95.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Emission}\\[1ex]\si{\milli\ampere}};
  96.  \end{tikzpicture}
  97. %
  98.   \begin{tikzpicture}[x=1mm,y=1mm]
  99.    \scymkfivetwo
  100.    \scaletics{28}{4}{3}{{"0","0.5","1","1.5",}}{thick}{}
  101.    \scalemtics{28}{2}{15}{very thin}
  102. %    \scalemtics{28}{4}{6}{thick}
  103.     \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Emission}\\[1ex]\si{\milli\ampere}};
  104.  \end{tikzpicture}
  105.  
  106.  
  107.  \begin{tikzpicture}[x=1mm,y=1mm]
  108.    \scymkfivetwo
  109.    \scaletics{28}{4}{6}{{"0","1","2","3","4","5","6",}}{thick}{}
  110.    \scalemtics{28}{2}{24}{very thin}
  111.    \scalemtics{28}{4}{12}{thick}
  112.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Filament}\\[1ex]\si{\ampere}};
  113.  \end{tikzpicture}
  114.  
  115.  \begin{tikzpicture}[x=1mm,y=1mm]
  116.    \scymkfivetwo
  117.    \scaletics{28}{4}{12}{{"0","1","2","3","4","5","6","7","8","9","10","11","12",}}{thick}{\small}
  118.    \scalemtics{28}{2}{24}{very thin}
  119.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Hours}};
  120.  \end{tikzpicture}
  121. %
  122.   \begin{tikzpicture}[x=1mm,y=1mm]
  123.    \scymkfivetwo
  124.    \scaletics{28}{4}{12}{{"0","2","4","6","8","10","12","14","16","18","20","22","24",}}{thick}{\small}
  125.    \scalemtics{28}{2}{24}{very thin}
  126.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Hours}};
  127.  \end{tikzpicture}
  128. %
  129.   \begin{tikzpicture}[x=1mm,y=1mm]
  130.    \scymkfivetwo
  131.    \scaletics{28}{4}{6}{{"0","10","20","30","40","50","60",}}{thick}{}
  132.    \scalemtics{28}{2}{60}{very thin}
  133.    \scalemtics{28}{3}{12}{thick}
  134.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Minutes}};
  135.  \end{tikzpicture}
  136.  
  137.  
  138.  \begin{tikzpicture}[x=1mm,y=1mm]
  139.    \scymkfivetwo
  140.    \scaletics{28}{4}{12}{{"0","5","10","15","20","25","30","35","40","45","50","55","60",}}{thick}{\small}
  141.    \scalemtics{28}{2}{60}{very thin}
  142.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Minutes}};
  143.  \end{tikzpicture}
  144. %
  145.   \begin{tikzpicture}[x=1mm,y=1mm]
  146.    \scymkfivetwo
  147.    \scaletics{28}{4}{12}{{"0","5","10","15","20","25","30","35","40","45","50","55","60",}}{thick}{\small}
  148.    \scalemtics{28}{2}{60}{very thin}
  149.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Seconds}};
  150.  \end{tikzpicture}
  151. %
  152.   \begin{tikzpicture}[x=1mm,y=1mm]
  153.    \scymkfivetwo
  154.    \scaletics{28}{4}{6}{{"0","10","20","30","40","50","60",}}{thick}{}
  155.    \scalemtics{28}{2}{60}{very thin}
  156.    \scalemtics{28}{3}{12}{thick}
  157.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Seconds}};
  158.  \end{tikzpicture}
  159. \clearpage
  160.  
  161.  \begin{tikzpicture}[x=1mm,y=1mm]
  162.    \sckmsixsix
  163.    \scaletics{28}{4}{10}{{"0","1","2","3","4","5","6","7","8","9","10",}}{thick}{}
  164.    \scalemtics{28}{2}{100}{very thin}
  165.  \end{tikzpicture}
  166. %
  167.   \begin{tikzpicture}[x=1mm,y=1mm]
  168.    \sckmsixsix
  169.    \scaletics{28}{4}{3}{{"0","1","2","3",}}{thick}{}
  170.    \scalemtics{28}{2}{30}{very thin}
  171.    \scalemtics{28}{4}{6}{thick}
  172.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Emission}\\[.5ex]\si{\milli\ampere}};
  173.  \end{tikzpicture}
  174. %
  175.   \begin{tikzpicture}[x=1mm,y=1mm]
  176.    \sckmsixsix
  177.    \scaletics{28}{4}{3}{{"0","0.5","1","1.5",}}{thick}{}
  178.    \scalemtics{28}{2}{15}{very thin}
  179. %    \scalemtics{28}{4}{6}{thick}
  180.     \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Emission}\\[.5ex]\si{\milli\ampere}};
  181.  \end{tikzpicture}
  182.  
  183.  
  184.  \begin{tikzpicture}[x=1mm,y=1mm]
  185.    \sckmsixsix
  186.    \scaletics{28}{4}{6}{{"0","1","2","3","4","5","6",}}{thick}{}
  187.    \scalemtics{28}{2}{24}{very thin}
  188.    \scalemtics{28}{4}{12}{thick}
  189.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Filament}\\[.5ex]\si{\ampere}};
  190.  \end{tikzpicture}
  191.  
  192.  \begin{tikzpicture}[x=1mm,y=1mm]
  193.    \sckmsixsix
  194.    \scaletics{28}{4}{12}{{"0","1","2","3","4","5","6","7","8","9","10","11","12",}}{thick}{\small}
  195.    \scalemtics{28}{2}{24}{very thin}
  196.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Hours}};
  197.  \end{tikzpicture}
  198. %
  199.   \begin{tikzpicture}[x=1mm,y=1mm]
  200.    \sckmsixsix
  201.    \scaletics{28}{4}{12}{{"0","2","4","6","8","10","12","14","16","18","20","22","24",}}{thick}{\small}
  202.    \scalemtics{28}{2}{24}{very thin}
  203.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Hours}};
  204.  \end{tikzpicture}
  205. %
  206.   \begin{tikzpicture}[x=1mm,y=1mm]
  207.    \sckmsixsix
  208.    \scaletics{28}{4}{6}{{"0","10","20","30","40","50","60",}}{thick}{}
  209.    \scalemtics{28}{2}{60}{very thin}
  210.    \scalemtics{28}{3}{12}{thick}
  211.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Minutes}};
  212.  \end{tikzpicture}
  213.  
  214.  
  215.  \begin{tikzpicture}[x=1mm,y=1mm]
  216.    \sckmsixsix
  217.    \scaletics{28}{4}{12}{{"0","5","10","15","20","25","30","35","40","45","50","55","60",}}{thick}{\small}
  218.    \scalemtics{28}{2}{60}{very thin}
  219.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Minutes}};
  220.  \end{tikzpicture}
  221. %
  222.   \begin{tikzpicture}[x=1mm,y=1mm]
  223.    \sckmsixsix
  224.    \scaletics{28}{4}{12}{{"0","5","10","15","20","25","30","35","40","45","50","55","60",}}{thick}{\small}
  225.    \scalemtics{28}{2}{60}{very thin}
  226.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Seconds}};
  227.  \end{tikzpicture}
  228. %
  229.   \begin{tikzpicture}[x=1mm,y=1mm]
  230.    \sckmsixsix
  231.    \scaletics{28}{4}{6}{{"0","10","20","30","40","50","60",}}{thick}{}
  232.    \scalemtics{28}{2}{60}{very thin}
  233.    \scalemtics{28}{3}{12}{thick}
  234.    \path (0,34) node [anchor=center,text width=30mm,align=center] {\Large\bfseries{\sffamily Seconds}};
  235.  \end{tikzpicture}
  236. \end{document}
RAW Paste Data