[texhax] LaTeX, Webpages, and PDF files

Andy Farnell padawan12 at obiwannabe.co.uk
Fri Aug 20 00:27:32 CEST 2010

Hi Tom,

It's quite possible, though there may be more modern
solutions now. I got good results using Latex2HTML
for these DSP composition tutorials 


A script employing unix 'make' and a bit of
perl or python will help you get the bevahiour you describe;
so that any update is reflected in recompiling
and linking in a fresh pdf as well as uploading the
new web content, whenever you make a change.

I haven't made many such documents recently, what
I discovered on the last journey was that, to some degree,
you still need to think in both HTML and LaTeX/pdf because
not everything can be laid out to suit both styles. 
Example might be code pretty printing, or a package
for the markup of algorithms like Knuth, or having
images look good in both documents.

In the end something that produces basic, functional
HTML and a good pdf from LaTeX can be made pretty using
a css stylesheet. 

The more you get into the separation of content and style
philosophy the more you want to make little macros
and filters for your own documentation needs .

Getting clever, once you start having fun, you can
cross ref web content from the pdf using hyperef

On Thu, 19 Aug 2010 16:40:44 -0500
Thomas Jacobs <thomasjacobs at gmail.com> wrote:

> Hi there,
> I have an interdisciplinary question regarding the use of LateX for webpages
> and the production of .pdf documents.  Suppose I wish to create a bunch of
> faculty resource pages on my website.  I want them easily accessible for
> faculty desiring a quick answer to something as well as comprehensively
> available in a .pdf document someone could download to read and study on a
> more macro basis which would encompass many of the web pages of material.
>  Is there any way to do this and only maintain the material in one place so
> one could browse website pages or hit a button and download a .pdf file?  I
> know how to do the latter in LaTeX but am unfamiliar with using LaTeX to
> generate web pages.  If one can do this, is it better to compile the .pdf
> documents every time the page material is updated or is there a way to have
> the webpage be smart enough to compile the material into a .pdf document
> whenever someone wishes to download?  Thanks for any thing anyone could
> recommend.  If anyone has good resources for creating web pages with LaTeX
> (assuming that is not nonsensical), that would also be appreciated.
> Sincerely,
> Tom
> -- 
> Thomas Jacobs, FRM, PRM, PhD
> Assistant Professor of Finance
> Kellstadt Graduate School of Business
> DePaul University
> (312) 362-6039 (W) (630) 640-9294 (C)

Andy Farnell <padawan12 at obiwannabe.co.uk>

More information about the texhax mailing list