Created
December 31, 2022 10:08
-
-
Save adulau/8a4d2c1be98631354591ee07e2b4ea50 to your computer and use it in GitHub Desktop.
Cornell notes template in LaTeX based on https://tex.stackexchange.com/questions/70570/cornell-notes-a-lyx-or-latex-solution-needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{article} | |
\pagestyle{plain} | |
\usepackage{calc} | |
\usepackage[top=0.25in,bottom=0.75in,left=0.5in,right=0.5in]{geometry} | |
\usepackage{tikz} | |
\newlength{\wholeboxwd} | |
\setlength{\wholeboxwd}{0.99\textwidth} | |
\newlength{\wholeboxht} | |
\setlength{\wholeboxht}{0.95\textheight} | |
% | |
\newlength{\cuewd} | |
\setlength{\cuewd}{0.3\wholeboxwd} | |
\newlength{\summht} | |
\setlength{\summht}{0.2\wholeboxht} | |
\newlength{\cgridht} | |
\setlength{\cgridht}{\wholeboxht-\summht} | |
\newlength{\cgridwd} | |
\setlength{\cgridwd}{\wholeboxwd-\cuewd} | |
\newlength{\xorig} | |
\newlength{\yorig} | |
\setlength{\xorig}{0cm} | |
\setlength{\yorig}{0cm} | |
\begin{document} | |
\begin{center} | |
\begin{tikzpicture} | |
\draw[step=.5cm,gray!80,thin] (\cuewd,\summht) grid (\wholeboxwd,\wholeboxht); | |
%% Optional: | |
%\draw[step=.25cm,gray!30,thin] (\cuewd,\summht) grid (\wholeboxwd,\wholeboxht); | |
% Summary, top: | |
\draw [line width=.2pt] (\xorig,\summht) -- (\wholeboxwd,\summht); | |
% Grid, left: | |
\draw [line width=.2pt] (\cuewd,\summht) -- (\cuewd,\wholeboxht); | |
% Draw the big box: | |
\draw (\xorig,\yorig) rectangle (\wholeboxwd,\wholeboxht); | |
\node[anchor=west] at (0.25,\wholeboxht-1em) {\textbf{Questions}}; | |
\node[anchor=west] at (0.25,\summht-1em){\textbf{Summary}}; | |
\node[anchor=west,fill=white] at (\cuewd+1em,\wholeboxht-1em) {\textbf{\ Notes\ }}; | |
\node[anchor=west] at (0.25,\wholeboxht+2em){% | |
\parbox[t]{\cuewd}{Subject:\par\smallskip Date:}% | |
}; | |
\end{tikzpicture} | |
\end{center} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment