Life and Musings of Ed

Archive for the ‘LaTeX’ Category

Format for LaTeX Homework II

In LaTeX, My LaTeX Experience, Uncategorized on 4 September 09 at 11:36 am

It has been really interesting to note that of all posts, the LaTeX post has gotten the most hits.  I consider myself a novice user, who loves the concept of “content focus”,  with lots of specific publishing and formatting options.  I offer a simple template for basic problem solving with this post.  A link to the  .pdf result (when compiled)  is provided here. PhysHwkTemplate2

% 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{\large \textbf{Physics Example From Knight — Friday Night Football}}
\author{J Edward Ladenburger}
\date{28 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}
\definecolor{shadecolor}{cmyk}{.3,.1,0,0}
\renewcommand\colorchapnum{\color{ared}}
\renewcommand\colorchaptitle{\color{ared}}
\chapterstyle{thatcher}
%one of a number of chapter styles available…this one {bringhurst} doesn’t use the ared color; bianchi, chappell, dash, lyhne, ntglike,pedersen thatcher,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\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…
\settypeblocksize{*}{\lxvchars}{1.618}
\setulmargins{160pt}{*}{*}
\setlrmargins{*}{*}{1.618}
\setheaderspaces{*}{*}{1.618}
%\semiisopage[12]
%try this predefined layout — other 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{Motion With Constant Acceleration}
\section{Ex. 2.14 Friday Night Football}
\subsection{Given}
Fred catches the football while standing on the goal line and he immediately starts running forward with an acceleration of $ 6 \frac{ft}{s^2} $.  At the moment that Fred catches the ball, Tommy is 20 yards away and is heading directly toward Fred with a steady speed of $ 15 \frac{ft}{s}$. Neither player deviates from a straight-ahead path.

\subsection{Find}
Find where Tommy will tackle Fred.
\subsection{Plan}
Write equations of motion for Fred and Tommy, determine \textit{when} they will be at the same location and use this time to find \textit{where} the collision will occur.  I’ll use the same coordinate system for both Fred and Tommy with zero at the goal line and the positive direction coinciding with Fred’s direction. Since the acceleration and velocity are provided with length dimensions in feet, I convert Tommy’s initial position to feet.
\subsection{Calculations}
The equation for Fred’s position:
\[ x_F = \frac{1}{2} a_F t^2 + 0 \cdot t + 0\]
The equation for Tommy’s position:
\[ x_T = 0 \cdot t^2 + v_i t + 60\]
By setting these equal, we can solve for the time at which they will be at the same position.  \\\\
\begin{eqnarray*}
\frac{1}{2} 6 t^2 &=& -15 t + 60 \\
3 t^2 +15 t -60  &=& 0 \\
t^2 + 5t – 20    &=& 0 \\
t^2 + 5t + \left(\frac{5}{2}\right)^2 &=& 20 + \left(\frac{5}{2}\right)^2 \\
\left(t + \frac{5}{2}\right)^2 &=& \frac{105}{4} \\
t &=& \frac{-5 \pm \sqrt{105}}{2} \\
\end{eqnarray*}
Using only the positive time solution, we see that the collision occurs at
\[t =     \frac{-5 + \sqrt{105}}{2} \]
or approximately at $ t \approx 2.6 s $.\\

We can substitute this value into either Fred’s or Tommy’s position equation to find out where the collision [presumably a tackle] occurs.
\[ x_T = -15 (2.6) + 60 = 20.6479 \approx 21 feet\]
or, right about the 7 yard line.\\

\subsection{Solution}
\begin{minipage}{300pt}
\begin{center}{
\begin{shaded}
\hrule
\vspace{20pt}
Tommy tackles Fred at the seven (7) yard line.
\vspace{16pt}
\hrule
\end{shaded}
}
\end{center}
\end{minipage}

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%% SAVE THIS SECTION TO COPY AND PASTE –AS NEEDED FOR ADDITIONAL PROBLEMS %%%%%%%%%%%%%%%%%%%%%%
\section{}%<problem # goes here>}
\subsection{Given}

\subsection{Find}

\subsection{Plan}

\subsection{Calculations}
\[    \]        %<math stuff here — calculations>

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

Advertisements

LaTeX generates visits

In LaTeX on 23 January 09 at 9:40 am

Hello World!

It seems that this is the standard phrase used by folks who are testing html code or simple functionality of LaTeX packages, etc.   So, it seems appropriate to this short post.  I am finding the whole “blog” experience rather interesting.  It does help to keep me motivated and provides a review tool to check my level of focus or monitor my broad and wavering interests.  I have also been surprised to find that the greatest interest, based on traffic to this blog, has been about LaTeX.  With this in mind, I’ll post more about my LaTeX experience to test the real interest level out “there”.

A caveat — I consider myself to be a complete novice and still struggle — anyone who is really proficient will likely cringe at my coding 😉   Since, I think it is a worthwhile effort and strangely satisfying…I’ll throw some examples and commentary out soon.

To all LaTeX novices — let’s have some fun.

TeX Lion

TeX Lion