--- loncom/xml/physnet.sty	2003/05/27 14:41:18	1.16
+++ loncom/xml/physnet.sty	2003/05/29 14:19:52	1.18
@@ -38,7 +38,7 @@
           <m>\renewcommand{\bincoeff}[2]{\begin{array}{c}\left(\begin{array}{c}#1\\#2\end{array}\right)\end{array}}</m>
       </web>
       <tex>
-           \documentclass[letterpaper,twoside]{article}
+           \documentclass{article}
            \usepackage{fancyhdr}
            \usepackage[dvips]{graphicx}
            \usepackage{latexsym}
@@ -46,14 +46,6 @@
            \usepackage{ifthen}
            \usepackage{calc}
            \usepackage{listings}
-           \setlength{\oddsidemargin}{-40pt}
-           \setlength{\evensidemargin}{-60pt}
-           \setlength{\topmargin}{200pt}
-           \setlength{\textwidth}{4.4in}
-           \setlength{\textheight}{6.8in}
-           \setlength{\parindent}{20pt}
-           \setlength{\marginparwidth}{90pt}
-           \setlength{\textfloatsep}{8pt plus 2.0pt minus 4.0pt}
            \setcounter{topnumber}{1} 
            \clubpenalty 10000
            \pagestyle{fancy}
@@ -101,7 +93,7 @@
            \newcommand{\keephidden}[1]{}
            \newcommand{\bincoeff}[2]{\begin{array}{c}\left(\begin{array}{c}#1\\#2\end{array}\right)\end{array}}
            \makeatletter
-	   \newcommand{\startsection}[6]{\@startsection{#1}{#2}{0pt}{#3}{#4}{#5}*{#6}{}}
+	   \newcommand{\startsection}[6]{\vskip 1 mm \@startsection{#1}{#2}{0pt}{#3}{#4}{#5}*{#6}{}}
 	   \newcommand{\pcap}[3]{\startsection{pcap}{4}{0pt}{0pt}{\bf }{#1#2. #3.\hspace*{1pc}\write\tcfile{\protect\tcpc{#2. #3}{\the\value{relpage}}}}}
 	   \newcommand{\spcap}[2]{\mathversion{bold}\startsection{scap}{3}{12pt}{1pt}{\large\bf }{\hspace*{\fill}\ifthenelse{\equal{#1}{}}{\uppercase{#2}\write\tcfile{\protect\tcsc{\uppercase{#2}}{\the\value{relpage}}}}{#1. \uppercase{#2}\write\tcfile{\protect\tcsc{\uppercase{#1. #2}}{\the\value{relpage}}}}\hspace*{\fill}}\mathversion{normal}}
            \newcommand{\scap}[2]{\mathversion{bold}\startsection{scap}{3}{12pt}{1pt}{\large\bf }{\hspace*{\fill}\ifthenelse{\equal{#1}{}}{\uppercase{#2}\write\tcfile{\protect\tcsc{\uppercase{#2}}{}}}{#1. \uppercase{#2}\write\tcfile{\protect\tcsc{\uppercase{#1. #2}}{}}}\hspace*{\fill}}\mathversion{normal}}
@@ -153,7 +145,8 @@
    <meta></meta>
    <render>
       <web></web>
-      <tex>\setcounter{bookpage}{\value{page}} 
+      <tex>\setcounter{bookpage}{\value{page}}
+           \setlength{\headwidth}{\textwidth} 
          \lhead{\textit{ID Sheet: MISN-0-$module}}
          \begin{IdItems}</tex>
   </render>
@@ -164,7 +157,7 @@
    <meta></meta>
    <render>
       <web></web>
-      <tex>\end{IdItems}\newpage </tex>
+      <tex>\end{IdItems} </tex>
   </render>
 </definetag>
 
@@ -641,6 +634,7 @@
    <render>
       <web></web>
       <tex>\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
           \lhead{\textit{MISN-0-$module}}
           \newwrite\tcfile
           \openout\tcfile=m$module-tc.tex </tex>
@@ -778,7 +772,8 @@
 <definetag name = "TuSuppl" parms="module,letter">
    <meta><output><tutorial>$letter</tutorial></output><render>
       <web><center><h1>TUTORIAL FOR $letter</h1></center></web>
-      <tex>\setcounter{bookpage}{\value{page}} 
+      <tex>\setcounter{bookpage}{\value{page}}
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}     
            \rhead{$letter-tu-\doort}
            \chead{Tutorial Supplement}</tex>
@@ -853,7 +848,7 @@
    <meta></meta>
    <render>
       <web><br /><br /></web>
-      <tex>\\</tex>
+      <tex>\vskip 0 mm \noindent </tex>
    </render>
 </definetag>
 
@@ -944,6 +939,7 @@
    <render>
       <web><center><h1>PRACTICE PROBLEMS</h1></center></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth}  
            \lhead{\textit{MISN-0-$module}}
            \rhead{pp-\doort}
            \chead{Additional Problems Supplement}
@@ -1002,6 +998,7 @@
    <render>
       <web><center><h1>SUGGESTIONS</h1></center></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{su-\doort}
            \chead{Suggestions Supplement}
@@ -1042,6 +1039,7 @@
    <render>
       <web><center><h1> ANSWERS TO PROBLEMS </h1></center></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+            \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{an-\doort}
            \chead{Answerss Supplement}
@@ -1064,6 +1062,7 @@
    <render>
       <web><center><h1> MODEL EXAM </h1></center></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+            \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{ME-\doort}
            \chead{Model Exam}
@@ -1691,6 +1690,7 @@
    <render>
       <web></web>
       <tex>\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}     
            \rhead{$number-tu-\doort}
            \chead{Tutorial Supplement}</tex>
@@ -1711,7 +1711,8 @@
    <meta></meta>
    <render>
       <web><center><h1> PRACTICE PROBLEMS </web>
-      <tex>\setcounter{bookpage}{\value{page}} 
+      <tex>\setcounter{bookpage}{\value{page}}
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{pp-\doort}
            \chead{Additional Problems Supplement}
@@ -1830,6 +1831,7 @@
    <render>
       <web><center><h1> SUGGESTIONS </web>
       <tex>\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{su-\doort}
            \chead{Suggestions Supplement}
@@ -1981,7 +1983,8 @@
    <meta></meta>
    <render>
       <web><center><h1> ANSWERS TO PROBLEMS </h1></center></web>
-      <tex>\setcounter{bookpage}{\value{page}} 
+      <tex>\setcounter{bookpage}{\value{page}}
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{an-\doort}
            \chead{Answerss Supplement}
@@ -2022,6 +2025,7 @@
    <render>
       <web><center> <h1> MODEL EXAM </h1> </center></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{ME-\doort}
            \chead{Model Exam}
@@ -2240,6 +2244,7 @@
    <render>
       <web></web>
       <tex>\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{\doort} 
            \newwrite\tcfile
@@ -2297,7 +2302,7 @@
    <meta></meta>
    <render>
       <web><br /><br /><i><font color="#CC6633"></web>
-      <tex>{\hspace*{-\the\parindent}\noindent           
+      <tex>{\vskip 0 mm \hspace*{-\the\parindent}\noindent           
            \begin{picture}(4,4)
            \thicklines
            \put(3,3){\vector(1,0){0}}
@@ -3352,6 +3357,7 @@
    <render>
       <web><center><h1> <font color="#009900"> PROBLEM SUPPLEMENT </web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{PS-\doort}
            \chead{Problems Supplement}
@@ -3374,6 +3380,7 @@
    <render>
       <web><center><h1> <font color="#009900"> SPECIAL ASSISTANCE SUPPLEMENT </font></h1></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{AS-\doort}
            \chead{Special Assistance Supplement}
@@ -3659,11 +3666,11 @@
            \begin{minipage}[b]{\linewidth}
            \noindent
            \graphicspath{{/home/httpd/html/res/physnet/physnet/$module/}}
-           \fbox{\includegraphics{$figure1.eps}}
+           \fbox{\scalebox{0.9}{\includegraphics{$figure1.eps}}}
            \settowidth{\figwidth}{\fbox{\includegraphics{$figure1.eps}}} 
-           \fbox{\includegraphics{$figure2.eps}}
+           \fbox{\scalebox{0.9}{\includegraphics{$figure2.eps}}}
            \settowidth{\numberwidth}{\fbox{\includegraphics{$figure2.eps}}} 
-           \fbox{\includegraphics{$figure3.eps}}\\
+           \fbox{\scalebox{0.9}{\includegraphics{$figure3.eps}}}\\
            \parbox[b]{\figwidth}{</tex>
    </render>
 </definetag>
@@ -3738,6 +3745,7 @@
    <render>
       <web><center><h1>LOCAL GUIDE</h1></center></web>
       <tex>\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
            \lhead{\textit{MISN-0-$module}}
            \rhead{LG-\doort}
            \chead{Local Guide}
@@ -6466,7 +6474,7 @@
 <definetag name = "maintitle">
    <meta></meta>
    <render>
-      <web></center><font text="gray"><i></web>
+      <web><font text="gray"><i></web>
       <tex>\keephidden{</tex>
    </render>
 </definetag>
@@ -6493,7 +6501,7 @@
 <definetag name = "/mainauthor">
    <meta></meta>
    <render>
-      <web></i><br /><br /></font><center></web>
+      <web></i><br /><br /></font></web>
       <tex>}</tex>
    </render>
 </definetag>
@@ -6827,7 +6835,7 @@
    <meta></meta>
    <render>
       <web></web>
-      <tex></tex>
+      <tex>\tcsc</tex>
    </render>
 </definetag>
 
@@ -6845,7 +6853,7 @@
    <meta></meta>
    <render>
       <web><tr><td></web>
-      <tex></tex>
+      <tex>{</tex>
    </render>
 </definetag>
 
@@ -6854,7 +6862,7 @@
    <meta></meta>
    <render>
       <web></td></web>
-      <tex></tex> 
+      <tex>}</tex> 
    </render>
 </definetag>
 
@@ -6899,7 +6907,7 @@
    <meta></meta>
    <render>
       <web><td><hideweboutput></web>
-      <tex></tex>
+      <tex>{</tex>
    </render>
 </definetag>
 
@@ -6908,7 +6916,7 @@
    <meta></meta>
    <render>
       <web></hideweboutput></td></tr></web>
-      <tex></tex> 
+      <tex>}</tex> 
    </render>
 </definetag>
 
@@ -7009,6 +7017,7 @@
    <render>
       <web><br /><br /><center><h1>SUGGESTIONS FOR READING</h1></center><br /><br /></web>
       <tex>\newpage\setcounter{bookpage}{\value{page}} 
+         \setlength{\headwidth}{\textwidth} 
          \lhead{\textit{MISN-0-$module}}
          \rhead{rd-\doort}
          \chead{Suggestions for Reading}
@@ -7350,6 +7359,7 @@
    <render>
       <web></web>
       <tex>\setcounter{bookpage}{\value{page}} 
+           \setlength{\headwidth}{\textwidth} 
           \lhead{\textit{MISN-0-$module}}
           \rhead{\doort}</tex>  
   </render>
@@ -7453,8 +7463,8 @@
 <definetag name = "/SubSubSect">  
    <meta></meta>
    <render>
-      <web></web>
-      <tex></tex>
+      <web><br /><br /></web>
+      <tex>\vskip 0 mm \noindent </tex>
   </render>
 </definetag>