SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

2021
Quando eu dou de comer aos pobres
Me chamam de santo
Quando eu pergunto por que eles são pobres
Me chamam de comunista
Dom Helder Câmera

Planar Curves with TikZ

Vector: \[ \underline{a}= \begin{pmatrix} a_x\\a_y \end{pmatrix} \]
  1. Hat Vector: \[ \underline{\widehat{a}}= \begin{pmatrix} -a_y\\a_x \end{pmatrix} \]
  2. $\LaTeX/TikZ$:
    TiKZ Listing: Hat.tikz.tex. PDF   PNG   SVG   ZIP*  
    %%%%\documentclass{standalone}
    
    \input{../../../PreAmble.tikz}
    
    %%%%\begin{document}
    %%%%\begin{tikzpicture}
    
    \tikzmath{\ax=4;}
    \tikzmath{\ay=2;}
    
    \coordinate (O) at (0,0);
    \coordinate (a) at (\ax,\ay);
    \coordinate (at) at (-\ay,\ax);
    
    \draw[-latex] (O) -- (a);
    \draw[-latex] (O) -- (at);
    
    \node at ($1.1*(a)$)  {$\underline{a}$};
    \node at ($1.1*(at)$) {$\underline{\widehat{a}}$};
    
    \tkzMarkRightAngle(a,O,at);
    \tkzMarkAngle[size=2,arrows=-latex](a,O,at);
    \tkzLabelAngle[pos=2.3](a,O,at) {$+$};
    
    %%%%\end{tikzpicture}
    %%%%\end{document}
    
    Showing: /usr/local/Slides/2_Palestras/2021/02_Curves/../../../PreAmble.tikz.tex:
    TiKZ Listing: /usr/local/Slides/2_Palestras/2021/02_Curves/../../../PreAmble.tikz.tex. PDF   PNG   SVG   ZIP*  
    \usepackage{xcolor}
    \usepackage{graphicx}
    \usepackage{ifthen}
    \usepackage{xifthen}
    
    %\usepackage{amssymb,amsmath,amsthm}
    
    \usepackage{pgfplots}
    
    
    \usepackage{pgf,pgffor}
    
    
    \usepackage{tikz}
    \usepackage{tkz-euclide}
    %%!
    %%! For older versions of package tkz-euclide
    %%! you may need uncomment the following line:
    %   \usetkzobj{all}
    %%!
    
    \usetikzlibrary
        {
          shapes.geometric,
          arrows,
          calc,
          intersections,
          arrows.meta,
          decorations.markings,
          positioning,
          math,
          angles,
          quotes,
          patterns,3d,
          backgrounds,
          fillbetween
        }
    
    \makeatletter
    \newcommand{\gettikzxy}[3]{%
      \tikz@scan@one@point\pgfutil@firstofone#1\relax
      \edef#2{\the\pgf@x}%
      \edef#3{\the\pgf@y}%
      \tikzmath{\#2=#2/28.3465;};
      \tikzmath{\#3=#3/28.3465;};
    }
    \makeatother
    \pgfplotsset{compat=1.14}
    
Messages:
0 secs.