|
Appetizers and Lessons for Mathematics and Reason (www.whyslopes.com) |
|||
| Online Volumes 1, Elements of Reason. 1A. Pattern Based Reason 1B. Math Curriculum Notes 2. Three Skills for Algebra 3. Why Slopes & More Math (Optional Book Orders) |
More Site Areas 1. Help Your Child or Teen Learn 2. Solving Linear Equations 3. Fractions Ratios Rates Proportions & Units 4. Euclidean Geometry 5. Analytic Geometry/Functions 6. Number Theory. 7. More Calculus |
More Site Areas 8. Complex Numbers 9. Qc Maths Education 10. Secondary IV(?) maths 11. Real Analysis 12. LaTeX2HotEqn: 13. Electric Circuits Etc 14. Français 15. Algebra, Odds & Ends, Etc |
More Site Areas 16. Math Education Essays 17. Telling & Working with Time 18. Maps, Plans & Drawings 19. Quantitative Skills for home, shopping and work 20. Statistics Useful, or Not. Try the Twiddla Whiteboard to work online with others. |
The HotEqn applet developed in 1996 by VCLab displays equations online given their LaTeX codification and the dimensions in pixels of the applet display area. See the HotEqn applet homepage for usable LaTeX commands - a list that is essentially complete.
The LaTeX2HotEqN applet below automates the usage of HotEqn. It generates the html code needed to use HotEqn applet given the LaTeX code for mathematical expressions embedded in the html code for a webpage.
With the LaTeX2HotEqN applet, you may place in html files, LaTeX code for mathematics, code that is delimited by the tag pairs
To see LaTeX2HotEqn and HotEqn in use, follow the instructions for examples 1 and 2 below. Input files can be located on the world wide web or your PC webserver 127.0.0.1
|
|
|
Buttons to display applet buffers in
a browser window (if javascript is active) |
| Paste data into input into text area or give the URL of the source file. The LaTeX command for a fraction \frac a b needs to be written as \frac {a}{b} |
Example 1: Cut and paste the following
into the text area:
After pasting. hit buttons: (i) Import Text Area, (ii) To HTML and (iii) View HTML in that order. |
| Example 2: Substitute the URL http://whyslopes.com/webmath/linear.html in the text field beneath the text area and besides the of the import URL button in the applet. Then Hit the buttons (i) Import URL and after the text area fills, hit (ii) to HTML and finally after the textarea content changes, hit (iii) View HTML The buttons View Source will show you the hybrid LaTeX & html input file |
TeX was a mathematics typesetting language produced by Donald Knuth in the first instance for his own use. It escaped. From TeX, Leslie Lamport derived another markup language LaTeX. Today, many journals, texts and monographs in matheamtics and science are typeset with TeX or one of its variants. To learn more about the origins and evolution of TeX and LaTeX, visit the TeX User Group (TUG). To learn more about mathematics on the web, see the TUG website Interesting URL page. See too The Math Forum page Math Typesetting for the Internet.
The LaTeX2HotEqn applet when run from its home page www,whyslopes.com/webmath can also read any file located on the world wide web. An applet is normally restricted to communicating with the webserver that delivered them. A whyslopes CGI program reads the file for LaTeX2HotEqn above and then delivers it. If you have webserver running on your PC with a default webpage, see if the above applet can access URL http://127.0.0.1/. If it can, input files on your PC webserver can be read too. Some experimentation with internet security options (at your own risk) may be required for this.
If import or code generation operations result in a file too large to fit in the text area, the file may be stored in an applet text buffer. Try the view buttons to see the source or generated code.
The above applet could be easily improved (tomorrow) by allowing delimiter $$ and $$ (or \begin(displaymath) and \end{displaymath} to surround displayed math, and $ and$$ (or \begin(math) and \end{math} to surround displayed math, An extension of LaTeX2HotEqn to come in January 2003 may translate LaTeX markup for \part{ }, \chapter{}, ... \paragraph{...} into sectioning commands <h1> to </h6> and LaTeX markup for itemized and enumerated lists in to html commands for the same. Code for this is 85% done.
To use HotEqn in your webpages, you will need to download HotEqn.jar (unzip HotEqn.jar.zip to your webpage directory or codebase directory) and you may need to download the VCLAB HotEqnFonts.zip (unzip them in place in your webpage directory or codebase directory respectively. That should create a subdirectory Fonts). For more information, see HotEqn - Developers Edge at VCLab
The foregoing suggests with care that a single source file might be be used for LaTeX and html generation. LaTeX has codes for drawing vertical and horizontal lines between table columns and rows where as html provides methods for drawing borders around individual cells. So the treatment of tables in LaTeX and html is incompatible.
Extensible markup language xml is fine as assembly language for online software. However, producers of webpages will continue to need a high level language. A mixture of present day html and LaTeX and further markup codes might suffice for this. See generalizations and plug-ins below.
An variant of the LaTeX2HotEqn applet above (not today) could be coded with a parameter pointing to an input file and a button (part of the applet, or from a javascript form) attached to the operations of reading and processing the input file and then of opening a new browser window for display purposes. A further generalization could be to provide a plug-in based on applet X or its innards. Finally, each browser page has a flow layout. The development of applets would be simpler if applets or embedded objects not giving their dimensions, could report the browser the minimum or preferred dimensions for their display. For applets, the latter would be possible with a java-based browser.
HotEqn may crash a few browsers if you mis-spell LaTeX commands or ... . Greater usage of HotEqn by people may lead to bug removal.
With usage, this HotEqn wishlist will grow. The LaTeX2HotEqn applet is only a shell around HotEqn and its cousins.