From: Ardi <bo...@ya...> - 2010-01-22 10:10:22
|
Hello all, I have fetched Hyperlatex-2.9a.tar.gz and tried to install it on WinXP with MikTeX 2.8 installed to d:\x_miktex28. (Emacs is in d:\Emacs dir) msys is installed t d:\msys ghostscript and ghostview also installed: d:\x_gs863\gs8.63\bin\ d:\x_gsview49\gsview\ netpbm is installed to d:\x_netpbm I unzipped and untarred the Hyperlatex-2.9a.tar.gz to d:\assa\Hyperlatex-2.9a. Moved everything from doc, etc to bin. Changes: in hyperlatex file: 1. HYPERLATEX_SYS_DIR="/d/assa/Hyperlatex-2.9a/hlx" 2. EMACS=/d/Emacs/bin/emacs in pstoimage file Problem1: (not happened with miktex2.7) First I run pdflatex hyperlatex.tex twice ---> OK (pdf produced.) When in msys I go to /d/assa/Hyperlatex-2.9a/bin and run ./hyperlatex -html hyperlatex.tex I got the following error: mypc> /d/assa/Hyperlatex-2.9a/bin $ ./hyperlatex -html hyperlatex.tex Hyperlatex formatting d:/assa/Hyperlatex-2.9a/bin/hyperlatex.tex... (on Emacs 23.1.1) Running Hyperlatex 2.9-in-waiting-rk (oct06) (1.20 -- 2006/11/20) Parsing ... Package "siteinit" inserted Package "init" not found... Package "article" inserted Reading site init file for Hyperlatex version 2.9-in-waiting (oct06): Package "english" inserted Package "bluepanels" inserted <Basic commands>, <Environments>, <Title>, <Footnotes, index, bibliography>, <Fonts>, <Accents>, <Math> Package "babel" inserted Package "german" inserted Babel package: German Package "longtable" inserted Package "makeidx" inserted Package "frames" inserted ************************ **** Making Frames **** ************************ Making directory html Title of work is "Hyperlatex Manual" Using filename "html/hyperlatex.html" Parsing: ü ... Hyperlatex ERROR: Empty hyperlatex-mode-stack in hyperlatex-set-state. Hint: Try running Latex, it may give a better error message. Error discovered here: >>>/h1À¾Á¬ \endsectionassuch{}{Introduction} \end{ifhtml} The basic idea of Hyperlatex is to make it possible to write a document that will look like a flawless \latex document when printed and like a handwritten \Html document when viewed with an \Html browser. In this it completely follows the philosophy of \latexinfo (and \texinfo). Like \latexinfo, it defines its own input format---the \emph{Hyperlatex markup language}---and provides two converters to turn a document written in Hyperlatex markup into a \dvi file or a set of \Html documents. \label{philosophy} Obviously, this approach has the disadvantage that you have to learn a ``new'' language to generate \Html files. However, the mental effort for this is quite limited. The Hyperlatex markup language is simply a well-defined subset of \latex tÀ¼pÀ¾hat has been extended with commands to create hyperlinks, to control the conversion to \Html, and to add concepts of \Html such as horizontal rules and embedded images. Furthermore, you can use Hyperlatex perfectly well without knowing anything about \Html markup. The fact that Hyperlatex defines only a restricted subset of \latex does not mean that you have to restrict yourself in what you can do in the printed copy. Hyperlatex provides many commands that allow you to include arbitrary \latex commands (including commands from any package that you'd like to use) which will be processed to create your printed output, but which will be ignored in the \Html document. However, you do have to specify that \emph{explicitly}. Whenever Hyperlatex encounters a \latex command outside its restricted subset, it will complain bitterly. The rationale behind this is that when you are writing your document, you should keep both the printed document and the \Html output in mind. Whenever you want to use a \latex command with no defined \Html equivalent, you are thus forced to specify this equivalent. If, for instance, you have marked a logical separation between paragraphs with \l ... mypc> /d/assa/Hyperlatex-2.9a/bin $ empty html subdirectory is created. I remember i used this procedure for miktex 2.7 and it was fine (see my older posts). html was produced but there was the same problem with producing pictures (see below). ===================================================================================== Problem2: mypc> /d/assa/Hyperlatex-2.9a/bin $ ./hyperlatex -image hyperlatex.tex This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) entering extended mode LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded. (d:\assa\Hyperlatex-2.9a\bin\hyperlatex.tex (D:\x_miktex28\tex\latex\base\article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (D:\x_miktex28\tex\latex\base\size10.clo)) (d:\assa\Hyperlatex-2.9a\bin\hyperlatex.sty Package: 'hyperlatex' v2.7 Otfried Cheong (D:\x_miktex28\tex\latex\tools\verbatim.sty) ****************************************** * Making bitmaps from Hyperlatex source! * ****************************************** ) (D:\x_miktex28\tex\latex\tools\xspace.sty) (D:\x_miktex28\tex\generic\babel\babel.sty ************************************* * Local config file bblopts.cfg used * (D:\x_miktex28\tex\latex\00miktex\bblopts.cfg) (D:\x_miktex28\tex\generic\babel\germanb.ldf (D:\x_miktex28\tex\generic\babel\babel.def)) (D:\x_miktex28\tex\generic\babel\english.ldf)) Writing index file hyperlatex.idx (d:\assa\Hyperlatex-2.9a\bin\hyperlatex.aux) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] (D:\x_miktex28\tex\latex\base\omscmr.fd) [11] [12] [13] [14] [15] [16] [17] [18] [19] LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined (Font) using `OT1/cmr/bx/n' instead on input line 1707. [20] [10001] [10002] [21] [22] [23] [24] [25] [26] Underfull \hbox (badness 1354) in paragraph at lines 2362--2368 []\OT1/cmr/m/n/10 You can use []\OT1/cmtt/m/n/10 \cpplabel \OT1/cmr/m/n/10 to p ut a la-bel in the sec-tion doc-u-ment-ing a cer-tain class. [27] [28] [29] [30] Underfull \hbox (badness 10000) in paragraph at lines 2825--2829 []\OT1/cmr/m/n/10 More at-trac-tive blue nav-i-ga-tion panel (you can use a sim -pler style us-ing [31] [32] [33] (d:\assa\Hyperlatex-2.9a\bin\hyperlatex.ind [34] [35] [36]) (d:\assa\Hyperlatex-2.9a\bin\hyperlatex.toc [37]) [38] (d:\assa\Hyperlatex-2.9a\bin\hyperlatex.aux) LaTeX Font Warning: Some font shapes were not available, defaults substituted. ) (see the transcript file for additional information) Output written on hyperlatex.dvi (40 pages, 158696 bytes). Transcript written on hyperlatex.log. This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com) ' TeX output 2010.01.22:1056' -> <D:/x_miktex28/dvips/base/tex.pro><D:/x_miktex28/dvips/base/texps.pro>. <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmex10.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmmi7.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmmi10.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmr7.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmr10.pfb>[10001] d:\x_netpbm\bin\pnmcrop.exe: Unable to create temporary file. mkstemp() failed with errno 22 (Invalid argument) d:\x_netpbm\bin\pnmtopng.exe: Unable to create temporary file. mkstemp() failed with errno 22 (Invalid argument) Done This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com) ' TeX output 2010.01.22:1056' -> <D:/x_miktex28/dvips/base/tex.pro><D:/x_miktex28/dvips/base/texps.pro>. <D:/x_miktex28/fonts/type1/public/amsfonts/latxfont/lcircle1.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/latxfont/line10.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmmi7.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmmi10.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmsy10.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmr7.pfb> <D:/x_miktex28/fonts/type1/public/amsfonts/cm/cmr10.pfb>[10002] d:\x_netpbm\bin\pnmcrop.exe: Unable to create temporary file. mkstemp() failed with errno 22 (Invalid argument) d:\x_netpbm\bin\pnmtopng.exe: Unable to create temporary file. mkstemp() failed with errno 22 (Invalid argument) Done mypc> /d/assa/Hyperlatex-2.9a/bin Note: (I need to close twice gs window, html/boxes.png,html/eqn1.png with empty size created + correct files bin/boxes.ps,bin/eqn1.ps) I used my solution: ps2g.bat ================================================================================ @echo off ::note:this was taken from installed tth tool in winxp :: ps2gif batch file. Use at your own risk. :: Requires ghostscript and the netpbm utilities. if %2.==. goto usage echo "Calling ghostscript to convert %1 to %2 , please wait ..." d:\x_gs863\gs8.63\bin\gswin32.exe -sDEVICE=ppmraw -r150 -sOutputFile=- -sNOPAUSE -q %1 -c showpage -c quit | pnmcrop| ppmtogif >%2 if %3.==. goto end echo "Calling ghostscript to convert %1 to %3 , please wait ..." d:\x_gs863\gs8.63\bin\gswin32.exe -sDEVICE=ppmraw -r150 -sOutputFile=- -sNOPAUSE -r12 -q %1 -c showpage -c quit | pnmcrop| ppmtogif >%3 goto end :usage echo " Usage: ps2gif <file.ps> <file.gif> [<icon.gif>]" :end ================================================================================ convgif2png_ok.bat ================================================================================ d:\p_irfanview410\i_view32.exe boxes.gif /convert=boxes.png d:\p_irfanview410\i_view32.exe eqn1.gif /convert=eqn1.png ================================================================================ to copy the png files to html dir. Note: On linux everything is fine. Can somebody analyze this problem? Thanks and regards, Ardi |