[OS X TeX] TeX on Mac OS X Mailing List

Tommaso Mancini Griffoli tommaso.mancini at gmail.com
Mon Jan 29 16:56:29 EST 2007


Hi Rene, Thanks so much for your kind and detailed reply.  
Unfortunately, I still run into problems as described below...

On Jan 29, 2007, at 10:14 PM, Rene Borgella wrote:

> Tommaso Mancini Griffoli wrote:
>> Hi,
>>
> Snip
>
>>
>> Second, I'm coming from the forum on TexShop with an unresolved  
>> question
>> on creating HTML from a Tex file.
>>
>> I was kindly told to: create a htlatex.engine file, with the  
>> commands:
>>
>> #!/bin/bash
>> htlatex "$1"
>>
>> and to put it into the ~/Library/TeXShop/Engines/ folder.
>>
>> Then, in TexShop, I can choose to typeset in htlatex.
>
> Tommaso,
>
> I don't know about doing it as you describe above, but for me, what
> works very well is this method:
>
> Create a normal TeX doc in Texshop and save it.  I then make a copy  
> the
> whole folder that contains the new document for safety's sake.
>
> Next, I start up terminal, then cd to the directory containing my TeX
> doc.  I invoke htlatex and I have my html doc. It works great for me.
>
> EXample. . .
>
> 1) write my document in Texshop and have all the associated figs, etc.
> within the folder (directory) that I have the document in.
>
> 2) copy that directory to a convenient place, say the Desktop.
>
> 3) start up terminal, then CD to the directory with my TeX document.
> (it's easiest to just open up terminal, type 'cd' and then just  
> drop the
>  directory on the terminal window).
>
> 4) 'htlatex filename.tx' gives me the output of a complete html  
> document
> ready for the web.

Yes, this is what I did (if I interpret your suggestion well), but I  
get the following error in terminal:

Tommaso-MG:~/Desktop/TEST tommasomg$ hlatex AdvMacro_PS_6.tex
-bash: hlatex: command not found

Should I have done something earlier to define hlatex for the  
computer... I do have the file in my Tex distribution (the complete  
version from Gerben Wierda's iInstaller), but probably that's not  
enough....

Thanks for your help!


>
> THis has worked well for me using Gerben's TeX distro and now the new
> Texlive (the largeish, complete version).
>
> HTH,
>
> Rene
>
>>
>> When I do so, the log file is generated in the console as usual,  
>> but at
>> the end, I get many messages of the type:
>>
>> System call: convert -trim +repage -density 110x110 -transparent
>> '#FFFFFF' zzAdvMacro_PS_6TEST.ps AdvMacro_PS_6TEST25x.png
>> --- Warning --- System return: 32512
>>
>> Then, when I click to open the file.html from my finder, all the text
>> shows up fine, but there are question marks for all the  
>> equations... I
>> guess the equations are supposed to be transfered into .png  
>> images, but
>> the error message tells me the images are not generated? Any idea of
>> what couldbe going wrong?
>>
>> Also, as a follow-up question (although a good answer to the above  
>> would
>> be wonderful in itself!), is there a way to create separate HTML  
>> pages
>> (with automatic links from one to the other) from each section of the
>> Latex file, for instance, as is the case when using DocBook?
>>
>> I've been finding a lot of references on Latex2html, but is this the
>> same as htlatex? Or what is the difference?
>>
>> Thanks so much for your help and for your patience with a beginner  
>> user...
>>
>> Best,
>> Tommaso
>>
>>
>> ------------------------- Helpful Info -------------------------
>> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
>>
>>
>>
>

-----------------------------------
Tommaso Mancini Griffoli

Paris School of Economics (PSE) & CEPREMAP
- post doctoral fellow -

Home:
14 ch. Michée Chauderon
1203 Genève - CH

tommaso.mancini at stanfordalumni.org
tommaso.mancini at gmail.com
H: + 41 22 796 4756
C: + 41 76 528 0033

Academic home page: http://web.mac.com/pibri/iWeb/TommasoMG/
Vacationning in Tuscany? http://www.bastiere.it








------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list