I'm working to create an environment where I can take notes in LaTeX so it looks like notebook paper and handwriting. My code so far is as follows (I included graphics, tables, text, and headings, because I wanted to see how they looked):
\documentclass[letterpaper, 10pt]{article}
\usepackage{tikz, background, titling, setspace,titlesec,booktabs,float}
\usepackage[left=1.5in,right=.25in,top=1.125in,bottom=.125in]{geometry}
\usetikzlibrary{calc}
\backgroundsetup{%
position=current page.center,
angle=0,
scale=1,
contents={%
\begin{tikzpicture}%
[
normal lines/.style={gray, very thin},
every node/.append style={black, align=center, opacity=1}
]
\foreach \y in {0.71,1.41,...,25.56}
\draw[normal lines] (0,\y) -- (8.5in,\y);
\draw[normal lines] (1.25in,0) -- (1.25in,11in);
\node (t) [font=\LARGE, anchor=south] at ($(0,25.56)!1/2!(8.5in,25.56)$) {\thetitle};
\node (d) [font=\large, anchor=south west, xshift=1.5em] at (0,25.6) {\today};
\node (p) [font=\large, anchor=south east, xshift=-1.5em] at (8.5in,25.56) {p.~\thepage};
\end{tikzpicture}%
}}
\titleformat{\section}[display]{\normalfont\large\bfseries}{}{0em}{}
\renewcommand{\rmdefault}{augie}
\title{Notes}
\author{Heather Young}
\begin{document}
\pagestyle{empty}
\doublespacing
\section{Math}
$x = \frac {-b \pm \sqrt{b^2 - 4ac}}{2a}$ the quadratic formula
$0 = ax^2 + bx + c$ mathematics is awesome
\section{Physics}
$\gamma \to e^+ + e^-$
\section{Coding}
Ever heard of LaTeX? No? Well, it's awesome, and it's what this document is written in.
\section{Diagrams + Doodling}
\begin{tikzpicture}
\draw (0,0) rectangle (4,4);
\draw (0,0) -- (4,4);
\end{tikzpicture}
\begin{table}[H]
\begin{tabular}{|l|l|}
\toprule
X & Y \\
\midrule
0 & 1 \\
\hline
3 & 5 \\
\hline
4 & 7 \\
\bottomrule
\end{tabular}
\label{tab:my_label}
\end{table}
\end{document}
Which gives the result
There are two main problems with this:
- Not all of the text is on a line, and I'm not sure why. I tried to adjust the title format of the section such that it wouldn't throw anything off, but I don't think that helped at all.
- Instead of "4" at the top of the page, it should say "Notes" but it doesn't, and again, I'm not sure why.
Any help would be appreciated. Thanks!
Credit for the notebook code goes to cfr in the answer to this question. I am using sharelatex.com.
Edit: I tried removing the graphic and table to see if either of those was the problem, but some of the text was still not on a line.

