Header Files More Information

From WeBWorK_wiki
Revision as of 17:28, 30 January 2012 by Apizer (talk | contribs) (Created page with "There are two PG header files, the '''set header''' and the '''hardcopy header'''. The set header is displayed on the homework set screen to the right of the problem list. The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are two PG header files, the set header and the hardcopy header. The set header is displayed on the homework set screen to the right of the problem list. The hardcopy header is included in hardcopy output at the start of the problem set.

See Site Info, Login Info, Course Info for information on customizable files which are used to display information for the whole WeBWorK site, on a course login page and on a course front page.


In current versions of WeBWorK the same file is used for both headers, webwork2/conf/snippets/setHeader.pg. This file is designed so that is renders in both HTML-based display modes (when used onscreen) and TeX mode (when used in hardcopy).

Either header file can be overridden on a per-homework set basis. To do so, go to the Hmwk Set Editor and click the number of problems to the right of the homework set name.

These two configuration variables control the site-wide defaults:

hardcopy header
Variable: $webworkFiles{hardcopySnippets}{setHeader}
Default file: conf/snippets/setHeader.pg
set header
Variable: $webworkFiles{screenSnippets}{setHeader}
Default file: conf/snippets/setHeader.pg

You can change the values of these variables in global.conf or override them in course.conf for a particular course.