LON-CAPA CBI Content

All CBI modulas (the total number approximately 400) are transferred from LaTeX into XML format.

CBI XML Tags

In addition to these set of tags a lot of CBI modulas use the standard HTML tags, such as b,em,i,h1,h2,....

LaTeX incorporated in XML

All math tags use chunks of LaTeX text which is translated by tth/ttm to produce the real visible HTML-like output.

Examples:

CBI Style File

CBI style file consists of separate entries. Each entry defines one tag (opening or closing) and the rules to work with it for different targets: web output, text output (paper version of CBI material), metadata (database), ... . Each opening tag posess its closing counterpart.

The formal structure of the pair of entries (opening or closing tags):
          <definetag name = "actual name" parms="list of the actual parameters">   
             <meta>    
                 <output>    
                    how it works for metadata target    
             </meta>    
             <render>    
              <web>    
                 how it works for web target    
              </web>    
              <tex>    
                 how it works for text target    
              </tex>    
             </render>    
          </definetag>    
    
    
          <definetag name = "/actual name">      
             <meta>       
                    how it works for metadata target       
                 </output>  
             </meta>    
             <render>    
              <web>     
                 how it works for web target    
              </web>    
              <tex>        
                 how it works for text target          
              </tex>    
             </render>    
          </definetag>    

Note, that list of the actual parameters is used only in the style file and does not influence on the functionality of the tag. The <output> tag redefine the standard output in the parser (it is always open for web and text target and closed for metadata by default).

Examples: