Note: the links would appear highlighted on the Lynx screen.
WELCOME TO MY HOME PAGE
John Q. Public
Assistant Professor
High Energy Theory [HEPT]
public@pa.msu.edu
(517) 555-1212
118 Physics-Astronomy Bldg.
Michigan State University
East Lansing, MI 48824-1116
_________________________________________________________________
The purpose of this example is to show some of the features of HTML &
how they can be used to present information. This information can be
generated from:
* Lectures
* Homework assignments
* Research results
* Or just plain fun
FORMULAS AND EQUATIONS
In presenting your information, you may run into the need to write
formulas or equations as you would in other technical documents. There
exists a number of options by which one may display this type of
information.
* There is the the single line method, which works for simple
numbers, latin letters, and single levels of subscripts or
superscripts. For example: "A 2 x 106 event data set with pmin = 2
GeV."
* Another method employs the use of inline images image files
(typically in GIF format, but JPEG/JFIF and X-Bitmap files are
sometimes used now that most browsers can decode them). These
types are useful when special characters are necessary. For
example: "The random rate is then F = NiNj [\tau] , where {i, j} =
{ [\pi] , u} and [\tau] = 110 ns." Here, tau & pi are inline GIF
files.
* Or you may have the complete formula as an inline GIF such as "
[\sigma_{\Lambda\Lambda}^{random} proportional-to A^{4/3} x
\sigma_{\Psi\Psi}^{random}] ."
GRAPHS
[DY Spectrum Comparison] Graphs or any GIF file can be placed in
various locations throughout the document.
These particular GIF files are of type 89a. This type allows for
transparent backgrounds, which allow whatever pattern (if any) has
been selected for a page to show through. More programs generate
type 87a GIF files, but conversion programs are available.
Different browser programs handle the placement options differently,
but the actual display of the graphics file itself should work for
just about all of them.
COMPUTER SOURCE CODE
Source code can be placed into the document as shown, using the "pre"
or the "code" format type ("pre" is used in this example).
class Vector {
private:
Index dim_; // dimension of vector
Data *data; // pointer to where data is stored
public:
Vector(Dim dim); // allocate only
Vector(Index dim, Data val); // allocate&initialize data[i]=val
Vector(const Vector& rhs); // copy constructor
~Vector();
// assignment operators
const Vector& operator=(const Vector& rhs);
const Vector& operator+=(const Vector& rhs);
// member data access
const Data& operator[](Index position) const; // read-only
Data& operator[](Index position); // write-access
Index dim() const;
// arithmetic
const Vector operator+(const Vector& rhs) const;
Data dot(const Vector& rhs) const; // dot product (++++... metric)
Data operator*(const Vector& rhs) const; //
Data operator*(const Vector& rhs) const; //
// other operations
friend ostream& operator<<(ostream& output, const Vector& rhs);
friend istream& operator>>(istream& input, Vector& rhs);
};
_________________________________________________________________
A counter can be placed in the document to show how many times a
particular document has been requested. This document, for example,
has been requested 5 times.
Return to the top of the page.
_________________________________________________________________
Notes on this demonstration page:
1. The formulas and graph are from the document titled Backgrounds
from Random Pions and Muons from Pion Decay at sqrt-s=200 GeV.
2. The source code is from David Bowser-Chao's PHY 405/905 C++ for
Physicists class. He has arranged a set of Web pages so that his
students can view his lecture notes and homework assignments.
_________________________________________________________________
Send suggestions for additions to the John Q. Public sample
Professor's Home Page to helpdesk@pa.msu.edu.