[LON-CAPA-cvs] cvs: loncom /xml physnet.sty

sakharuk lon-capa-cvs@mail.lon-capa.org
Fri, 30 May 2003 15:04:20 -0000


sakharuk		Fri May 30 11:04:20 2003 EDT

  Modified files:              
    /loncom/xml	physnet.sty 
  Log:
  A lot of changes to be consistent with lonxml.pm structure of the parser. They remove "stupid" warnings from lonxml.pm parser in the construction space and at the same time make the structure of physnet style file more simple and clear (thanks Guy who pointed to this).
  
  
Index: loncom/xml/physnet.sty
diff -u loncom/xml/physnet.sty:1.21 loncom/xml/physnet.sty:1.22
--- loncom/xml/physnet.sty:1.21	Thu May 29 13:03:05 2003
+++ loncom/xml/physnet.sty	Fri May 30 11:04:20 2003
@@ -166,8 +166,8 @@
    <meta></meta>
    <render>
       <web></web>
-      <tex>\setlength{\headwidth}{\textwidth} 
-           \lhead{\textit{Contents}}\rhead{}\newpage</tex>
+      <tex>\newpage\setlength{\headwidth}{\textwidth} 
+           \lhead{\textit{Contents}}\rhead{}</tex>
   </render>
 </definetag>
 
@@ -185,24 +185,7 @@
    <meta><output><moduletitle></meta>
    <render>
       <web>Title: <b></web>
-      <tex>\noindent Title: \textbf{\uppercase{</tex>
-  </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>
+      <tex>\noindent Title: \textbf{</tex>
   </render>
 </definetag>
 
@@ -211,7 +194,7 @@
    <meta></moduletitle></output></meta>
    <render>
       <web></b><br /><br /></web>
-      <tex>}}}</tex>
+      <tex>}</tex>
   </render>
 </definetag>
 
@@ -669,12 +652,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 
-          \newpage</tex>
+          \openout\tcfile=m$module-tc.tex</tex>
   </render>
 </definetag>
 
@@ -4030,7 +4012,7 @@
 <definetag name = "/element">
    <meta></meta>
    <render>
-      <web></td></tr></web>
+      <web></tr></web>
       <tex></tex>
    </render>
 </definetag>
@@ -4048,12 +4030,29 @@
 <definetag name = "/elementvalue">
    <meta></meta>
    <render>
-      <web></td><td></web>
+      <web></td></web>
       <tex>]</tex>
    </render>
 </definetag>
 
 
+<definetag name = "elementcontent">
+   <meta></meta>
+   <render>
+      <web><td></web>
+      <tex></tex>
+   </render>
+</definetag>
+
+
+<definetag name = "/elementcontent">
+   <meta></meta>
+   <render>
+      <web></td></web>
+      <tex></tex>
+   </render>
+</definetag>
+
 
 <definetag name = "fbox">
    <meta></meta>
@@ -6520,7 +6519,7 @@
 <definetag name = "/maintitle">
    <meta></meta>
    <render>
-      <web></i><br /></web>
+      <web></i></font><br /></web>
       <tex>}</tex>
    </render>
 </definetag>
@@ -6529,7 +6528,7 @@
 <definetag name = "mainauthor">
    <meta></meta>
    <render>
-      <web><i></web>
+      <web><font text="gray"><i></web>
       <tex>\keephidden{</tex>
    </render>
 </definetag>
@@ -6538,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>
@@ -6889,7 +6888,7 @@
 <definetag name = "tcsc">
    <meta></meta>
    <render>
-      <web></web>
+      <web><tr></web>
       <tex></tex>
    </render>
 </definetag>
@@ -6898,7 +6897,7 @@
 <definetag name = "/tcsc">
    <meta></meta>
    <render>
-      <web></web>
+      <web></tr></web>
       <tex>\\</tex> 
    </render>
 </definetag>
@@ -6907,7 +6906,7 @@
 <definetag name = "tcsccontent">
    <meta></meta>
    <render>
-      <web><tr><td></web>
+      <web><td></web>
       <tex>{</tex>
    </render>
 </definetag>
@@ -6925,7 +6924,7 @@
 <definetag name = "tcpc">
    <meta></meta>
    <render>
-      <web></web>
+      <web><tr></web>
       <tex>\hskip 5 mm </tex>
    </render>
 </definetag>
@@ -6934,7 +6933,7 @@
 <definetag name = "/tcpc">
    <meta></meta>
    <render>
-      <web></web>
+      <web></tr></web>
       <tex>\\</tex> 
    </render>
 </definetag>
@@ -6943,7 +6942,7 @@
 <definetag name = "tcpccontent">
    <meta></meta>
    <render>
-      <web><tr><td>&#160;&#160;&#160; </web>
+      <web><td>&#160;&#160;&#160; </web>
       <tex></tex>
    </render>
 </definetag>
@@ -6970,7 +6969,7 @@
 <definetag name = "/tcscpage">
    <meta></meta>
    <render>
-      <web></hideweboutput></td></tr></web>
+      <web></hideweboutput></td></web>
       <tex>}</tex> 
    </render>
 </definetag>
@@ -6988,7 +6987,7 @@
 <definetag name = "/tcpcpage">
    <meta></meta>
    <render>
-      <web></hideweboutput></td></tr></web>
+      <web></hideweboutput></td></web>
       <tex>}</tex> 
    </render>
 </definetag>