Skip to content

Instantly share code, notes, and snippets.

@abikoushi
Created May 10, 2024 07:38
Show Gist options
  • Save abikoushi/ea55e31024241495d34bdbff9991eea9 to your computer and use it in GitHub Desktop.
Save abikoushi/ea55e31024241495d34bdbff9991eea9 to your computer and use it in GitHub Desktop.
tikz example (inner product)
\documentclass[dvipdfmx, dvipsnames]{beamer}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes, decorations.pathreplacing, backgrounds, positioning}
\begin{document}
\frame{
\begin{figure}
\begin{tabular}{ccc}
inner product of \Huge $($
\begin{tikzpicture}
\draw[thick,->,color=RoyalBlue] (0,0)--(0.71,0.71);
\draw[thick,->,color=RedOrange] (0,0)--(0.51,0.86);
\end{tikzpicture}
$)$
&
\Large $>$
&
inner product of \Huge $($
\begin{tikzpicture}
\draw[thick,->,color=RedOrange] (0,0)--(0.71,0.71);
\draw[thick,->,color=RoyalBlue] (0,0)--(0.98,0.2);
\end{tikzpicture}
$)$
\end{tabular}
\end{figure}
}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment