report-template/report.tex

85 lines
2.7 KiB
TeX

\documentclass[11pt]{awe-homework}
% Configuration
\doctitle{My Epic Homework Assignment/Report}
\name{Your Name}
\course{CS 101 Latex Fundamentals, Spring 2022}
\begin{document}
\makeheader
% Question 1
\question{1}{
Enter your question 1 description here.
}
% Answer 1
Enter your answer 1 here.
You can make a code block/environment like this:
\begin{minted}{python}
class MyClass:
def __init__(self):
self.x = 0
def main():
my_object = MyClass()
print(my_object.x)
\end{minted}
You can add inline code using \textbackslash mintinline like this: \mintinline{js}{console.log("Hello world!")}.
Try out some links too, like \href{https://google.com}{going to Google}.
Inline math works too: $\frac{1}{2} = 0.5$.
You can display inline math more clearly with \textbackslash{displaystyle}, like shown: $\displaystyle\frac{1}{2} = 0.5$.
Maybe try a math block/environment:
$$
\begin{aligned}
\int_0^1 x^2 dx = \frac{1}{3}
\end{aligned}
$$
You can also write it using \textbackslash [ (your equation here)\textbackslash ] like this:
\[ \int_0^1 x^2 dx = \frac{1}{3} \]
Feel free to change your \textcolor{red}{text color}.
Or maybe try some \textbf{bold} or \textit{italic} text.
How about an \underline{underline}?
% Question 2
\question{2}{
Enter your question 2 description here.\footnote{This is a footnote.}
}
% Answer 2
Enter your answer 2 here.
\begin{itemize}
\item Here's a list.
\item You can add more to the list with \textbackslash item.
\begin{enumerate}
\item Feel free to start a nested list too.
\item You can use enumerate for an ordered list.
\begin{enumerate}[label=(\alph*)]
\item And check out this alphabetical list!
\item I wonder what happens after Z...
\end{enumerate}
\end{enumerate}
\end{itemize}
\section*{Acknowledgements \& Links}
\begin{itemize}
\item \href{https://github.com/WorcesterSociety/HomeworkTemplate}{WorcesterSociety on GitHub for their \textbf{awe-homework} LaTeX template} as the base template with a CC0-1.0 License.
\item \href{https://www.overleaf.com/read/nghcfhgrsztp}{View the Overleaf version of this template and create your own copy to work with!}
\item \href{https://github.com/rzmk/report-template}{This GitHub repository} is where a local version of the template is hosted. Learn more details by going here.
\item \href{https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted}{This Overleaf article} lists all the supported programming languages for the minted package with syntax highlighting at the bottom of the page.
\item \href{https://www.overleaf.com/learn/latex/Inserting_Images}{Insert images in your report} by reading this article on Overleaf.
\end{itemize}
\end{document}