Life and Musings of Ed

Problem Solving LaTeX Template

In My LaTeX Experience on 6 September 09 at 6:58 pm

Ok, so here is one more template in LaTeX which is useful for standard math and science problem solving homework.  I have just cleaned it up a little to make it a bit more generic and to highlight the problem solving strategy.  The next LaTeX blog will explore new territory — getting away from the “homework template” examples.  Of course, if someone makes a comment and has something specific they would like to see, I’ll do my novice best to post something to address the need.

HwkTemplate2 The code used to produce this .pdf file is found below.

% Physics Homework Template using MEMOIR class
\documentclass[openany]{memoir}

%preamble
\usepackage{calc}
\usepackage{color}
\usepackage{graphicx}

%define title and other basic document info
%the title should reflect the style and give a foretaste of the document
%work on making a stylized title page — or title on a page as in ARTICLE class
\title{\huge \textbf{Ch 1 Problems}}
\author{J Edward Ladenburger}
\date{25 Aug 09}                    % could use \today  , but I like this date format better
%\publisher{}                            %one day I’ll need this  😉
%\thanks{Special thanks to God for the ability to work}        %produces a footnote to the title

\definecolor{shadecolor}{gray}{0.9}
\definecolor{ared}{rgb}{.647,.129,.149}
\renewcommand\colorchapnum{\color{ared}}
\renewcommand\colorchaptitle{\color{ared}}
\chapterstyle{bringhurst}
%one of a number of chapter styles available…this one doesn’t use the ared color
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
%title
\thispagestyle{empty}
%\begin{minipage}{300pt}
\begin{center}{
\begin{shaded}
\hrule \vspace{30pt}
\hspace{10pt} \thetitle  \vspace{30pt}
\newline \theauthor \hspace{30pt} \thedate  \vspace{26pt}
\hrule
\end{shaded}
}
\end{center}
%\end{minipage}
\clearpage

%\frontmatter    %use if needed –page numbers as lower case roman numerals i, ii,…

%\mainmatter
%%other declarations
\pagestyle{Ruled}                    %one of a number of possible page styles
\midsloppy                             %to minimize overfull lines

%Layout the page
%%Try this manual golden ratio layout or…           default seems better for now
\settypeblocksize{*}{\lxvchars}{1.618}
\setulmargins{50pt}{*}{*}
\setlrmargins{*}{*}{1.618}
\setheaderspaces{*}{*}{1.618}
%\semiisopage[12]                       %try this predefined layout — others predefined ones are options in MEMOIR…
%this one looked best but did not work

\checkandfixthelayout          %make the layout happen and provide details in log during build

\chapter{Chapter 1 Problems}

\section*{Problem 3}
\subsection{Given}
Clearly describe the problem, writing down all information so you do not have to look at the text again. Draw sketches or tables to organize information when possible. Define variables.
\subsection{Find}
Clearly state the problem.  What are you to answer?
\subsection{Plan}
Describe your approach here… Collect relevant theorems and laws and formulas
\subsection{Calculations}
Perform the necessary calculations and show your reasoning.

\subsection{Solution}
\begin{minipage}{300pt}
\begin{center}{
\begin{shaded}
\hrule
\vspace{20pt}
A nicely written sentence solution goes here.
\vspace{16pt}
\hrule
\end{shaded}
}
\end{center}
\end{minipage}

\end{document}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: