--- loncom/xml/physnet.sty 2003/05/28 19:02:38 1.17 +++ loncom/xml/physnet.sty 2004/01/20 16:21:43 1.34 @@ -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} @@ -93,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}} @@ -145,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> @@ -156,7 +157,26 @@ <meta></meta> <render> <web></web> - <tex>\end{IdItems}\newpage </tex> + <tex>\end{IdItems} </tex> + </render> +</definetag> + + +<definetag name = "defContents"> + <meta></meta> + <render> + <web></web> + <tex>\newpage\setlength{\headwidth}{\textwidth} + \lhead{\textit{Contents}}\rhead{}</tex> + </render> +</definetag> + + +<definetag name = "/defContents"> + <meta></meta> + <render> + <web></web> + <tex></tex> </render> </definetag> @@ -169,12 +189,29 @@ </render> </definetag> +<definetag name = "/defIdItems"> + <meta></meta> + <render> + <web></web> + <tex>\end{IdItems} </tex> + </render> +</definetag> + + +<definetag name = "defModTitle"> + <meta><output><moduletitle></meta> + <render> + <web>Title: <b></web> + <tex>\noindent Title: \scalebox{0.9}{\textbf{\uppercase{</tex> + </render> +</definetag> + <definetag name = "/defModTitle"> <meta></moduletitle></output></meta> <render> <web></b><br /><br /></web> - <tex>}}</tex> + <tex>}}}</tex> </render> </definetag> @@ -632,10 +669,11 @@ <meta></meta> <render> <web></web> - <tex>\setcounter{bookpage}{\value{page}} + <tex>\newpage\setcounter{bookpage}{\value{page}} + \setlength{\headwidth}{\textwidth} \lhead{\textit{MISN-0-$module}} \newwrite\tcfile - \openout\tcfile=m$module-tc.tex </tex> + \openout\tcfile=m$module-tc.tex</tex> </render> </definetag> @@ -658,7 +696,7 @@ \noindent \begin{tabular}[b]{c} SECT.\\ \fbox{\Huge\textbf{$number}}\\ - \end{tabular}{\textbf{\MakeUppercase{</tex> + \end{tabular}\scalebox{0.9}{{\textbf{\MakeUppercase{</tex> </render> </definetag> @@ -667,7 +705,7 @@ <meta></title></output></meta> <render> <web></font></h1></web> - <tex>}}}\newline </tex> + <tex>}}}}\newline </tex> </render> </definetag> @@ -770,7 +808,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> @@ -845,7 +884,7 @@ <meta></meta> <render> <web><br /><br /></web> - <tex>\\</tex> + <tex>\vskip 0 mm \noindent </tex> </render> </definetag> @@ -936,6 +975,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} @@ -994,6 +1034,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} @@ -1034,6 +1075,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} @@ -1056,6 +1098,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} @@ -1683,6 +1726,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> @@ -1703,7 +1747,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} @@ -1822,6 +1867,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} @@ -1973,7 +2019,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} @@ -2014,6 +2061,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} @@ -2232,6 +2280,7 @@ <render> <web></web> <tex>\setcounter{bookpage}{\value{page}} + \setlength{\headwidth}{\textwidth} \lhead{\textit{MISN-0-$module}} \rhead{\doort} \newwrite\tcfile @@ -2289,7 +2338,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}} @@ -3216,8 +3265,8 @@ <web><br /><br /><table align=center><tr><td align=center><img src="$figure.gif" align=left border=1></img></td></tr><tr><td align=center></web> <tex>\begin{center} \vskip 1 mm \noindent \graphicspath{{/home/httpd/html/res/physnet/physnet/$module/}} - \fbox{\includegraphics{$figure.eps}} - \settowidth{\figwidth}{\fbox{\includegraphics{$figure.eps}}}\\ + \fbox{\scalebox{0.87}{\includegraphics{$figure.eps}}} + \settowidth{\figwidth}{\scalebox{0.87}{\fbox{\includegraphics{$figure.eps}}}}\\ \parbox[b]{\figwidth}{\noindent </tex> </render> </definetag> @@ -3344,6 +3393,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} @@ -3366,6 +3416,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} @@ -3730,6 +3781,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} @@ -4137,7 +4189,7 @@ <meta></meta> <render> <web></web> - <tex>\clearpage </tex> + <tex></tex> </render> </definetag> @@ -6467,7 +6519,7 @@ <definetag name = "/maintitle"> <meta></meta> <render> - <web></i><br /></web> + <web></i></font><br /></web> <tex>}</tex> </render> </definetag> @@ -6476,7 +6528,7 @@ <definetag name = "mainauthor"> <meta></meta> <render> - <web><i></web> + <web><font text="gray"><i></web> <tex>\keephidden{</tex> </render> </definetag> @@ -6485,7 +6537,7 @@ <definetag name = "/mainauthor"> <meta></meta> <render> - <web></i><br /><br /></font></web> + <web></i></font><br /><br /></web> <tex>}</tex> </render> </definetag> @@ -6815,6 +6867,24 @@ </definetag> +<definetag name = "tablecontent"> + <meta></meta> + <render> + <web><table></web> + <tex>\begin{tabular}{l}</tex> + </render> +</definetag> + + +<definetag name = "/tablecontent"> + <meta></meta> + <render> + <web></table></web> + <tex>\end{tabular}</tex> + </render> +</definetag> + + <definetag name = "tcsc"> <meta></meta> <render> @@ -6828,7 +6898,7 @@ <meta></meta> <render> <web></web> - <tex></tex> + <tex>\\</tex> </render> </definetag> @@ -6837,7 +6907,7 @@ <meta></meta> <render> <web><tr><td></web> - <tex></tex> + <tex>{</tex> </render> </definetag> @@ -6846,7 +6916,7 @@ <meta></meta> <render> <web></td></web> - <tex></tex> + <tex>}</tex> </render> </definetag> @@ -6855,7 +6925,7 @@ <meta></meta> <render> <web></web> - <tex></tex> + <tex>\hskip 5 mm </tex> </render> </definetag> @@ -6864,7 +6934,7 @@ <meta></meta> <render> <web></web> - <tex></tex> + <tex>\\</tex> </render> </definetag> @@ -6891,7 +6961,7 @@ <meta></meta> <render> <web><td><hideweboutput></web> - <tex></tex> + <tex>\keephidden{</tex> </render> </definetag> @@ -6900,7 +6970,7 @@ <meta></meta> <render> <web></hideweboutput></td></tr></web> - <tex></tex> + <tex>}</tex> </render> </definetag> @@ -6909,7 +6979,7 @@ <meta></meta> <render> <web><td><hideweboutput></web> - <tex></tex> + <tex>\keephidden{</tex> </render> </definetag> @@ -6918,7 +6988,7 @@ <meta></meta> <render> <web></hideweboutput></td></tr></web> - <tex></tex> + <tex>}</tex> </render> </definetag> @@ -7001,6 +7071,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} @@ -7166,7 +7237,7 @@ <meta></meta> <render> <web><table align=center border=1><tr><td><table align=left border=1><tr><td><a name="supl.$number">S-$number</a></td></tr></table></web> - <tex>\noindent\fbox{\begin{minipage}[t]{4.3in}\fbox{S-$number}</tex> + <tex>\noindent\fbox{\begin{minipage}[t]{\minipagewidth}\fbox{S-$number}</tex> </render> </definetag> @@ -7342,6 +7413,7 @@ <render> <web></web> <tex>\setcounter{bookpage}{\value{page}} + \setlength{\headwidth}{\textwidth} \lhead{\textit{MISN-0-$module}} \rhead{\doort}</tex> </render> @@ -7445,8 +7517,8 @@ <definetag name = "/SubSubSect"> <meta></meta> <render> - <web></web> - <tex></tex> + <web><br /><br /></web> + <tex>\vskip 0 mm \noindent </tex> </render> </definetag>