New Problem Template Public Copy
Auteur
Andrew
Last Updated
il y a 10 ans
License
Creative Commons CC BY 4.0
Résumé
Problem Template
% Based off of Artturi Björk's Problem Set Answer Template found on writelatex
\documentclass[letterpaper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[letterpaper, margin=1.25in]{geometry} % To allow custom margins
%\usepackage{graphicx} % Commented out because I don't usually use it
\usepackage{fancyhdr} % Allows the fancy header shown below
\usepackage{amsfonts,amsmath,amsthm,amssymb} % AMS packages.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Delete in actual document %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{New Problem Template Public Copy}
% Delete in actual document- just to make it say that in the writelatex project page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Actual Metadata %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Problem Template} % Actual Title - overwrites the above one
\author{Author} % Author
\date{\today} % Today's date or a custom date
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Metadata Commands %
% %
% Use \Title, \Author, \Date %
% to display those values %
% %
% Capitalization Matters!! %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter % Converts the @ into a letter from special charecter
\let\Title\@title % \Title will now show the title set above
\let\Author\@author % \Author will now show the author set above
\let\Date\@date % \Date will now show the date set above
\makeatother
\pagestyle{fancy}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Creates header with problem %
% information %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\lhead{\Title}
\chead{}
\rhead{
\Author
\\
Class
\\
Section
\\
\Date
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Sets variables to various %
% lengths to fix a fancyhdr %
% problem- without the second %
% the text will overlap %
% the header. %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\headrulewidth}{0.4pt}
\setlength{\headheight}{56.2pt}
\makeatother %Just in case
\begin{document}
\noindent Problem Statement
\\
Text
\end{document}