|
|
|
JTex is a little applet for writing web pages using some of the most common math symbols. As one could guess from the name, JTex uses Tex language the most popular editing programm among mathematicians and specialized journals. This applet is far from being complete but still is sufficient for putting some interactive math exercices on the web. JTex.class is the file of the applet, it needs the utilitary class JaTex.class, and of course a file .html These three files must stay in the same directory. How does it work: With an applet JTex.class you can write 10 lines (or a title plus 8 lines) of text using the most common mathematical symbols. For each line you can choose the font, the style (plain, bold, italic), the dimension of the font and the colour. Width of a line: The width of a line depends on the width of the applet, make sure your line is not too long, otherwise the text won't be visualized! You can write pages with as many lines as you want by adding several times the applet; each applet gives you 10 (or less) lines. Practical example:click here to see the appplet, then click on the border to see the .html file. As you can see your text (written in Tex) is given to the applet as a parameter, there are some other parameters, let's have a look: The first parameter (BgColor) is the background color of the applet. Then you have the parameters for the title (title and titlesize). The parameter TextColor is the default color for the text. Then follow the parameters for the 10 lines of text. The parameters for line x are: COLORS: you have to enter one of red, green, blue, yellow, orange, cyan, magenta, gray, lightGray, darkGray, black, pink, white. If you want to set the background of the html-page as the background of the applet, here is the correspondance with hexadecimal code: red:#FF0000, green:#00FF00, blue: #0000FF, pink: #FFAFAF, magenta:#FF00FF, white: #FFFFFF, yellow:#FFFF00, lightGray:#C0C0C0, orange:#FFC800, cyan:#00FFFF, gray: #808080, darkGray:#404040, black:#000000 TITLE: at the moment you cannot put math symbols in the title. The title is put on line 2 while line 1 is cancelled. The color is the one of line 2. If you want a page without title just put the following comment: <!-- this comment eliminates the title <param name="title" value="\title ..."> <param name="titlesize" value="13"> --> Notice that you can combine JTex and HTML. List of symbols:
\cup (union)
\cap (intersection)
\emptyset (empty set)
\exists (exists)
\forall (for all)
\geq (greater or equal)
\in (belongs)
\leq (less or equal)
\Leftrightarrow (equivalent)
\neq (non equal)
\notin (doesn't belong)
\oplus (direct sum)
\otimes (tensor product)
\Pi (product (pi uppercase))
\Rightarrow (implies)
\Sigma (sum (sigma uppercase))
\subset (inclusion)
\to (arrow)
\int (integral)
\equiv (equivalent, modulo)
\infty (infinite)
\int_{...}^{...} (integral with limits)
Matrices 3x3: To make a 3x3 matrix whose coefficients are aij (i = index of row, j = index of column) just digit $mat(3,3)a11&a12&a13&a21&a22&a23&a31&a32&a33$ WITHOUT LETTING ANY SPACE. You can NOT use super- or subscript in the matrices. Fractions: As in Tex digit ${{a}\over{b}}$ to get a/b. This time you can put sub-supscripts at the numerator or at the denominator. Download JTex.zip (7 kb) including JTex.class, JaTex.class, JTex.html |