go home
Michael's Lab

CARBON MATTER

read more


Introduction

This pages describes the construction of the new homepage in the form of tips & tricks and  what i think are best practice methods.


Tools

I am using a rather spartanic set of tools like for this page:

  • Quanta for editing pages
  • Firefox and Chrome for viewing and debugging
  • GIMP for grafical editing

Site Structure

The site has on all levels the same structure as the root directory where the initial page of the site is located. There is always on topic per directory; any major sub topic will be described in a subdirectory.

Most of the icons you find on this site i have get from iconpedia without any modification The items are stored in the images directories. Images which are directly related to the contens are always stored together with the html pages in the same directory.


Showing Videos

Videos are displayed by means of the Zanmantou player using the flv format (see http://zanmantou.a3non.org/). The conversion from windows WMV format into flv is done using Mplayer, specifically the tools mencoder with the following arguments:

 
mencoder *.wmv -ofps 10.0 -o interference.flv -of lavf -oac 
mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3

Using Mathematics

Mathematical formulars are displayed by means of MathML and MathJax. MathML is used to represent the formulars in the document and MathJax ensures the correct presentation even on browser which do not provide any MathML support

IN order to make MathJax working on an html page the following line needs to be included in the webpage.

 
<script type="text/javascript"
   src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script> 

I am using OpenOffice Math to write formulars with a bit support from fireMath. You will find in directories where MathML pages are located as well an src directory where the OpenOffice Math sourcecode is stored. Typically the numbering of the formular in the document it part of the name.

On the other hand using mathML is quite clumsy. Since MathJax supports latex notion as well i am currently using the embedded latex notion to write formulas.


Copyright (C) 2011, 2012 Michael Erdmann
Verbatim copying and distribution of this entiere article is permitted in any medium, provided this notice is preserved