[LON-CAPA-users] Style sheets

Ray Batchelor lon-capa-users@mail.lon-capa.org
Mon, 24 Feb 2003 15:45:04 -0800


Hi,
    Is there a problem in using <displayweight />  for both single part and 
multipart problems.  i.e. which weight is displayed by <displayweight /> and 
on what else does it depend?

Ray

On February 7, 2003 01:33 pm, Guy Albertelli II wrote:
> 
> Publish a file ending in .sty that conatains the XML below and then in
> the course go to PARM->"Set Course Environment" and set the attribute
> 'Default XML Style File'
> to this file.
> (BTW the example below is published as
> /res/msu/albertel/example.sty)
> 
> 
> The example below
> 1) puts the title on every problem 
> 2) Puts out the phrase
>     Points: (whatever the weight was set to)
> 3) Puts an <hr /> at the end of each problem on screen
> 4) In web mode the title appears in a blue
> 
> 
> Things to note:
> 1) I am rewriting what the <problem> and </problem> tag do, you can
> get similar effects on HTML file by rewriting the <body> </body> tags
> 2) Note that you can effect all possible tags, if you don't like
> the default tex conversion for a specific tag you can use this as a
> way to rewrite it's effects
> 3) There are ways of talking about the tags args I'll chat about this
> in a more invloved example later
> 4) You can easily make things start to act dysfunctional.
> 
> 
> <definetag name="problem">
>     <render>
>         <tex><problem><displaytitle />Points:<displayweight /></tex>
>         <web><problem>
>               <p><font color="#003399"><displaytitle /></font></p>
>               <p>Points: <displayweight /></p>
>         </web>
>     </render>
> </definetag>
> 
> <definetag name="/problem">
>     <render>
>         <tex></problem></tex>
>         <web><hr /></problem></web>
>     </render>
> </definetag>
> 
> -- 
> guy@albertelli.com          BM: n^20 t20 z20 qS 
> Guy Albertelli -7-7-4-  O-
>     "I know the human being and fish can coexist peacefully."
>                             -- Bush, Saginaw, Mich., Sept. 29, 2000
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
> 
>