[l2h] Including source files?

Ross Moore ross at ics.mq.edu.au
Wed Aug 6 01:47:39 CEST 2003


Hello James,

On Tue, 5 Aug 2003, James Howison wrote:

> Howdy all,
>
> Is there an automatic way to include links to local copies of the
> source (e.g. *.tex and *.bib) files in the output?
>
> Ideally I would like there to be a section in the 'About this document'
> section which has links to copies of the specified source files.  At
> the moment I've been copying the non-standard files in by hand and hand
> editing the html.
>
> I notice that the "The command line arguments were:" includes a
> hyperlink for the *.tex file that appears to be linked to the path of
> the *.tex file used - this is a start but I'd really like this to be
> pointing to a copy of the tex file that is automatically moved into the
> output folder.

Better is to make a symbolic link in the target directory, pointing
to the source .tex file. Then make the hyperlink point at this link.
That way you don't need to keep 2 files up-to-date.

Also, if you want your audience to view the source files in a web-browser,
then the link can have .txt as its extension, rather than .tex or .bib
which most surfer's browsers will not understand as being text-only.


As for automating creating of such links, this isn't really necessary,
as that's a one-off thing for each job. Normally you can expect to
process a LaTeX2HTML job many times, before being fully satisfied
with the HTML pages, just as you would run a LaTeX job many times
during development. But once the link to the sources has been created,
you don't need to remake it each time.


>
> Is this possible already?  Are there people working on something
> similar?  Where should I start if I where to try to automate this?
> Would it make sense to build this in as a commandline option or would
> it be better to have a stand alone utility to run post latex2html?
>
> Thanks,
> James
>
> ps - In some circumstances it would be very cool to also be able to
> provide the style and bibliography style files - we might even be able
> to include anything 'pulled' in by the *.tex file.  It might be a bit
> complicated but I'd like it to be such that anyone with a basically
> sane install could run the commandline specified and re-create the site.

Isn't it best then to create an archive (.zip or .tgz) with all the pieces
and create a simple link to this, for downloading?


Hope this helps,

	Ross Moore


>
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
>


More information about the latex2html mailing list