yildi Posted January 31, 2008 Report Share Posted January 31, 2008 Hello, I have some difficulty to use latex2html in Mandriva 2008. It creates the HTML files but png files are not correctly generated. L2H tells me that there is "no implementation for style 'graphicx' (even if I can see graphicx.pl in /urs/lib/latex2html/styles/ ) and generation of png graphics (from eps figures or for equations) gives the following error: Error while converting image Converting image #14 pstoimg: Error: "/usr/bin/ppmquant -floyd 256 < /var/tmp/l2h1735/p2285.pnm | /usr/bin/pnmtopng -interlace -trans 'gray85' > img14.png" failed: Bad file descriptor I have this problem even with a simple latex file with some math : %% This document created by Scientific Word ® Version 3.0 \documentclass[12pt]{report}% \usepackage{graphicx} \usepackage{amsmath} %\usepackage[square,agsmcite,agsm]{harvard} \usepackage[francais]{babel} \usepackage{amsfonts} \usepackage{amssymb}% \setcounter{MaxMatrixCols}{30} %TCIDATA{OutputFilter=latex2.dll} %TCIDATA{Version=5.50.0.2890} %TCIDATA{CSTFile=LaTeX Report.cst} %TCIDATA{Created=Fri Feb 05 09:45:15 1999} %TCIDATA{LastRevised=Sunday, July 08, 2007 20:58:21} %TCIDATA{<META NAME="GraphicsSave" CONTENT="32">} %TCIDATA{<META NAME="SaveForMode" CONTENT="1">} %TCIDATA{BibliographyScheme=BibTeX} %TCIDATA{<META NAME="DocumentShell" CONTENT="Other Documents\Report - Standard LaTeX Report">} %TCIDATA{Language=French} %BeginMSIPreambleData \providecommand{\U}[1]{\protect\rule{.1in}{.1in}} %EndMSIPreambleData \newtheorem{fait}{Fait} \newtheorem{proposition}{Proposition} \newtheorem{remarque}{Remarque} \newtheorem{conjecture}{Conjecture} \newtheorem{hypothese}{Hypoth\`ese} \newtheorem{definitfr}{D\'{e}finition} \begin{document} \title{bla bla} \author{Me and my dog} \date{Juillet 2007} \maketitle \tableofcontents \part{Croissance, \'{e}quilibre et convergence dans le mod\`{e}le de Solow} \chapter{Le mod\`{e}le de Solow} Solow, Robert, 1956, \textit{A Contribution to the Theory of Economic Growth}, Quarterly Journal of Economics, 70, 65-94. (Prix Nobel : 1987) Il s'agit d'un mod\`{e}le tr\`{e}s simple qui fournit d\'{e}j\`{a} des intuitions fondamentales \`{a} notre question initiale : ``Pourquoi certains pays sont-ils si riches tandis que les autres sont appauvris ?'' \section{Le mod\`{e}le de base} Le mod\`{e}le fait un certain nombre d'hypoth\`{e}ses: \begin{description} \item[$\left( H1\right) $] Les pays produisent et consomment un seul bien homog\`{e}ne (le produit $Y$); \item[$\left( H2\right) $] La production se fait en concurrence parfaite; \item[$\left( H3\right) $] La technologie est \textit{exog\`{e}ne}; \item[$\left( H4\right) $] La technologie peut \^{e}tre repr\'{e}sent\'{e}e par une fonction de production de type \textit{n\'{e}o-classique} bas\'{e}e sur des facteurs substituables\thinspace: le capital $\left( K\right) $ et le travail $\left( L\right) $; \item[$\left( H5\right) $] La consommation agr\'{e}g\'{e}e est repr\'{e}sent\'{e}e par une fonction keyn\'{e}sienne\thinspace:% \begin{equation} C=c.Y\Rightarrow S=\left( 1-c\right) Y=s\cdot Y \label{S}% \end{equation} \item[$\left( H6\right) $] Le taux participation \`{a} l'emploi de la population est constant. Si la population cro\^{\i}t au taux $n,$ l'offre de travail $\left( L\right) $ augmente aussi \`{a} ce taux $n\,:$% \begin{equation} \frac{d\log\left( L\right) }{dt}=\frac{dL/dt}{L}=\frac{\dot{L}}{L}=n \label{L}% \end{equation} \end{description} Pour le propos du cours, nous le simplifierons encore en supposant que la fonction de production est de type \textit{Cobb-Douglas}\thinspace:% \begin{equation} Y=F\left( K,L\right) =K^{\alpha}L^{\left( 1-\alpha\right) },\quad\alpha \in\left[ 0,1\right] . \label{Y}% \end{equation} Les rendements d'\'{e}chelle sont donc constants $\left( \alpha+\left( 1-\alpha\right) =1\right) $. En concurrence parfaite, les firmes sont preneuses de prix et elles maximisent le profit% \[ \max_{K,L}F\left( K,L\right) -rK-wL \] o\`{u} $r$ est le taux d'int\'{e}r\^{e}t r\'{e}el et $w,$ le salaire r\'{e}el. La maximisation de profit implique% \begin{align*} w & =\frac{\partial F}{\partial L}=\left( 1-\alpha\right) \frac{Y}{L}\\ r & =\frac{\partial F}{\partial K}=\alpha\frac{Y}{K}% \end{align*} De plus,% \[ wL+rK=Y \] du fait de l'homog\'{e}n\'{e}it\'{e} et de la constance des rendements d'\'{e}chelle (identit\'{e} d'Euler). Cette technologie avec des productivit\'{e}s marginales d\'{e}croissantes est la diff\'{e}rence principale de ce mod\`{e}le par rapport au mod\`{e}le de Harrod. Plusieurs de nos faits stylis\'{e}s \'{e}taient exprim\'{e}s en termes de produit par t\^{e}te (\textit{per capita}). Pour cette raison, nous allons utiliser une version de ce mod\`{e}le exprim\'{e}e en termes de valeurs per capita\thinspace:% \begin{align} \,k & =\frac{K}{L}\quad\,(\text{avec }\frac{L}{L}=1).\nonumber\\ y & =\frac{Y}{L}=f\left( k\right) =\frac{F\left( K,L\right) }{L}% =\frac{K^{\alpha}L^{\left( 1-\alpha\right) }}{L}=\left( \frac{K}{L}\right) ^{\alpha}=k^{\alpha}\nonumber\\ & \,y=f\left( k\right) =k^{\alpha} \label{y}% \end{align} % \end{document} Quote Link to comment Share on other sites More sharing options...
coverup Posted February 1, 2008 Report Share Posted February 1, 2008 I am affraid, I do not have an answer. Your document produces the same error on my machine. It seems that there is a problem with creating the temporary directory in /var/tmp/. That seems to be the root of the problem. Quote Link to comment Share on other sites More sharing options...
yildi Posted February 1, 2008 Author Report Share Posted February 1, 2008 Thank you very much for your interest! This is strange, no? I have also tried to launch latex2html as root just for testing and I observe the same problem. Is it possible that the configuration of netpbm or of Latex2html in Mandriva 2008 is faulty? Quote Link to comment Share on other sites More sharing options...
coverup Posted February 1, 2008 Report Share Posted February 1, 2008 Don't know.... I stopped using latex2html a long time ago. Posting a PDF on the web does the job for me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.