Difference between revisions of "Tags - PGML"

From WeBWorK_wiki
Jump to navigation Jump to search
(initialize PGML tags.)
 
 
Line 23: Line 23:
 
* This tag is generally only needed for advanced layout of problems or special conditions.
 
* This tag is generally only needed for advanced layout of problems or special conditions.
 
* add the <tt>tex</tt> option to set any hardcopy properties needed for the span or div to render correctly.
 
* add the <tt>tex</tt> option to set any hardcopy properties needed for the span or div to render correctly.
  +
  +
[[Category:PGML]]
  +
[[Category:PGML Syntax]]

Latest revision as of 07:11, 19 May 2024

PGML Tags

Creating either div or spans in PGML.

Example

The code

 BEGIN_PGML
 Consider the equation [<[`x+y=9`]>]{
   html => ['span', style => 'color:blue'],
   tex => ['{\color{blue}', '}']
 }
 END_PGML

will produce the following:

Consider the equation x+y=9.


Notes

  • This tag is generally only needed for advanced layout of problems or special conditions.
  • add the tex option to set any hardcopy properties needed for the span or div to render correctly.