(This is a question that is more or less not a Tex/Latex question, I guess. But it still relates to Tex/Latex.)
I want to create a new web site. Here is the goals for that site:
It will be used to write things about mathematics.
Different from Wikipedia and PlanetMath, its goal is to make things about a subject into a (mathematical) book. This means:
For the subject "Differential Geometry", there is a page which is the "Table of Content".
When a user click the link "Chapter 3 : Curvature", it will go to the page of chpater 3. This page has contents before the 1st section of chapter 3 starts.
I wish that there is a way to convert each subject in this site into a PDF file. This output PDF file will looks just like a mathematical book!
This site has full Tex/Latex support. So people can write things by using Tex/Latex. I also want this site has a preview feature like sites on StackExchange: when people type Tex/Latex code, they can preview the output.
The people can contribute to this project.
In order to have the features listed above, could you suggest me some references to learn. For example, how to make this site with Tex/Latex support + Preview. (With these features, it can be used as an online Tex/Latex Editor.)