Packages are a blessing and a curse. You need one for font encoding, one for input encoding. One for tables (array), one for the nice rules (booktabs), including
specialrule
, once for this and one for that.
Or you copy the bits and pieces from the package files, which is quite a bad idea. You would have to check licence issues and can't keep track of updates.
The standard rule width for arrayrules is 0.4pt. You can find that out using
\showthe\arrayrulewidth
, the result will be written into the log file. Compiling interactively, LaTeX will halt, you can check and continue by pressing enter. Texworks runs in interactive mode by default.
Concerning the lines in the table, you have given only one field. LaTeX now thinks, that this line of the table is complete and does not bother with the stuff that is not there. Simply fill up every line with the needed number of ampersands.
Please notice in the code below the
\noindent
. Can you figure out what it does?
Code: Select all
\documentclass[12pt,letterpaper]{article}
\usepackage{array}
\usepackage{booktabs}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash\hspace{0pt}}p{#1}}
\newcommand{\myrule}{\specialrule{0.4pt}{0em}{0em}}
\title{What is a ``Solution" to a System of Equations?}
\date{}
\author{\LaTeX\ Learner}
\begin{document}
\maketitle
\noindent \textbf{The System}\\
\vspace{5pt}
\noindent Equation 1: \(5x+3y=9\)\\
\vspace{5pt}
\noindent Equation 2: \(-4y+10=x+15\)\\
\showthe\arrayrulewidth
\vspace{5pt}
\noindent%<-Notice this?
\begin{tabular}{|L{4cm}|*3{L{2.5cm}|}}
\myrule
Possible Solution & Solution to Equation 1? & Solution to Equation 2? & Solution to The System? \\
\myrule
\(x=2, y=5\)\\
\myrule
\(x=1, y=2\) & & & \\
\myrule
\(x=3, y=-2\)\\
\myrule
\((-2,3)\)\\
\myrule
\((-5,0)\) & & & \\
\myrule
\end{tabular}
\end{document}
Edit: Oh, you used
\noindent
yourself. Btw, all that spaces of 5pt ... I think defining a macro
\answerspacing
or something similar would be a good idea. As mentioned before, you would have the ability to change the spacing globally.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.