% Last change Tue Feb 9 11:06:17 CST 2010 end of advance material %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Tue Feb 2 07:57:39 CST 2010 add picture in example bottom %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Tue Dec 8 15:51:33 CST 2009 fixed the twImg with fonts for the subtitles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Fri Sep 18 16:09:36 CDT 2009 add figText %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Wed Feb 4 14:10:56 CST 2009 improve twImg to include sub titles % Tue Feb 3 13:54:49 CST 2009 % potto separate style file \ProvidesPackage{potto}% [2009/01/03 v0.2 (GBM) ] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load need style file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage{html} \usepackage{latexsym} \usepackage[usenames,dvipsnames]{color} \usepackage{helvet}% package for using Helvetica font \usepackage{pifont} %font for the vee and xes \usepackage{multicol} %\usepackage{html} \usepackage{hthtml} \usepackage{enumerate} \usepackage{amsmath, amsthm} \usepackage{picins} % for including picture in example \usepackage{latexsym} \usepackage{amssymb} %\usepackage{mathSymple} \usepackage{array} \usepackage[refeq, refpage, intoc]{nomencl} \usepackage{wrapfig} \usepackage{longtable} \usepackage[dvips]{graphicx} \usepackage{fancybox} %\usepackage[hang,sl,small]{caption} \usepackage[font={small,sl},labelsep=period]{caption} \usepackage{titling} \usepackage{mathcomp} \usepackage{dcolumn} \usepackage{url} \usepackage{fancyhdr} \usepackage{quotchap} \usepackage[Conny]{fncychap} \usepackage{cancel} \usepackage{afterpage} \usepackage{subfigure} \usepackage{slashbox} \usepackage{multind} \usepackage{bigint} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % seting spesific style file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%Caption commands figure caption name %\DeclareCaptionLabelFormat{numOnly}{#2} \renewcommand{\figurename}{Fig.} \DeclareCaptionLabelFormat{addchapter}{#1\nobreakspace-#2} \captionsetup{labelformat=addchapter} %\captionsetup{labelformat=numOnly} % seting the index names \makeindex{sub} \makeindex{aut} %%%%%make nomencl \makenomenclature \renewcommand{\familydefault}{phv} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % setting spesific style file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \font\k=cmitt10 \newcommand{\tableopts}{10,border=5} \def\RR{{\mathfrak R}} \def\RRR{{\mathbb R}} \def\R{{\mathcal R}} %\DeclareBoldMathCommand\bU{U} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% command to put advance material stuff for too much advance material %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\advanceMaterial}{\par \vspace{-0.8em}% \centerline{\tiny \color{RedOrange} \rm \textit{ ************** Advance material can be skipped ************** }} \par \vspace{+0.1em}} \newcommand{\advanceMaterialEnd}{\par \vspace{-0.8em}% \centerline{\tiny \color{RedOrange} \rm \textit{ ************** End Advance material ************** }} \par \vspace{-0.9em}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% command to put issue paragraph like %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\issue}[1]{% \medskip \leftline{\textbf{#1}} \smallskip } % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% celsius command %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \DeclareRobustCommand{\celsius}{% \ifmmode^\circ\mathrm{C}\else$^\circ$C\fi} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % example issues %% spesify the romen font for myExampl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%% experimental work on example %\@addtoreset {example}{chapter} \newcounter{example}[chapter] \renewcommand\theexample {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@example} % \newcounter{example}[chapter] % \newenvironment{example}{\refstepcounter{example} % \subsubsection{Example % \thechapter.\arabic{example}}\sf}{$\qed$ \\} %%%%%%%%%%%%%%%%%%%%% end experimental stuff on example \newtheoremstyle{myExampl}{\baselineskip}{\baselineskip}{\itshape} {}{\sffamily}{:}{\newline}{} \theoremstyle{myExampl} \newtheorem{examl}{Example}[chapter] %% contribution by steven from artsolvingproblems.com %%% \interfootnotelinepenalty=10000 \newcommand{\latexsolution}[1]{ \par \parindent 0pt \normalfont \underline{\scshape Solution}\\[3mm] \parindent 25pt {#1}\par \centerline{\rule{2in}{2pt} \tiny End Solution \rule{2in}{2pt}} } \newcommand{\HTMLsolution}[1]{\parindent 0pt% \underline{\textbf{Solution}}\par \parindent 0pt \HTMLcode{LEFT}{ \HTMLcode[\tableopts]{TABLE} {\HTMLcode{TR} {\HTMLcode{TD} {#1}}}} \bigskip} \newcommand{\solutionT}[1] { \latex{\latexsolution{\ignorespaces #1 \ignorespacesafterend}} \html{\HTMLsolution { #1 }} } \newcommand{\htmlEx}[2]{ \underline{\textbf{Example}}\par \parindent 0pt \HTMLcode{LEFT}{ \HTMLcode[\tableopts]{TABLE} {\HTMLcode{TR} {\HTMLcode{TD} {#1}}}} \bigskip} \newcommand{\latexEx}[2]{ \begin{examl} \label{#1} #2 \end{examl} } \newcommand{\TEx}[2]{ \latex{\latexEx{#1}{#2}} \html{\htmlEx{#1}{#2} } } \newcounter{exEq}[examl] \renewcommand{\theexEq}{\arabic{chapter}.\Roman{examl}.\alph{exEq}} \renewcommand{\proofname}{Solution} \newenvironment{exEq} {\stepcounter{exEq}\equation\aligned} {\endaligned \tag{\theexEq}\endequation} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% spesify the index command for latex and html in the same time %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\INDX}[2]{ \latex{\index{$1}{$2}} \html{\index{#2}} } \newcommand{\nomcl}[2]{ \parindent 0pt \parbox{0.7in}{#1}{#2} \\ \nomenclature{#1}{#2} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% important eqaution and usefull equation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\importantEq}[2]{ {\begin{align} \setlength{\fboxrule}{1.5pt} \fcolorbox{blue}{yellow} {$\displaystyle #2 $} \label{#1} \end{align}} } \newcommand{\usefulEq}[4]{ \setlength{\unitlength}{1cm} {\begin{align} \begin{picture}(#2,#3) \put(0,0){\color{Mahogany}\dashbox{0.06}(#2,#3){\normalcolor \colorbox{Apricot}{$\displaystyle #4 $}}} \end{picture} \label{#1} \end{align}} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% figure issues %%from http://members.tripod.com/charlesclayton/index.htm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\img}[6]{ \refstepcounter{figure} \begin{makeimage} \end{makeimage} \begin{figure}[h,t,b] \begin{center} \latex{\includegraphics[ width=#3\textwidth, clip]{#1.eps}} \html{%\htmlimage{scale = 1.8, thumbnail=1.5} \htmladdimg[ALT="#2"]{#1.jpeg}} \end{center} \label{#4} \addtocounter{figure}{-1} \caption[#5]{#6} \end{figure} } %% \newcommand{\twImg}[9]{ \refstepcounter{figure} \begin{makeimage} \end{makeimage} \begin{figure}[h,t,b] \begin{center} \centerline{ \hbox{\parindent 0pt \hspace{0.10\textwidth plus 2in minus 3in} \parbox{#4\textwidth}{ \begin{center} {\includegraphics[ width=#4\textwidth, clip]{#1.eps}}\\[10pt] Fig a. \textsl{\scriptsize #6} \end{center} } \hspace{0.10\textwidth plus 2in minus 3in} \parbox{#4\textwidth}{ \begin{center} {\includegraphics[ width=#4\textwidth, clip]{#2.eps}}\\[10pt] Fig b. \textsl{\scriptsize #7} \end{center} } \hspace{0.10\textwidth plus 2in minus 3in} } } \html{%\htmlimage{scale = 1.8, thumbnail=1.5} \htmladdimg[ALT="#3"]{#1.jpeg} \htmladdimg[ALT="#3"]{#2.jpeg} } \end{center} \label{#5} \addtocounter{figure}{-1} \vspace{-22pt} %\centerline{\thefigure {#9}} \caption[#8]{#9} \end{figure} } %% \newcommand{\twoImg}[7]{ \refstepcounter{figure} \begin{figure}[h,t,b] \begin{center} \hspace{0.25\textwidth plus 2in minus 3in} \latex{\includegraphics[ width=#4\textwidth, clip]{#1.eps}} \hspace{0.25\textwidth plus 2in minus 3in} \latex{\includegraphics[ width=#4\textwidth, clip]{#2.eps}} \hspace{0.25\textwidth plus 2in minus 3in} \html{%\htmlimage{scale = 1.8, thumbnail=1.5} \htmladdimg[ALT="#3"]{#1.jpeg} \htmladdimg[ALT="#3"]{#2.jpeg} } \end{center} \label{#5} \addtocounter{figure}{-1} \caption[#6]{#7} \end{figure} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\twoFig}[9]{ % \refstepcounter{figure} \begin{figure}[htp] \hspace{0.1\textwidth plus 1in minus 3in} \subfigure[#1] {\label{#2}% \includegraphics[width=.35\textwidth] {#3}} \hspace{0.1\textwidth plus 1in minus 3in} \subfigure[#4] {\label{#5}% \includegraphics[width=.35\textwidth]% {#6}} \hspace{0.1\textwidth plus 1in minus 3in}\\ \caption[#7] {#8} \label{#9} \end{figure} } %% \newlength{\wrapBox} \newcommand{\wrapImgJop}[9]{ \refstepcounter{figure} \begin{makeimage} \end{makeimage} \latex{ \setlength{\wrapBox}{#3\textwidth} \addtolength{\wrapBox}{-.05\wrapBox} \begin{wrapfigure}[#7]{r}[+4pt]{#3\textwidth} \parindent 0pt $\;$\par \vspace{#8} } \html{ \begin{figure}[h,t,b] } \label{#4} \begin{center} \latex{\includegraphics[width=#9\wrapBox, clip]{#1.eps}} \html{%\htmlimage{scale = 1.8, thumbnail=1.5} \htmladdimg[ALT="#2"]{#1.jpg}} \end{center} \addtocounter{figure}{-1} \vspace{-4pt} \caption[#5]{#6} \latex{\end{wrapfigure}} \html{% \end{figure} } } %% \newcommand{\wrapImg}[7]{% \wrapImgJop {#1} {#2} {#3} {#4} {#5} {#6} {#7} {} {1.0} } %% \newcommand{\wrapImgExtraSpace}[8]{% \wrapImgJop {#1} {#2} {#3} {#4} {#5} {} {#6} {#7} {#8} } \newcommand{\wrapImgES}[9]{% \wrapImgJop {#1} {#2} {#3} {#4} {#5} {#6} {#7} {#8} {#9} } %% \newcommand{\boxedimg}[2]{ \begin{makeimage} \end{makeimage} \centering \latex{\fbox{\includegraphics{ #1 }}} \html{\htmladdimg[ALT="#2" BORDER="1"]{ #1 }}} %% \newcommand{\scaledimg}[3]{ \begin{makeimage} \end{makeimage} \centering \latex{\includegraphics[scale=#3]{ #1 }} \html{\htmladdimg[ALT="#2" WIDTH="5cm"]{ #1 }}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% color box and text %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[usenames,dvipsnames]{color} \usepackage{framed} \definecolor{shadecolor}{rgb}{.8,0.95,0.35} \definecolor{fColor}{rgb}{.03,0.95,0.35} \newlength{\boxwidth} \newsavebox{\boxcontainer} \newcommand\cBox[1]{% \setlength{\boxwidth}{\textwidth} \addtolength{\boxwidth}{-20\fboxsep} \addtolength{\boxwidth}{-2\fboxrule} \begin{center}% %\fcolorbox{black}{shadecolor}{% \fcolorbox{red}{shadecolor}{% \begin{minipage}[t]{\boxwidth}% \color{red} #1% \end{minipage}}% \end{center}} \newcommand\csBox[2]{% \setlength{\boxwidth}{#1} \addtolength{\boxwidth}{-20\fboxsep} \addtolength{\boxwidth}{-2\fboxrule} \begin{center}% %\fcolorbox{black}{shadecolor}{% \fcolorbox{red}{shadecolor}{% \begin{minipage}[t]{\boxwidth}% \begin{center} \color{NavyBlue} #2% \end{center} \end{minipage}}% \end{center}} %\setcounter{secnumdepth}{-1} % %\captionsetup{labelformat=addchapter} %% %% % %%%%%%work in mm so can use integers %%%%%% calculate width of text %%%%%\setlength{\unitlength}{1mm} %%%%%\settowidth{\twidth}{text here} %%%%% %%%%%% convert pt to mm and round to integer by putting in a %%counter %%%%%\makeatletter %%%%%\newcounter{length} %%%%%\expandafter\c@length\number\twidth %%%%%\divide\c@length by 65536 %%%%%\multiply\c@length by 2540 %%%%%\divide\c@length by 7227 %%%%%\makeatother %%%%% %%%%%% add 2mm otherwise box too tight %%%%%\addtocounter{length}{2} %%%%%\begin{picture}(20,20) %%%%% %%\put(0,0){\color{red}\dashbox{0.5}(\thelength,5){\normalcolor %%%%%text here}} %%%%%\end{picture} % %\fontsize{12}{14}\usefont{OT1}{cmcsc}{m}{n}\selectfont %\usepackage[breaklines]{listings} % for the compture program %\usepackage{unitsdef} % for celsius and other units %to make nice title page % hyphenation list \hyphenation{per-pen-di-cu-lar} %\DeclareMathSizes{14}{12}{10}{8} \newcommand{\referee}[1]{\textrm{#1}\par\smallskip} \newcommand{\rebuttal}[1]{\raggedright\texttt{ #1}\par\smallskip} \def\pQtwo{pQ\kern+0.02em\raise+0.65ex\hbox{\protect\scriptsize 2} } \newlength{\nomecSpace} \setlength{\nomecSpace}{0.6in} \setlength{\marginparwidth} {0.9in} \newcommand{\mnote}[1]{\marginpar{\tiny#1}} \newlength{\wherespace} \setlength{\wherespace}{2.0 cm} \newcommand{\figText}[4]{% \newlength{\figureWidth} \setlength{\figureWidth}{0.97\textwidth} \addtolength{\figureWidth}{-#3\textwidth} \parbox[b]{#3\textwidth}{ #2 } \parbox{0.025\textwidth}{$\,$} \parbox[b]{\figureWidth} {\resizebox{0.9\figureWidth}{!} {\includegraphics{#1.eps}} \begin{center} {#4} \end{center} } } \newlength{\picExLength} % box including the left space and right side \newlength{\picBoxLength} % the picture width \newlength{\picTotalSpace} % both sides space \newlength{\picLeftSpace} % only the left space \newlength{\picWithRspace} %the fig with the right side \newcommand{\picText}[8]{% %\addtolength{\picBoxLength}{0.8\picBoxLength} \setlength{\picExLength}{#3\textwidth} \setlength{\picBoxLength}{#7\picExLength} \setlength{\picTotalSpace} {\picExLength} \addtolength{\picTotalSpace}{-1.0\picBoxLength} \setlength{\picLeftSpace} {0.5\picTotalSpace} \setlength{\picWithRspace} {\picExLength} \addtolength{\picWithRspace}{-1.0\picLeftSpace} \html{#2} \pichskip{\picLeftSpace} \parpic[r]{\parbox{\picWithRspace} {\includegraphics[width=\picBoxLength]{#1.eps} % 1 figure name 5 fig width \captionof{figure}[#5]{#6} \label{#4} } } %5 caption to table 6 caption to text 4 label \vspace{-0.3\baselineskip} {\noindent #8%the text after the figure } } % copied \@chapter from book.cls and made changes %\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne % \if@mainmatter % \refstepcounter{chapter}% % \typeout{\@chapapp\space\thechapter.}% % %\addtocontents{toc}{\protect\medbreak} % \addcontentsline{toc}{chapter}% % {\protect\numberline{Chapter \thechapter:}#1}% % \else % \addcontentsline{toc}{chapter}{#1}% % \fi % \else % \addcontentsline{toc}{chapter}{#1}% % \fi % \chaptermark{#1}% % \addtocontents{lof}{\protect\addvspace{10\p@}}% % \addtocontents{lot}{\protect\addvspace{10\p@}}% % \if@twocolumn % \@topnewpage[\@makechapterhead{#2}]% % \else % \@makechapterhead{#2}% % \@afterheading % \fi} %end of file