Discussion:
[l2h] Error when loading .latex2html-init in Windows
Duc A. HOANG
2017-10-16 04:00:42 UTC
Permalink
Dear all members of the mailing list,

Recently, I install LaTeX2HTML Ver. 2017.2 (available at this page
https://github.com/latex2html/latex2html) in Windows 10 Pro 32-bit.
The installation is successful, and the log of my installation is as
follows:

config.pl, Release 2017.2 (Released Jan 23, 2017)
Accompanies LaTeX2HTML, (C) 1999 GNU Public License.

checking for old config file (cfgcache.pm)... not found (ok)
checking for platform... MSWin32 (Windows 32 bit)
checking for C:\Perl\bin\perl.exe... C:\Perl\bin\perl.exe
checking perl version... 5.022004
checking if perl supports some dbm... yes
checking if perl globbing works... yes
checking for tex... C:\texlive\2017\bin\win32\tex.exe
checking for latex... C:\texlive\2017\bin\win32\latex.exe
checking for initex... C:\texlive\2017\bin\win32\initex.exe
checking for kpsewhich... C:\texlive\2017\bin\win32\kpsewhich.exe
checking for kpsewhich syntax... ok (style=1)
checking for TeX include path... /texlive/texmf-local/tex\latex\html
checking for mktexlsr... C:\texlive\2017\bin\win32\mktexlsr.exe
checking for dvips... C:\texlive\2017\bin\win32\dvips.exe
checking dvips version... 5.997
checking if dvips supports the combination of -E and -i -S 1... yes
checking for dvipng... C:\texlive\2017\bin\win32\dvipng.exe
checking for html4-check... no
checking for gswin32c... C:\gs\gs8.54\bin\gswin32c.exe
checking for ghostscript version... 8.54
checking for ghostscript portable bitmap device... pnmraw
checking for full color device for anti-aliasing... ppmraw
checking for ghostscript library and font paths... built-in paths are correct
checking for pnmcrop... C:\GnuWin32\bin\pnmcrop.exe
yes
checking for pnmflip... no
Warning: You may need to rely on LaTeX to generate images with flipping effects.
checking for ppmquant... no
checking for pnmfile... C:\GnuWin32\bin\pnmfile.exe
checking for pnmcat... C:\GnuWin32\bin\pnmcat.exe
checking for pbmmake... C:\GnuWin32\bin\pbmmake.exe
checking for ppmtogif... C:\GnuWin32\bin\ppmtogif.exe
yes
checking if ppmtogif can make interlaced GIFs... yes
checking for pnmtopng... C:\GnuWin32\bin\pnmtopng.exe
checking for ppmtojpeg... C:\GnuWin32\bin\ppmtojpeg.exe
checking for pnmcut... C:\GnuWin32\bin\pnmcut.exe
checking for pnmpad... C:\GnuWin32\bin\pnmpad.exe
checking for pnmrotate... C:\GnuWin32\bin\pnmrotate.exe
checking for pnmscale... C:\GnuWin32\bin\pnmscale.exe
checking for giftopnm... C:\GnuWin32\bin\giftopnm.exe
checking for jpegtopnm... C:\GnuWin32\bin\jpegtopnm.exe
checking for pngtopnm... C:\GnuWin32\bin\pngtopnm.exe
checking for tifftopnm... C:\GnuWin32\bin\tifftopnm.exe
checking for picttoppm... no
Warning: You cannot directly translate/modify graphics of pict format.
checking for anytopnm... no
Warning: You cannot directly translate/modify graphics of arbitrary format.
checking for bmptoppm... C:\GnuWin32\bin\bmptoppm.exe
checking for pcxtoppm... C:\GnuWin32\bin\pcxtoppm.exe
checking for sgitopnm... C:\GnuWin32\bin\sgitopnm.exe
checking for xbmtopbm... C:\GnuWin32\bin\xbmtopbm.exe
checking for xwdtopnm... C:\GnuWin32\bin\xwdtopnm.exe
checking if multiple pipes work... no
Unfortunately multiple pipes are not reliable on this OS.
checking for temporary disk space... C:\Users\HOANGA~1\AppData\Local\Temp
creating cfgcache.pm
creating test.bat
creating install.bat
Note: Will install...
... executables to : C:\latex2html\bin
... shared library items to : C:\latex2html
... unshared library items to : C:\latex2html

My problem now is that every time I use latex2html with a
.latex2html-init file (I even tested with the dot-latex2html-init file
included in the distribution) in the same directory as the TEX files,
the compilation process stops immediately and the following message
keep appearing:

Unmatched [ in regex; marked by <-- HERE in m/^[ <-- HERE .\]/ at
C:\latex2html\bin/latex2html.bat line 432.

On the other hand, if I delete the file .latex2html-init and
re-compile with latex2html then it works like a charm.

I am grateful if some of you could help with this problem.


Best regards.
Duc A. HOANG,
Shigeharu TAKENO
2017-10-16 10:50:06 UTC
Permalink
shige 10/16 2017
----------------

"Duc A. HOANG" wrote:
| Recently, I install LaTeX2HTML Ver. 2017.2 (available at this page
| https://github.com/latex2html/latex2html) in Windows 10 Pro 32-bit.
| The installation is successful, and the log of my installation is as
| follows:
=====
| My problem now is that every time I use latex2html with a
| .latex2html-init file (I even tested with the dot-latex2html-init file
| included in the distribution) in the same directory as the TEX files,
| the compilation process stops immediately and the following message
| keep appearing:
|
| Unmatched [ in regex; marked by <-- HERE in m/^[ <-- HERE .\]/ at
| C:\latex2html\bin/latex2html.bat line 432.

I think that is a bug introduced in latex2html-2017.2.

Try to modify your C:\latex2html\bin/latex2html.bat at that line:

if ($INIT_FILE !~ /^[.$dd]/) {

to

if ($INIT_FILE !~ /^[.$dd$dd]/) {

+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
***@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+
Duc A. HOANG
2017-10-16 13:11:00 UTC
Permalink
Dear Shigeharu TAKENO,

I confirm that this modification solves my problem. Thank you very much!

Best regards.
Duc A. HOANG.
Post by Shigeharu TAKENO
shige 10/16 2017
----------------
| Recently, I install LaTeX2HTML Ver. 2017.2 (available at this page
| https://github.com/latex2html/latex2html) in Windows 10 Pro 32-bit.
| The installation is successful, and the log of my installation is as
=====
| My problem now is that every time I use latex2html with a
| .latex2html-init file (I even tested with the dot-latex2html-init file
| included in the distribution) in the same directory as the TEX files,
| the compilation process stops immediately and the following message
|
| Unmatched [ in regex; marked by <-- HERE in m/^[ <-- HERE .\]/ at
| C:\latex2html\bin/latex2html.bat line 432.
I think that is a bug introduced in latex2html-2017.2.
if ($INIT_FILE !~ /^[.$dd]/) {
to
if ($INIT_FILE !~ /^[.$dd$dd]/) {
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
+========================================================+
Shigeharu TAKENO
2017-10-18 05:11:22 UTC
Permalink
shige 10/18 2017
----------------

Ernesto Cuadros Vargas wrote:
| Subject: Re: [l2h] Error when loading .latex2html-init in Windows
| To: Shigeharu TAKENO <***@iee.niit.ac.jp>
=====
| Hi Sigue,
|
| how do I update all the latex2html in my computer (Ubuntu)
| There is something like a:
| sudo apt-get update latex2html
|
| ?


I don't know the way because I don't use Linux. I use FreeBSD
mainly. Occasionally use Solaris and Windows.

+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
***@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+
Ernesto Cuadros Vargas
2017-10-19 17:08:24 UTC
Permalink
Hi Sigue,

how do you update the whole package in FreeBSD?

Saludos
er
Post by Shigeharu TAKENO
shige 10/18 2017
----------------
| Subject: Re: [l2h] Error when loading .latex2html-init in Windows
=====
| Hi Sigue,
|
| how do I update all the latex2html in my computer (Ubuntu)
| sudo apt-get update latex2html
|
| ?
I don't know the way because I don't use Linux. I use FreeBSD
mainly. Occasionally use Solaris and Windows.
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
+========================================================+
--
--
*Ernesto Cuadros-Vargas. PhD*
http://socios.spc.org.pe/ecuadros/
T:+(511) 2305000 <(01)%202305000> Ext 4281
Jr. Medrano Silva 165, Barranco
www.utec.edu.pe
<http://www.buscamoscomplices.pe/>
--
La información contenida en este e-mail y sus anexos es confidencial,
privilegiada y está dirigida exclusivamente a su destinatario, en
consecuencia, solo puede ser utilizada por aquel. Si usted no es el
destinatario original, no deberá examinar, usar, copiar o distribuir este
mensaje o la información que contiene. Si lo recibe por error, por favor
reenvíelo a la persona que se lo envió y elimínelo. Cualquier retención o
uso total o parcial no autorizada de este mensaje está estrictamente
prohibida y sancionada por ley.
Shigeharu TAKENO
2017-10-23 03:00:42 UTC
Permalink
shige 10/23 2017
----------------

Ernesto Cuadros Vargas wrote:

| how do you update the whole package in FreeBSD?

In FreeBSD we use pkg command, or ports tree. But I don't know
package management mechanism in Ubuntu.

Well, you can use new latex2html to install it in user HOME
directory without deleting old one.

1) extract archive file

gunzip -c latex2html-2017.2.tar.gz | tar xvf -

2) configure & make

cd latex2html-2017.2
./configure --prefix=$HOME/l2h-2017 --with-texpath=$HOME/l2h-2017/tex
make
make check
make install

To use it, you must add "$HOME/l2h-2017/bin" to your PATH
environment variable.

+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
***@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+

Loading...