Can I use LaTeX to specify cascading style sheet? Can someone enlighten me something about using LaTeX with my website?
Basically to setup layout like how I do for documents, setting up fonts, spacing etc
|
|
You could also look at Pandoc, which can be used as follows:
This will generate the HTML for you. You will have to specify your own stylesheets, however. Also, Pandoc only supports a subset of LaTeX. |
|||||
|
|
This is not a particularly good idea. While there are tools to convert LaTeX into HTML/CSS, they give a result that is nowhere near as flexible as you could get with HTML directly or other meta-languages. |
|||
|
|
|
I agree with what was already said: you won't get the flexibility of manually playing with css, jquery/ajax, etc. However, as far as structured/markup languages are concerned, you may find the following two projects interesting:
However, note that in general stylesheet as well as layout are specified outside of the core document. |
|||
|
|
|
LaTeX2HTML is a powerful TeX compiler to directly render a TeX document into HTML. However, installation of
|
||||
|
|
|
This is probably not exactly what you need, but I think it might make an interesting addition to the thread nonetheless. A few weeks ago, I stumbled across pdf2htmlEX, which can convert, as the name implies, pdf files to HTML, while maintaining the typography and layout pretty much intact. I've tried it with some non-trivial LaTeX-generated pdfs of mine, and the results are truly impressive (they have very nice demos in their project page, too). On the other hand, the HTML markup it produces is heavy and not very editing-friendly. The point is that if you have some part of a site that you'd like to layout/typset with TeX, it is now possible to do so. |
|||
|
|