My Template (OLED)
Author
Aaron Shey
Last Updated
한 달 전
License
Other (as stated in the work)
Abstract
A basic pitch black template with color coded work, solutions, and graphs. GPL-3.0 License
\documentclass[hidelinks]{article}
\usepackage[a4paper, total={7in, 10in}]{geometry}
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usepackage[unicode]{hyperref}
\usepackage[all]{hypcap}
\usepackage{fancyhdr}
\usetikzlibrary{angles,calc, decorations.pathreplacing}
\definecolor{carminered}{rgb}{1.0, 0.0, 0.22}
\definecolor{capri}{rgb}{0.0, 0.75, 1.0}
\definecolor{brightlavender}{rgb}{0.75, 0.58, 0.89}
\title{\textbf{PHYS-130-1411 Homework 1}}
\author{Aaron Shey}
\date{August 30th, 2024}
\begin{document}
\hypersetup{bookmarksnumbered=true,}
\pagecolor{black}
\color{white}
\maketitle
\begin{Large}
\tableofcontents
\end{Large}%
\pagebreak
\section{Question 1}
Question text
{\color{SkyBlue}
Answer work
\color{Thistle}{\textbf{Answer}}
}
\begin{tikzpicture}
% coords for drawing angles
\coordinate (origin) at (0,0);
\coordinate (negx) at (-5,0);
\coordinate (posx) at (5,0);
\coordinate (negy) at (0, -5);
\coordinate (vecb) at (2.4075, -9.1945);
\coordinate (veca) at (-2.4075, 3.1945);
%axes
\draw[<->,ultra thick] (-5,0) coordinate (A) --(5,0) node[right]{$x$};
\draw[<->,ultra thick] (0,-5)--(0,5) node[above]{$y$};
%vec a
\draw[->, thick, capri] (0,0) coordinate (B) -- (-2.4075, 3.1945) coordinate (C) node[left]{\textbf{A}};
% angle for vec a
\draw pic[thick, capri, "53$^\circ$", draw, <-,angle radius=1cm,angle eccentricity=1.4] {angle = veca--origin--negx};
% opposite angle for vec a
\draw pic[thick, "127$^\circ$", draw, ->,angle radius=1cm, angle eccentricity=1.4] {angle = posx--origin--veca};
% magnitude label for vec a
\draw [thick, capri, decorate,decoration={brace,amplitude=6pt,mirror,raise=1ex}] (0,0) -- (-2.4075, 3.1945) node[midway, yshift=2em, xshift=2em]{8.0 m};
% vec b
\draw[->, thick, carminered] (0,0) coordinate (B) -- (2.4075, -9.1945) coordinate (C) node[left]{\textbf{B}};
% angle for vec b
\draw pic[thick, carminered, "14.7$^\circ$", draw, ->,angle radius=5cm, angle eccentricity=1.1] {angle = negy--origin--vecb};
% label for vec b
\draw [thick, carminered, decorate,decoration={brace,amplitude=6pt,raise=1ex}] (0,0) -- (2.4075, -9.1945) node[midway, xshift=2.5em, yshift=0.5em]{19.0 m};
%vec c
\draw[->, thick, brightlavender] (0,0) coordinate (B) -- (0, -6) coordinate (C) node[below]{\textbf{A + B}};
% label for vec c
\draw [thick, brightlavender, decorate,decoration={brace,amplitude=6pt,raise=1ex, mirror}] (0,0) -- (0, -6) node[midway, xshift=-3em]{12.0 m};
\end{tikzpicture}
\end{document}