From 5d12df46c40b6cfdfd725367cf4593f03b525b77 Mon Sep 17 00:00:00 2001 From: Rishi Advani Date: Wed, 1 May 2024 00:08:47 -0500 Subject: [PATCH] Add `\sidenote` command --- hw_template.pdf | Bin 77331 -> 77331 bytes hw_template.tex | 9 ++++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw_template.pdf b/hw_template.pdf index bb2135eda1d328692e79323490f90f4b3351b348..4e09858f52033c3655641c8ccbd17c59cf692820 100644 GIT binary patch delta 138 zcmbPyhh_2|mWC~iq8gm028ISeU~D{HPJ>Yj!QJkt!C1^1Z)xaaZs6iSF9@;b?4X;$rA*Vy9q3P)V$UogG(kNn%k+MNw)Rm$|8>u?d%|s;j>n7XU33 BAx{7R delta 138 zcmbPyhh_2|mWC~iq8gkg#s)^l28JdU)8#Z6r4Zchjv9=`tno%}M#e5quC7LIhOTbL z&Tf`&mIg*9CT2#KhOUl=E>3m|HUyQ#D%ja^6_+Fyl~fd^rg52@S{j>hsj9mAyKw;k DRMR2V diff --git a/hw_template.tex b/hw_template.tex index 745126f..02837c6 100644 --- a/hw_template.tex +++ b/hw_template.tex @@ -41,11 +41,14 @@ \usepackage[T1]{fontenc} % allows LaTeX to output non-ASCII characters better; load after fonts if possible \usepackage[english]{babel} % sets language to American English -\AddBabelHook{frspacing}{afterextras}{\frenchspacing} % enable single sentence spacing +\AddBabelHook{frspacing}{afterextras}{\frenchspacing} % enables single sentence spacing %\usepackage{csquotes} % for formal quotations -%\usepackage{parskip} % enables alternate paragraph layout \usepackage[hmargin=1.2in, marginparwidth=1in, marginparsep=0.1in, vmargin=1in, headheight=0.6in, headsep=0.3in, footskip=0.5in, heightrounded]{geometry} % useful for setting page dimensions and layout +%\usepackage{parskip} % enables alternate paragraph layout +\usepackage{ragged2e} % adds improved flush/ragged alignment commands +\newcommand{\sidenote}[1]{\marginpar[\RaggedLeft\footnotesize #1]{\RaggedRight\footnotesize #1}} % use for sidenotes + \usepackage{ftcap} % fixes table–caption spacing in `article` class \usepackage[tracking]{microtype} % improves typographic details (e.g., kerning) \usepackage{fnpct} % adjusts kerning of footnote marks (superscripts) before commas or periods @@ -80,7 +83,7 @@ %\mathchardef\mhyphen="2D % hyphen for math mode (credit to Gernot Salzer) \renewcommand*{\emptyset}{\varnothing} % prettier empty set symbol -\ifLM\newcommand*{\transp}{\mathsf{T}}\fi +\ifLM\newcommand*{\transp}{\mathsf{T}}\fi % use for matrix transpose %\usepackage{bm} % use `\bm` for bold math symbols