Re: [l2h] Adjusting itemize row spacing

2002-10-19 Thread Ross Moore
 I would like to adjust the spacing between items in the itemize
 environment. I read on a latex list that the way to do this was to
 adjust the \itemsep length just after the \begin{itemize} statement: 

\itemsep is not interpreted by LaTeX2HTML, since there is nothing
corresponding to it in the HTML specs.

The simplest way to get extra space after an \item
is to leave a blank line after the item's contents,
before the next \item.
LaTeX will ignore this extra space, but LaTeX2HTML
interprets it as a new paragraph, so puts an unclosed P tag.
(This remains valid HTML.)
 
 \documentclass[10pt,oneside]{article}
 \usepackage{html,htmllist,color,makeidx,epsfig}
 
 \begin{document}
  \begin{itemize} \addtolength{\itemsep}{0.5\baselineskip}
   \item Doctor of Philosophy (Ph.D.)
   \begin{itemize}
 \item \htmladdnormallink{General information}
{http://www.gradschool.cornell.edu/grad/fields_1/oper-res.html}
 \item \htmladdnormallink{Degree Requirements}{/~kathy/phd/phdreq.html}
 \item \htmladdnormallink{How to apply for a Ph.D. in Operations
 Research }{/
 ~kathy/phd/phd4.html}
   \end{itemize}
 \item Master of Engineering (M. Eng.)
 \end{itemize}
 \end{document}
 
 This works for latex, but makes no difference in latex2html.  I am using: 
 
 E:\LATEXlatex2html -v
 This is LaTeX2HTML Version 2002-1 (1.69)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.  
 
 Related to this, I would like to change the the appearance of the itemize
 levels to be \Large in the first level and italicized on the second level.
 How is this accomplished?

One way is to simply apply the styles that you want to the contents
of your \item s, using explicit \textit commands, or pseudo-environments,
such as  {\Large   }.

An alternative way would be to use CSS styles.
You can edit the stylesheet that LaTeX2HTML creates when you first
process a job. 

HTML is not a rich language for delicate page-layouts.
You must either combine it with CSS, or try a different format, such as PDF.


Hope this helps,

Ross Moore

 
 Thank you,
 
 -- 
 ===
 William T. Martin email:  [EMAIL PROTECTED]
 Cornell University/ORIE   Fax:(607) 255-9129
 257 Rhodes Hall   Phone:  (607) 255-9134
 Ithaca, NY 14853  
 Public Key: http://www.orie.cornell.edu/~martin/public_key.html
 ===
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] numbers in references

2002-10-25 Thread Ross Moore
 Hello latex2html,
 
 I need to use numbered references to formulas, but I have buttonlike
 rectangles instead? Why dous this happen? How do I fix it?

Have you run LaTeX on the document source, so that a .aux file is available
to provide those numbers ?

LaTeX2HTML writes a message to the screen-log if the .aux file is not found.
(Look inside the WARNINGS file of an old job.)

You may also need the  -show_section_numbers   switch,
or set  $SHOW_SECTION_NUMBERS = 1;  in an initialisation file.


As for your problem with {multline} environments,
do you have a URL where I can view an example of this kind ?
It should have the command-line that you used on the About this document...
page, and I also want to look at the HTML of the bad environment.


Hope this helps,

Ross Moore


 
 -- 
 Best regards,
  Victor Zagorski  mailto:zagorski;atom.krasnet.ru
 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Help with converting a latex file using latex2html (newbie)

2002-10-31 Thread Ross Moore
[Charset iso-8859-1 unsupported, filtering to ASCII...]
 Hi,
 I had never used latex before, and i want to convert a latex file to
 HTML..From some news posts i fpund that latex2html is a good tool for doing
 this..
 
 However i am sort of confused with the described usage of the various
 sqwicthes...
 Can someone please send me an example .latex2html-init file that i can use
 as a reference.
 
 
 Here are some of my requirements:
 I have a *.tex file with images (in .eps format) and some mathematical
 equations. I just need to convert it to one single html page, with no
 navigation , no footnotes, .. the images must be inline .. and the
 mathematical expressions must also be converted to images. Also the
 references must be maintained. (I do not know what other features i can use,
 and am open to suggestions).

Just use:

  latex2html -split 0 -no_footnode  -no_navigation   mydocument.tex

See how that works, and list the things that you might want done differently.
There should be a switch to accommodate each of those things.

If the command-line starts to get too long,
then you can think about using an initialisation file instead.

 
 
 Any help is greatly appreciated.

The best advice is don't expect to get everything exactly right first time.
Try it out, then work on the differences.


Hope this helps,

Ross Moore


 Thanks in advance,
 Shashank
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Macro and best-solution for URL

2002-11-08 Thread Ross Moore

hello Ben,

you wrote:
 
 Macro are not analysed by latex2html and definitions are lost. For
 instance,
 \newcommand{\email}[1]{\htmladdnormallink{#1}{mailto:#1}}
 
 and then \email{[EMAIL PROTECTED]}
 produce only the argument ([EMAIL PROTECTED] in that case)
 in basic HTML text inside the final HTML document.

Macro definitions are certainly supposed to be recognised.
That is a basic part of LaTeX2HTML, and any TeX-like system.

If it didn't work for you, then there should have been some messages
in the output-log, when you ran the job.

Presumably it quite a long involved job, and so it is possible for
various things to have gone wrong.
 
 Is-it possible to define very simple macro or to provide a definition of
 those macro for latex2html ?

In fact \email is already defined for LaTeX2HTML, as part of the way
to specify author information in the top-matter of a document.
This is similar to \address as used in AMS document classes.

e.g.

\title{My Document Title}
\author{This is me}
\address{Where I live\\city and state}
\email{[EMAIL PROTECTED]}

\maketitle


It is not advisable to redefine built-in commands of LaTeX2HTML.
Since the processing order is different to other TeX-like programs
it is hard to predict the consequences.


 Moreover, what is the best solution to manage URL :
 the html package ? the url package ? href package ? another package ?

The html package provides very useful constructions for using hyperlinks
in HTML documents.
It also provides Conditional Code constructions,  that allow for different
definitions according to what processor is being used with to process your
document source.

Have you seen the online documentation?
Visit  www.latex2html.org  to find it.

 (well for the moment, we are building pdf document and for that we use href but with
 some macro so if we have to change all of that, let's do it cleanly -
 our only prerequisite is that it works with pdflatex too ;-)

Sure. You will need to experiment a bit, and be prepared to adjust macro expansions
to adapt to what works best in the different settings.
That's why the Conditional Code constructions of the  html  package are so useful.

 
 Thanks by advance,

Hope this helps,

Ross Moore

 
 Ben
 
 -- 
 Benoit des Ligneris   Etudiant au Doctorat -- Ph. D. Student
 Web :http://benoit.des.ligneris.net/
 Vice-President du GULUS vice-president http://www.gulus.org/
 Mydynaweb Developpe(u)r:   http://mydynaweb.net/
 GPG/PGP Key http://benoit.des.ligneris.net/linux/gpg.txt
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



[l2h] Re: Info about custom_title_hook

2002-11-13 Thread Ross Moore
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
 Hello,
 
 I am currently working on a multimedia project for teaching numerical 
 methods to engineers with the Web.
 I use latex to generate texts and latex2html for html translation.
 
 I need to replace the usual names 'node1.html, ...' by the number of the 
 section concerned.
 
 For this, I first use the following instructions :
 
 \renewcommand{\thesection}{\Alph{section}}
 \renewcommand{\thesubsection}{\thesection.\Alph{subsection}}
 \renewcommand{\thesubsubsection}{\thesubsection.\Alph{subsubsection}}
 
 in order to obtain an alphabetical section title.
 
 For example, it will give section titles of the form 'AAAB, AAAC, ...'
 
 The idea is to finally obtain files named 'AAAB.html, AAAC.html, ...' 
 replacing 'node1.html, node2.html ...'
 
 I know that we may generalize this approach in using the perl program 
 'custom_title_hook'.

This should come pretty close to what you want.
The logic is easy enough once you realise that the level-numbering
is available, independent from section-names.

sub custom_title_hook {
my ($i,$A,$return) = (0,'0','');#initialise variables
my @sects = split (/_/, $packed_curr_sec_id);   #get level numbers 
while ($A eq 0) { $A = shift @sects };  #discard leading 0s
while ($i  4) {
$return .= fAlph($A);  #convert number to letter
$A = shift @sects;  #get next level
++$i;   #increment counter
}
$return #should be 4 letters
}


This hasn't been tested.
I hope it works OK.


Hope this helps,

Ross Moore


 The problem is that I don't know how to write this subroutine in Perl, I 
 have no experience in Perl language.
 
 If this doesn't take to much time for you, would you be able to send me 
 the subroutine?
 
 It will give me so much help because the number of sections is about 300.
 
 Thanks a lot in advance and for helping non developers to use latex2html.
 
 Sincerely yours
 
 E.L.
 -- 
 Emmanuel Lefran_ois - Universit_ de Technologie de Compi_gne
 Laboratoire Roberval, UMR6066 UTC-CNRS  D_partement GSM
 B.P. 20529, 60205 Compi_gne Cedex, France
 Tel: +33 (0)3 44 23 49 88, Fax: +33 (0)3 44 23 46 89
 http://www.utc.fr/~elefra02
 

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Changing default calours in frames

2002-11-15 Thread Ross Moore
 I am currently generating html with frames using  LaTeX2HTML Version 
 2002-2 (1.70)  and I was wondering whether there was any (simple) way to 
 change the default colours used in the frames.  Although the peach and 
 purple are quite pleasant, they don't fit in with the colour scheme for 
 the rest of the site.

Find the module  frames.perl  in the directory  $LATEX2HTMLDIR/styles
where $LATEX2HTMLDIR  is the base location for the LaTeX2HTML libraries,
as set at the beginning of the installed latex2html script.

Then a simple grep will tell you what you need to know;
e.g.

landau.ics.mq.edu.au grep COLOR frames.perl
$TEXT_COLOR = bgcolor=\#ff\ text=\#00\ link=\#9944EE\ vlink=\#ff\ 
alink=\#00ff00\
unless $TEXT_COLOR;
if (!$NOFRAMES) { $MAIN_COLOR = bgcolor=\#00\ text=\#ff\ unless 
$MAIN_COLOR;}
else { $MAIN_COLOR = bgcolor=\#ff\ text=\#00\ unless $MAIN_COLOR; }
$NAVIG_COLOR = bgcolor=\#ffeee0\ text=\#00\ link=\#9944EE\ 
vlink=\#FF\ alink=\#00ff00\
unless $NAVIG_COLOR;
$FOOT_COLOR = bgcolor=\#e0\ text=\#00\ link=\#9944EE\ vlink=\#ff\ 
alink=\#00ff00\
unless $FOOT_COLOR;
$TOC_COLOR = bgcolor=\#8080C0\ text=\#ffeee0\ link=\#e0\ vlink=\#e0\ 
alink=\#00ff00\
unless $TOC_COLOR;
 ...
 ...



Thus you see the default settings for the variables used for the color sets
in the different frames:
   $TEXT_COLOR, $NAVIG_COLOR, $FOOT_COLOR, $TOC_COLOR
(and also $MAIN_COLOR for when there are no frames).

As well as the background and text colors, the color sets include the 3 different
colors for link-text of hyperlinks: tested/untested and while being pressed.


Set these in an initialisation file, to have whatever colors you like,
and the defaults will be ignored.

 
 I apologise if this question has been asked before but I couldn't find 
 anything on the archives that seemed to match my request.
 
 Thanks in advance for any help,

Hope this helps,

Ross Moore


 Adrian 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] alltt gives meaning to more than \ and the braces

2002-11-25 Thread Ross Moore
 Hi there,
 
 latex2html seems do more than it should:
 
 \begin{verbatim}
 --foo
 bar
 \end{verbatim}
 
 and
 
 \begin{alltt}
 --foo
 bar
 \end{alltt}
 
 look the same when processed by LaTeX, however, latex2html converts
 alltt environment to an interesting result:
 
 DIV ALIGN=LEFT
 TT
  -foo
  the -- ligature == endash  has acted here.
 
 BR#187;bar
  this is another ligature pattern, for guillemot quotes 

 BR/TT
 /DIV
 
 That looks like a bug to me. ;)
Perhaps.

The {alltt} environment is basically a hack, which is quite
hard to emulate without following the TeX processing model
exactly --- LaTeX2HTML is not designed to do that.

If you really mean verbatim, then you should use
a {verbatim} environment.
 
 Is there a way to turn this processing of?

Not easily, as there is no notion of \catcode in LaTeX2HTML.
It would require a major change to how the {alltt} environment
is processed. 

You could add a post-processing routine, to find the bad patterns
that are characteristic to this document, and fix them.
However, it's value for other documents would be questionable.


Hope this helps,

Ross Moore


 Thanks in advance,
   Gregor
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] cannot find file in \input

2002-11-26 Thread Ross Moore

Hello Ger,

 The option -debug learned me that texexpand does not take TEXINPUTS
 into account, but seems to use a more or less predefined path.

Yes; your analysis is absolutely correct.
 
 
 Now is my question:
 
 Can I tell latex2html to look into 199.dir to find taql.tex or do
 I need to change the \input line into \input{199.dir/taql.tex} ?
 The latter would be tedious, because there are many more such files.

 You could use conditional commands to \input from different directories
when using LaTeX2HTML, and when not.
But yes, this is tedious.

Much more elegant is to set the $TEXINPUTS Perl variable
in a .latex2html-init file for your job.


 Another question is why latex2html does not take TEXINPUTS into account
 anymore. It used to do it.

It doesn't do it (and has not since 1998 or 1999) since typically
the TEXINPUTS variable is set (rightly or wrongly) to include the whole
 texmf/  tree. It is then very easy to pick up the wrong .tex file
in many situations.

Furthermore, it is quite typical that files that are expected to be
found via the TEXINPUTS environment variable contain code that is quite
irrelevant to an HTML translation. This is the same reason that .sty files
are typically not loaded.

The Perl $TEXINPUTS variable serves the desired purpose.
The need to set it separately requires the author to think about whether
the commands in their \input files will have proper HTML support for the
macros that they define, or whether more work needs to be done to obtain
a sensible translation.



Hope this helps,

Ross Moore

 
 
 Thanks,
 Ger van Diepen
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Top of images are not cropped

2002-11-26 Thread Ross Moore
 I use latex2html to produce png images, but it doesn't crop the top of 
 the images enough.
 
 I would like latex2html either to have a switch for setting the -crop 
 argument which pstoimg uses, or that the default for crop to minimum 
 size (line 3592 in version $Id: latex2html.pin,v 1.70 2002/08/22 
 15:14:08 RRM Exp $) was $crop{$name} = blrlt instead of $crop{$name} = 
 blrl.

I think the intenion here is to first crop away the cropping bars,
via the  b and l , then remove extra space on the left and right,
since TeX has centered the environment's contents on the printed page.
In HTML that extra space is not needed.

There is not t cropping, because the cropping-bar at the left-hand side
was initially placed to be the correct height for the environment;
similarly there is no second b crop after the bars have been removed.

 
 What should I do in the meantime?

The best answer is surely to determine what is creating the extra
space that you are trying to remove.
It *should* be the \abovedisplayskip  or  \abovedisplayshortskip
parameter in TeX.
If this is so, then try putting code such as:

\begin{imagesonly}
 \AtBeginDocument{\abovedisplayskip=0pt \abovedisplayshortskip=0pt}
\end{imagesonly}

into the document preamble, assuming that  \usepackage{html} has been
used earlier in the preamble.

 I tried to use mogrify, but it has problems with the transparency and I 
 don't know how many pixels I can crop.

Yes; that's why LateX2HTML uses pnmcrop , since there's no easy way
to find out how much to crop.


Hope this helps,

Ross Moore

 
 
 Regards
 Magnus Widerberg
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] hello everybody

2002-12-08 Thread Ross Moore
 I'm a student at Department of Computer Science, Dresden University of
 Technology. My job at University is converting documentation into the
 HTML-Format for using by handycaped students at my Department.
 The students can read the HTML with lynx and very large literal on the
 console.
 
 This is a good thing, and the converter latex2html is mostly a great
 start for me.
 
 But, I have two large problems in this situation:
 
 First.
 The goal is a page-to-page conversation to HTML. If I have a tex-file I
 can use LaTeX and make by the end a ps-file. At this ps-file the layout
 at page is ok.
 The important point in this situation is the HTML-file the converter
 make a file chapter to chapter, not page to page.

You can make the translator split files at any sectioning-level;
e.g. \subsection \subsubsection  \paragraph  etc.
Use the  -split num   switch, or set the  $MAX_SPLIT_DEPTH  parameter.

 What can I do to convert a page-of-page document?

Furthermore, you could define your own markup to be a sectioning command
for LaTeX2HTML, but do nothing with normal LaTeX processing.
That sounds like an appropriate thing for your situation.

Consult the documentation for how to do this.
 
 And second.
 If the converter found a large picture, he wrote as HTML alternative-tag
 TeX-code. It' s ok, but in the center he make two cuts and the code is
 not complete.

Yes; that's true.
The maximum length of the coding is ~200 characters, for compatibility
with older database (DBM) software with Perl.

You could change this, with some strategic edits in the  latex2html  Perl script.
(Better is to find the appropriate subroutine, then place an edited copy
within an initialisation file.)

 This is very bad, the students can't reading the uncompletly TeX-Code.

 ... do they really *want* to read the TeX code ?

If the image is of a text-based environment, then it is surely better
to devise an appropriate translation into HTML.
Use conditional coding:

\usepackage{html}

\begin{htmlonly}
 \renewenvironment{myenv}
   {... start of simpler LaTeX environment(s) ... }
   {... end of simpler LaTeX environment(s) ... }
\end{htmlonly}

 
 What is the way for the correctly TeX-Code at the HTML alternative-tag?

You can do this using the  \htmlimage  command,
which can be placed anywhere with an environment that will be converted
into an image. (If not an image, the \htmlimage  command will be ignored.)

Try either:
  \htmlimage{... other options... , ALT= alt-text }
  \htmlimage{... other options... ,  alt-text }

In the latter case, everything that is not identified as one of the
specific options is interpreted as being for the ALT attribute.
(Beware of using ',' within the ALT-text.)
 

 
 thanks and regards from Dresden/Germany

Hope this helps,

Ross Moore

 
 Jan
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Why images cannot be generated?

2002-12-17 Thread Ross Moore
 Hi all,
 
 I download the latest version of latex2html from www.latex2htm.org, but I 
encountered strange problem when I run test.bat after running config.bat. The problem 
is: all images, including the ones generated to display complex equations, cannot be 
displayed in the html pages. The report is as follows:
 
 Converting image #2
 pstoimg.bat: Error: Ghostscript returned error status 0
 pstoimg.bat: Error: Couldn't find pnm output of C:\ChinaTeX\Temp\l2h1624\image002.ps
 Error: Cannot read 'img2.gif': No such file or directory
 
 Although it seems that I have not correctly installed Ghostscript, I really 
installed the latest version (Ghostscript 8.00) and set $prefs{'EXTRAPATH'} = 
'C:\\gs\\gs8.00\\bin'; in prefs.pm before I ran config.bat.

Hmm; I've never seen Ghostscript 8.
Can you please show me what message results from the following commands:
  gs -v
  gs --help
(just the first few lines, please)

 
 If I omit the problem and continue to run install.bat, the problem remains when I 
try to translate any .tex file to html documents.

I'm guessing that the full path to Ghostscript was not found when you installed
LaTeX2HTML. There should be a message about this in the configure log.
This means that some variables, name $GS and starting $GS... will have empty
values instead of full directory paths. 
You could try to find these and fix them, or wait until the installer is patched
to recognise this latest version of Ghostscript.


Hope this helps,

Ross Moore

 
 Shujun Li
 E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Institute of Image Processing
 School of Electronics  Information Engineering
 Xi'an Jiaotong University
 Xi'an, Shaanxi 710049, P. R. China
 My home page: http://www.hooklee.com
 Welcome to visit ChinaTeX: http://www.ctexer.net
 
 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] dots im mathematical formula tooltip

2002-12-17 Thread Ross Moore
 Hi,
 
 after the compilation of a mathematical formula with latex2html we
 normally get a GIF or PNG which contains the formula. If I move with the
 mouse in IE or NS over the formula I get a tooltip with the
 corresponding Latex code. However, if the Latex code is too long some
 parts of the formula are replaced by three dots. Does anyone know how we
 can always get the full Latex code in the tooltip ?

There is a reason for the truncation, at least on older Perl systems.
You can experiment with changes to the following block of coding,
from the latex2html script, part of the  sub  extract_parameters  block:

  if (!$alt) {
#...catching all the code for the ALT text.
local($keep_gt)=1;
$alt = flatten_math($contents); undef $keep_gt;
#RRM: too long strings upset the DBM. Truncate to = 165 chars.
if ( length($alt)  163 ) {   
local($start,$end);
$start = substr($alt,0,80);
$end = substr($alt,length($alt)-80,80);
$alt = join('',$start,...\n ...,$end);
}


Hope this helps,

Ross Moore


 
 Thanks a lot in advance
 
   Sigbert
  
 --
 Wer keinen Wunsch hat, ist dem Gl_ck bereits ziemlich nahe (Rabindran_th
 Th_kur 1861 - 1941)
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: Re: [l2h] Why images cannot be generated?

2002-12-17 Thread Ross Moore

 Dear Ross Moore,
 
 Thanks for your help. Stragely, it seems that config.bat have successfully find AFPL 
Ghostscript 8.00. The following is the segmented texts in config.log after running 
config.bat:
 
 ...
 checking for gswin32c... C:\gs\gs8.00\bin\gswin32c.exe
 checking for ghostscript version... 8.00
 ...

Hmm.
So it looks like it found that OK -- which is good.
That leaves me mystified about what else might be the problem.


 
 Similarly, the following is the segmented texts in pstoimg.bat after running 
install.bat:
 
 ...
 # Ghostscript
 my $GS = 'C:\\gs\\gs8.00\\bin\\gswin32c.exe';
 my $GSDEVICE = 'pnmraw';
 my $GSALIASDEVICE = 'ppmraw';
 ...

Looks good.

 
 Search path:
. ; C:\gs\gs8.00\lib ; C:\gs\fonts ; c:/gs/gs8.00/lib ; c:/gs/fonts
 For more information, see c:/gs/gs8.00/doc/Use.htm.
 Report bugs to [EMAIL PROTECTED], using the form in Bug-form.htm.


  Converting image #2
  pstoimg.bat: Error: Ghostscript returned error status 0
  pstoimg.bat: Error: Couldn't find pnm output of 
C:\ChinaTeX\Temp\l2h1624\image002.ps

So it looks like Ghostscript got started, but it failed for some reason.

Run your job again, using the  -debug  switch.

Post the output to the terminal that results.
Perhaps some of the extra messages will reveal something useful.

This will also retain intermediate files, such as the .ps files,
and show LaTeX messages as well. 
It may be that something is missing for LaTeX, resulting in one or more
empty, or otherwise bad, images.


Hope this helps,

Ross Moore



 
 best regards,
 Shujun LI
 
  Hi all,
  
  I download the latest version of latex2html from www.latex2htm.org, but I 
encountered strange problem when I run test.bat after running config.bat. The problem 
is: all images, including the ones generated to display complex equations, cannot be 
displayed in the html pages. The report is as follows:
  
  Converting image #2
  pstoimg.bat: Error: Ghostscript returned error status 0
  pstoimg.bat: Error: Couldn't find pnm output of 
C:\ChinaTeX\Temp\l2h1624\image002.ps
  Error: Cannot read 'img2.gif': No such file or directory
  
  Although it seems that I have not correctly installed Ghostscript, I really 
installed the latest version (Ghostscript 8.00) and set $prefs{'EXTRAPATH'} = 
'C:\\gs\\gs8.00\\bin'; in prefs.pm before I ran config.bat.
 
 Hmm; I've never seen Ghostscript 8.
 Can you please show me what message results from the following commands:
   gs -v
   gs --help
 (just the first few lines, please)
 
  
  If I omit the problem and continue to run install.bat, the problem remains when I 
try to translate any .tex file to html documents.
 
 I'm guessing that the full path to Ghostscript was not found when you installed
 LaTeX2HTML. There should be a message about this in the configure log.
 This means that some variables, name $GS and starting $GS... will have empty
 values instead of full directory paths. 
 You could try to find these and fix them, or wait until the installer is patched
 to recognise this latest version of Ghostscript.
 
 
 Hope this helps,
 
  Ross Moore
 
  
  Shujun Li
  E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED]
  Institute of Image Processing
  School of Electronics  Information Engineering
  Xi'an Jiaotong University
  Xi'an, Shaanxi 710049, P. R. China
  My home page: http://www.hooklee.com
  Welcome to visit ChinaTeX: http://www.ctexer.net
  
  
  
  ___
  latex2html mailing list
  [EMAIL PROTECTED]
  http://tug.org/mailman/listinfo/latex2html
 
 
 
 

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] pstoimg won't compile

2002-12-19 Thread Ross Moore
 Hi, 
 
 I'm trying to install LaTeX2html on Windows XP. Perl is installed and all the netpbm 
executables and dlls are in the right place, gswin32c is accessible and all the 
directories are specified in prefs.pm, but when I run the config.bat, I get a message 
that  some missing external programs are missing (I can't get more information!). 
Here's the message.
 
  ... building pstoimg
 build.pl (Revision 1.6)
 config\build.pl: Warning: Skipping build of pstoimg because of missing external
 programs.

This should only happen whin the  pstoimg.pin  (pre-installation version of
 pstoimg )  is what is missing.
Are you sure that you are running the install script from the correct directory ?

 Does anyone out there have any idea of what this could be?

Did you run the  configure  script first, to create the file  cfgcache.pl  ?
There should be an entry in there for  have_pstoimg .
If that's missing or empty, then you will get the message that you saw.


Hope this helps,

Ross Moore


 
 Nicholas

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Questions on implementing ifthen.perl

2002-12-23 Thread Ross Moore
 While the conditional commands in the html.perl package are great when 
 choosing which code to process depending on latex2html or LaTeX2e are 
 being used, I sometimes need conditional processing when processing 
 with LaTeX2e. I assume html.perl can't do general purpose conditional 
 processing with LaTeX2e?
 
 I have a partially complete implementation of ifthen.perl to support
   \ifthenelse{condition}{cond true commands}{cond false commands}
 
 One thing that stymies me is that the parameter sent to 
 do_cmd_ifthenelse is delimited by the next \section/\subsection 

Yes; LaTeX2HTML calculates the document-structure before it expands
macros. So this can never work.

Essentially you have one document for when the condition is 'true' and 
a different document for when the condition is 'false'.
If the condition changes according to the contents of the LaTeX source,
then LaTeX2HTML will not know this at the correct time.
(Your model is then of document-content determining document-structure;
this is very much against the tree-like structure of HTML and XML documents.)

On the other hand, if it changes according to some externally-supplied
input; e.g. something that is set once in the LaTeX preamble, and never
changes after this, then you can use Perl coding to set declarations
that will enable you to handle it.

e.g.
Study comment.sty  with its conditional 'comment' environments.
Surround your conditional sections by comment-like environments.
Develop the logic to handle \includecomment  and  \excludecomment
commands.


Alternatively, your conditional sections could be \input from separate
files. Adjust the values of $DO_INCLUDE and $DONT_INCLUDE within the
 .latex2html-init file, before starting the LaTeX2HTML job.


 command. This produces problems if you want to conditionally process a 
 section, i.e.
 
 \ifthenelse{\boolean{dothissection}}
 {
 \section{This is a section that will be processed if dothissection is 
 true}
 
 And it's contents.
 }
 {
 \section{This is a section that will be processed if dothissection is 
 false}
 
 And it's contents.
 }
 
 I assume that ifthenelse needs to be processed via 
 substitute_meta_cmds since according to the documentation, these are 
 processed prior to splitting the input text into chunks at section 
 boundaries?

Yes; I suppose that is an alternative approach.

But it all depends upon what determines when you want the sections included
or not included. If it is something that will not be known until detailed
expansion of macros has taken place, then you are out of luck.
If it depeneds on some global parameter that is known at the very start of
the job, then there is almost certainly a better way to organise your LaTeX
sources that makes the relevant logic easier to handle.

 
 The other issue raised in a previous mail list posting by Ross is it 
 seems booleans are not guaranteed to expand in the same way in 
 latex2html than in LaTeX, I can live with/work around that, although 
 fairly simple set of commands like
 
 \newboolean{condition}
 \setboolean{condition}{true}
 
 \boolean{condition}
 
 in 1.70 of latex2html.pin always produce 0. I've sent the changes to 
 Ross to fix those bugs in \boolean processing. However, am I correct in 
 assuming latex2html-2002-2-1.tar.gz is still the latest release?

Yeah; sorry.
I've been too busy to make those changes generally available.

I'd need to study examples to ensure that they work correctly,
and establish guidelines on just what working correctly actually means.


As my above comments indicate, use of \ifthenelse is not a good idea for
controlling document structure.
I don't want to make such commands available, and then have to field dozens
of complaints that users are not getting what they expected to get.

This is the surely the real reason why these commands were never implemented
years ago. (Giving unexpected wrong results is worse than giving no results
at all, for this kind of thing.)


 
 The link http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/ from 
 www.latex2html.org lists all files as written on the 29th of November 
 2002, I assume the other ones cover releases in 1999 (i.e 
 latex2html-99.2beta8.tar.gz)  and 2000 (latex2html-2K.1beta.tar.gz)?
 
 Do I understand that to mean latex2html-2002-2-1.tar.gz does not change 
 it's name when updates have been made, or that no changes have been 
 made since the 2002-2-1 release?
 
 I'm sorry for all the questions, but the version numbering in the name 
 of the tarball seems non-standard. Also, am I correct in assuming that 
 the CVS repository itself is not accessible but only a checked out 
 distribution accessible at 
 http://saftsack.fs.uni-bayreuth.de/~latex2ht/user/?

With Marek Rouchal returning after a long absence, the anonymous CVS
logins may become accessible again soon.


THanks for your interest, and hopefully there will be more time
in the New Year to make further improvements to LaTeX2HTML.


All the best,

Ross Moore


 
 In any

Re: [l2h] Already generated image inclusion

2003-01-06 Thread Ross Moore

Hi Herb,

Great to hear from you after so long.

 
 I just stumbled on this possible solution to a previously posted
 question of how to include an already generated (bitmap) image
 into both the html and ps versions of the document.  It is not
 documented, but it works too well for it not to have been a
 designed feature.

Yes.
The latest versions of LaTeX2HTML have revamped graphics.perl
and graphicx.perl via a new module  graphics_support.perl
written by Bruce Miller of NIST.

 In this example, my already generated images are in gif format,
 and are located in the snaps directory relative to my latex
 source.
 
 %
 %  Allow the insertion of gif images from the snap directory.
 %
 \usepackage{graphicx}
 \DeclareGraphicsExtensions{gif}
 \DeclareGraphicsRule{.gif}{eps}{.bb}{`giftopnm #1|pnmtops -noturn -rle}
 \graphicspath{{snaps/}}
 \newlength{\gifwidth}
 %
 %  The \showimage command displays a gif image in html,
 %  and a PostScript version of it in the ps document.  The optional
 %  argument 'width' overrides the natural width of the image.
 %
 %  Usage:  \showimage{image}{caption}
 %  \showimage[width]{image}{caption}
 %
 \newcommand{\showimage}[3][0.9\textwidth]{%
 \setlength{\gifwidth}{#1}
 \begin{figure}[htb]
   \begin{center}
   \vspace{1ex}
   \includegraphics[width=\gifwidth]{#2.gif} \\
   \caption{\label{#2}#3}
   \hrulefill\htmlrule
   \end{center}
   \end{figure}
 }
 
 Apparently, latex2html is smart enough to not attempt to convert
 an image with the .gif extension into PostScript.  Instead, it
 simply inserts the image reference into the html file.  The latex

Bruce's coding allows support of many more graphics formats. It first
determines whether a conversion is necessary or not, by looking at the
filename suffix for whatever files it can find in the local directory
having the correct prefix, then it makes use of many more of the various
netpbm modules to do any required conversions or transformations.
Essentially *all* of the options to LaTeX's \includegraphics command are
supported, including rotations, scaling and cropping to a specified size.

 
 version instructs dvips to convert the gif to PostScript on the fly.
 It does, however, require you to precompute the size of the gif
 file in a nonbinary format that latex can read.  You can do this
 in a makefile via
 
 %.bb:   %.gif
   giftopnm $ | pnmtops -noturn -rle | grep BoundingBox  $@
 
 and listing the .bb files as dependencies to the .dvi file.
 
 You might try this with .png images by making the appropriate
 changes to the \showimage macro, and declaring a different
 GraphicsRule to convert png to ps.
 
 PS - I can see that a lot of improvements have been made to lates2html
 since the lst time I worked it.  Ross, I'm glad to see that you're
 still very actively involved!

It gets a bit of tinkering when someone reports abnormal behaviour which
can be traced to being a real bug. (That doesn't happen very much anymore,
thanks to the great work that has been put in over the years by many people,
yourself included.)


All the best, and have a great New Year

Ross



 
 
 
 
 --
 
 
 
  /---+---\
  | Herbert Swan  | Geoscience Operations |
  | Phillips Alaska, Inc. |   |
  | 700 G Street  | Phone:  (907) 263-4043|
  | Anchorage, AK  99501  | Fax:(907) 265-1608|
  | Room:  PTO 1340   | e-mail: [EMAIL PROTECTED]  |
  \---+---/
 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Nested enumerated lists

2003-01-13 Thread Ross Moore
 Hello all,
 
 
 We are within days of final production and we have *just* noticed that
 our nested 
 enumerated lists are not functioning as we expected. 
 
 We want:
 1. Blah blah blah
 2. Blah blah blah blah blah
   a. some more blah blah
   b. even more blah blah
 3. Blah blah
 
 We get:
 1. Blah blah blah
 2. Blah blah blah blah blah
   1. some more blah blah
   2. even more blah blah
 3. Blah blah

Hmm; the enumeration level is supposed to be handled automatically.

However, the label-style can be forced, using an optional argument:

\begin{enumerate}
\item % 1.
 Blah blah blah
\item % 2.
 Blah blah blah blah blah
\begin{enumerate}[a]
 %   ^^^-- here.
\item
 some more blah blah
\item
 even more blah blah
\end{enumerate}
%
\item % 3.
 Blah blah
\end{enumerate}

You may need to load   \usepackage{enumerate}
to have this working in LaTeX,
but LaTeX2HTML needs nothing extra to interpret this syntax.



 
 Is there some switch I need to set in latex2html? The older version 
 of latex2html handled this problem, why doesn't this version? 

I'd need to see your document's contents, to have any chance of answering
that question.

 (I know I don't have the most current version. I really don't want to
 upgrade at this point.
 But if I must...)

That might help; but I don't recall that there have been any edits
of this nature recently.



Hope this helps,

Ross Moore


 
 HELP!
 
 Thanks,
 
 -Steve
 
 -- 
 *
   Stephen M. Fuqua   phone: (603) 643-2600 ext. 772
   Software Documentation Engineerfax: (603) 643-3967
   Fluent Inc.e-mail: [EMAIL PROTECTED]
   10 Cavendish Court www: http://www.fluent.com
   Lebanon, NH 03766-1442
 *
Content-Description: Card for Stephen Fuqua

[Attachment, skipping...]

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] Nested enumerated lists

2003-01-14 Thread Ross Moore
 A response to this item indicated that latex2html2k.1beta fixed the 
 enumerated list problem. If I do go the route of upgrading, should 
 I choose latex2html2k.1beta or something even more recent?

Best is to get the most recent available at  www.latex2html.org .


Cheers

Ross
 
 Regards,
 
 -Steve
 
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



[l2h] Re: latex2html manual

2003-01-28 Thread Ross Moore
 Dear Dr. Ross,
 
 I was wondering whether or not the latex2html manual is also available as a 
 .ps or a .pdf file?

It used to be included with the LaTeX2HTML distribution.
But if this is no longer the case, try:

  http://www-texdev.ics.mq.edu.au/l2h/docs/manual.ps
or
  http://www-texdev.ics.mq.edu.au/l2h/docs/manual.ps.gz
or
  http://www-texdev.ics.mq.edu.au/l2h/docs/manual.pdf


Hope this helps,

Ross Moore
 
 Thanx,
 
 Michael Seevinck
 

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



[l2h] Re: \H{} diaresis not working in l2h

2003-01-31 Thread Ross Moore

Hi Aaron,

 Hi Ross, do you know if anything can be done about this issue:
 
  http://bugs.planetmath.org/cgi-bin/bugzilla/show_bug.cgi?id=101

\H{letter}  specifies the Hungarian umlaut.

So far as I know, there are no special entity names or numbers
for characters using this accent --- certainly not in ISO-8859-1
but maybe there is something in another encoding.

In TeX, the only way to support this (that I know of) is by making
an image of the required accented character.
In LaTeX2HTML, you need to set $ACCENT_IMAGES to obtain this;
e.g. $ACCENT_IMAGES = 'textrm';
so that you get a roman font in the image.
($ACCENT_IMAGES = 'textit';  would give italiced accented chars.)

 
 I assumed at first that it was a bug, but maybe there's a reason it
 can't be done (is there any HTML entity support for it?)

Are there Unicode points for letters with Hungarian umlauts ?
If so, I've never been advised of what these are.

In any case, do browsers support these code-points?
(If not, then there is no point in using them, at this stage.)


I've not readdressed this problem for ~3 years.
Perhaps in that time new possibilities have arisen.
If so, please inform me of what these are.


Hope this helps,

Ross Moore

 Aaron

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] cropping bars --- problem persists :(

2003-01-31 Thread Ross Moore

hello Carlo,

 Our mileage varies, Christian!
 I looked into my l2conf.pm, but it had only the option -E for dvips; so, 
unfortunately,
 Shihegaru's solution works for Christian but not for me; I am appending some
 debugging output from latex2html; the figure img9.gif has a cropping bar at the 
bottom;

It is the case that some characters put ink outside their typeset-area,
either above or to the right.
This is particularly the case with florid type-faces, and with accents
used in math-mode.

Since you report problems with just some images and not all,
then this is probably what is happening.
Can you show the LaTeX coding that is used for this  img9.gif ?
You should be able to find it within the  images.tex  file.


LaTeX2HTML allows a small margin to help account for this effect,
but it cannot cater for the extreme cases without upsetting more
usual situations. 
That is, the lower cropping-bar extends approx .5pt to the right
of the true typesetting width, and ~ 1.5pt above.
If ink falls outside the rectangle defined by this, then the 
pnmcrop calls will not find an edge of constant color, so will
not remove the corresponding cropping-bar.

 I'm clueless how to fix this...

Sometimes you just have to do it by hand in the LaTeX source.
This can mean adding a small bit of extra space within the image.
At the right, this is easy: just put \, after the mathematics
but within the $.\,$
 ^^-  like this.

For extra vertical size, \strut may help;
e.g.  $  \strut$ 
else an invisible \vrule of specified size:
  \vrule height 15pt depth 0pt width 0pt


Hope this helps,

Ross Moore


 Carlo Beenakker
 
 Christian Mensing wrote on Fri Jan 31 14:34:36 CET 2003
 thanks to Shigeharu TAKENO the cropping problem was solved!

That's good to hear.

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



[l2h] Re: \H{} diaresis not working in l2h

2003-01-31 Thread Ross Moore

Hi Aaron,

 #337; in Unicode does Hungarian-umlauted o.
 
 I've basically abandoned Latin-1 PlanetMath uses UTF-8 Unicode.  All
 modern browsers support this (and the page can force the encoding both in
 the http header and with META tags, taking care of the case where the
 user sets another charset as default).

In that case, you should be using the command-line switches:

 latex2html -html_version 4.0,latin1,unicode,utf8,.
 

or have the $HTML_OPTIONS variable set to include these.

While you are thinking about this topic, please test this.
These extensions have been available for a long time now,
but I've not seen many examples of web-pages using them.

 
 In the last 3 years, I'd say the installed base of software has shifted to
 being able to handle Unicode, so I would definitely advise making it
 supported and default.

It would be nice to think that most of your audience is keeping up.
Hopefully that is true, at least in the more affluent countries.

 This page is a useful resource:
 
  http://www.unicode.org/charts/
 
 The offending o is on the Latin Extended-A chart.

With the 'latin1,unicode'  options as above
 (actually the 'latin1' should be redundant)
then LaTeX2HTML should catch the \H{o} and replace it by #337;

With also 'utf8' (or $USE_UTF8 = 1; )
then this #337; should be replace by a 2-byte sequence, later in
the processing.


If you cannot get this to work, then report back to me with an example
(and a URL to the bad results).


Hope this helps,

Ross

 Aaron
 
 On Sat, Feb 01, 2003 at 12:15:07PM +1100, Ross Moore wrote:
  
  Hi Aaron,
  
   Hi Ross, do you know if anything can be done about this issue:
   
http://bugs.planetmath.org/cgi-bin/bugzilla/show_bug.cgi?id=101
  
  \H{letter}  specifies the Hungarian umlaut.
  
  So far as I know, there are no special entity names or numbers
  for characters using this accent --- certainly not in ISO-8859-1
  but maybe there is something in another encoding.
  
  In TeX, the only way to support this (that I know of) is by making
  an image of the required accented character.
  In LaTeX2HTML, you need to set $ACCENT_IMAGES to obtain this;
  e.g. $ACCENT_IMAGES = 'textrm';
  so that you get a roman font in the image.
  ($ACCENT_IMAGES = 'textit';  would give italiced accented chars.)
  
   
   I assumed at first that it was a bug, but maybe there's a reason it
   can't be done (is there any HTML entity support for it?)
  
  Are there Unicode points for letters with Hungarian umlauts ?
  If so, I've never been advised of what these are.
  
  In any case, do browsers support these code-points?
  (If not, then there is no point in using them, at this stage.)
  
  
  I've not readdressed this problem for ~3 years.
  Perhaps in that time new possibilities have arisen.
  If so, please inform me of what these are.
  
  
  Hope this helps,
  
  Ross Moore
  
   Aaron
  

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



[l2h] Re: \H{} diaresis not working in l2h

2003-01-31 Thread Ross Moore
 Heh, it was a silly problem: I run l2h's output through TIDY to turn it
 into XHTML, and it was tidying up the UTF-8.  The two ways to solve
 this are to either tell l2h not to output as utf8, or to tell tidy to
 read input as utf8.  I chose the former, and it works fine.

Great.
Now that's the kind of explanation that I like to hear.
  :-)

 
 Thanks for your help... didn't know about the unicode provisions.

Yeah; the manual needs some revisions.
It *is* described in the LaTeX Web Companion.

Cheers

Ross
 
 Aaron
 
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] img placement problem

2003-02-04 Thread Ross Moore
 In relation to an earlier request:
 
  Look in the images.log file, produced when the job was last
  run, requiring images to be generated.
  Does that show any bad errors that may be related?
 There are errors in the images.log file. It seems that
 when the images.tex file is generated there is a \begin{document}
 tag in two places, and \newcommand tags are repeated.

With \usepackage{html} there are conditional environments:
\begin{latexonly}
  ...
\end{latexonly}
\begin{html}
  ...
\end{html}
\begin{imagesonly}
  ...
\end{imagesonly}

and special comments:

%begin{latexonly}
  
%end{latexonly}

which let you mark blocks of LaTeX source
(particularly in the preamble) as being
relevant to certain types of processing only.

This lets you control precisely what goes into the preamble
of the images.tex file, so that it doesn't conflict with
the special requirements of that file, and so that it
doesn't include stuff that will create redundant images.

For example, anything to do with a title-page has no bearing
on the making of images, so ought to be excluded.


Spend some time adjusting your preamble, to get your document
working properly.
You will then be able to use the same preamble with other, similar
documents, and get good results from LaTeX2HTML.


Hope this helps,

Ross Moore



 So I'm getting:
 -
 \documentclass[12pt]{report}
 \RequirePackage{ifthen}
 
 
 
 \usepackage[dvips]{graphicx}
 \usepackage{tabularx}
 \usepackage{ltxtable}
 \usepackage{xspace}
 \usepackage{moreverb}
 \usepackage{fancyheadings}
 \usepackage{varioref}
 \usepackage{byname}
 \usepackage{makeidx}
 \usepackage{supertabular}
 \usepackage[T1]{fontenc}
 \usepackage{array}
 
 \usepackage{html}
 
 ...etc
 \providecommand{\SUPERTOP}[6]{
   \paragraph*{Table:#1}
\begin{center}
\label{#5}
\begin{tabular}
\hline
#3 \\
\hline \hline
}%
\providecommand{\SUPERBOTTOM}{
\end{center}
}
 
 \begin{document}
 
 
 {\LARGE
 
 
 \htmladdimg{psynch.png}\vspace{0.1in}
 
 
 P-SYNCH
 
 
 TECHNICAL DOCUMENTATION
 
 
 {\large \sf
   \mbox{} \hfill
   \begin{tabular}{rl}
 Software revision:  6.2 \\
 Document revision:  0.211 \\
 Last changed:  \today  \\
 \end{tabular}
 }
 }
 %
 \providecommand{\SUPERTOP}[6]{
 \paragraph*{Table:#1}
 \begin{center}
 \label{#5}
 \begin{tabular}#4
 \hline
 #3 \\
 \hline \hline
 }%
 \providecommand{\SUPERBOTTOM}{
 \end{center}
 }
 ...
 
 \begin{document}
 \pagestyle{empty}\thispagestyle{empty}\lthtmltypeout{}%
 -
  Is ther somewhere where your example can be viewed ?
 We do publish the full document at psynch.com/docs/instguide, but it is
 not current..
 
 I placed a sample of what the pages should look like at
 www.geocities/bdale_writes/node34-true.html
 the result I'm getting is at
 www.geocities/bdale_writes/node34.html
 
 I also included the images.log and images.tex(as images.txt) files in the same
 directory.
 
 Thanks for any help.
 
 -- 
 Barry Dale
 Technical Writer
 M-Tech Information Technology Inc.
 http://mtechIT.com http://psynch.com http://idsynch.com
 
 
 On Fri, 31 Jan 2003, Ross Moore wrote:
 
  
   I use latex2html with a large  project on Linux, and am having
   problems with the way it places images generated from math
   environments in LaTeX. The images appear to be out of sync. To use a minimal
   example, where I have $$text$$ in the source file, it is
   producing |text in the result.
 
  Images out-of-sync is usually a symptom of some other error,
  somewhere else in the job.
 
  Look in the images.log file, produced when the job was last
  run, requiring images to be generated.
  Does that show any bad errors that may be related?
 
 
   I get this when I convert the project on my own machine. When my colleages
   run it on the main company server, they get the expected result.
 
  Could it be that the wrong font is being used ?
 
  Is ther somewhere where your example can be viewed ?
 
 
  Hope this helps,
 
  Ross Moore
 
 
   I am not a programmer, and know very little Perl, so apologies for my
   ignorance. The technical experts at my company installed and configured
   everything on my machine to mirror the company environment, and they are
   stumped by this.
  
   Thanks in advance.
  
  
  
  
   ___
   latex2html mailing list
   [EMAIL PROTECTED]
   http://tug.org/mailman/listinfo/latex2html
 
 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



[l2h] Re: 2 problems using latex2html

2003-02-07 Thread Ross Moore
 Dear Dr Ross Moore,
 
 When I convert *.tex into HTML with your latex2html (ver. 1.47 or 2k.1beta), I found
 (1)  the *.gif or *.png images always have a 'L-shape' border around, which I don't 
need.

Did you install the netpbm utilities ?
The symptom you describe is due to  pnmcrop  failing to work correctly,
to remove those 'cropping-bars' which are used to ensure that the
resulting image is cropped to the correct size.

 (2) the LaTeX command \dotfill  was not recongized by latex2html

How can this possibly be translated into HTML ?
To get proper vertical alignment, you *must* use a TABLE ;
then there is no use for the \dotfill as the material before/after the filler
would be in different cells.
 
 I check the manual document but I did not find an answer.
 Could please you tell me how to solve the two problems. Thank you very much in 
advance.

Hope this helps,

Ross Moore


 With best wishes,
 Sincerely,
 Aiying Zhou
 
 

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] counter for figures

2003-02-11 Thread Ross Moore

Hello Christian,

 hello Ross,
 
 here is one example of a code:

OK.
You are mixing physical and logical markup,
to place the caption side-by-side with the image.

In HTML the CAPTION can only be placed above or below,
so the use of \parbox just gets in the way.

Adjust your coding as follows:
 
\begin{figure}
%begin{latexonly}
  \begin{tabular}{cc}
%end{latexonly}
 \input{\xfigpath/al2_6_H2O2.pstex_t}
%begin{latexonly}
  \parbox[b]{.45\textwidth}{%
%end{latexonly}
\caption[Struktur des H$_2$O$_2$-Molek\uls.]
 {\small Struktur des H$_2$O$_2$-Molek\uls. \newline
 Die vier Atome des Molek\uls bilden eine verdrillte Kette.
 Durch die Verdrillung wird die Abstossung der freien Elektronenpaare der
 Sauerstoffatome verrringert. Die noch vorhandene Abstossung ist die
 Ursache f\ur die geringe Bindungsenergie der O--O-Bindung.}%
 \label{fig:H2O2}%
%begin{latexonly}
 }% end of \parbox
\end{tabular}
%end{latexonly}
\end{figure}

This should not change the result from LaTeX,
and it lets LaTeX2HTML see just:

\begin{figure}
 \input{\xfigpath/al2_6_H2O2.pstex_t}
\caption[Struktur des H$_2$O$_2$-Molek\uls.]
{..}
\end{figure}

and do something sensible with it.
The figure number for the caption will be correct provided the caption
can be matched with what has been written into the .aux file for the
whole job, when processed by LaTeX.


BTW, did you consider using  \begin{tabular}{cp{.45\textwidth}}
or  \begin{tabular}{cb{.45\textwidth}}
along with  \usepackage{array}  and/or  \usepackage{tabularx}  ?

 
 The small picture is placed inside a tabular to get the caption
 on the right free space. The parbox makes an image of the caption.

Logically it is not a caption, but simply a picture.
This will upset the book-keeping for the document-structure.

 The current figure number in the latex version is 70, in LaTeX2HTML
 it is No 9 (due to previous similar occurences). No 70 is missing
 in the l2h, No 71 is ok again.

The #9 comes from counting \caption occurrences within the images.tex
file. It is not related to the numbering of figures within the HTML,
since not all figures have their captions processed this way.

LaTeX2HTML has not been programmed to adjust the {figure} and {table}
counters for each image, since this could easily conflict with the
image-reuse mechanism. 

Perhaps the LaTeX coding for an image could be scanned for '\caption'
and the counters set when this occurs. But doubtless there are cases
where this would conflict with something else.

Personally, I think it best that you adjust your LaTeX source to avoid
including the values of counters inside images --- the counter value
is *not* part of the content of the figure, but merely part of the
book-keeping which governs the overall document structure.



 The URL of the resulting HTML page is
 http://www.cci.ethz.ch/vorlesung/de/al2/node35.html
 
 Each time the caption is displayed as an image, the
 image caption counter is used instead of the figure counter.
 All image captions are listed in images.aux:

The image caption counter, as you call it, is the value of the {figure}
counter for the images.tex run.  It is not part of the sequential numbering
of images for the job as a whole.
Besides, it is not being displayed within HTML CAPTION ... /CAPTION  tags,
which is where captions belong.
 
 \@writefile{lof}{\contentsline {figure}{\numberline {9}{\ignorespaces
 Struktur des H$_2$O$_2$-Molek\uls.}}{1474}}

Perfect, if this file was the .aux for the whole job.
Then the captions could be matched...

 images.aux: END

 ... but LaTeX2HTML never looks at images.aux ;
there is nothing in there that could be of any use.


 
 Hope this explains the situation.

Yes; it explains perfectly why you get what you described.

Hopefully you understand my explanation, and appreciate the value in
adjusting your document source.  Interesting problem!


All the best,

Ross Moore


 Christian Mensing
 -- 
 Christian Mensing
 Lab. f_r Anorg. Chemie   
 http://www.inorg.chem.ethz.ch/group/mensing.html
 ETH H_nggerberg HCI H107  mailto:[EMAIL PROTECTED]
 CH 8093 Z_richtel: +41 (0)1 632 2894, fax: +41 (0)1 632 1149

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html



Re: [l2h] sections..

2003-02-25 Thread Ross Moore

Hello Joao,

 Is it possible to define which sections should be generated in different
 HTMLs? Some times I use something like \HTMLcode{H2}{xxx}, when my
 sections are too small. But they do not appear in content table.

This cannot work, as all that \HTMLcode does is to construct and place
raw HTML into the output files.
Thus you get the presentation aspects of the section tags,
but this is not part of the LaTeX document structure, via \section
\subsection, etc.

LaTeX2HTML uses the  -split  and  -link  options to determine
which sectioning levels should produce new pages.
These adjust Perl variables  $MAX_SPLIT_DEPTH  and  $MAX_LINK_DEPTH
to control the splitting and linking.

It is actually possible to alter these within a running job,
using \HTMLset and/or \HTMLsetenv , but that is rather awkward,
and can upset the table-of-contents if you make too many changes,
since there is no way to know what on-the-fly changes to these variables
were made at the time when the T-of-C is being constructed.
Nevertheless, you should get a useful HTML web-site.


Hope this helps,

Ross Moore


 
 Jo_o.
 
 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] table border...

2003-02-27 Thread Ross Moore
 Is there some how to put no line border into my tables?

LaTeX2HTML is not very smart about borders; it only chooses between
no border and all cells bordered.
This choice is made by looking at the column-specifier
 (e.g.  \begin{tabular}{llc} )
   ^
for the presence of column rules | .
Any such | character turns on the border.
Also, the presence of \hline (and maybe \cline too)
within the table's contents also turns on the border.

This dates from the time when HTML only allowed all or none
for borders. It would be nice to have a way to do more
detailed specifications of column and row lines, via
attributes to cell tags.


Hope this helps,

Ross Moore

 
 Jo_o.
 
 
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] obsolete files in versions/html*.pl ?

2003-03-10 Thread Ross Moore
 i've been hacking latex2html's source code (version 2002-2-1) about a
 bit (just to make it do what i want), and am going to try turning some
 what i've done into useful patches.  it looks to me as if some of the
 files in versions/html*.pl are obsolete: if i could have that
 confirmed/denied, then i could be sure i'm preparing patches for just
 the relevant files.
 
 specifically ...
 
 -rw-r--r--1 phil phil20274 Jul 11  1999 versions/html2_1.pl
 -rw-r--r--1 phil phil 7704 Sep 27 06:15 versions/html2_2.pl
 -rw-r--r--1 phil phil 2666 Jun  6  1997 versions/html3_0.pl
 -rw-r--r--1 phil phil87056 Sep 17  1999 versions/html3_1.pl
 -rw-r--r--1 phil phil47036 Apr 13  2002 versions/html3_2.pl
 -rw-r--r--1 phil phil60307 Apr 13  2002 versions/html4_0.pl
 -rw-r--r--1 phil phil60964 Apr 13  2002 versions/html4_01.pl
 -rw-r--r--1 phil phil60964 Aug 21  2002 versions/html4_1.pl
 
 
 a) it appears that these are never used:

html2_1.pl html2_2.pl html3_1.pl

Correct, insofar as HTML versions 1, 2.1, and 2.2 are never
used anymore, having been superseded long ago by HTML 3.2 and 4.x .

Similarly 3.1 is out-dated, implementing MATH tags that
never got universal acceptance.


 
 
 b) html4_01.pl and html4_1.pl are identical to one another.
 
html4_01.pl is never used, because if you say `-html_version 4.01',
the code rounds 4.01 to 4.0 so you get the same result as if you'd
said `-html_version 4.0'.  i'd guess that the idea behind html4_1.pl
is to let the user say `-html_version 4.1' when they want HTML 4.01
(this doesn't quite work, because the DOCTYPE mentions 4.1).

Yeah, that was the idea.
OK, so there needs to be a small patch to get the DOCTYPE correct.


_if_ i have all that right, then the best course of action would be
to stop the code rounding 4.01 to 4.0, and delete html4_1.pl.

The same trick was used with  3_1  really being  3.01 (I think).
For compatibility with any existing documents or scripts calling
LaTeX2HTML, it would be best to catch  4_1 and make it  4.01
where needed, as well as stopping the rounding.

There is no future compatibility problem, as the W3C have effectively
frozen HTML at 4.01  --- as far as I can recall.
Future development is in  XHTML  and  XML.


 
 thanks in advance for any guidance.


Hope this helps,

Ross Moore

 
 -- 
 Phil Lanch
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] recycling images (?) problem

2003-03-19 Thread Ross Moore

Hi Gabriele,
 
 Hello all,
 
 apologies if my question has an obvious answer.
 
 I have a problem concerning what looks like a wrong image recycling.
 
 Consider the following source, containing two xy environments:

Glad to see that you are making good use of Xy-pic.
 
 --
 \documentclass[a4paper]{article}
 
 \usepackage{xy}
 \usepackage{html}
 
 \begin{document}
 
 \begin{displaymath}
 \begin{xy}
 1em,0em:  
 *+{O};
 p+/u0.1em/**\dir{}?*\dir{|},
 p+/d0.1em/**\dir{}?*\dir{|},
 p+/r2em/*+{P},**\dir{-};p=P;
 P;
 p+/l1em/;p+/u0.7em/;p+/d1.4em/**\dir{.};
 \end{xy}
 \end{displaymath}
 
 \begin{displaymath}
 \begin{xy}
 1em,0em:  
 *+{O};
 p+/u0.1em/**\dir{}?*\dir{|},
 p+/d0.1em/**\dir{}?*\dir{|},
 p+/r2em/*+{P},**\dir{=};p=P; %This is the only difference
 P;
 p+/l1em/;p+/u0.7em/;p+/d1.4em/**\dir{.};
 \end{xy}
 \end{displaymath}
 
 \end{document}
 --
 
 The two environments are almost identical, but for the `double bond'
 directional in the second one (marked on the snippet).

It is the almost identical that is the problem.

LaTeX2HTML constructs a key from the source code that
defines an image. This key is of finite length,
shorter than the length of your long environments.
To stay within the length limits, coding is taken from the
beginning and some from the end, disregarding some stuff
from in-between.

What is happening is that both code snippets are producing the same key,
so the recycling mechanism actually thinks that you are just reusing
the same image, so doesn't bother to handle both separately.

You could try making some trivial differences near the beginning
of the environments; e.g. with a comment

\begin{xy} % molecule with single-bond


\end{xy}

and

\begin{xy} % molecule with double-bond


\end{xy}


or put a triviality into the coding for one image:

\begin{xy}
 0+0,1em,0em:
 ...
 ...
\end{xy}

Hope this helps,

Ross Moore

 
 
 I translate with:
 
 --
 latex2html  -split 0  \
 -link 0\
 -address   \
 -info  \
 -debug  \
 -dir /home/balducci/tmp/l2h-d   \
 -tmp /home/balducci/tmp/l2h-d \
 source  l2h-log 21
 --
 
 
 What I get is the first picture repeated twice.
 
 The images.tex file contains only the first picture: the second one
 does not get written to it. The generated html document sources the
 same gif twice.
 
 To me, it all works like l2h considers the two environments identical
 and simply doubles the first one to avoid waste of resources (but the
 two environments are NOT identical, and the double bond needs to be
 there).
 
 If I make some more evident change to the second environment, e.g.:
 
 --
 \documentclass[a4paper]{article}
 
 \usepackage{xy}
 \usepackage{html}
 
 \begin{document}
 
 \begin{displaymath}
 \begin{xy}
 1em,0em:  
 *+{O};
 p+/u0.1em/**\dir{}?*\dir{|},
 p+/d0.1em/**\dir{}?*\dir{|},
 p+/r2em/*+{P},**\dir{-};p=P;
 P;
 p+/l1em/;p+/u0.7em/;p+/d1.4em/**\dir{.};
 \end{xy}
 \end{displaymath}
 
 \begin{displaymath}
 \begin{xy}
 1em,0em:  
 *+{O};
 p+/u0.1em/**\dir{}?*\dir{|},
 p+/d0.1em/**\dir{}?*\dir{|},
 p+/r2em/*+{P},**\dir{=};p=P; %This is the only difference
 P;
 p+/l1em/;p+/u0.7em/;p+/d1.4em/**\dir{.};
 P; % ADDED THIS ONE
 \end{xy}
 \end{displaymath}
 
 \end{document}
 --
 
 then all works properly.
 
 Why does not l2h  recognize that the two environments are different?
 
 Am I missing something?
 
 Could anybody check that the above behavior is reproducible?
 
 
 Thank you very much in advance for any help.
 
 
 Ciao
 Gabriele
 
 Here are my main specs:
 -
 dschbaldx:12 latex2html -version
 Note: Loading /home/balducci/.latex2html-init
 Note: Initialising with file: /home/balducci/.latex2html-init
 This is LaTeX2HTML Version 2002-2-1 (1.70)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.
 -
 dschbaldx:13 perl -version
 
 This is perl, v5.8.0 built for i686-linux
 
 Copyright 1987-2002, Larry Wall
 -
 dschbaldx:31 uname -smrp
 Linux 2.4.20 i686 unknown
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] feature request - popup for scaled images

2003-03-31 Thread Ross Moore


On Mon, 31 Mar 2003, Michael De Nil wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hey

 I scale images in my latex documents a lot, and I was thinking of the
 following: wouldn't it be possable to set create a link from the scaled
 images to a 'popup' with the image in full resolution?

 Just an idea... :)

Not a new one, though.
Have a look in the documentation for 'Thumbnails'.

Hope this helps,

Ross Moore



 Greetings
   Michael


 - --

 Michael De Nil --- [EMAIL PROTECTED]
 Linux lisa.flex-it.be running 36 days
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org

 iD8DBQE+iCPINnTs0s0Nh3sRAqNsAJwMT1C0GukJh2UJgmHloEvX+LryFgCfd+Ob
 hSr4vY5sfnualPk2nf8riLo=
 =FYZo
 -END PGP SIGNATURE-
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] '\\' (newline) in math-mode not working

2003-03-31 Thread Ross Moore


On Mon, 31 Mar 2003, Michael De Nil wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hey

 I have got a latex-file with pieces of src like the following:

 \item
   {$
   A =
   \frac{v_{out}}{v_{in}} \\=
   \frac{v_c}{v_b} \\=
   \frac{-i_c.(r_0//R_C//R_L)}{i_b.r_\pi+i_e.r_e} \\=
   \frac{-i_c.(r_0//R_C//R_L)}{\frac{i_c}{\beta}.r_\pi+i_c.r_e} \\=
   \frac{-i_c.(r_0//R_C//R_L)}{i_c.\left(\frac{r_\pi}{\beta}+r_e\right)} 
 \\=
 \frac{-(r_0//R_C//R_L)}{r_e'+r_e}
 $}
 \item
 {$
   A_V=
   \frac{v_{out}}{v_s} =
   \frac{v_{out}}{v_{in}} =
   A =
   \frac{-(r_0//R_C//R_L)}{r_e'+r_e}
 $}

 The formula in the upper item should be displayed with every time a
 newline between, and the second one should be printed on one line. When I
 compile the code with latex - dvi, it looks nice,

Surely you jest.
Here you have so much mathematics that it belongs in a displayed
environment, yet you are trying to put it 'inline'.

Furthermore, you do not line up the = signs properly, and the lines are
cramped to be rather too close together.
Are you working in a narrow column ? Why else would you not allow your
inline math to use the full typesetting width that is available ?

   but a latex2html
 fails...

  Yes, because LaTeX2HTML does not recognise use of \\ within inline
math as being valid markup for mathematics. It needs to be within an
environment designed for alignment and line-breaking, otherwise it will
not be recognised the way you seem to want it to be.


 In the upper example all math is printed on one line (like it should be in
 item 2), and this runes the whole layout of the html-document. You can see
 an example on
 http://flex-it.be:8080/?target=1ge/sem2/elektronica-theoriesv=1 , the src

You have some nice stuff here; but there's too much on a single page.
Break it up over many smaller pages.
Some of the images have poor resolution so need to be shown much larger.

Marking-up for a web-document is generally harder than marking-up for
the printed page, since the graphics model is not so sophisticated,
and the resolution is considerably lower.


 can be found on
 http://flex-it.be:8080/school/1ge/sem2/elektronica-theorie/elektronica-theorie.tar.bz2

 Does anyone know a work-around for this, or if it's not possable yet, you
 can see it as a feature-request ;=)

No changes are warranted, arising from this example.


Hope this helps,

Ross Moore




 Thanks
   Michael


 - --

 Michael De Nil --- [EMAIL PROTECTED]
 Linux lisa.flex-it.be running 36 days
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org

 iD8DBQE+iCOYNnTs0s0Nh3sRAtu5AJ9L5VDj9jXg6x/UbR2hnt20qiIM1ACgwjdO
 Y2pQitvug6XVSao1IVNsBq4=
 =mzOq
 -END PGP SIGNATURE-
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Relative URLs in png/gif images

2003-06-05 Thread Ross Moore

Hi Herb,

Given the sample coding that you provided, the 'feature'
(or lack thereof) is part of the coding for the package
that now handles the way \includegraphics is processed.

However, since your image is constant, (i.e. requiring no further
processing for use in your web-pages,) then you could recode
the definition of your \showimage command,
so that LaTeX2HTML does not need to handle the image at all, but just
create the relative link. Also, it doesn't need the information
about size and spacing.

e.g.
%begin{latexonly}
\newcommand{\showpng}[4][0.9\textwidth]{%
 ... the same coding that you have,
   ignoring the extra argument
}
%end{latex2html}
\begin{htmlonly}
\newcommand{\showpng}[4][]{%
 \begin{figure}[htb]
\begin{center}
  \htmladdimg[center]{#4#2}
  \caption{\label{#2}#3}
\end{center}
 \end{figure}
}
\end{htmlonly}

\begin{document}
 I'm going to include a png image right here:
 \showpng{l2h}{The figure caption}{../figs/}
\end{document}


The extra argument resolves the relative path from where
your HTML pages are placed, to where the image is located.
This is affected by Perl variables and command-line options,
so is not always easily deducible at run-time.


Hope this helps,

Ross


On Wed, 4 Jun 2003, Herb W. Swan wrote:

 --===61040300356847654==
 Content-Type: X-sun-attachment

 --
 X-Sun-Data-Type: text
 X-Sun-Data-Description: text
 X-Sun-Data-Name: text
 X-Sun-Charset: us-ascii
 X-Sun-Content-Lines: 122


 LaTeX2HTML uses an absolute path name when including a gif or
 png image.  These absolute paths will break when the entire
 document is moved to a different location or a different server.
 Relative URLs would be more portable and appropriate if the user
 specifies an image path relative to the document.

 I am using the following version of LaTeX2HTML (l2h):

 This is LaTeX2HTML Version 2002 (1.67)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

 My test program is as follows:

 -

 \documentclass[11pt]{article}
 \usepackage{graphicx}
 \usepackage{html}
 \DeclareGraphicsExtensions{png}
 \DeclareGraphicsRule{.png}{eps}{.bb}{`pngtopnm #1|pnmtops -noturn -rle}
 \newlength{\gifwidth}

 %
 %  The \showimage command displays a gif image in html,
 %  and a PostScript version of it in the ps document.  The optional
 %  argument 'width' overrides the natural width of the image.
 %
 %  Usage:  \showimage{image}{caption}
 %  \showimage[width]{image}{caption}
 %
 \newcommand{\showpng}[3][0.9\textwidth]{%
 \setlength{\gifwidth}{#1}
 \begin{figure}[htb]
   \begin{center}
   \vspace{1ex}
   \includegraphics[width=\gifwidth]{#2.png} \\
   \caption{\label{#2}#3}
   \end{center}
   \end{figure}
 }

 \begin{document}
 I'm going to include a png image right here:
 \showpng{l2h}{The figure caption}
 \end{document}

 -

 The image file I'm displaying (l2h.png) and associated bounding box
 (l2h.bb) are attached to this message if anyone is interested, but any
 image would work just as well.

 The HTML file generated by l2h specifies an absolute image URL:

 I'm going to include a gif image right here:

 DIV ALIGN=CENTERA NAME=l2h/AA NAME=32/A
 TABLE
 CAPTION ALIGN=BOTTOMSTRONGFigure 1:/STRONG
 The figure caption/CAPTION
 TRTD
 DIV ALIGN=CENTER
 BR
 BR
   IMG
  WIDTH=597 HEIGHT=190 ALIGN=BOTTOM BORDER=0
  SRC=/h/lanhws/plano/text/www/test//l2h.png
  ALT=Image /h/lanhws/plano/text/www/test//l2h.png
 BR
 /DIV/TD/TR
 /TABLE
 /DIV

 -

 The problem may be corrected by adding a line to embed_image:

 $url =~ s|^$texfilepath/*||o;   # HWS:  Make URLs relative
 $urlimg = $url;
 $urlimg =~ s/\.$IMAGE_TYPE$/.html/ if ($map);
 if ($exstr =~ s/align\s*=\s*(\?)(\w+)\1($|\s|,)//io) { $align = $2; }
 my $usersize = '';

 -

 Now the HTML uses a portable relative URL to the image, although the
 ALT tag still contains an absolute URL:

 I'm going to include a gif image right here:

 DIV ALIGN=CENTERA NAME=l2h/AA NAME=32/A
 TABLE
 CAPTION ALIGN=BOTTOMSTRONGFigure 1:/STRONG
 The figure caption/CAPTION
 TRTD
 DIV ALIGN=CENTER
 BR
 BR
   IMG
  ALIGN=BOTTOM BORDER=0 SRC=l2h.png
  ALT=Image /h/lanhws/plano/text/www/test//l2h.png
 BR
 /DIV/TD/TR
 /TABLE
 /DIV

 -

 This patch will also work if the image is not in the source directory,
 but in a \graphicspath directory that is relative to the source.
 Another logical extension would then copy the image (wherever it is)
 to the final document directory (creating the relative \graphicspath
 directory, if specified) when the -local_icons switch is set.

 Is this a 

Re: [l2h] Relative URLs in png/gif images

2003-06-05 Thread Ross Moore


On Wed, 4 Jun 2003, Herb W. Swan wrote:


 Thanks, Ross, for your prompt reply.  I tried your suggestion, but
 it fell a bit short of expectations:

  

 What happened was that l2h still tried to convert the image with
 pstoimg.  Of course it failed, since the image was empty as far as
 LaTeX was concerned.

OK, yes; it tried to make an image of the {figure} environment.

To prevent this, simply insert an empty {makeimage} environment
inside the figure; hence within your macro definition, as shown below.
This is the way to tell LaTeX2HTML to make an image just of the specified
portion of the {figure}, and interpret anything else.
Of course an image is made *only* if the specified portion is not just
whitespace.

 \begin{htmlonly}
 \newcommand{\showpng}[4][]{%
 \begin{figure}[htb]
   \begin{center}
  \begin{makeimage}
  \end{makeimage}
   \htmladdimg[center]{#4#2}
   \caption{\label{#2}#3}
   \end{center}
   \end{figure}
 }
 \end{htmlonly}

 \begin{document}
 I'm going to include a png image right here:
 \showpng{l2h}{The figure caption}{../}
 \end{document}

 % 


Hope this helps,

Ross



 beagle% l2h test37
 Note: Loading ./.latex2html-init
 Note: Initialising with file: .latex2html-init
 This is LaTeX2HTML Version 2002 (1.67)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

 Revised and extended by:
  Marcus Hennecke, Ross Moore, Herb Swan and others
 ...producing markup for HTML version 3.2



 Loading /h/lanhws/l2h/versions/html3_2.pl

  *** processing declarations ***

 Loading /h/lanhws/l2h/versions/latin1.pl
 OPENING /h/lanhws/plano/text/www/test/test37.tex

 Note: Working directory is /h/lanhws/plano/text/www/test/test37
 Note: Images will be generated in /tmp/l2h9626

 texexpand V2002 (Revision 1.11)



 Loading /h/lanhws/l2h/styles/texdefs.perl...
 Loading /h/lanhws/l2h/styles/article.perl
 Loading /h/lanhws/l2h/styles/graphicx.perl
 Loading /h/lanhws/l2h/styles/html.perl
 Reading ...
 %,++.
 @

 Reading aux file: /h/lanhws/plano/text/www/test/test37.aux ...
 Processing macros ...++..
 Translating ...
 0/1:top of test37: for test37.html

  *** translating preamble ***
 ...
  *** preamble done ***
 ;,.;

 1/1:sectionstar:..About this document ... for node1.html
 ;;.

 Writing image file ...

 This is TeX, Version 3.1415 (C version 6.1)
 (images.tex
 LaTeX2e 1997/12/01 patch level 2


  *** processing 1 images ***

 Generating postscript images using dvips ...
 This is dvips 5.72 Copyright 1997 Radical Eye Software (www.radicaleye.com)
 ' TeX output 2003.06.04:1704' - /tmp/l2h9626/image
 (- /tmp/l2h9626/image001) texc.prospecial.procolor.pro[1]
 Converting image #1
 pstoimg: Error: /h/lanhws/bin/sun5/pnmcrop  /tmp/l2h9626/p9644.pnm | 
 /h/lanhws/bin/sun5/ppmquant -floyd 256 |
 /h/lanhws/bin/sun5/pnmtopng -interlace   img1.png failed: Illegal seek

 Error while converting image: No such file or directory

 Doing section links ..
  *** Adding document-specific styles ***
 Done.

 

 Not only that, but it didn't even make a link to my image:

 I'm going to include a png image right here:

 DIV ALIGN=CENTERA NAME=l2h/AA NAME=27/A
 TABLE
 CAPTION ALIGN=BOTTOMSTRONGFigure 1:/STRONG
 The figure caption/CAPTION
 TRTD/TD/TR
 /TABLE
 /DIV
 BRHR
 !--Table of Child-Links--

 

 I recall having tried several combinations of \begin{htmlonly},
 \begin{latexonly}, etc. but the one which seemed to work best
 was my original post.  It's one big disadvantage is that it
 relies on a nonstandard LaTeX2HTML, and we both know that there
 are too many of those floating about already!




 --



  /---+---\
  | Herbert Swan  | Geoscience Operations |
  | Phillips Alaska, Inc. |   |
  | 700 G Street  | Phone:  (907) 263-4043|
  | Anchorage, AK  99501  | Fax:(907) 265-1608|
  | Room:  ATO 1370   | e-mail: [EMAIL PROTECTED]   |
  \---+---/



___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] tabular bug

2003-06-17 Thread Ross Moore

Hi Graham.

Yes, it got to the list.
I'm just too busy handling 2000 abstracts for a major Congress,
to have the time to look at it in detail, sorry.

Ross

On Tue, 17 Jun 2003, Graham Gough wrote:

 On June 3rd I reported a possible bug in table generation, to which
 there has been no response. As this list (usually Ross) is usually
 very quick to respond, I wondered of my posting had made it to the
 list

 Graham
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] current state of unicode support

2003-07-06 Thread Ross Moore


On Sun, 6 Jul 2003, [iso-8859-2] Janusz S. Bieñ wrote:


 Can latex2html accept some form of unicode (utf8 or utf16) as input?

Yes, and no.

The `no' means that there is nothing that is specifically designed
to support this kind of input.

The `yes' means that the effect of supplying UTF8 *should* be that any
bytes (nibbles?) in the upper range go through unchanged.

If this does not happen by default, then it is because the default
charsets assume that upper-8-bit characters have a special meaning that
can be translated into alternative TeX sequences, and perhaps require
an image to be created.

To stop this you may need to specify on the commandline something like:

  latex2html -html_version 4.0,unicode  ...other-options...  filename
or
  latex2html -html_version 4.0,unicode,utf8  ..
or even
  latex2html -html_version 4.0,unicode,unicode  ..


Basically, the problem will be that you do *not* want LaTeX2HTML
to assign special meaning to upper-8-bit codes and translate them
into something else.

Another way to prevent conversion of characters is to explicitly
kill the subroutine where such conversion occurs:

 sub convert_iso_latin_chars { $_[1] }

Put the above line into your .latex2html-init  file,
or other init-file for your jobs.


In short, it shouldn't be too hard to make LaTeX2HTML do what you
want, if it doesn't do so already.


Hope this helps,

Ross Moore


 Regards

 Janusz

 --
  ,
 dr hab. Janusz S. Bien, prof. UW
 Prof. Janusz S. Bien, Warsaw Uniwersity
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 http://www.orient.uw.edu.pl/~jsbien/
 http://www.mimuw.edu.pl/~jsbien/
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] About link image

2003-07-14 Thread Ross Moore

Hello Egor,

On Mon, 14 Jul 2003, Egor Tur wrote:

 Hi.
 How can I create image one page which will be link to other html page?
 And this image will be present on first page.

Use LaTeX's \label--\ref mechanism, and the \htmlref and \htmladdimg
commands from  \usepackage{html}:

 A.  on the 2nd page, put   \label{jumptohere}  before the
 material that you want displayed. If it's a new section,
 then just put the label first:

\section{This is my stuff}\label{jumptohere}
or
\section{This is my stuff\label{jumptohere}}


 B.  On the first page, assuming that you have the image
 as a graphic (in  figures/myimage.jpg, say)  put:

 \htmlref{\htmladdimg{../figures/myimage.jpg}}{jumptohere}

The '../' part is needed because LaTeX2HTML builds the HTML
pages within a subdirectory, and you will need the relative
path from there to where your image is stored.

Any of the options to \htmladdimg can be used:
e.g.
  \htmladdimg[width=340 height=185 align=right]{.}


 Thanx.

Hope this helps,

Ross Moore


 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Including source files?

2003-08-05 Thread Ross Moore

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
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Converting emdashs and endashs?

2003-08-11 Thread Ross Moore

Hello James,

On Mon, 11 Aug 2003, James Howison wrote:

 Now I have curly quotes happening (yay!) I am wondering about the other
 special characters.  I realize that this will break back-wards
 compatibility but that is not an issue for my needs.

 I would like --- to be converted to #8212; as defined in the
 unicode.pl file at 799 - but this doesn't seem to happen - instead it
 is converted to --.  This is also what happens if I change --- to
 {---}.

That is definitely a lot harder; particularly since -- and --- are
rarely used correctly in LaTeX manuscripts.
So general rules may easily result in something that the author
never intended.

 I'm not sure why some of the conversions in the unicode.pl file happen,
 while others do not.  I can't find an equivalent of the
 $USE_CURLY_QUOTES in the source code that seems relevant to mdash ...

 Any ideas on how to get a maximal set of the conversions in unicode.pl
 actually happening?  I notice that there is no do_cmd_textemdash in
 unicode.pl - is that why?

 Also I see from the source that converting single quotes is
 tough---perhaps I'm naive but it would seem to me that this sequence
 would work...

 s/``/#8220;/og
 s/`/#8216;/og # once the `` is gone then the ` is only used for
 open single quote right?

Not at all.  \`  is used as an accent, and in some language variants,
the ` is made active to remove the need to use the \ .
With this active character, overloading can occur for generating
other special characters or ligatures.


 s/''/#8221;/og
 s/'/#8217;/og # Will also replace apostrophes with close curly
 single - not a bad thing.

Sorry; I cannot agree.
Every Latin-based charset encoding has an apostrophe character.
A curly-quote is most definitely *not* logically an apostrophe, even
though it may look like one.

Try cut/paste from a web-page into LaTeX source.
Simply finding curly quotes to replace with apostrophes is *very* tedious
indeed. At least when quotes occur in pairs then you expect to have
to do something with the environment delimiters --- it should *not*
be necessary to have to search/replace apostrophes.


 i.e. ensure that one does the singles after the doubles ...

 But there is probably a better algorithm in the source code for 'quoter'

 http://www.dwheeler.com/quoter/

The aim of an HTML translation should not be appearance.
It should be ensuring that meaning is preserved, and that no symbol
is rendered with the 'missing character' glyph.


Hope this helps,

Ross Moore


 Thanks,
 James


 On Saturday, August 9, 2003, at 02:53  am, Ross Moore wrote:

  On Sat, 9 Aug 2003, James Howison wrote:
 
  Hi all,
 
  I'd really like to convert the latex quotation marks, `` and '' to the
  recommended HTML curly quotes, #8220 instead of `` and #8221 instead
  of '' - standard codes that render the curly quotes beautifully.
 
  set
   $USE_CURLY_QUOTES =1;
  in an initialisation file.
 
  This is not the default, because not all browsers actually render
  these characters. (At least, that was the situation 3-4 years ago when
  the LaTex2HTML coding was written.)
 
 
  Hope this helps,
 
  Ross Moore
 
 
 
  I'm sure that this is possible through latex2html - the codes are
  listed around unicode.pl:722 - but either I can't find the magic
  incantation to have latex2html do the conversion or there is a bug
  preventing this from working in my version (1.70) or set-up.
 
  I've tried:
 
  latex2html -html_version 4.0,unicode test.tex
 
  What is strange is that this does work for, say \v{Z} which converts
  to
  the code #381; (and that is definitely happening through unicode.pl
  (I
  changed the translation and it worked fine).
 
  So why doesn't the translation for `` (which is correctly listed in
  the
  unicode.pl as \`\`) and '' which is correctly listed as \'\' work?
 
  I've had a good hunt around for this - but I can't see why the other
  codes are converted but not the quotes.
 
  Cheers,
  James
 
  ps.  minimal test.tex follows
 
  --
 
  \documentclass[11pt]{article}
  \begin{document}
  ``Why are these quotes not converted to unicode''  (they are in the
  unicode.pl file)
  While this symbol (also in the unicode.pl file) is? - \v{Z}
  \end{document}
 
  ___
  latex2html mailing list
  [EMAIL PROTECTED]
  http://tug.org/mailman/listinfo/latex2html
 
 

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] converting quotes

2003-08-14 Thread Ross Moore


On Sat, 9 Aug 2003, James Howison wrote:

 Hi all,

 I'd really like to convert the latex quotation marks, `` and '' to the
 recommended HTML curly quotes, #8220 instead of `` and #8221 instead
 of '' - standard codes that render the curly quotes beautifully.

set
 $USE_CURLY_QUOTES =1;
in an initialisation file.

This is not the default, because not all browsers actually render
these characters. (At least, that was the situation 3-4 years ago when
the LaTex2HTML coding was written.)


Hope this helps,

Ross Moore



 I'm sure that this is possible through latex2html - the codes are
 listed around unicode.pl:722 - but either I can't find the magic
 incantation to have latex2html do the conversion or there is a bug
 preventing this from working in my version (1.70) or set-up.

 I've tried:

 latex2html -html_version 4.0,unicode test.tex

 What is strange is that this does work for, say \v{Z} which converts to
 the code #381; (and that is definitely happening through unicode.pl (I
 changed the translation and it worked fine).

 So why doesn't the translation for `` (which is correctly listed in the
 unicode.pl as \`\`) and '' which is correctly listed as \'\' work?

 I've had a good hunt around for this - but I can't see why the other
 codes are converted but not the quotes.

 Cheers,
 James

 ps.  minimal test.tex follows

 --

 \documentclass[11pt]{article}
 \begin{document}
 ``Why are these quotes not converted to unicode''  (they are in the
 unicode.pl file)
 While this symbol (also in the unicode.pl file) is? - \v{Z}
 \end{document}

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Broken enumerations

2003-08-19 Thread Ross Moore

Hello Graham,

On Tue, 19 Aug 2003, Graham Gough wrote:

Have you tried the  \usecounter  command ?

 In LaTeX this is easliy accomplished by using something like

 \newcounter{saveenum}
  ...
 \begin{enumerate}
  ...
  \setcounter{saveenum}{\value{enumi}}
 \end{enumerate}
 Commentary text
 \begin{enumerate}
  \setcounter{enumi}{\value{saveenum}}
  \usecounter{enumi}   %   this may work for the 2nd list
  ...
 \end{enumerate}

Alternatively,

\newcounter{saveenum}
 ...

\begin{enumerate}
\usecounter{saveenum}  %   same counter for both parts
 ...
\end{enumerate}
  Commentary text
\begin{enumerate}
\usecounter{saveenum}   %   same counter for both parts
 ...
\end{enumerate}



 However, l2h doesn't handle this at all well. The second and
 subsequent lists all start with 1 again. Is there a work round to
 this?

LaTeX has a \usecounter command for this.
LaTeX2HTML is supposed to detect the presence of this *at the beginning*
in a list-environment and then use it.

Setting a counter implicitly (from enumi) at the end of one
environment to save for resetting the next, is rather counter-intuitive,
and probably will not work since this command could be executed out of
step with the list's internal counter (Perl is not LaTeX).
Certainly the action will be treated as part of an item, rather than
as a global result of the environment as a whole --- though that
may be sufficient for your purposes.

It is more logical to simply \usecounter with the same counter for each.


Hope this helps,

Ross Moore


 Graham
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Tabbing and BR

2003-08-21 Thread Ross Moore

Hello Fabien,

On Thu, 21 Aug 2003, fabien wrote:

 Hi everybody...

 I have a question about the latex2html tabbing processing.
 Between each line of a tabbing section, a blanked line is inserted in the HTML file 
 - an BR tag.

 Why ??? I don't want a such space text !!!

Check the subroutine   tabbing_helper .

e.g. mine is as follows:

sub tabbing_helper {
local($_) = @_;
s/\\=\s*//go;  # cannot alter the tab-stops
s/\t/ /g;  # convert any tabs to spaces
# MRO: replaced $* with /m
s/(^|\n)[^\n]*\\kill *\n/\n/gm;
s/( )? *\n/$1/gm; # retain at most 1 space for a \n
# replace \\ by \n ... , ignoring any trailing space
#s/ */\n/gm;
# ...but make sure successive \\ do not generate a P tag
#s/\n( *)?\n/\nnbsp;\n/gm;
s/\\\gt;//go;
s/(^| *([^\\]))\\[]/$2\t\t/go;
s/([^\\])\\/$1\t\t/go;
s/\n$//; s/^\n//;   # strip off leading/trailing \n
local($inside_tabbing) = 1;
$_ = translate_commands(translate_environments($_));
PRETT\n$_\n/TT/PRE;
}


Note that 2 reg-exp replacements are commented-out (initial #).
That may be a mistake, as there seems to be nothing else
that replaces the \\ at the end of lines, so those will later
be replaced by BR as you observe.

Try uncommenting the 1st reg-exp, and perhaps both reg-exps.
This should fix the immediate problem but may introduce new problems.

Certainly there is some doubt about exactly where those lines should
be executed within the tabbing-helper subroutine.


To test changed code, you do *not* need to edit the latex2html
script itself. Put an exact copy of the subroutine code into
the  .latex2html-init  file for your job, and make the edits
there. Since this file is read *after* the main script, the
changed definition will override the standard one.


Report what you find please.


Hope this helps,

Ross Moore


___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Broken enumerations

2003-08-21 Thread Ross Moore

Hi Graham,

On Wed, 20 Aug 2003, Graham Gough wrote:

 Sorry Ross, but I'm afraid you're wrong this time (a rare event
 indeed!). The command \usecounter sets the value of the counter back
 to 0 again, so your suggestion won't work. See latex.ltx

[EMAIL PROTECTED]@[EMAIL PROTECTED]

Yes, in LaTeX certainly that is the result of the above code-line.

Besides, I just checked the coding in LaTeX2HTML and found that
\usecounter is only recognised within an explicit {list} environment.
It would never be seen inside {enumerate}.


 Mark Wooding has macros \suspend and \resume to tackle this problem in
 his mdwlists package, I was just using a naive approach but some
 mechanism is necessary to remember the value from one list to the
 next.

Indeed; this seems to be correct.

With LaTeX2HTML, more work needs to be done with the  $preitems
part of the {enumerate} environment; that is, any coding that falls
between the  \begin{enumerate}  and the first \item .

Currently there is no code for setting a 'start=num' attribute
to the OL tag.

Certainly this is an addition worth implementing.


Cheers

Ross Moore


 Best wishes

 Graham

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] two columns contents list

2003-09-10 Thread Ross Moore

Hi Christian, Fred and everyone else,

On Wed, 10 Sep 2003, Fred L. Drake, Jr. wrote:


 Christian Mensing writes:
   An other fine layout I whould like to apply is the alphabetical
   subsectioning of a long index as in the current on-line manual.
   http://www-texdev.mpce.mq.edu.au/l2h/docs/manual/node11_ct.html

 That's a cool index!  I'd not looked at this version before, I think.

Thanks. There are some cute ideas programmed into that, to make
extensive use of hyperlinks and the \label/ref mechanism.

You should already have the coding for it, as part of the LaTeX2HTML
docs that come with the distribution, in the  docs/ subdirectory.
It's towards the end of  docs/manual.tex .

It works as follows:

\printindex

%
%  Alphabetization and navigation within the index
%  ...these special index entries must come *after* the  \printindex
%  else half of the hyperlinks will point to the preceding page.
%
\begin{htmlonly}
[EMAIL PROTECTED]
 \htmlref{\HTML{SUB}{\LARGE #3}}{AZ}\htmlref{_}{#4}\label{#5}| }}
%
\indexAlpha{\$}{Z}{\$}{dot}{doll}%
\indexAlpha{.}{doll}{~.~}{A}{dot}%
\indexAlpha{A}{dot}{A}{B}{A}%
\indexAlpha{B}{A}{B}{C}{B}%
\indexAlpha{C}{B}{C}{D}{C}%
 etc.

%
%% This is an alphabetical navigation panel.
[EMAIL PROTECTED]
\htmlref{\$}{doll} \htmlref{.}{dot} \htmlref{A}{A}
 \htmlref{B}{B} \htmlref{C}{C} \htmlref{D}{D} \htmlref{E}{E}
\htmlref{F}{F}
 \htmlref{G}{G} \htmlref{H}{H} \htmlref{I}{I} \htmlref{J}{K}
\htmlref{K}{K}
 \htmlref{L}{L} \htmlref{M}{M} \htmlref{N}{N} \htmlref{O}{O}
\htmlref{P}{P}
 \htmlref{Q}{R} \htmlref{R}{R} \htmlref{S}{S} \htmlref{T}{T}
\htmlref{U}{U}
 \htmlref{V}{V} \htmlref{W}{W} \htmlref{X}{X} \htmlref{Y}{Z}
\htmlref{Z}{Z}}\\
\htmlrule[all]| }

\end{htmlonly}



 The scripts I use aren't well documented at this time, but are freely
 available (including the l2hinit.perl I use) as part of the latex
 flavor of the Python documentation:

 http://www.python.org/doc/current/download.html

 I'm always happy to answer questions about what I've done.

I always leave the LaTeX source accessible in the directory
where the web-pages were generated and displayed, as the
LaTeX2HTML default location. Hence you can deduce the name
of the source document from that of the directory.


Hope this helps,

Ross Moore



   -Fred

 --
 Fred L. Drake, Jr.  fdrake at acm.org
 PythonLabs at Zope Corporation
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Problem with latex2html, amsmath, and \htmlimage

2003-09-20 Thread Ross Moore

Hello Steven,

On Sat, 20 Sep 2003, Steven R. Hall wrote:

 I'm having problems with latex2html and the amsmath package. The
 simplest example of this is for the latex file

 \documentclass[letterpaper,11pt]{article}
 \usepackage{html}
 % \usepackage{amsmath}

 Why is this commented-out ?


 \begin{document}

 \section{First}

 \begin{equation}
  x=1
 \end{equation}
 \begin{equation}\htmlimage{}
  y=2
 \end{equation}
 \begin{equation}
  z=3
 \end{equation}
 \begin{equation}\htmlimage{}
  w=4
 \end{equation}

 \end{document}

Why do you have some equations with \htmlimage and others not ?


 This should produce an html document that has four equations that look like:


x = 1 (1)

y = 2 (2)

z = 3 (3)

w = 4 (4)

No; the alignment could be shot-to-pieces by the mixture of \htmlimage
and not.

When you use  \usepackage{amsmath}  then LaTeX2HTML knowns to expect
lots of mathematics, perhaps with complicated alignments, and cetainly
expects to control equation-numbering.

By using \htmlimage you are saying, ignore what you would normally
do with this environment and pass it to LaTeX for an image.

This forces LaTeX2HTML to select a paper-size on which to layout
the equation and equation-number as it creates the image.
Aligning equation-numbers in images with those not in images
is essentially impossible, especially since you have no control
on how wide your reader has set his/her browser-window; that's
to say nothing of the choice of font size and style.

I don't think that is is what you want to do here at all.


 In fact, that's what I get if I delete the \usepackage{amsmath}

 Delete the \usepackage line ?
 It's what I get if I retain that line:
http://www-texdev.ics.mq.edu.au/HALL/amseq/node1.html

 statement, or don't use \htmlimage. However, what I actually get is

x = 1 (1)

y = 2 (3)

z = 3 (3)

w = 4 (5)

The .gif images are in one column of a TABLE while the non-image
equation numbers are in another column to the right of the images.


 That is, the lines that use \htmlimage encode the entire equation as
 a .gif (including the equation number), AND the equation number is
 wrong. I would prefer that the equation number not be part of the
 .gif, but more importantly, the equation numbers must be correct.

What you are asking for is supposed to be the normal behaviour
of \usepackage{amsmath}.
If that is not what you are getting, would you send a URL to a web-site
that you have created that shows it created incorrectly.



 The problem with numbering get even worse for a document with sections.

 Any clues on how to fix?

Certainly you should not be using \htmlimage
with environments that include numbering.


Hope this helps,

Ross Moore



 I am running on Mac OS X (10.2). The results of issuing the
 latex2html command are shown below:

 steve% latex2html -init_file latex2html-init signals_notes.tex
 Note: Loading /Users/steve/.latex2html-init
 Note: Initialising with file: latex2html-init
 This is LaTeX2HTML Version 2002 (1.62)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.

 Revised and extended by:
   Marcus Hennecke, Ross Moore, Herb Swan and others
 ...producing markup for HTML version 4.0  with math,frame extensions



 Loading /sw/lib/latex2html/versions/html4_0.pl

 Loading /sw/lib/latex2html/versions/math.pl
 Loading /sw/lib/latex2html/versions/frame.pl
 Loading /sw/lib/latex2html/styles/color.perl
   *** initialising colors ***

   *** processing declarations ***

 Loading /sw/lib/latex2html/versions/latin1.pl
 OPENING
 /Users/steve/Documents/Classes/Unified/Unified_Fall_2003/Signals_and_Systems_Notes/signals_notes.tex


 Note: Working directory is
 /Users/steve/Documents/Classes/Unified/Unified_Fall_2003/Signals_and_Systems_Notes/signals_notes
 Note: Images will be generated in /tmp/l2h17835

 texexpand V2002 (Revision 1.11)



 Loading /sw/lib/latex2html/styles/texdefs.perl...
 Loading /sw/lib/latex2html/styles/article.perl
 Loading /sw/lib/latex2html/styles/html.perl
 Reading ...
 %++
 

 Reading aux file:
 /Users/steve/Documents/Classes/Unified/Unified_Fall_2003/Signals_and_Systems_Notes/signals_notes.aux
 ...
 Processing macros ...++
 Translating ...
 0/2:top of signals_notes: for signals_notes_mn.html

   *** translating preamble ***
 ...
   *** preamble done ***
 ;.;
 ..
 1/2:section:..1 First for 1_First_mn.html
 ;.,.$,.,.$,..;
 ..
 2/2:sectionstar:..About this document ... for About_this_document_mn.html
 ;;.

 Writing image file ...

 This is e-TeX, Version 3.141592-2.1 (Web2C 7.5.2)
 entering extended mode
 (./images.tex
 LaTeX2e 2001/06/01
 Babel v3.7h and hyphenation patterns for american, french, german, ngerman, n

Re: [l2h] eqnarray/matrix bug in latex2html

2003-10-01 Thread Ross Moore

Hello Mirek,

On Wed, 1 Oct 2003, [ISO-8859-2] Mirosaw Prywata wrote:

 Uytkownik Ross Moore napisa:

 I found that late2thml has problems with mirror in eqnarray environment.
   It can be due to the fact, that eqnarray and matrix has the same row
 separator - . The first  is treated as  from eqnarray and the rest of
 matrix is treated as another part of eqnaray. From this point all the
 equation are renumbered and displayed in unproper place and order.
 
 
  Are you using  \usepackage{amsmath} ?

 no,

  Please provide example coding which does not work for you.

 The example latex file is very simple:

 \documentclass[12pt]{article}

 \usepackage[polish]{babel}
 \usepackage{t1enc}
 \usepackage[latin2]{inputenc}
 \usepackage[dvips]{graphicx}

 \begin{document}
 \selectlanguage{polish}

 \begin{eqnarray}
 \sigma_x=\left( \matrix{01\cr 10}\right),
 \sigma_y=\left(\matrix{0-i\cr i0}\right),
 \sigma_z=\left(\matrix{10\cr 0-1}\right).
 \end{eqnarray}

Ahah, you are mixing plain TeX syntax with LaTeX.
This ought to be:

\begin{eqnarray}
\sigma_x=\left( \begin{matrix}01\\ 10\end{matrix}\right)\,,\quad
\sigma_y=\left(\begin{matrix}0-i\\ i0\end{matrix}\right)\,,\quad
\sigma_z=\left(\begin{matrix}10\\ 0-1\end{matrix}\right)\,.
\end{eqnarray}

(See the result (with  amsmath  loaded) at:
   http://www-texdev.ics.mq.edu.au/MIREK/eqntest/
)

so that LaTeX2HTML can detect the sub-environments,
and treat those separately, before parsing the {eqnarray}

But if you are using advanced mathematical structures, such
as matrices and aligned sets of equations, then you really
should be using  \usepackage{amsmath}.


This allows advanced structures to be specified in a more
intuitive manner --- rather than just trying to draw pieces
on a page, expecting the resulting visual effect to carry
the intended meaning.

In LaTeX2HTML, the results for mathematics are generally
much better when {amsmath} is loaded, than when not loaded,
because the various types of alignments give a better clue
as to what kind of layout structure should be used in the HTML,
and that images are more likely to be appropriate.


 \end{document}

 latex2html treats it strangely, first it knows there is only one
 formula, and on the other hands it tries to split the eqnarray into
 several (here 3 ??) formulae.

An {eqnarray} is designed to create 3 columns in LaTeX.
You may not always choose to use all the columns, but
LaTeX2HTML will nevertheless construct a TABLE with 3 cols.
because that's the purpose of an {eqnarray}.

You have the choice of using {equation} of {displaymath}
environments, if you want a single column, with/out numbering.


 If you ad some more formulae to this document you will see what will
 happen. Everything gets mixed.

 and the version of latex2html:

 $ latex2html --version
   [english]This is jLaTeX2HTML Version 2002 (1.62) JA patch-1.4
 by Kenshi Muto, Debian Project.

 Original LaTeX2HTML Version 2002 (1.62)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.


Hope this helps,

Ross Moore


 Mirek

 Mirek

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Re: renewcommand including \section gets lost

2003-10-12 Thread Ross Moore

Hi Julius,

It is very dangerous to use section-commands, such as
   \section , \subsection, \paragraph  etc.
within the expansion of macros redefined using \renewcommand .

The reason that the behaviour with \newcommand and \renewcommand
is different is that every instance a command defined via \newcommand  is
replaced very early in the processing, *before* the document is broken
into segments.
On the other hand, when  \renewcommand  is used, the macro is not
replaced early but instead wrapped to cause it to be replaced
in sequence with environments and other context-sensitive macros.

The difference is that if a command has been \renew'd once, then it
may well be renew'd more than once; so it cannot be assumed to have a
constant replacement throughout the whole document.
(Note that the expansion model for LaTeX2HTML differs from that
for TeX engines generally.)


How does this affect sectioning commands ?
Well, the document gets broken-up into pieces corresponding
to the recognisable sections. Then each of these sections
is processed (more or less independently) to make the individual HTML
pages. For this to work with your \ksectionalt command, you need
the replacements to have been made *before* the document is split
into pieces -- this precludes the use of \renewcommand, as explained
above.

The correct coding for what you are trying to achieve is:


\usepackage{html}  %  always load this with LaTeX2HTML documents


%begin{latexonly}
\newcommand{\ksectionalt}[4]{\section[#4]{#3}\chlabel{#1}\index{#2|textbf}}
%end{latexonly}
\begin{htmlonly}
 \newcommand{\ksectionalt}[4]{\section{#3}}
\end{htmlonly}



On Thu, 9 Oct 2003, Julius Smith wrote:

 Oops - my work around does not really work around the problem.  The
 second newcommand is simply ignored. -- jos

 At 12:58 AM 10/9/2003 -0700, Julius Smith wrote:
 Here's an odd one:
 
 I have a macro I normally use for section headings defined as follows:
 
 \newcommand{\ksectionalt}[4]{\section[#4]{#3}\chlabel{#1}\index{#2|textbf}}
 
 In a particular document, I tried to override this with a simpler version
 as follows:
 
 ...
 \renewcommand{\ksectionalt}[4]{\section{#3}}

No -- don't do this!
Your document only uses one expansion for  \ksectionalt
so just set it once --- using conditional environments
to get different expansions with different processing engines.


 \begin{document}
 ...
 
 It works for LaTeX, but not for l2h.  While I see a message that

Correct. To guarantee well-formed (and usually valid) HTML, the way
macro definitions are handled by laTeX2HTML has significant differences
from what (La)TeX does.

 ksectionalt has been redefined, it is not found at the end during section
 linking.  I see the following in the WARNINGS file:
 
 Doing section links ..
 ...
 *** wrap_cmd_ksectionalt not defined, cannot wrap \ksectionalt

This at least tells you that something isn't right.

Wrapping would not work anyway, since after splitting you
would get part of the wrapper in one segment, with the rest
of it in the next segment.

 
 
 Changing renewcommand to newcommand in an htmlonly block works around

Yes; for the reasons described above.

 the problem. (providecommand acts like renewcommand.)

\providecommand  should do nothing if \newcommand has occurred already.

 
 Julius

Hope this helps,

Ross Moore



 _
 Julius O. Smith III [EMAIL PROTECTED]
 Assoc. Prof. of Music and (by courtesy) Electrical Engineering
 CCRMA, Stanford University
 http://www-ccrma.stanford.edu/~jos/

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Maintenance of latex2html

2003-10-14 Thread Ross Moore

Hello Roland,


On Tue, 14 Oct 2003, Roland Stigge wrote:

 Hi,

 regarding the license issue, who's the current official maintainer of
 latex2html and/or responsible for licensing issues?

 I found different names:
 Nikos Drakos (author mentioned in LICENSE)
Nikos has had nothing to do with the LaTeX2HTML software since
1996 or so.
The license statement has not been changed since then.

 Ross Moore (extended the package)
 That's me; most, but not all,  changes since 1998 have been through me.

 Marek Rouchal (also listed in docs)
 Marek is the contact at the physical site where the repository is
located.

 John Turner (latex2html.org)
 John owns the name  latex2html.org .


 Unfortunately, the changelogs (of the version 2002-2-1) stop at v98.1.

 At Debian, there are quite some latex2html bugs open [1], many of them
 upstream related, i.e. maybe interesting for the current primary
 latex2html maintainer. A few are even tagged as forwarded some years
 ago to this list and Ross Moore.

OK; since I don't work through the Debian site, I'm not aware of these
so-called 'bugs'. Any that have been reported via the latex2html mailing
list have been fixed, or the mis-use explained to the poster.
If that doesn't make it back to Debian, then that's my concern, sorry.

Mostly the things reported as 'bugs' with use of LaTeX2HTML are due
either to inadequacies in the local installation, or are in fact
due to the differences in what can be achieved with HTML and other
page-layout formats. The latex2html mailing list is the perfect place
to get help on such issues.



Now, I've just seen the current discussion on licensing, and agree
with the poster who said that it is mostly just nit-picking.

The wording of the statement to which you object does not, in my mind,
prevent you from distributing LaTeX2HTML as a free addition to anything
else.
Nor does it prevent a commercial developer from using LaTeX2HTML
as part of a workflow for some other software process, and charging
for the other parts of that process --- including any scripts that
make the calls to run LaTeX2HTML.

Put differently...

It is just the LaTeX2HTML distribution itself that cannot be charged-for.
I would object to seeing a cost-listing that includes something like:
  LaTeX2HTML $200
when all that the commercial distributor has done is to include
the software on a CDROM.

Charging $200 for a process that installs LaTeX2HTML correctly,
for use in another overall process, is not something that I would
object to. However, it should be made clear to a client that this
is what they are paying for, and it is up to them to decide
whether or not they are getting their money's-worth.


Like the GPL, the license is not meant to be an impediment to the
distribution or use of the software, but just a way of ensuring
that credit remains with those who did the work.


I'm happy to discuss this further, but a change in the license
should be discussed on the LaTeX2HTML mailing list, before any
action be taken.


Best regards

Ross Moore


 Thanks in advance.

 bye,
   Roland


Thanks for this -- I'll take a look:
 [1] http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Maintenance of latex2html

2003-10-16 Thread Ross Moore


On Thu, 16 Oct 2003, Roland Stigge wrote:

 Hi Ross,

 thanks for your detailed mail.

You're welcome.



 Thanks for pointing out clause D. But consider the following.

 Imagine the extreme (yet possible) case of a distribution including just
 packages all of which have a license like latex2html (currently). The
 DFSG require the possibility of selling the aggregate software
 distribution. Even with your liberal interpretation, every package
 claims (D and B) that the fee would effectively be for the rest of the
 aggregation. But there's nothing left to assign that fee.

Well, I'm quite happy to have a license forbid this scenario.

If someone has just copied other people's software, and has not even
provided installation routines, nor *anything at all* that adds value
to the collection more than the sum of the free pieces, then he/she
has no moral right to charge for this, apart from the 'nominal'
amount mentioned previously.

I'm a teacher (university lecturer) --- any student doing just this
for a project would receive a failing grade. It's very close to
out-and-out plagiarism, so cannot be countenanced.
I find it hard to believe that Debian really regards this as an
acceptable scenario, and would drop a package on that basis.


  To make this clearer, perhaps clause B could be extended with a similar
  statement about aggregations, as appears in D ?
 
  Alternatively, would it be sufficient to simply remove the adjective
  `nominal' ?

 Unfortunately, both these suggestions won't meet our requirements, IMHO.
 I suggest removing clause B as a whole. We (Debian) would have a problem
 with _both_ of the included sentences.

 Instead, I suggest the complete removal of clause B. That would be the
 final move to make latex2html DFSG-compliant.

That's too much to remove; I cannot do that.


 Alternatively, consider the adoption of an OSI-approved license as
 suggested by Michael Chapman (and me, previously).

Many of the files in the LaTeX2HTML distribution are already under the
GPL, so it may be acceptable to Nikos to put it all under this.
But then other developers would have to be contacted too.


  DFSG 3 states:
  [...]
  DFSG 4 states:
  [...]

 These issues were resolved by the fact that the author of floatflt.ins
 (Mats Dahlgren) agreed to release his file under the LPPL. They were not
 related to the rest of the package (see bugs.debian.org/204684).

OK; that's good to hear.


 Feel free to change floatflt.ins in the main latex2html package
 accordingly.

In fact floatflt.ins does not need to be distributed with LaTeX2HTML.
It is no longer used in the documentation and floatflt.dtx was not
also included; so it was just an oversight that the .ins file was still
part of the distribution. It has now been removed from the MANIFEST.


 When the licensing issue is resolved (which is most important to
 consider for the next Debian release), I'll come back with an assorted
 list of bugs where I depend on your help. You are definitely not
 responsible for all the bugs listed at Debian.


I have a fix for the reported difficulty with \includegraphics
on .jpg (and .png ?) images:
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=183372

It's not committed to the repository yet.


   It being at least _possible_ to charge $200 is exactly what Debian
   requires from Free Software. Besides the GPL, please consider the LPPL
   or any other free license approved at
   http://www.opensource.org/licenses/.
 
  I believe it is possible to do this, with an aggregation of software
  packages, which is all that Debian requires, right ?

 See above.

We are not in agreement yet.

All the best

Ross



 Thanks for your involvement.

 bye,
   Roland

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Missing subsubsection titles in TOC

2003-10-22 Thread Ross Moore

Hi Bindu,


On Wed, 22 Oct 2003, Bindu Varghese wrote:

 Hi,

 I am using  latex2html.pin v1.46.

 While running latex2html, I get the following error:
 wrap_cmd_subsubsection not defined, cannot wrap \subsubsection


Does your document preamble contain:

\renewcommand{\subsubsection}.

That would result in a warning:  wrap_cmd_subsubsection not defined
and cannot possibly work correctly with LaTeX2HTML.

You should certainly surround that redefinition with conditional
comments:

 %begin{latexonly}
\renewcommand{\subsubsection}.
 %end{latexonly}

and look for another way to get the special features that you desire
to work for HTML pages.


The highly structured nature of HTML output means,
at least with LaTeX2HTML as the processing engine,
that macros such as  \section  \subsection, etc.
should be regarded as primitives which ought never
be redefined.




 And finally in the TOC all the subsubsection titles have the main title
 instead of the susbsubsection title.

 Though Ross' s mail on wrap_cmd errors was informative, I could not
 resolve the above problem.


If this is indeed the explanation, and you don't know how to get
what you want, the post your proposed redefinition of
\subsubsection .



 Regards


Hope this helps,

Ross


 Bindu








___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] problems with alignment environment

2003-11-01 Thread Ross Moore

Hello William,


On Tue, 28 Oct 2003, William Martin wrote:

 I am having problems with alignment in the following latex section:

 %\input{intro}
 \begin{align}
 \hat \nu(\cdot) =\frac 1k \sum_{i=1}^n
 \epsilon_{\frac{\bZ_i }{\hat b(n/k)} }\label{defHatNu}\\
 \hat S_1(\cdot)=\frac{ \hat \nu \{\bx:\|\bx\| 1,\arctan
 \frac{x^{(2)} }{x^{(1)} } \in \cdot \}}
 {\hat \nu \{\bx:\|\bx\|1\}}\nonumber\\
 = \frac{ \sum_{i=1}^n 1_{[\|\bZ_i\|/\hat b(n/k) 1]}
 \epsilon_{\Theta_i}(\cdot) } {\sum_{i=1}^n 1_{[\|\bZ_i\|/\hat
 b(n/k) 1]}
 }\label{defHatS}\\
 \intertext{where $\Theta_i=\arctan
 \bigl(Z_i^{(2)}/Z_i^{(1)}\bigr)$. Also define} \hat
 v=\int_0^{\pi/2} (\theta -\pi/4)^2 \hat S_1 (d\theta)
 \nonumber\\
 =\frac{
   \sum_{i=1}^n 1_{[\|\bZ_i\|/\hat b(n/k) 1]}(\Theta_i -\pi/4)^2
 } {\sum_{i=1}^n 1_{[\|\bZ_i\|/\hat b(n/k) 1]} }\label{defHatv}
 \intertext{and} \hat \rho =1-\frac{\hat
 v}{(\pi/4)^2}.\label{defHatrho}
 \end{align}
 \end{document}

That is a very complicated alignment, with your inclusion of
*two* \intertext portions --- each of which contains more mathematics!
I'm pretty sure it was not the intention of the AMS LaTeX programmers
for an {align} environment to be used in this way.

Logically, you have a single paragraph, with several sentences, containing
two separate pieces of aligned mathematics. This is the kind of thing that
LaTeX2HTML expects, and it would do a good job if your manuscript was
marked-up in that way.

If you stick to simple, clear, logical markup then LaTeX2HTML will do
a good job. If you obscure your markup, then some aspects of the
translation may fail, or you may get HTML coding that is not the most
desirable for the information that you are wishing to present.


So my first piece of advice is to *simplify* your coding.

e.g.
 Do *not* try to be cute by having some environments align with
others --- that's a layout issue, rather that a logical structure
issue; besides, the journal editor may not like that effect,
which may not even work properly anyway (e.g. in multiple-columns).


Secondly, if you are going to ignore the above advice, (as you are
entitled to do), then at least follow very closely to printed
examples that create the effects you desire...


 The last =1-\frac{\hat v}{(\pi/4)^2} part is not aligned on the
 '=' as the other sections of the are.

  ... by including \\  to end the alignment row before the \intertext
command. (You do this in the first instance, but not the second.)

This should give a result like what you can see at:
  http://www-texdev.ics.mq.edu.au/MARTIN/aligntest/

In LaTeX, the spacing is unaffected:

  http://www-texdev.ics.mq.edu.au/MARTIN/aligntest.pdf

(In this PDF you can see also many other subtle differences from your
coding, which contribute to making the complicated mathematical
expressions easier to read and understand.
For the source that I used, get  aligntest.tex  in the same directory.)



 $HTML_VERSION = '3.2,math';

 in the l2hinit file.

 This latex file renders properly under Miktex.

LaTeX (via MikTeX) is building up an image of a page for itself.
LaTeX2HTML is trying to encode the structure of your information
to present in a logical way to (many different) web-browsers, so that
they can build their own idea of how the page should appear.

That is a quite different problem, which in some senses is more
difficult. The hints as to the logical structure must come from the
markup commands that you use in the LaTeX source of your document.
If you use convoluted LaTeX coding constructions, then you are less
likely to get the result that you think you want.


 Thank you.


Hope this helps,

Ross moore



 -- Bill --

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] tableofcontents UL type

2003-11-01 Thread Ross Moore

Hello Peter,

On Tue, 28 Oct 2003, Peter Morling wrote:

 Hi,

 when l2h produces the table of contents its done with the HTML UL tags. That
 will produce a list as in the example shown in the following:

 ---example
 Table of Contents
   a.. 1.1 What is Chemometrics?
 a.. 1.1.1 Chemometrics: an example
 b.. 1.1.2 Chemometrics data matrices
 c.. 1.1.3 Calibration and test problems
 ---end example


 Is there a way to avoid the discs (bullets) in front of each line of the toc
 ?? I can think of one way: to post-process my html-document using a
 perl-script and modify the toc UL's using a CSS class. But is there a easier
 way?

That certainly should work.
It's easiest if you have  $USE_STYLES set (automatic with HTML 4.0 and
later, but this is not set with the standard default of HTML 3.2),
for the laTeX2HTML inserts the attribute:CLASS=ChildLinks
as has been mentioned already on this list.
Post-processing to search for this string and extend it:
 e.g. to   CLASS=ChildLinks TYPE=square
should be quite easy to do.
You could even add a line of Perl coding to an initialisation file,
defining:   sub post_post_process
to do a regular-expression search and replace.
This will then cause LaTeX2HTML to do the post-processing for you.


Alternatively, you could have LaTeX2HTML use a different set of
attributes from the outset. For this you will need to know that
the coding that controls this is within the subroutine:
add_real_child_links
within the main  latex2html  script.
You should be able to find the lines:

$list_class = ' CLASS=ChildLinks' if ($USING_STYLES);

$startlist = UL$list_class unless $CHILD_NOLIST;

You could then simply alter the first line to read something like:
   $list_class = ' CLASS=ChildLinks TYPE=square';

If you do this, then you should copy the *entire* subroutine block
 sub add_real_child_links { . }
into an initialisation file and make the changes there.



 Best,

Hope this helps,

Ross Moore


 Peter





 Programmer Peter Morling, University of Southern Denmark
 Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
 Phone (+45) 6550 3399

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] problems with alignment environment

2003-11-01 Thread Ross Moore

Hi again Bill,

On Sat, 1 Nov 2003, William Martin wrote:

 I have been reading the Latex Web Companion very closely.  I haven't
 quite figured out out to use CSS styles, but I am really close.  Is this
 valid?:

 \documentclass{article}
 \usepackage{html}
 \htmlsetstyle[junk]{UL}{list-style-type=square;
 list-style-image=url(http://www.orie.cornell.edu/redcircle.jpg)}

OK; I was intending to answer this question, that you posted
earlier --- last week, wasn't it ?
So this message is going to the latex2html email list too.



There are several problems here.

Firstly, the syntax is:

  \htmlsetstyle[UL]{junk}{list-style-type=square;

as the CLASS is 'junk' which need not qualify anything,
though in this case you want it for  UL.junk .

That will write the rule into the .css file...


Secondly.

  ... *provided* you delete or rename the existing one.

That is, you must *force* LaTeX2HTML to write out the information.
If a CSS file of the correct name already exists, then a new one is
*not* created. This is a rather crude way of not writing .css files
which generally do not change often.



Thirdly,


 \begin{document}
 \begin[junk.UL]{itemize}

this should be  \begin[junk]{itemize}
as the UL is implicit in the kind of environment being processed.

However, for some reason the  'CLASS=junk' isn't being
applied to the list tagging in the HTML output.
I'll need to diagnose why not.


Fourthly,

This will not write to .css properly:

 list-style-image=url(http://www.orie.cornell.edu/redcircle.jpg)}
   ^
since the ':' is interpreted as a delimiter of CSS properties.

I guess the correct logic is to treat the '(' and ')' as delimiters
that bind more tightly, cancelling the special interpretation of ':'.
This means adding a line of Perl coding to the subroutine:
  sub  process_htmlstyles .
to revert some replacements  ( ':' -- ' : ' ) made earlier,
or to rethink this processing altogether.


 \item item1
 \item item2
 \item item3
 \end{itemize}

 \end{document}

 The resulting UL stuff does not contain any tag information.


Thanks for the reports.
Clearly more work is needed to make use of CSS styles more robust.


Cheers

Ross



 Thank you,

 -- Bill --

 On Sun, Nov 02, 2003 at 01:50:55PM +1100, Ross Moore wrote:
 
  Hello William,
 
  On Sat, 1 Nov 2003, William Martin wrote:
 
   Thank you for your input.  I will pass your comments along to the
   author of the paper that this Latex code is from.  Latex2html did much
   better with the remainder of the paper.
  
   The Windows version of Latex2html strips out commas from the command
   line, so something like latex2html -html_version
   4.0,latin1,unicode,utf8 does not work, though I can set the options
   in the init file.  One interesting observation was that if I specify
 
  I never use windows for this kind of work; its special requirements
  are usually handled by others, sorry.
  However, the init file mechanism allows full customisation anyway.
 
 
   an invalid -html option, I get an error message, but Latex2html
   renders equation I sent you properly, though as one large image file.
 
  Yes; the requested level of HTML output affects what LaTeX2HTML produces,
  so as to conform with the published W3C recommendations.
  With lots of mathematics, including aligned environments, it's often
  best to use larger images rather than lots of smaller images.
 
  The LaTeX Web Companion (Addison-Wesley, CSE series) has a whole chapter
  devoted to LaTeX2HTML and all of its output options, especially for
  mathematics.
 
 
  
   In http://www-texdev.ics.mq.edu.au/MARTIN/aligntest/
   http://www-texdev.ics.mq.edu.au/MARTIN/aligntest.pdf, the equation
   label are on different sides of the page.  Is this a settable option?
 
  It's a package option to AMS styles and document classes:
 
  landau.ics.mq.edu.au grep eqn `kpsewhich amsmath.sty`
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
 
  landau.ics.mq.edu.au grep eqn `kpsewhich amsart.cls`
  \DeclareOption{leqno}{%
[EMAIL PROTECTED] \PassOptionsToPackage{leqno}{amsmath}}
  \DeclareOption{reqno}{%
[EMAIL PROTECTED] \PassOptionsToPackage{reqno}{amsmath}}
 
  e.g.
   \documentclass[reqno]{amsart}
   \usepackage{amsmath}
 
  is the same as
 
\documentclass{amsart}
\usepackage[reqno]{amsmath}
 
  In the first case, the \usepackage{amsmath}  may even be redundant.
 
 
  LaTeX2HTML defaults to having the tags on the right, as this
  seems to be the most commmon practice. However, it *does* recognise
  the options, if you provide them explicitly.
 
  
   Thank you for your help.
  
 
  You're welcome,
 
  Ross Moore
 
 
   -- Bill Martin --
  
  

 --
 ===
 William T. Martin email:  [EMAIL PROTECTED]
 Cornell University/ORIE   Fax:(607) 255-9129
 257 Rhodes Hall   Phone:  (607) 255-9134
 Ithaca, NY 14853
 Public Key: http://www.orie.cornell.edu/~martin

Re: [l2h] .perl file not being read

2003-11-10 Thread Ross Moore

Hello Ted,

On Mon, 10 Nov 2003, Ted Dustman wrote:

 Hi,

 I have the following in my latex source:

 \usepackage{/Users/dustman/Projects/srdp/SCIRun_v1_20_0/doc/Utilities/
 TeX/scirun-doc}

No, this will *not* cause   scirun-doc.perl   to be read.

The command needs to be  \usepackage{scirun-doc}
and then LaTeX2HTML will look for it:
 1. in the working directory; or
 2. in  $LATEX2HTMLDIR/styles/

Other directory locations can be added to the search-paths,
both for LaTeX and (in Perl) for LaTeX2HTML,
but you should *not* hard-code paths within your manuscript.


 There exists a corresponding scirun-doc.perl along side scirun-doc.sty
 and I put one in the latex2html styles directory.  I am getting the
 following warning though:

 *** WARNINGS ***
 No implementation found for style
 `/Users/dustman/Projects/srdp/SCIRun_v1_20_0/doc/Utilities/TeX/scirun-
 doc'

There is no file with that long name in the styles/ directory.


 Unknown commands: note dfn newmucmd replaceable command guimenu
 keyboard textgreater velide guimenuitem acronym mailto directory
 xmlendtag guibutton ptext xmlstarttag filename screen xmlattrname
 textless option guilabel envvar

 What am I doing wrong?

 Thanks,


Hope this helps,

Ross Moore


 Ted.

 Ted Dustman
 University of Utah
 Nora Eccles Harrison Cardiovascular Research and Training Institute
 Room 104
 95 South 2000 East
 Salt Lake City, UT 84112-5000

 e-mail:  [EMAIL PROTECTED]
 Phone: (801) 587-9513
 Fax: (801) 581-3128

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] pagecolor error in images.log

2003-11-20 Thread Ross Moore


On Thu, 20 Nov 2003, Brian Abbott wrote:

 Hello,

 I am having a lot of trouble with images. The most serious problem being
 that there is an error generated in images.log regarding the pagecolor
 being an unrecognized command (see the complete file below):

 =
 ! Undefined control sequence.
 l.159 \pagecolor
  [gray]{.85}\nobreak

Put  \usepackage{color}  into your LaTeX documents.
Well, at least those that will be used with LaTeX2HTML.
(This should be pretty standard now for onscreen, rather
than just paper, display.)


Hope this helps,

Ross Moore



 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] different versions of the tex-file

2003-11-22 Thread Ross Moore

Hello Phil,

On Sat, 22 Nov 2003, Phil Lanch wrote:

 On Fri, Nov 21, 2003 at 08:39:07PM +0100, [EMAIL PROTECTED] wrote:
  I have the problem, that I want to write a large document ( 300 pages)
  with pdflatex for different groups of users, say teachers, students, rest of
  the world
 
  With the package comment no problem in pdflatex
 
  \begin{teacher}  \end{teacher}
  \begin{student}  \end{student}
 
  But I need html-output too !!
  The problem now is that latex2html doesn't work together with the
  package comment. When parsing the source, l2h produces for  this

It is supposed to support the comment.sty environment,
with its  \includecomment  and  \excludecomment commands.

If it isn't working for you, would you please provide a minimal
example which shows the failure.

  environments an image file, that has nothing to do with the original
  source.

Remember that LaTeX2HTML does *not* read files ending .sty or .cls,
so perhaps the problem is simply that you haven't told LaTeX2HTML
in the preamble of your document that these are special environments
needing conditional treatment.


 
  Has anybody had this problem too ? Can't believe that I'am the first one
  :-)
 
  How can this problem be solved or workarounded ?

Support for comment.sty has been part of LaTeX2HTML since 1995 ...


 this sounded familiar, and i found that i've been using an ugly
 workaround for this problem.  it's a filter to pre-process a LaTeX file
 (i.e. it's to be applied to a .tex before latex2html): attached.

 for a proper solution: latex2html can process \begin{htmlonly} and
 \begin{latexonly} sections correctly, so i guess it could easily be
 extended to handle comments in general.

 ... these are implemented in  html.sty  precisely via the commands from
comment.sty .

However, the non-local nature of the processing in LaTeX2HTML means that
separate methods are needed in Perl to implement them properly.
Thus you may need to be a bit more careful with how the preamble is setup.

As above, send a minimal example of your coding that is causing
difficulties.


Hope this helps,

Ross Moore



 --
 Phil Lanch0xD78D598DA6635CF32AB24593C98994B7D95B33E3
http://www.subtle.clara.net/rephrase/ - GnuPG passphrase recovery

   If I knew then what I know now, I would have said 'I don't recall'.

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] different versions of the tex-file

2003-11-22 Thread Ross Moore

Hi Phil,

On Sun, 23 Nov 2003, Phil Lanch wrote:

 yes: for a start, it encouraged me to try altering my LaTeX in case that
 would help.  it seems to cause problems if i place commands such as
 \excludecomment{versiona} or \begin{versiona} in the middle (or end) of
 a line, so i've now put each at the start of a new line.  now the only

Yes, for include/exclude environments to work properly,
you need to use new lines for the \begin{...} and \end{...} markup.

 thing that doesn't work the way i'd like is that each (included) comment
 environment is turned into an image: they're perfectly good images, but
 images weren't necessary, simple HTML could have done the job.  is this
 what you expect latex2html to do?  is it difficult to stop it doing it?

Your code below simply says to include/exclude the environments.
It doesn't say how to translate their contents; that's why you get
the images.

You still need a \newenvironment definition, even if it
doesn't do much; e.g.

\begin{htmlonly}
 \newenvironment{versionpub}{\begin{flushleft}}{\end{flushleft}}
 \newenvironment{versionpriv}{\begin{flushleft}}{\end{flushleft}}
\end{htmlonly}

or

\begin{htmlonly}
 \newenvironment{versionpub}{}{}
 \newenvironment{versionpriv}{}{}
\end{htmlonly}

The  \begin{htmlonly}...\end{htmlonly}  restricts this
definition to processing by LaTeX2HTML, in case there
is already a sensible definition for LaTeX.


 a minimal example:

 = start =
 \documentclass[a4paper]{article}

 \usepackage{html}

 \includecomment{versionpriv}
 \excludecomment{versionpub}
 %\includecomment{versionpub}
 %\excludecomment{versionpriv}

 \begin{document}

 \begin{versionpriv}Secret info
 \end{versionpriv}
 \begin{versionpub}[Omitted from online version]
 \end{versionpub}

 \end{document}
 == end ==

 to the original poster: if you're seeing different problems, please go
 ahead and post your own example.

Hmm; it seems that LaTeX doesn't need a separate definition for the
environment. It wasn't implemented that way for LaTeX2HTML.
I think that it is better to retain delimiters for such environments,
to that extra HTML markup can be added, if desired.


Hope this helps,

Ross


 --
 Phil Lanch0xD78D598DA6635CF32AB24593C98994B7D95B33E3
http://www.subtle.clara.net/rephrase/ - GnuPG passphrase recovery

   scattered islands of independent-minded reporting are lost in oceans
   of the stenographic reliance on official sources  -- Norman Solomon
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Removing all navigation links

2003-11-28 Thread Ross Moore

Hello Joao,

On Fri, 28 Nov 2003, Joao Miguel Ferreira wrote:

 Hello,

 I'dd like to produce an html document from my LaTeX source... but
 without any navigation links (it's for my cv). The best I can get is
 this:

 http://robotica.estg.ipvc.pt/~jmf/cv/index.html

 At the end of the document there are still some nav links... how do I
 remove that.

Various ways should work:

Put either of:

\tableofchildlinks[off]
\tableofchildlinks[none]

in your LaTeX source, to prevent the mini-toc being placed
on the current/all page(s) respectively.

Alternatively, you could just suppress all links
to document sections with the option:   -link 0
(Equivalently, set  $MAX_SPLIT_DEPTH = 0;  )


   The command I use is this:

 latex2html -no_navigation -no_subdir -local_icons -info 0 -split 3
 cv.tex

 thanks in advance


Hope this helps,

Ross Moore


 jmf


 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] \scalebox{} does not resize the picture

2003-12-05 Thread Ross Moore

Hello Jozef,

On Fri, 5 Dec 2003, Jozef Riha wrote:

 hi,

 when i use \scalebox{}{} function (e. g. \scalebox{1.5}{$\sigma 
 =\frac{F_r}{A_o}$}\\) in my LaTeX document latex2html
 produces image but it is cropped while it does not resize the image exported.

LaTeX2HTML has various mechanisms for applying graphics effects
to individual images; e,g, using the \htmlimage command, from  html.sty.

Alternatively, you can try simple things like:
 $\displaystyle \sigma =\frac{F_r}{A_o}$
or
 \mbox{\scalebox{1.5}{$\sigma =\frac{F_r}{A_o}$}}
or
\(\scalebox{1.5}{$\sigma =\frac{F_r}{A_o}$\)

to get the enlarged size captured within an image.


The question must be asked of why are you using \scalebox{1.5}
with inline mathematics ?
How does this add to the meaning to be conveyed by your manuscript?
If it is simply that the \frac is too small, then you should be
using \displaystyle, or \dfrac (from  amsmath.sty).



 anyone can fix this?

Hope this helps,

Ross Moore


 cheers,

 -- joe



  Information from NOD32 
 This message was checked by NOD32 Antivirus System for Linux Mail Server.
 http://www.nod32.com
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Debian bugs

2003-12-09 Thread Ross Moore

Hi Roland,

On Tue, 9 Dec 2003, Roland Stigge wrote:

 Hi,

 first, I want to thank everybody involved in our LaTeX2HTML integration
 efforts for Debian and the licensing discussion. I'm maintaining the
 Debian latex2html package now integrating it into the next Debian
 release and we are looking forward to have LaTeX2HTML under a license
 which we consider fulfilling the requirements of the Debian Free
 Software Guidelines someday. Meanwhile, we will distribute the package

That is good to hear...

 in a special section called non-free which doesn't mean that the

  ... but this is an unfortunate choice of designation...

 software is not free at all but there are some issues left. In this
 list, we have discussed this in detail. No need to start it again.

Yes; no further philosophical discussion should be needed at this stage.


 But in our bug tracking system there are some issues left, most of which
 disappeared at the latest with the 2002-2-1 version of LaTeX2HTML.
 Nevertheless, some of them are possibly interesting for this list and I
 intend to discuss them here one by another.

 First, please have a look at
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=72755

I've had a look at this, and do not regard any of them
(except some aspects of the 1st) as actual bugs.
Rather, the person who wrote the message is making assumptions,
leading to wishingful-thinking about features which are not
implemented.

 I can reproduce all of the described problems with LaTeX2HTML 2002-2-1.

Here's a reproduction of the message:

 Hi!

 1. When using \HTMLsetenv{MAX_SPLIT_DEPTH}{0} in a TeX file latex2html
 should put all its html output into one single document. But it does
 not. Footnotes are still in extra documents. Furthermore, body tags, set
 with \bodytext, are ignored in this case!

The \HTMLsetenv command is intended for setting values of Perl variables,
as an aid to storing information to be used later within a document.
While it *can* change variables concerning the global structure of the
website, this is not its intended use.

Indeed, if you try this with configuration parameters, then there is no
guarantee that there will be any effect at all; or if there is an effect,
then it may not be what you would like it to be.

There is nothing in the LaTeX2HTML documentation that suggests using
\HTMLset or \HTMLsetenv  is a substitute for command-line parameters,
or setting values within initialisation files.


The simple explanation, in most cases, is that by the time Perl is
processing the contents of a document, the value of the particular
configuration variable may have been read already, and acted upon.
Subsequent changes have no effect because that particular parameter
is not used again.
(Basically, the timing is just wrong.)


In the case of $MAX_SPLIT_DEPTH, you *can* change the split-level
after document-processing has started, but not necessarily at all
possible levels of splitting. And if you change it several times
throughout the document, then the Table-of-Contents and mini-TOCs
may not be built correctly, since these are done at the end,
using the value of $MAX_SPLIT_DEPTH at that time.

Also, it's not overly surprising that setting the value to 0
does not result in all the content on one HTML page,
because certain actions regarding splitting will have been
performed before processing of the document is underway.


 When using the command line argument -split 0 instead of \HTMLsetenv
 latex2html works in the correct way, also \bodytext is o.k.

 2. When using \HTMLsetenv{NO_SUBDIR}{1} in a TeX file, this command has
 no effect. latex2html should put all generated files in the current
 directory in this case.

This one *definitely* cannot be changed within the job being processed.
The file location has already been chosen by that time, and some
helper files have been written already.


 Again, when using the command line argument -no_subdir everything is
 fine.


 3. When using \HTMLsetenv{INFO}{} or \HTMLsetenv{INFO}{0} there is no
 document info (or 0 resp.) but the About this document... header
 still appears in the output document. But there should be nothing!

A marker to determine the position of the INFO page is placed early
in the processing, though the page itself is not generated until later.
Perhaps the variable $INFO is not checked again, after this.

I'll take this message as a request to be able to cancel the INFO page
from within the LaTeX source --- that should be possible to program,
rather easily.



 Once again, when using the command line argument -info  or -info 0
 everything is o.k.

Yes; the command-line arguments, or Perl coding within initialisation
files (e.g. using  -init_file file  as a command-line switch)
are the recommended ways to adjust non-content aspects of the HTML site
produced by LaTeX2HTML.

 Martin

Hope this helps,

Ross Moore



 Thanks in advance.

 bye,
   Roland


Roland,
 I'll write to you again about future changes to LaTeX2HTML.


All

Re: [l2h] dvips version detection + perl warning

2003-12-16 Thread Ross Moore

Hi Erling,

On Tue, 16 Dec 2003, Erling D. Andersen wrote:

 Hi,

 I am not perl hacker at all but in

 config.pl


To know how to fix the reg-exp, we need to know how your version
of dvips identifies itself.

Can you reply to this email, including the lines that  dvips
prints when it first starts up.
In a terminal, or DOS window, or whatever, please try:
  dvips --helpor  dvips -help   or  dvips -h
  dvips --version  or   dvips -version  or  dvips -v
or whatever else might reveal the startup message.
Try several, in case the responses are different.

 after the code


Also, the error may not be with the actual version string,
as the regex below should detect any of:
dvips 5.94a
DVIPS 5.94A
dvipsk 5.94a
dvips(k) 5.94a
and many other similar patterns.

So to check what is happening, can you please add some print lines:

   foreach $veropt (@tryopts) {
   my ($stat,$msg,$err) = get_out_err($dvips $veropt);

   $msg .= $err || '';

print \nSTAT:$stat, MSG=$msg;

   if(!$stat  $msg =~ /(?:^| )dvips(?:\(k\)|k|)\s*(\d+[.]?\d*[A-Z]?)/is) {
 $version = $1;
print ; VERSION=$version\n;
 last;
   }
 }

 I added the line

 $version = '5.94a';

:-)   Yes, that'll work, until you upgrade.  :-)


 which make things work. Of course this is not general hack but it works
 in this case and may work for others as well.

 Properly the regular expression above should be modified. But who knows how to do 
 that.


Please try adding the 'print' lines above, and send me the result
when you run  config  again.


 Regards


Thanks for the report,

Ross Moore


 Erling




 
 Denne mail er blevet scannet af http://www.virus112.com
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] dvips version detection + perl warning

2003-12-17 Thread Ross Moore

Hi Erling,

On Wed, 17 Dec 2003, Erling D. Andersen wrote:

 Hi,

 By the way I get dvips from the latest fptex for Windows.

 Can you reply to this email, including the lines that  dvips
 prints when it first starts up.
 In a terminal, or DOS window, or whatever, please try:
   dvips --helpor  dvips -help   or  dvips -h
   dvips --version  or   dvips -version  or  dvips -v
 or whatever else might reveal the startup message.
 Try several, in case the responses are different.

 Here are

 C:\dvis -v
 'dvis' is not recognized as an internal or external command,
 operable program or batch file.

That's a mis-typing; result as expected.


 C:\dvips -v
 This is dvips(k) 5.94a Copyright 2003 Radical Eye Software (www.radicaleye.com)

This is what we want to use, I'd expect.


 C:\dvips --version
 dvips(k) 5.94a
 kpathsea version 3.5.2
 Copyright (C) 2003 Radical Eye Software.
 There is NO warranty.  You may redistribute this software
 under the terms of the GNU General Public License
 and the Dvips copyright.
 For more information about these matters, see the files
 named COPYING and dvips.h.
 Primary author of Dvips: T. Rokicki; -k maintainer: T. Kacvinsky/ S. Rahtz.

A much longer version; fine.



 C:\


 So to check what is happening, can you please add some print lines:
 
foreach $veropt (@tryopts) {
my ($stat,$msg,$err) = get_out_err($dvips $veropt);
 
$msg .= $err || '';
 
 print \nSTAT:$stat, MSG=$msg;
 
if(!$stat  $msg =~ /(?:^| )dvips(?:\(k\)|k|)\s*(\d+[.]?\d*[A-Z]?)/is) {
  $version = $1;
 print ; VERSION=$version\n;
  last;
}
  }
 

 Ross note that

 C:\Program Files\TeXLive\bin\win32\dvips.exe

 i.e. it contain a space in path. Can it cause problems. The output you ask for is 
 below.

 Warning: Will not automatically install LaTeX2HTML style files.
 checking for dvips... C:\Program Files\TeXLive\bin\win32\dvips.exe
 checking dvips version...
 STAT:1, MSG=This is dvips(k) 5.94a Copyright 2003 Radical Eye Software (www.ra
 caleye.com)
 Missing DVI file argument (or -f).
 Try --help for more information.
 STAT:1, MSG='C:\Program' is not recognized as an internal or external command,
 operable program or batch file.
 STAT:1, MSG='C:\Program' is not recognized as an internal or external command,
 operable program or batch file.
 STAT:1, MSG='C:\Program' is not recognized as an internal or external command,
 operable program or batch file.

Note how all of these return a $stat of 1 .
So the reg-exp is never tested.

The first one succeeds, sort of.
If it had a $stat of 0 then it would be used to get the version.

To find out exactly what command is being tested,
put another `print'  statement:

foreach $veropt (@tryopts) {
   print \nCMD: $dvips $veropt ;
my ($stat,$msg,$err) = get_out_err($dvips $veropt);


I suspect that it is *not*  dvips -v
so to fix the problem nicely, the commands to be tested
should include this as one option.
Preferably quite early in the list.


 C:\Program Files\TeXLive\bin\win32\dvips.exe

 i.e. it contain a space in path. Can it cause problems. The output you ask for is 
 below.

Yes. This could be why the 2nd, 3rd and 4th tests fail.


Hope this helps,

Ross



 Erling


 
 Denne mail er blevet scannet af http://www.virus112.com
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] avoiding conversion of -- to -

2003-12-29 Thread Ross Moore

Hi Fred,

On Wed, 17 Dec 2003, Fred L. Drake, Jr. wrote:


 I'm using LaTeX2HTML to convert programmer's API documentation using a
 fair bit of custom Perl code.

 Over the years, I've dealt with many places in our documentation where
 the text -- is contained as content rather than an markup for an
 en-dash.  In each case, I've avoided the en-dash conversion by adding
 still more markup in the document text.  While less than ideal, it has
 worked.

 I recently decided it was time to tackle this problem in a more
 general way.

 In each case where I've needed to deal with this conversion, the
 affected -- has occurred in content which is known to never need the
 conversion based on the surrounding markup.  What I've tried to do in
 these cases is to convert the -- to some other HTML spelling of
 those two characters; I've tried both -#45; and the XHTML-ish
 -#x2d;.  In both cases, the conversion still takes place.

 Where in LaTeX2HTML is this conversion being done?  Is there some way
 to suppress this without an uglier transformation of the --?


It happens in the text_cleanup routine:

# This routine must be called once on the text only,
# else it will eat up sensitive constructs.
sub text_cleanup {
# MRO: replaced $* with /m
s/(\s*\n){3,}/\n\n/gom; # Replace consecutive blank lines with one
s/(\/?)P\s*(\w)/$1P\n$2/gom;  # clean up paragraph starts and ends
s/$O\d+$C//go;  # Get rid of bracket id's
s/$OP\d+$CP//go;# Get rid of processed bracket id's
s/(!)?--?()?/(length($1) || length($2)) ? $1--$2 : -/ge;
  _^^___^
here's the pattern!
HTML comment delimiters pass unchanged
other occurrences of -- are contracted


 I will note that converting -- to -span-/span or
 -!--junk--- works, but both are incredibly ugly ways of doing
 this.

Sure.
I'd suggest that you replace the above line by a subroutine call,
then define the subroutine to do whatever replacements you think
are best for you -- perhaps none at all.


Theoretically, this replacement line is wrong, since it occurs
on 'output' rather than on 'input', as it would do with a TeX engine.
But I cannot find a better place for it, since it needs to act on the
result of macro expansions, as well as the normal text of the document.

Currently the replacement acts *after* all macro expansions have been
done, and all environments have been processed, but *before* verbatim
strings (and other 'sensitive' marked constructs) are re-inserted into
the document.

You say...

 In each case where I've needed to deal with this conversion, the
 affected -- has occurred in content which is known to never need the
 conversion based on the surrounding markup.  What I've tried to do in

So perhaps you should be using a construct that creates a 'sensitive'
marker for the whole block of content, in a similar way to how
verbatim-like environments are handled. (These have their content
stored in a database, and a 'marker' inserted into the document;
to be replaced much later by the replace_sensitive_markers routine.)
However, environments like {alltt} cannot be done this way, as for
those macros still need to be expanded.


Any further ideas would be welcome.



 Thanks!

Cheers,

Happy New Year

Ross



   -Fred

 --
 Fred L. Drake, Jr.  fdrake at acm.org
 PythonLabs at Zope Corporation
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Translation bug report

2003-12-29 Thread Ross Moore

Hi Erling,

On Fri, 19 Dec 2003, Erling D. Andersen wrote:

 Hi

 The following simple document is not translated correctly by
 latex2html.

 \documentclass{article}

 \newcommand{\idxbeg}{0}

 \begin{document}

 \[
 i=\idxbeg
  \]

 \end{document}

 It should produce the output

 i=0

 but produces

 i=

Yep; that's a bug.
Workarounds are easy:
   \newcommand{\idxbeg}{ 0}
   \newcommand{\idxbeg}{0 }
   \newcommand{\idxbeg}{{0}}
all of these work and at least one should not upset
normal LaTeX usage.

A *proper* fix is to change one line in the  latex2html script:

Near the end of subroutine block:
  sub substitute_meta_cmds {

change the line
elsif ($this_cmd) { push(@pieces, $this_cmd) }
to become
elsif ($this_cmd ne ) { push(@pieces, $this_cmd) }
or
elsif (!($this_cmd eq )) { push(@pieces, $this_cmd) }

Now the conditional will also catch a string of '0'.



 See

 http://www.mosek.com/l2h/test.html
 http://www.mosek.com/l2h/test.ps
 http://www.mosek.com/l2h/test.tex

Thanks for reporting this glitch.

Happy New Year,

Ross Moore


 Regards

 Erling


 *
 MOSEK ApS
 C/O Symbion Science Park
 Fruebjergvej 3, Boks 16
 DK-2100 Copenhagen O
 Denmark

 Phone (work): +45 3917 9907
 Mobile-phone: +45 2362 9520
 Fax:   +45 3917 9823
 Email to phone: [EMAIL PROTECTED]
 Email: [EMAIL PROTECTED]
 Homepage: http://erling.andersen.name
   http://www.mosek.com/homepages/e.d.andersen/

 *


 
 Denne mail er blevet scannet af http://www.virus112.com
 
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Problems with conversion of Latex pictures

2003-12-29 Thread Ross Moore

Hello Valter,

On Wed, 10 Dec 2003, valter violino wrote:

 Hi,
 i've some problems with conversion of latex
 pictures (generated with gnuplot, for example).
 On each converted picture there's a text line
 like this:

 ;tex2htmlfile./figures/tex/myfigure.tex

 where text beyond  is relative path to
 myfigure.tex which is the latex picture file.
 The rest of figure does not contain errors.

Would you please send a URL where this can be seen.
Reduce your document to the minimum which exhibits the
problem. Please make the LaTeX source that you are using
available to be downloaded for testing. Of course,
we'll need to be able to access all the pieces,
including images.



 Somebody can help me?

If you provide the examples, yes, we can help.

All the best in the New Year,

Ross Moore



 Thanks in advance,
 Valter
 --
 Cordiali saluti,

 Valter

 Powered by Suse Linux 8.1 Professional

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] alignmentproblem eqnarray - amsmath - test-case

2003-12-30 Thread Ross Moore

Hi Peter,

On Tue, 30 Dec 2003, Peter Morling wrote:

 Dear Ross,

 here is a testcase of the problems.

Thanks for these.
Now I see what is the problem:
   where to put the extra white-space, of undetermined amount.
(In TeX this is done using \hfill.)


 1. first with AMSMATH

  http://www.statmaster.sdu.dk/maskel/docs/eqnarray/withAMSMATH/index.html

 2. without AMSMATH

 http://www.statmaster.sdu.dk/maskel/docs/eqnarray/withoutAMSMATH/index.html

The reason that these are different when there is no numbering,
is that #2 uses a single image, which is then centered.

  non-AMSMATH creates what I call 'novice'-mode mathematics HTML.
That is, very little mathematics is expected in the document,
so whatever there is causes a single large image to be generated,
whenever this is adequate.

  with AMSMATH it is expected that more mathematics will occur,
and with greater use of alignments --- 'professional'-mode.
Here alignments are parsed, and images made of the cells.

  'expert'-mode takes the parsing even further:
 cell contents are parsed, making images only when needed
 to construct something complicated; e.g. fractions, \sqrt{...},
 special symbols, etc.
 This usually results in many more but smaller images, which are
 reused throughout the HTML of the document.
(It requires command-line switches, or an init-file setting
 to get 'expert'-mode mathematics to be generated.)

Note that expert-mode is a prelude to generating MathML coding
for mathematical expressions. It has long been an aim of mine
to develop a MathML module for use with LaTeX2HTML.



After a bit of experimentation, I can now see how to get the
 'proper' centering. The HTML needs to have:
  td width=50% .
 ^^
for the left and right cells of the mathematics in the alignment
 TABLE.  (The eqn-number cells remain as fixed-width.)

It should be quite easy to adjust the LaTeX2HTML coding to add these
extra width attributes.

You can expect another email soon, telling you the required edits;
It will take a bit longer before the repository is updated at
   www.latex2html.org
as I'm planning to submit many more changes than just these.



 Best,
 Peter

Thanks for the examples, which clearly indicate the problem.


Happy New Year,

Ross Moore





 Programmer Peter Morling, University of Southern Denmark
 Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
 Phone (+45) 6550 3399
 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] mnemonic anchors

2004-01-01 Thread Ross Moore

Hello Jens,

On Tue, 23 Sep 2003, Jens Lehmann wrote:

 Hello,

 currently I'm managing a document which is updated frequently. It is
 important that links to certain sections of the document stay valid
 after an update. I managed to get symbolic names for the html files
 (every section is an html file) by using $LONG_TITLES or writing a
 custom_title_hook function (both ways work).

 The next problem is that subsections (and below) have anchors which are
 not safe for updates, for instance A
 NAME=SECTION00042. I would like to have the headings

If the whole document is being updated, so will these names.
So where is the problem ?

Are you recording some of these names as constants, then creating
hyperlinks to them ?   That's not a recommended technique.
Instead you should use LaTeX's symbolic \label--\ref mechanism,
which assigns your own choice of name for anchor targets.

Either syntax should work:
   \subsection{... subsection name ...\label{..label...}}
   \subsection{... subsection name ...}\label{..label...}
creating an anchor that immediately precedes the subsection title,
so that hyperlinks jump to the window location that has the title
at the top.

 of the subsections and subsubsections as anchor names. I'm aware that
 this causes trouble if a heading appears more than once within one html
 file, but this is not a problem in our case. It's important that the
 mnemonic anchors are the ones which are actually used in the document
 (for example in the table of contents). How can this be achieved?

You will have to explain to me why this is necessary, for a single site.
It sounds like you have a complicated site which is not always updated
as a single unit, and want some parts to link into others.

The  labels.pl  file is designed for this.
It gives you perl-coding for the \label commands used within one
document, so that they can be referenced from another.
This is the basis of the  \externalref  mechanism, using
the \externallabels  command.


 Jens

Hope this helps,

Ross Moore



 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] \verbatim and \endverbatim

2004-01-01 Thread Ross Moore

Hello Jens,

On Thu, 25 Sep 2003, Jens Lehmann wrote:

 Hello,

 LaTeX2HTML currently supports the verbatim-environment (\begin{verbatim}
 ... \end{verbatim}), but it doesn't honour the commands \verbatim and
 \endverbatim. These commands are needed if you want to define your own
 verbatim-like environments (see the documentation of verbatim for more

Verbatim-like environments are always tricky, because they do not obey
the rules/style of normal LaTeX syntax for their content.

However, a definition such as:
\newenvironment{myspecialenv}
 {\textbf{This is mine}
  \begin{verbatim}
 }
 {\end{verbatim}
}

should work with LaTeX2HTML, even if it doesn't work with LaTeX
itself. Thus you can use conditional coding to vary the definition
according to the processing-engine:

\usepackage{html}
\begin{htmlonly}
\newenvironment{myspecialenv}
 {\textbf{This is mine}
  \begin{verbatim}
 }
 {\end{verbatim}
}
\end{htmlonly}
%begin{latexonly}
\newenvironment{myspecialenv}
 {\textbf{This is mine}\verbatim}
 {\endverbatim}
%end{latexonly}


 information). How can I get support for \verbatim and \endverbatim?

Try the above.
Tell me if it doesn't work for you, and then provide an example
for me to test, and debug if necessary.


 Jens


All the best,

Ross Moore


 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] mnemonic anchors

2004-01-02 Thread Ross Moore

Hi Jens,

On Fri, 2 Jan 2004, Jens Lehmann wrote:

  So where is the problem ?

 The document can be found here:
 http://www.xith.org/tutes/GettingStarted/html/

 Let's say in section 8 you add a new subsection foo at the beginning
 of the section. Then a link which used to point to The Model now
 points to foo. This is what I want to avoid.

 I assume (and this has proven to be true) that most users actually copy
 the link out of the table of contents or the listing of sub(sub)sections
 at the beginning of each page and paste it into forums. So, I'm not
 talking about links within the document, but links from outside to the
 document.

OK; so it's meant as a convenience in non-LaTeX2HTML situations.


  Are you recording some of these names as constants, then creating
  hyperlinks to them ?   That's not a recommended technique.

Yet this is indeed what you want to allow.
OK, that needs some thought.


  Instead you should use LaTeX's symbolic \label--\ref mechanism,
  which assigns your own choice of name for anchor targets.
 
  Either syntax should work:
 \subsection{... subsection name ...\label{..label...}}
 \subsection{... subsection name ...}\label{..label...}
  creating an anchor that immediately precedes the subsection title,
  so that hyperlinks jump to the window location that has the title
  at the top.

 Actually I can do this, but most users won't see this link, because they
 copypaste the link from the TOC and the listing of sub(sub)sections at

True. That \label  is pretty-much only used when you make an explicit
\ref (or \hyperref or similar) to it from withhin the body of the
document.
It is *not* used in the structure of the document's web-site.


 the beginning of each section. (I assume there is no magic involved and
 the links in the TOC stay the same like before if I use the technique
 above.)

Nope; not at present.
Though this is probably what we want.

There should be a hierarchy of choices for the label to use
when building the TOC and mini-TOCs:

  a.   use a symbolic \label if there is one
else
  b.   construct a label from the section-title;
   use this, if it is unique for the HTML-page
else
  c.   use the current label based on the section-numbers.

This should be possible to do; but a full solution will take some time
to develop.

 of the subsections and subsubsections as anchor names. I'm aware that
 this causes trouble if a heading appears more than once within one html
 file, but this is not a problem in our case. It's important that the
 mnemonic anchors are the ones which are actually used in the document
 (for example in the table of contents). How can this be achieved?
 
 
  You will have to explain to me why this is necessary, for a single site.
  It sounds like you have a complicated site which is not always updated
  as a single unit, and want some parts to link into others.

 I already tried to explain it above. Links within the document are not a
 problem.

 I hope the problem is now clearer.

Yes, it is.
Do my comments above agree with your own thoughts ?


All the best in the New Year,

Ross Moore



 Jens


 --
 PGP Public Key: http://studenten-dresden.de/public_key.asc


___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] alignmentproblem eqnarray - amsmath - test-case - suggestion

2004-01-02 Thread Ross Moore

Hi Peter,

On Fri, 2 Jan 2004, Peter Morling wrote:

 Hi again,

 im sorry, you are rightthe following is ok!! I just didnt test it good
 enough.

 :-)

 ---
 What is wrong with the following ?

 tr
   td align=right nowrap width=50%imuch longer left much longer left
 much longer left/inbsp;/td
   td align=center nowrapnbsp; = nbsp;/td
   td align=left nowrap width=50%iright/i/td
   td nowrap(1.1)/td
 /tr
 tr
   td align=right nowrap width=50%ileft/inbsp;/td
   td align=center nowrapnbsp; = nbsp;/td
   td align=left nowrap width=50%imuch longer right/i/td
   td nowrap(1.3)/td
 /tr
 

 will you add these changes for both html 3.2 and 4.0.

I've already done so for  HTML 4.0 and 4.01
   ( -html_version 4.1   gives  4.01 )

Did you get my email where I discussed what is valid according
to the HTML recommendations ?
  HTML 3.2  does *not* allow  width=50%  in th and td tags.
   ^
My nsgmls validator complains about these with 3.2, but not with 4.x.

(Browsers, however, will still recognise them, since they do not
seem to care about the DTD that has been specified.)

So I don't want to change the coding for LaTeX2HTML when generating
HTML 3.2.
But that doesn't stop you, either:
  1.  editing your own installed copy of  /versions/html3_2.pl
  (' width=\50%\'  needs to be inserted in 3 places only!)
OR
  2.  within an init-file, putting an edited copy of the code-block
  for the subroutine  do_env_eqnarray , and use this for all
  of your critical jobs that benefit from this.

I think it is useful for LaTeX2HTML to continue producing, by default,
coding that is valid against the stated DTD.
(Though for ease of generating output that corresponds with TeX
expectations yet is not overly complicated to read, this DTD need not
be the 'strict' version of the W3C's HTML recommendations).
Yet it should remain easy for authors to deviate from this path,
should they choose to do so --- perhaps without even knowing it.



 Best,
 Peter


Hope this helps,
and thanks very much for your report and examples.


Ross Moore


 Programmer Peter Morling, University of Southern Denmark
 Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
 Phone (+45) 6550 3399

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] tex counters cannot be used in html 4.0 for programming latex2html

2004-01-02 Thread Ross Moore

Hi again Peter,

On Fri, 2 Jan 2004, Peter Morling wrote:

 Dear Ross,

 another problem occoured using html 4.0. Everytime you refer to a counter it
 will be tagged with:

 SPAN CLASS=arabic \thecounter /SPAN

 ...meaning you cannot use LaTeX counters for your own anchors!

 e.g.,

 \newcommand{\ltopanchor}{
 \rawhtml
 !-- Start of topanchor --
 A NAME=SEC\endrawhtml\thesection\rawhtml
 !-- End of topanchor --
 \endrawhtml
 }

In LaTeX  \thesection  gives a formatted representation of the value
of the counter. It is *not* the numerical value of the counter.

For example, in chapter 3 of a book, \thesection might give  3.2
whereas the value of the counter is just 2 .

To get the number itself, use:
\value{section}
In TeX, this will give you the internal (binary) representation
of the number, useful for calculations, or for passing to formatting
macros: e.g.
   \number{\value{section}}

In LaTeX2HTML, either of  \value{section}  or  \number{\value{section}}
should give the correct string, since Perl passes all (touchwood) data
around as strings, or pointers to strings.



 will produce in html 4.0

 !-- Start of topanchor --
 A NAME=SECSPAN CLASS=arabic1/SPAN.SPAN CLASS=arabic0/SPAN
 !-- End of topanchor --

Yes; you're pretty much on your own, when you play with  rawhtml .
There's no guarantee of validity, or even correctness, when you
work with that.

You may find it easier to use  \HTMLcode to construct raw HTML,
using information from the document-body:

\HTMLcode[name=SEC\value{section}.\value{subsection}]{A}



 in html 3.2 everything works fine and will produce:

 !-- Start of topanchor --
 A NAME=SEC1.0
 !-- End of topanchor --

Just lucky, I guess.  :-)

HTML 4.0  is more complicated that 3.2, since you are *expected*
to use CSS styles --- much more so than with HTML 3.2.




 Is there a solution to this problem? (except for post-processing html for
 the excact span-tag ;) )

Try using  \value{counter}  rather than  \thecounter .

Or try
\renewcommand{\thesection}{\number{\value{section}}.\number{\value{subsection}}}

 --- though this will affect the display within the body of your document
as well as in these artificially constructed NAME attributes.



Just to check my statements above are correct, from the latex2html script
we have the following Perl coding:

sub do_cmd_value {
   ... read the arguments correctly ...
$val = get_counter_value($ctr);
if ($val) { $val.$_ }
else { join('', 0,$_) }
}

sub do_cmd_arabic {
local($ctr, $val, $id, $_) = read_counter_value($_[0]);
$val = ($val ? farabic($val) : 0);
styled_number_text('arabic', $val, $id);
}

where

sub read_counter_value {
   ... read the arguments correctly ...
$val = get_counter_value($ctr);
($ctr, $val, $br_id, $_)
}


So, the effective difference lies in the use of
 styled_number_text  for the output value from the counter.


sub styled_number_text {
local($num_style, $val, $txtID) = @_;
if ($USING_STYLES) {
$txt_style{$num_style} =   unless ($txt_style{$num_style});
join('',SPAN CLASS=\$num_style\, $val, /SPAN, $_);
} else { $val.$_ }
}


With HTML3.2, the $USING_STYLES parameter is unset by default,
whereas with HTML4.0 it *is* set.
(You can turn it off, if you wish, in an init-file.)




 Best,
 Peter


Hopefully this makes it clear what options are available to you.
(There are many, at all levels:  (La)TeX, Perl, HTML/CSS .)


Cheers

Ross






 Programmer Peter Morling, University of Southern Denmark
 Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
 Phone (+45) 6550 3399

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] alignmentproblem eqnarray - amsmath -example

2004-01-07 Thread Ross Moore

Hi Peter,

On Wed, 7 Jan 2004, Peter Morling wrote:

 Hi,

 here is an example of a little problem (when using the AMSMATH package):

 http://www.statmaster.sdu.dk/maskel/docs/amsex/index.html

 Look for the first eqnarray on that page and you will see that the equation
 is split up into ascii and gif, and that ascii (in this case the '0') is not
 aligned with the gif.

The alignment in these was fine in Netscape, until they recently changed
the way some attributes are implemented. The was a discussion on this list
recently about these issues, in which it was noted that the Netscape
developers have acknowledged their mistake.

As for IE, they have an interpretation which is quite different, and
definitely wrong --- in fact, quite unworkable, except when there is a
lot of CSS information to override it anyway.


 Without the amsmath package, there is no problem, the equation in not split
 up, a single image, that is centered as it should be.

You can get the single image, using  \htmlimage{...} within the
environment.

Alternatively, try the -no_math and -no_math_parsing  switches, to affect
the extent to which math-environments are parsed.


Hope this helps,

Ross


 Best,
 Peter


 Programmer Peter Morling, University of Southern Denmark
 Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
 Phone (+45) 6550 3399

 ___
 latex2html mailing list
 [EMAIL PROTECTED]
 http://tug.org/mailman/listinfo/latex2html

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] LaTeX2HTML license: An answer from Leeds University

2004-01-27 Thread Ross Moore
Hi Roland,

This is a very encouraging response.


On 27/01/2004, at 9:43 AM, Roland Stigge wrote:

Hi Ross,

today I received the attached mail. It should be enough for the original
author (Nikos Drakos) and you, the maintainer, to decrease the
scrupulosity to change the license (else, please contact me or Roger
Hartley).

I'm looking forward for the next release of LaTeX2HTML (as the rest of
the debian-legal team does). :-)


Thank you for moving ahead with this matter.
I'll plan to implement license changes on most of the main files
in the LaTeX2HTML distribution for the next release, probably
in February this year.


Regards

Ross Moore


Thanks.

bye,
Roland

From: Roger Hartley [EMAIL PROTECTED]>
Date: 27 January 2004 6:46:16 AM
To: [EMAIL PROTECTED]
Subject: Licence


Dear Dr. Stigge,
Thank you for your letter of 21 January regarding the change of licensing terms for LATEX2HTML initially written by Dr. Nikos Drakos in 1993.  I have spoken with colleagues and we have no objection to the changes you propose, and consider that it is not necessary for Dr. Drakos to formally seek permission from the University to change the licensing terms. If you require further information or further action please get in touch.
With regardsYours sincerely...(Professor) Roger Hartley.



___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

----
Ross Moore [EMAIL PROTECTED] 
Mathematics Department office: E7A-419  
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114


___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Tabular problems - malformed tabular after section or subsection

2004-02-20 Thread Ross Moore
Hello John,

On 21/02/2004, at 12:24 AM, John O'Gorman wrote:

I am using LyX 1.3.2 and converting a book class to HTML using 
latex2html.2002-2-1(1.70)

l2h is misrendering the HTML table.

Ploughing back through the email archives, I found this has been 
reported before.

Has there been any progress on a fix or workaround.

The symptoms:
  A table has only its 1st row rendered if it follows a section or 
subsection header (even if text intervenes).

If I remove all sections and subsections etc, the table is perfectly 
rendered.

Any suggestions?
Please send an example where this has failed for you.
Better yet, create the website and send a URL, both
for the source and the result.
(Another for a similar document that works correctly
may prove to be of use when debugging.)
Please include *everything* since frequently bugs are triggered
by something else in the document, not just the portion of your
document that is obviously not producing the desired result.
Hope this helps,

	Ross Moore


John O'Gorman

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] conditional text \begin{latexonly} command counter intuitive?

2004-02-20 Thread Ross Moore
Hello Jorgen,

On 21/02/2004, at 4:31 AM, Jorgen Johansson wrote:

Hello,

In the l2h manual there is an example of using
conditional text.
--snip--
\newcommand{\A}{The letter A.}
\newcommand{\B}{The letter B.}
\begin{latexonly}
\renewcommand{\A}{Not the letter A.}
\end{latexonly}
%begin{latexonly}
\renewcommand{\B}{Not the letter B.}
%end{latexonly}
\begin{document}
\A \B
\end{document}
If you process this with LATEX , the result is:
 The letter A. Not the letter B.
---end snip

I don't understand why
\renewcommand{\A}{Not the letter A.}
does not get processed by latex. I expected the result
It *does* get processed.
But it is limited to the scope of the {latexonly} environment.
to be:
Not The letter A. Not the letter B.
and NOT
The letter A. Not the letter B.
What am I missing or is the \begin{latexonly} command
somehow counter intuitive?
Compare the above with:

\newcommand{\A}{The letter A.}
\newcommand{\B}{The letter B.}
\begin{document}
\begin{latexonly}
\renewcommand{\A}{Not the letter A.}
\A \B
\end{latexonly}
%begin{latexonly}
\renewcommand{\B}{Not the letter B.}
%end{latexonly}
\A \B
\end{document}
Hope this helps,

	Ross

jorgen

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Possible bug with \end{verbatim} (version 2002-2-1 1.70)

2004-02-20 Thread Ross Moore
Hello Tak Auyeung,

On 02/02/2004, at 8:48 PM, Tak Auyeung wrote:

\end{verbatim} is interpreted correctly most of the time. The only one 
case when it is broken is when there is a % symbol on a line, and 
\end{verbatim} is on the same line. For example:

\begin{verbatim}movl %eax,%edx\end{verbatim}
Use the LaTeX short form:   \verb|movl %eax,%edx|
for something short like this.
You really only need the longer form for multi-line content.
causes all kinds of problems after it, but the following is okay:

\begin{verbatim}movl %eax,%edx
\end{verbatim}
With tricky environments such as {verbatim} {comment} {latexonly} etc.
LaTeX2HTML scans for the ending delimiter to be on a line by itself.

Apparently, pdflatex and latex interprets the first case (with 
\end{verbatim} on the same line) just fine.
Maybe, but it's poor visual style that makes your manuscript hard to 
read,
and to detect the structure of the information within it.

Hope this helps,

	Ross Moore


--Tak Auyeung
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Tabular problems - malformed tabular after section or subsection

2004-02-21 Thread Ross Moore
Hi John,

On 22/02/2004, at 2:31 AM, John O'Gorman wrote:

Ross Moore wrote:
Hello John,
Please send an example where this has failed for you.
Thanks Ross for your incredibly speedy response.

In comparison, I have been a little tardy in setting up the website.
  I've looked at the examples, thanks.
  As I thought, the problem was rather subtle:
  The \providecommand  replacement of \tabularnewline  was not
  taking place, when the document has sections --- unless the table
  occurs *before* the first \section (or \chapter, etc.) command.
  Following the logic of the command-replacement coding, it became
  apparent that a Perl variable $within_preamble  was not being
  reset to 0 after the first sectioned-segment of the full document;
  i.e., after the preamble has been fully processed, for documents
  containing multiple (sub-)sections, etc.
  The value of $within_preamble only affects the handling of macros
  defined using \providecommand, and for which there is no
  \renewcommand definition also. (It's used to indicate the need to
  put the \providecommand line itself into the preamble constructed
  for generating images.)
  Also, if the macro was expanding into ordinary text, then there
  would probably not have been a noticeable problem, as the replacement
  would then have taken place later in the processing.
  However, since the intended expansion is  \tabularnewline -- \\
  to create the delimiter for table rows, your example produces
  something rather unexpected --- but explainable.
  In fact, you would get the same result if you replace all
  (in fact, the first is enough) instances of \tabularnewline
  by \newline .
  So here's a simple fix, which I'm rather confident is robust,
  and will be included in the next update of LaTeX2HTML.
  In the  latex2html  script (any version, so I won't give line 
numbers),
  find the following code portion, and insert the indicated lines:

} else { push(@pieces, $this_cmd) }
  }
  push(@pieces, $after);
 INSERT the next 2 lines:
  # after the first segment we should no longer be in the 
preamble.
  $within_preamble = 0;
 end of INSERT
}
print  $replacements new-command replacements\n
if (($VERBOSITY1)  $replacements);
# recombine the processed pieces


Go to http://www.og.co.nz and follow the aubit4gl link.
I have agreed to do the documentation for the Aubit 4GL project.
I have put 3 triplets there based on table.lyx and badtable.lyx.
The generated .tex and html trees are href'd on that page.
These are the minimal examples of a good and a bad table. For me it 
seems that putting a table after any section or subsection causes the 
problem. Note that I am using -split 3 -link 4 in order to get a node 
for each section with a toc at the top of the page.

The aubit file above are also big examples of the problem (the pdf is 
good, the htmls have only the 1st row of tables int them.
Yes. When LaTeX2HTML finds excess cells in a line, they are omitted 
altogether.
This is better than trying to guess the correct structure of a table,
because HTML browser do really weird, unfriendly things with incomplete
and badly-formed tables.
However, there should be a warning message that something is wrong;
so I'll look into adding that for future releases.

Happy hunting!


Thanks for the bug report.
That was a rather special combination of circumstances
which had not been anticipated, hence went untested,
when devising the support for \providecommand .
Best regards,

	Ross Moore

John O'Gorman


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] input files

2004-02-21 Thread Ross Moore
Hello Nadia,

On 22/02/2004, at 9:45 AM, Nadia Karlinsky wrote:

 Hi--

 I'm running into the following problem:

 I run latex2html, and after the working directory is created, I get:

 texexpand: Error: More than one input file specified.
 texexpand failed: No such file or directory
What command-line did you use to call the LaTeX2HTML job ?
Do you a space character, or other unusual characters in the
name of the file, or a directory-path ?

 I read something about a bug with specifying more than one \input on a
 line, but I only have one \input in my source. Well, sort of...
Can you please post a URL where your source can be found, for 
inspection ?

 Specifically, I have foo.tex, which uses my_own_cls.cls
 (\documentclass[centered]{my_own_cls]). my_own_cls.cls specifies
  ^-- ?? typo? ??
 article.cls as an input file.
Hmm. LaTeX2HTML will not know how to support your private class-file.
It should assume  article.cls .
However, any user-level macros that you define there will not be
understood by LaTeX2HTML.
You could try the following way to start your document:

%begin{latexonly}
  \documentclass[centered]{my_own_cls}
  \usepackage{html}
%end{latexonly}
\begin{htmlonly}
  \documentclass{article}
  \usepackage{html}
\end{htmlonly}
That may help get over the problem with  texexpand .


 I really appreciate any help. Thanks,
Please provide more info, as suggested above.

Hope this helps,

	Ross Moore


 Nadia___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] changing to 24 bit color depth of images/ keeping existing jpg images?

2004-02-24 Thread Ross Moore
Hello Jorgen,

On 24/02/2004, at 7:51 PM, Jorgen Johansson wrote:

Hello,

I got rid of some of the problems with the image
processing my self:
Conclusion:
Image conversion/scaling of images works fine on win
XP as long as:
1) The .tex  and the image files are on the same
partition
2) one specifies relative paths i.e. without using the
drive letter in the  Latex include graphics command.
3) have a file extension in the include graphics
command.
There is a very peculiar thing when the full path
including drive letter is used in the \includegraphics
command, e.g.
\includegraphics[clip,scale=0.2]{c:/path_to_image/image.jpg}
When your image is a .jpg , and its not so large as to be
prohibitive to view via the web, then you don't actually
need to use \includegraphics .
The \htmladdimg  command, from  html.sty , is often a better
command to use. You can specify size and alignment for
the way the picture is to be shown in your HTML pages,
quite independently of how the image is handled in a typeset
LaTeX version of your document.
No processing at all is done on the image, so nothing
can go wrong.
%begin{latexonly}
\includegraphics[clip,scale=0.2]{c:/path_to_image/image}
%end{latexonly}
\htmladdimg[align=right width=400 height=300]
   {rel_path_to_image/image.jpg}
where the rel_path_to_image needs to be relative to where
the HTML page will ultimately be located.
(e.g.  ..  if the image is in the same directory as the
 source and you are just using default locations.)

then the resulting image is not scaled but resized by
L2H to the size specified in the image.bb and
resized image is in grayscale, whereas as the original
was in color.
If there is a platform-specific problem, then just use
 \htmladdimg  to avoid it.

In the case the tex source and the image files are on
separate partitions, maybe the variable $GRAPHICS_PATH
that could be set to take care of the problem?
If you are using a  \graphicspath  command in your LaTeX source,
then this could help find a .eps version of your image.
Afterall, it is just normal LaTeX processing that is taking
place when you use  LaTeX+dvips+Ghostscript  to resample the
image from an \includegraphics  command.


see the previous mention thread on
gmane.editors.lyx.general
appreciate any comments/suggestions


Hope this helps,

	Ross Moore


jorgen


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Inline math cropping

2004-02-25 Thread Ross Moore
Hello Jean-Pierre,

On 25/02/2004, at 7:33 PM, Jean-Pierre.Chretien wrote:


Date: Wed, 25 Feb 2004 11:36:07 +0900 (JST)
From: Shigeharu TAKENO [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [l2h] Inline math cropping

So, inline equation is not aligned on the baseline of the text
is usual situation in that case.
The math latex code is ... $3 \times 3$ matrices... which has no
lower part.
While setting up a simplified example file, I tested it with Netscape 
4.8
instead of my usual browser (Mozilla 1.5). Alignment is OK, but
the grey background is visible.


In fact one of the reasons to shift to Mozilla is that it could deal 
correctly
with transparent png, but it clearly does not understand
the align=MIDDLE alignment directive in the tag.
Yes. That is a known, and now acknowledged, bug in Mozilla, according to
what I've been told.
Is this a known problem ? Did I miss something in the preferences ?
Is it Solaris-Sparc specific ?
No. Some time ago the Mozilla developers mistakenly thought that
it would be good to copy the buggy way that M$ IE aligns images inline.
That method makes it impossible to reliably align using middle
when the text is allowed to flow with changing window-size.
So this seems also an issue for the browser point of view:
 - with Netscape 4.8, the alignment is correct, but the grey background
of the png is visible (I would like to stick to png);
 - with Mozilla 1.5, the aligment is uncorrect, but the transparency of
 the png is correct.
It has taking some convincing to get them to acknowledge the error.
Hopefully a newer version will have both correct alignment,
and full support for PNG images.

As the original code and the two snaphots are quite small,
I think I may attach them, I've added a second inline with a lower 
part.

[snip: patch to control use of .t02 file with a Perl variable]
Thanks a lot for this patch, I will check if it is OK for the
whole document in question, which has a lot of inline math.
If I understand correctly how the code works, it is normal to
have extra space below because it allows to get a correct alignment
Yes; that is correct.

Sometimes a small amount can safely be shaved off;
e.g. at the bottom of  {\cal S} which drops a little
below the baseline, but doesn't warrant  align=middle
because of this.
It is because of things like {\cal S}, and other script letters,
that a small gap is always inserted below the baseline.
If no more than 3 rows of white can be shaved, then this is deemed
to be OK, and simply removes that extra bit --- a good thing.
Then the shaved image is used, with  align=bottom.
However, if the 'shaving' removes too much, as in your example,
then the image is correct already and needs  align=middle .

of the formulas with align=MIDDLE. Thus I guess that forcing cropping
may solve the particular problem I mentioned, but may make worse
other formulas (with integrals e.g.).
Yes, indeed that will happen.
The current mechanism is as good as can be done; assuming:
  a.  the browser aligns correctly
  b.  you don't want to go to the trouble of specifically
locating every paragraph, line and image on the HTML page,
and specifying all the font sizes and line-heights.

I'll keep the list posted on this.

Regards, and thanks agian for investigating the code.
I'm glad you found it readable and/or understandable.
It's good to have people out there who can hack at the
coding. But please don't distribute this particular hack,
because it will actually create some more problems that
are very hard to solve.
Hope this helps,

	Ross Moore


--
Jean-Pierre

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Inline math cropping

2004-02-26 Thread Ross Moore
Hello Jean-Pierre,

On 25/02/2004, at 8:59 PM, Jean-Pierre.Chretien wrote:

No. Some time ago the Mozilla developers mistakenly thought that
it would be good to copy the buggy way that M$ IE aligns images 
inline.
That method makes it impossible to reliably align using middle
when the text is allowed to flow with changing window-size.
[snip]
It has taking some convincing to get them to acknowledge the error.
Hopefully a newer version will have both correct alignment,
and full support for PNG images.
Is it for Firebird/Firefox, or will it be inserted in the main
Mozilla branch  ?
The issue was discussed on this last, back in Nov/Dec 2003.
Here is the message which mentions the Mozilla bug-report:
http://tug.org/pipermail/latex2html/2003-December/002547.html

The latest Mozilla and Firefox do *not* yet have it fixed;
at least not for Macintosh --- I downloaded both yesterday.
Here's the bugzilla entry.
 http://bugzilla.mozilla.org/show_bug.cgi?id=192077
The status there is not yet 'fixed'.
It is acknowledged there that the strategy (as used by LaTeX2HTML)
is correct according to the HTML 4.0 (and earlier) recommendations.
Hope this helps,

	Ross


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Ampersand not translating

2004-03-12 Thread Ross Moore
Hi Bob,

On 13/03/2004, at 1:39 PM, Bob van der Poel wrote:

I'm having a heck of good time converting an existing latex document to
and electronic version with latex2html. I'm not sure if this is the 
BEST
tool, but for the most part it is working fine.
Glad to hear it.

The big problem I'm having is that the symbol \ is being converted to
the text SMPamp. I'm suspecting a bug in the program, but I may well
have missed something in the docs. Suggestions?
It is part of the translation process to make substitutions:

   \  --  ;SPMamp;

then later to substitute

   ;SPMamp; --  amp;

This 2-step process is necessary since  is a special character,
both for TeX and also for HTML.
Your description above does not mention the preceding ';'
nor the trailing one. If either has been separated from the SPMamp
then that would explain why the 2nd substitution does not occur.
However, to completely diagnose what is going wrong for you,
I'll need to see an example that fails to work.
Please post one to this list, else send a URL for some
documents where the error occurs, as well as the URL for
the LaTeX source and any packages and images that it needs.

Version: This is LaTeX2HTML Version 2002-2-1 (1.71)
Platform: Linux.


Hope this helps,

	Ross Moore


Thanks.

--
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: [EMAIL PROTECTED]
WWW:   http://www.kootenay.com/~bvdpoel
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] newbie, problem with \url + lyx

2004-03-22 Thread Ross Moore
Hello Frank,

On 23/03/2004, at 12:42 AM, Frank Altpeter wrote:

Hello!

Sorry to disturb you with this again, but i found this in the l2h web
archive and have a question for this:
You wrote on Wed, 13 Sep 2000 09:58:44 +1100 (EST):

There is no name clash in LaTeX, because e.g.
\begin_inset LatexCommand \htmlurl[LyX]{http://www.lyx.org/}
\end_inset
is translated as:
\IfFileExists{url.sty}{\usepackage{url}}
  {\newcommand{\url}{\texttt}}
in the preamble (to cope with (La)TeX installation not knowing about
url.sty),
and:
LyX \url{http://www.lyx.org/}
in the LaTeX code.
Well, i'm just about having the same problem. I use LyX-1.3.4 and
latex2html-2002.2.1_2 here, and want to define URLs in a lyx file to
convert into html.
I find the above translated line in the tex file, but it seems that
latex2html doesn't know about \IfFileExists{} and so doesn't load
the url.sty and therefore the URLs are not generated.
Have you loaded  html.sty  ?
This is vital for proper use of hyperlinks with LaTeX2HTML,
since it
  a.  causes certain markup to be recognised in the LaTeX source
  b.  loads the translation modules for hyperlinking constructions
and features to be used with the document translation.
This includes defining  \url  and  \htmlurl  to do the
right thing, so that it is not necessary to load other packages.
*All* documents that make significant use of hyperlinking
should  \usepackage{html}  when being translated into HTML
using  LaTeX2HTML.
That is a general rule for which there are no real exceptions,
in normal LaTeX usage.

If i export the LyX file into LaTeX and try to convert the LaTeX
file into html, i get the following eror:
Unknown commands: IfFileExists
Yes. \IfFileExists  is a programming construction, which implies
that programming code (which LaTeX2HTML probably cannot deal with)
is about to be loaded.
LaTeX2HTML interprets markup; it does not execute arbitrary
(La)TeX programming code.

If i remove the if routine and put a plain \usepackage{url} into it,
the error sounds like this:
No implementation found for style `url'

though the url.sty is present (comes with latex2html in texinputs
subdir).
With  html.sty  there is no need for loading  url.sty  separately.
It has nothing to add that isn't already handled by LaTeX2HTML.
Do you have any idea where the problem might be?
Is there in fact a problem in the HTML that is generated ?
If not, then just ignore these warning messages.
If there are problems in the translation, or you really want to
suppress the warnings, then try starting your document as follows:
\documentclass..

\usepackage{html}
%begin{latexonly}
\IfFileExists{url.sty}{\usepackage{url}}
  {\newcommand{\url}{\texttt}}
%end{latexonly}
Those special comments do not change the result when processing
with any TeX-based software, such as LaTeX or pdflatex or lyx,
but tell the Perl-based LaTeX2HTML to ignore the coding in-between.


Hope this helps,

	Ross Moore


With kind regards,

	Frank Altpeter



Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] newbie, problem with \url + lyx

2004-03-23 Thread Ross Moore
Hello again Frank,

On 23/03/2004, at 9:23 PM, Frank Altpeter wrote:

Hello!

Ross Moore wrote on 2004-03-23 08:31:29 +1100:
Have you loaded  html.sty  ?
Nope. Since LyX also doesn't.

This is vital for proper use of hyperlinks with LaTeX2HTML,
since it
  a.  causes certain markup to be recognised in the LaTeX source
  b.  loads the translation modules for hyperlinking constructions
and features to be used with the document translation.
This includes defining  \url  and  \htmlurl  to do the
right thing, so that it is not necessary to load other packages.
*All* documents that make significant use of hyperlinking
should  \usepackage{html}  when being translated into HTML
using  LaTeX2HTML.
That is a general rule for which there are no real exceptions,
in normal LaTeX usage.
Well, and there's my question... i managed to manually change the
resulting .tex file and get a working result after latex2html, but i
don't want to do that manually everytime, so my question was more
Is it really that hard to add a few lines to your LaTeX jobs ?
You could write a short script that does it for you.
LyX related... why doesn't lyx do what you suggest?
LyX and LaTeX2HTML were developed independently,
perhaps with different aims in mind.
Since LaTeX2HTML has been around longer, your question
is best addressed to the LyX development team.
LyX does add the already mentioned \usepackage{url} and after
converting it with LaTeX there's the already mentioned
IfFileExists{} routine in it.
So i assume there's a mistake either in LyX or in latex.
Not at all.

The  url.sty  package is a graft of the URL concept into
TeX --- which was devised long before the internet was
even conceived.
On the other hand, the URL idea was well-known when
LaTeX2HTML was developed, so is fully incorporated into
its design (and perhaps similarly for LyX).
However, since many LaTeX documents were already
in existence (and continue to be written) without reference
to hyperlinking, then it is quite understandable that
a package needs to be loaded to allow hyperlinking markup
to be properly interpreted.
For LaTeX2HTML this is html.sty  --- which does all that
is done by  url.sty  plus a lot more.
LyX chooses to just use  url.sty .
(It could choose to use either  html.sty  or  hyperref.sty
as more sophisticated alternatives; each of these loads
 url.sty  as part of the extra features that are offered.)
If you use LyX to write your LaTeX documents, there is
no a priori reason why it should know that you intend
to also process your documents with LaTeX2HTML.
That is your choice, and you should be prepared to
adjust your manuscripts appropriately, or ...

Is there in fact a problem in the HTML that is generated ?
If not, then just ignore these warning messages.
If i builld it manually, the resulting HTML works, well. When trying
to get the same results with using the LyX internal export feature,
it doesn't.
 ... ask the LyX team to implement better compatibility
for subsequent processing with LaTeX2HTML.

\documentclass..

\usepackage{html}
%begin{latexonly}
\IfFileExists{url.sty}{\usepackage{url}}
  {\newcommand{\url}{\texttt}}
%end{latexonly}
Those special comments do not change the result when processing
with any TeX-based software, such as LaTeX or pdflatex or lyx,
but tell the Perl-based LaTeX2HTML to ignore the coding in-between.
How do i add them to work in the automated LyX processing?
If you are using the LyX interface to compose your LaTeX
manuscripts, then that is a question for the LyX team to answer.
With kind regards,
Hope this helps,

	Ross Moore


	Frank Altpeter



Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] latex2html bug report when handling TEXINPUTS.

2004-04-23 Thread Ross Moore
Hi Erling,

On 23/04/2004, at 10:09 PM, Erling D. Andersen wrote:

Hi
I define
set TEXINPUTS=c:\something..

and it seems latex2html does not feed it properly to texpand.
No; it's not supposed to.
You are expected to supply a Perl definition to $TEXINPUTS
within a local .latex2html-init  file.
If you change the code from

L2hos-syswait($TEXEXPAND $dbg -auto_exclude $unseg
 . -save_styles $DESTDIR$dd$TMP_${dd}styles 
 . ($TEXINPUTS ? -texinputs $TEXINPUTS  : '' )
 . (($VERBOSITY 2) ? -verbose  : '' )
 . -out $DESTDIR$dd$TMP_$dd$FILE 
 . $texfilepath$dd$FILE.$EXT)
 die  texexpand  failed: $!\n;
to

$MYTEXINPUTS = $ENV{'TEXINPUTS'};
Why not set  $TEXINPUTS = .:$ENV{'TEXINPUTS'};  ...

L2hos-syswait($TEXEXPAND $dbg -auto_exclude $unseg
 . -save_styles $DESTDIR$dd$TMP_${dd}styles 
 . ($MYTEXINPUTS ? -texinputs $MYTEXINPUTS  : '' )
 ... and not edit this latter line at all ?


 . (($VERBOSITY 2) ? -verbose  : '' )
 . -out $DESTDIR$dd$TMP_$dd$FILE 
 . $texfilepath$dd$FILE.$EXT)
 die  texexpand  failed: $!\n;
then things works very well.

I think the problem is

$TEXINPUTS

only includes the current directory.

Is my bug report correct or have I misunderstood something?
Yes, you have misunderstood that LaTeX2HTML is *not* based
upon a TeX engine, but implements the translation of LaTeX
coding in a quite different way. Much TeX coding cannot
be translated sensibly by LaTeX2HTML.
(more explanations below.)
If you want to verify the bug then TEXINPUTS to something.
Do
latex2html -debug ...

Verify that texpand does not get the right -texinputs.
What you are missing is that the environment variable
  TEXINPUTS  is usually used for TeX \input  files and packages,
most of which cannot be interpreted by LaTeX2HTML, since they
are designed for layout of material on a static paper page.
Most packages and Plain-TeX \input files will just cause errors
in the high-level LaTeX-based processing performed by LaTeX2HTML.
Furthermore, since TEXINPUTS is frequently set to include the
*whole* texmf/ tree, including documentation files, it is
actually quite easy to get completely unrelated files \input
into a LaTeX2HTML job, causing all sorts of mayhem --- and the
user will be quite unaware of why material from such a file
has managed to get into his/her HTML pages.
(Consider how many files named  test.tex, example.tex, ex1.tex,
 letter.tex, etc.  are located within your texmf/ tree.
These are then candidates to be included accidentally.)
In short, if you have a sensibly-defined  TEXINPUTS  environment
variable, necessary for a particular LaTeX job, then you should
be prepared to define a similar $TEXINPUTS Perl variable for that
job.  (There are too many TeX installations out there with
badly-defined  TEXINPUTS  env variables to have $TEXINPUTS
inherited from it by default.)


Erling

PS. I would prefer a LOT that

latex2html -texinputs whateverpath .

was possible.

It's fine for experienced users of LaTeX2HTML to set this up
for themselves, but it is *not* fine for this to be the
default behaviour imposed by simply installing the software.
Hope this helps,

	Ross Moore




*** 
**
MOSEK ApS
C/O Symbion Science Park
Fruebjergvej 3, Boks 16
DK-2100 Copenhagen O
Denmark

Phone (work): +45 3917 9907
Mobile-phone: +45 2362 9520
Fax:   +45 3917 9823
Email to phone: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]
Homepage: http://erling.andersen.name
  http://www.mosek.com/homepages/e.d.andersen/
*** 
**

*** 
*
Denne mail er blevet scannet af http://www.virus112.com
*** 
*
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] -external_file?

2004-04-23 Thread Ross Moore
Hi again, Erling

On 23/04/2004, at 11:04 PM, Erling D. Andersen wrote:

Hi

I do

latex2html -external_file  somewhere/toolsinstall.aux

but nevertheless I get the error message:

Cannot open toolsinstall.aux No such file or directory
Maybe you should have  ../somewhere/toolsinstall.aux  .

Relative paths for LaTeX2HTML need to be relative to where
the HTML pages are built. Usually this is a subdirectory of
where the source .tex file is located, hence the '..'.
However, there is the option of setting a  $DESTDIR,
so it cannot be assumed that '..' is always applicable.
(You need to work out the correct relative path, according
to the other options that you use.)
As to your question about a -texinputs option switch,
you can use  -init_file file  and have the $TEXINPUTS
setting stored there.
(In this case, the file needs to be the path to the
file relative to where the LaTeX2HTML job is initiated,
as it is read before any real processing has begun.)
This is certainly a good option to use with a Makefile,
especially when the same Makefile is used to build several
projects that may require different options.
Hope this helps,

	Ross


Well,

-external_file

is poorly documented in

latex2html -help

bit the help seems to indicate that is the way to specify an aux file.

Have I misunderstood the

-external_file

option.

Erling

*** 
**
MOSEK ApS
C/O Symbion Science Park
Fruebjergvej 3, Boks 16
DK-2100 Copenhagen O
Denmark

Phone (work): +45 3917 9907
Mobile-phone: +45 2362 9520
Fax:   +45 3917 9823
Email to phone: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]
Homepage: http://erling.andersen.name
  http://www.mosek.com/homepages/e.d.andersen/
*** 
**

*** 
*
Denne mail er blevet scannet af http://www.virus112.com
*** 
*
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Which L2H output files are important. How to?

2004-04-26 Thread Ross Moore
Hi Erling,

On 26/04/2004, at 7:18 PM, Erling D. Andersen wrote:

Hi

latex2html generates a lot of output files. Some of them are an  
important
It generates a lot more than you usually see.
Try running with -debug and then examine the directory with the .html  
files!

part of the document and some of them are not. [For instance image.pl  
is not.]
Only the .pl files are not needed for the finished job itself.

However, these .pl files are retained since they are very useful
for further development of the site.
 e.g.
   images.pl  retains information about what images have been
created, so do not need to be made again if you make any changes
and rerun the job;
  labels.pl  is useful if you want to make links into this site,
from another web-page being made with  latex2html .
It tells you the values of all NAME=... attributes of the
anchor-points within the document; that is, places that can
be linked-to.
  images.log  is retained, since this can be useful when there
have been errors in the images, or if you want to check what
packages etc. were needed;
 contents.pl, sections.pl, index.pl, internals.pl  etc.
are generated when the pages are part of a Segmented Document.
This is similar to LaTeX's  \includeonly{} mechanism,
whereby a set of pages may use indexing/auxiliary information
from other runs using a different part of a multi-file
document.


Can (or does or should)

latex2html

tell which files are important? [I ship my HTML document somewhere  
else i.e. uploads it to
an server.]



Right now my solution to that problem is starting at

index.html

and then see what it links in recursive way. [I have implemented
it yet but by reading the HREFs it should  be possible to figure
what is important.]
Only  .html .css and image files are needed for a completed site.
The other files (e.g. the .pl ones) are for other purposes, as
described above, while the site is still under construction,
or for combining the site with other sites (labels.pl).


Regards

Erling


Hope this helps,

	Ross






*** 
**
MOSEK ApS
C/O Symbion Science Park
Fruebjergvej 3, Boks 16
DK-2100 Copenhagen O
Denmark

Phone (work): +45 3917 9907
Mobile-phone: +45 2362 9520
Fax:   +45 3917 9823
Email to phone: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]
Homepage: http://erling.andersen.name
  http://www.mosek.com/homepages/e.d.andersen/
*** 
**

*** 
*
Denne mail er blevet scannet af http://www.virus112.com
*** 
*
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Which L2H output files are important. How to?

2004-04-26 Thread Ross Moore
On 26/04/2004, at 11:18 PM, Erling D. Andersen wrote:

Hi Roos,


Only  .html .css and image files are needed for a completed site.
The other files (e.g. the .pl ones) are for other purposes, as
described above, while the site is still under construction,
or for combining the site with other sites (labels.pl).
I guess also

.gif .png

are needed. But what if you build to same directory several times. I  
guess
then some garbage could be left if you change the document. For  
instance gifs and .pngs that are no longer needed.
Yes, that can happen.
Or you can use  -reuse 0  or  -no_reuse ,  then all old images
are removed, forcing fresh ones to be made.
You can even be left with old .html files if you change the
 -split  level ($MAX_SPLIT_DEPTH ).
These need to be removed explicitly, e.g. using  rm  in Unix.
Another possibility is to build several jobs in the same
directory, using a different  -prefix  for each.
The specified prefix string is then used with all the generated
filenames, so that there is no clash between the different jobs.



Erling



Hope this helps,

	Ross








*** 
*
Denne mail er blevet scannet af http://www.virus112.com
*** 
*


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Problem converting an image?

2004-05-13 Thread Ross Moore
Hello Erling,
On 14/05/2004, at 12:09 AM, Erling D. Andersen wrote:
Hi,
Latex2html is doing image conversion that goes wrong for me. I do not  
why.
I include the latex2html debug below. Any has a suggestion what goes  
wrong.

In particular I think
AFPL Ghostscript 8.00 (2002-11-21)
Copyright (C) 2002 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GSGSError: /undefined in GIF89a
Operand stack:
looks strange.
Looks like you are reading a .gif image where it should
be a .ps or .eps file.
Erling
 *** processing 1 images ***
Generating postscript images using dvips ...
C:\local\TeXLive\bin\win32\dvips.exe -S1 -i  -Ppdf  -E -E  
-oC:\home\eda\mosekprj\bldtmp\win\tex\7003-007\devel\l2h264\image  
.\images.dvi
Debug (syswait): Running C:\local\TeXLive\bin\win32\dvips.exe -S1 -i   
-Ppdf  -E -E  
-oC:\home\eda\mosekprj\bldtmp\win\tex\7003-007\devel\l2h264\image  
.\images.dvi

 at c:\local\latex2html\bin/latex2html.bat line 3942
This is dvips(k) 5.90a Copyright 2002 Radical Eye Software  
(www.radicaleye.com)
' TeX output 2004.05.13:1600' -  
C:\home\eda\mosekprj\bldtmp\win\tex\7003-007\devel\l2h264\image
(- C:\home\eda\mosekprj\bldtmp\win\tex\7003-007\devel\l2h264\image001)
tex.proalt-rule.protexc.prospecial.procolor.pro
[1lmtinitial.gif]
^^  how does this happen ?
What is the coding in the   images.tex  file ?
And what was the original coding in your LaTeX
document that gives rise to this ?
Hope this helps,
Ross Moore

*** 
**
MOSEK ApS
C/O Symbion Science Park
Fruebjergvej 3, Boks 16
DK-2100 Copenhagen O
Denmark

Phone (work): +45 3917 9907
Mobile-phone: +45 2362 9520
Fax:   +45 3917 9823
Email to phone: [EMAIL PROTECTED]
Email: [EMAIL PROTECTED]
Homepage: http://erling.andersen.name
  http://www.mosek.com/homepages/e.d.andersen/
*** 
**

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] info about

2004-05-23 Thread Ross Moore
Hello Andrea,
On 24/05/2004, at 1:47 AM, Andrea Benazzo wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone, I am using latex2html since last week, and I've just 
figured out
this bad thing:

whenever I need to use the  simbols in LaTeX, I use the combination 
of
``text'', so that in the PDF the result is text.

while I translate the tex file with latex2html, in the resulting html 
files, I
get back ``text''.

this is not a good thing, n I noticed that even on the documentantion 
online
there's the same problem.
 Some browsers show this combination nicely --- unfortunately, not all 
do so.

Have you tried setting the variable:
   $USE_CURLY_QUOTES = 1;
within the  .latex2html-init  file ?
Be warned that not all browsers may show the resulting special entities 
properly
 --- that's why this isn't the default.


I've already looked at the config file, but I did not manage to find 
something
useful for this.
Try something like:
   grep QUOTE `which latex2html`
to see the names of possible relevant variables.

somebody already solved it?


2° thing: in my LaTeX files, I often use ArabTeX so that I may write 
even into
Arabic with no real problem. unfortunately every non-standard package 
is
ignored by latex2html. Is there a way to force it to use that package 
with
all the related fonts, counting also the fact that Arabic words are 
written
from right to left?
LaTeX2HTML is *not* based on a TeX engine, so using there's no way to
make those packages work. The logic needs to be recoded using Perl.
Have you tried using the Omega variant of TeX ?
That should give you HTML with Unicode.

Thank you so much
Hope this helps,
Ross Moore

Andrea
- --
www.thephoenix.altervista.org

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Custom environments

2004-06-14 Thread Ross Moore
Hello Prakash,
On 15/06/2004, at 6:20 AM, Prakash Countcham wrote:
  Hello,
  I have already sent this mail one week ago, but I retry as I didn't 
find it in the archive. Sorry for duplicates.
The  latex2html  mailing list gets a lot of spam emails, and I don't 
have
a lot of spare time to sift them for the legitimate mails from people
who haven't subscribed.
So it's better to subscribe first, then send messages.


  I try to use latex2html to convert a document with custom 
environments.
For example, here is a customized \input:

\RequirePackage{stack}
\NewStack{reldir}{.}
\newcommand\relinput[2]{%
  \Push{reldir}{\Stack{reldir}/#1}%
  \input{\Stack{reldir}/#2}%
  \Pop{reldir}}
No, customising  \input  in this way cannot not work with LaTeX2HTML.
This is because LaTeX2HTML builds a single large job from the
main document, and its \input and \include'd files *before*
starting to process macros and environments.
Since  \relinput  is seen as an ordinary macro, it will not be
expanded to reveal the  \input  that it contains,
until after the job files have been amalgamated.
At that time, it is *too late* to add new material to be
interpreted within the job.
However, if you just want to make an image of the file's
(La)TeX contents...
First, I tried to let tex handle this command with:
process_commands_in_tex (_RAW_ARG_CMDS_);
relinput # {} # {}
_RAW_ARG_CMDS_
  ... then this approach can be made to work, ...
But the file in question is said not to be found even if it exists (I 
don't know exactly why -- I guess it's because the generated files are 
in a different directory).
 ... but note that TeX processing takes place in a different
directory to where your document sources are located.
Usually this is just one level deeper, so an extra  '../'
in the directory path should be sufficient.

Then, I tried to adapt the subroutine do_cmd_input in the following 
way,
but I have got the same problem.

$relinput_rep = .;
First try testing using
 $relinput_rep = ..;

sub do_cmd_relinput {
local($_) = @_;
local($rep,$file,$output,$oldrep);
(s/\s*(.*)\s*\n/$rep =$1;''/s) unless (
	(s/$next_pair_pr_rx/$rep=$2;''/eo)
	||(s/$next_pair_rx/$rep=$2;''/eo));
(s/\s*(.*)\s*\n/$file =$1;''/s) unless (
	(s/$next_pair_pr_rx/$file=$2;''/eo)
	||(s/$next_pair_rx/$file=$2;''/eo));
local($after) = $_;
$oldrep = $relinput_rep;
$relinput_rep = $relinput_rep$dd$rep;
$file = revert_to_raw_tex(\\input{$relinput_rep$dd$file}\n) if 
$file;
if ($PREAMBLE) { add_to_preamble('include',$file)}
elsif (!($file=~/^\s*$/)) {
	$output = process_undefined_environment('center'
		, ++$global{'max_id'},\\vbox{$file});
}
$relinput_rep = $oldrep;
$output.$after;
}

Any idea?
If no other errors were reported, then I think you just
need to sort out the path to the files to be read within
this context.
Hard-coding   $relinput_rep = ..;
is not the most robust solution, since it'll be incompatible
with general settings for  $DESTDIR .
More robust would be something like:
  $relinput_rep = $RELINPUT_DIR||'..';
where, if necessary,  you can set  $RELINPUT_DIR
as a Perl variable in an initialization file.
I've also got other questions: Can I add a custom directory with my own
perl subroutines? Where can I find a documentation on how to add 
personal
subroutines to latex2html (I tried to read the code, but a clear
documentation would be better)?
Initialization files are implemented for precisely this purpose.
See the   -init_file  filename  switch.
You can use as many of these as you like; they'll be read,
and their Perl coding interpreted, in the order in which
they occur on the command-line.
There is a lot of documentation on this in the LaTeX2HTML
chapter of the book:  The LaTeX Web Companion  (Addison-Wesley).

Thanks for your help,
 Prakash

Hopefully you'll be able to get your jobs working correctly now.
It's great to see someone willing to tackle the Perl coding
to get the job done.
Best regards,
Ross
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


[l2h] real-world projects using TeX

2004-06-20 Thread Ross Moore
Hi everyone,
The MacTeX Working Group of TUG is compiling lists of links
to examples where TeX is integrated into a larger work-flow:
http://www.tug.org/twg/mactex/realworld.html
http://www.tug.org/twg/mactex/morerealworld.html
This is *not* meant to include traditional general-purpose
front-end editor-like TeX applications, such as WinEDT, TeXShell,
TeXShop, VTeX, Textures, OzTeX, etc.  which are listed aready at
 http://www.tug.org/interest.html.
Also, it doesn't include the obvious traditional application of
technical journals (esp. mathematics), though things like:
  *  online encyclopaedia
  *  abstract submission system with TeX preview
could be appropriate.
Furthermore, single documents which are particularly well-designed
and really show-off the power of TeX, are not what we are looking
for here. But these *would* be suitable candidates for inclusion
on the  `show-case' page:
http://www.tug.org/texshowcase/
Please reply to either myself or:  [EMAIL PROTECTED]
with suggestions ***including links***  for additions to any
of the above-mentioned lists.
Happy TeX-ing
Ross

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


[l2h] Re: l2h problem

2004-07-18 Thread Ross Moore
Hi Harvey,
On 18/07/2004, at 9:26 PM, Harvey Greenberg wrote:
IT WORKED   See below for responses.  (Should configure be
changed?)  I don't know why it worked before...oh well, linux
works in mysterious ways.
There have been several changes to  pnmcrop  over the years.
This is maintained quite independently from LaTeX2HTML.
The use of  -black  was a hack to avoid a problem with
one version of  pnmcrop . It shouldn't have been necessary,
and may no longer be needed at all.
Indeed, it's only effective when the \textcolor is black
--- usually true, but need not be always; so is somewhat
of a limitation anyway.
What surprises me is that  -black  is shown as an optional
argument for  pnmcrop , yet your executable didn't seem
to recognise it. That's clearly a mistake in either the
software or the documentation. I don't know how widespread
is this problem --- your report is the first that I've heard
about it. So I wouldn't be prepared to make any changes
to  configure  yet, without a more detailed look at just
which versions and subversions are affected.

I also have MikTeX on windows xp.  I didn't know l2h works there.
Certainly it works from a DOS prompt.
I don't use Windows myself, so don't know how well it works
under XP. It should be OK, as I've not heard reports of
major difficulties. If you search the Web, I'm sure you will
find instructions on how to install it to work with MikTeX.
Is it part of MikTeX or a separate installation?
The distribution site is at  www.latex2html.org .
But there's be no major revision for ~3 years.
Hope this helps,
Ross


Date: Sun, 18 Jul 2004 10:18:22 +1000
From: Ross Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: l2h problem
Hi Harvey,
On 17/07/2004, at 9:59 PM, Harvey Greenberg wrote:
2nd one failed with message: -black - No such file or directory
this seems strange.  the pnmcrop params include [-white|-black]
which doesn't seem like a directory.  Does this mean anything to you?
  the meaning of   [-white|-black]  is to say that there are
optional switches   -white  and  -black .
You can use 0 or 1 of these.
At least, that's the way it works normally.
Your system seems to be treating the -black
as a filename, not as a command-line option.
What is your computer type, and Operating System ?
   Unix, Linux, Mac OS or Windows ?
Linux redhat 7
(Is there a windows xp version?)

To experiment, to help diagnose the faulty command,
  1. find your  pstoimg  application.
It's a text file, so should be readable and editable
(given the correct access privileges).
Found it in /usr/local/bin   It's ve 1.16 2001/10/25
2. find the lines similar to below:
(your paths will be different)
# Netpbm
my $PNMCROP = '/sw/bin/pnmcrop -verbose ';
my $PNMCROPOPT = '';
$PNMCROPOPT = ' -sides ';
my $PPMQUANT = '/sw/bin/ppmquant';
my $PNMFLIP = '/sw/bin/pnmflip';
my $PNMCAT = '/sw/bin/pnmcat';
my $PNMFILE = '/sw/bin/pnmfile';
my $PBMMAKE = '/sw/bin/pbmmake';
got it - my path is /usr/bin
3.  what values do you have for these variables ?
   $PNMCROP
   $PNMCROPOPT
I have
my $PNMCROP - '/usr/bin/pnmcrop';
 $PNMCROPOPT = $PNMBLACK
(The word 'my' appears in 1st, not 2nd.)
Above the 2nd, appears
my $PNMBLACK = ' -black ';
Is this where the  -black  occurs ?
4.  If so, try removing it.
 Run your LaTeX2HTML job again.
 Do it twice, just in case.
I logically deleted the line
$PNMCROPOPT = $PNMBLACK;
WORKED!

Hope this helps,
Ross
--  
Thanks,
Harvey J. Greenberg

-- 
--
Ross Moore  
[EMAIL PROTECTED]


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] LyX an LaTeX2html cannot handle tables

2004-08-29 Thread Ross Moore
Hello Heiko,
On 29/08/2004, at 3:37 PM, Heiko Schröder wrote:
Hello Ross,
thank you *very* much that you respond so quickly!
Many people process tables quite happily using LaTeX2HTML.
Yes, and I belonged to those people with the former versions in the 
last four
distributions of SuSE ;-).

It would help a great deal if you provided an example of the kind of
table
Yes, here it comes: the two examples are containing only a table of 
two rows
with three columns. The first row contains the numbers 1, 2, 3 and the 
second
the words one, two, three. But the first, correct one lies within a 
section,
and the second, incorrect one within a subsection.


- schnipp first example only with section ---
%%LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\usepackage{babel}
\makeatother
\begin{document}
\section{This is a section}
\begin{tabular}{|c|c|c|}
\hline
1
2
3\tabularnewline
The problems stem from this use of  \tabularnewline
instead of just using \\  as most authors would do.
LaTeX2HTML was initially written to cope with the kind
of markup that most authors can be expected to want to use.
Other constructions may need to be specially catered-for.
In fact, LaTeX2HTML does support use of  \tabularnewline
when the {longtable} package is loaded:
   \usepackage{longtable}
for tables that would extend over more than 1 printed page.
But it is only recognised within the environment:
  \begin{longtable}
...
  \end{longtable}

It seems that now  \tabularnewline  is recognised by LaTeX
in {tabular} environments, as well as {longtable}.
I don't know when that was introduced.
It would be appropriate for LaTeX2HTML to be updated
to support this too.

\hline
\hline
one
two
three\tabularnewline
\hline
\end{tabular}
\end{document}
--- end schnipp -
This leads to a correct translation of the site and the table appears 
as the
listing shows:

H1A NAME=SECTION0001
This is a section/A
/H1
P
TABLE CELLPADDING=3 BORDER=1
TRTD ALIGN=CENTER1/TD
TD ALIGN=CENTER2/TD
TD ALIGN=CENTER3/TD
/TR
TRTD ALIGN=CENTERone/TD
TD ALIGN=CENTERtwo/TD
TD ALIGN=CENTERthree/TD
/TR
/TABLE
The  \providecommand{\tabularnewline}{\\}  has resulted
in an early substitution of the \\s,
so this coding works as intended.
But the next example with subsections gets a bad result. The TeX-File 
is:

 schnipp example with section and 
subsection-
%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\usepackage{babel}
\makeatother
\begin{document}
\section{This is a section}
\subsection{This is a subsection}
\begin{tabular}{|c|c|c|}
\hline
1
2
3\tabularnewline
\hline
\hline
one
two
three\tabularnewline
\hline
\end{tabular}
\end{document}
---  end schnipp ---
I cannot see any differences in the TeX-Files according to the
tabular-environment, but the HTML result this time is:
H2A NAME=SECTION00011000
This is a subsection/A
/H2
P
TABLE CELLPADDING=3 BORDER=1
TRTD ALIGN=CENTER1/TD
TD ALIGN=CENTER2/TD
TD ALIGN=CENTER3
BR
one/TD
/TR
/TABLE
But here, the  \tabularnewline  has not been substituted-for early.
Instead it has been later treated as  \newline  within a table-cell.
Very peculiar is, that the first entry of the second row now appears 
in the
last cell of the first line. But nothing else follows. All other rows 
an
contents do not appear.
LaTeX2HTML has seen this as a table with just a single row of cells,
and discarded all the excess cells.
Hm, do you have an idea?
I'm not at all sure about why the 2 situations produced different 
results.
I have some ideas about how this may have occurred; but in any case, 
it's
not right that this is happening.


Anyway, until I patch this bug in LaTeX2HTML, there is an easy fix
that you can use:
replace the line
   \providecommand{\tabularnewline}{\\}
with the TeX definition:
   \def\tabularnewline{\\}
This certainly works with your example, both with and w/out subsections.
It should be OK for normal LaTeX too, except perhaps with some exotic
packages that redefine \tabularnewline for themselves.
Hope this helps,
Ross

I use LaTeX2HTML Version 1.70. The first part above the line *LyX 
specific
LaTeX commands is in both cases the same:

%% LyX 1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\makeatletter
Thanks a lot for your help
Best regards from Heiko
--
Heiko Schröder
Praha
http://home.foni.net/~heikos


Ross Moore [EMAIL PROTECTED]
Mathematics Department

Re: [l2h] [Fwd: Bug#276037: latex2html: please support \usepackage{array} along with the extended tabular syntax]

2004-10-11 Thread Ross Moore
Hi Roland,
On 12/10/2004, at 4:43 AM, Roland Stigge wrote:
Hi,
FYI, a Debian user reported the problem described in the attachment.
See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=276037

Could you please support the extended array/tabular syntax provided by
the 'array' package? Example:
\usepackage{array}
...
\begin{tabular}{{\sl}cl}
123foo\\
456bar\\
\end{tabular}
is not supported right now, the whole columns spec gets ignored
by latex2html, including even the 'cl'. To have the above typeset
properly in both the LaTeX and the HTML one has to manually apply
the formatting to the corresponding column contents:

This extended syntax *is* supported by LaTeX2HTML,
when generating HTML for version 3.2 or 4.0.
The translation of the given example in these cases should be as 
follows.

  ---
HTML 3.2 :
see:  http://www-texdev.ics.mq.edu.au/DebianBugs/arraytest-v32/
TABLE CELLPADDING=3
TRTD ALIGN=CENTERI123/I/TD
TD ALIGN=LEFTfoo/TD
/TR
TRTD ALIGN=CENTERI456/I/TD
TD ALIGN=LEFTbar/TD
/TR
/TABLE
  ---
HTML 4.0
see:  http://www-texdev.ics.mq.edu.au/DebianBugs/arraytest-v40/
TABLE CELLPADDING=3
TRTD ALIGN=CENTERI CLASS=slanted123/I/TD
TD ALIGN=LEFTfoo/TD
/TR
TRTD ALIGN=CENTERI CLASS=slanted456/I/TD
TD ALIGN=LEFTbar/TD
/TR
/TABLE

The relevant Perl modules for this part of the translation process
are
   $LATEX2HTMLDIR/versions/html3_2.pl
   $LATEX2HTMLDIR/versions/html4_0.pl
The versions of these modules available at  www.latex2html.org
agree with those used to produce the above examples:
landau.ics.mq.edu.au cvs status html4_0.pl
===
File: html4_0.plStatus: Up-to-date
   Working revision:1.41
   Repository revision: 1.41
/home/latex2ht/cvs/latex2html/user/versions/html4_0.pl,v
   Sticky Tag:  (none)
   Sticky Date: (none)
   Sticky Options:  (none)

landau.ics.mq.edu.au cvs status html3_2.pl
===
File: html3_2.plStatus: Up-to-date
   Working revision:1.64
   Repository revision: 1.64
/home/latex2ht/cvs/latex2html/user/versions/html3_2.pl,v
   Sticky Tag:  (none)
   Sticky Date: (none)
   Sticky Options:  (none)


So I do not understand the basis for this bug-report.
Perhaps the author was either:
  a. generating code for out-dated versions of HTML
  (e.g.  3.0, 3.1, or 2.x  or 1.x
--- though then LaTeX2HTML might have created an image)
or
  b. doing something significantly more complicated than
  in the stated example.
or
  c. it is the Debian distribution that is not sufficiently
  up-to-date.

Thanks for considering.

Have done so.

Best regards,
Ross

bye,
  Roland
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] [Fwd: Bug#276037: latex2html: please support \usepackage{array} along with the extended tabular syntax]

2004-10-12 Thread Ross Moore
On 12/10/2004, at 9:48 PM, Roland Stigge wrote:
Hi,
On Tue, 2004-10-12 at 01:21, Ross Moore wrote:
This extended syntax *is* supported by LaTeX2HTML,
when generating HTML for version 3.2 or 4.0.
He was using -html_version '4.0,table' together with the array
Ahah! The  'table'  option was created for  HTML 2.2 (I think!)
back when TABLE tags were first introduced to HTML.
It is completely superseded by HTML3.1, HTML3.2, HTML4.0 and later,
so should *never* be used with any of these!
package. I can confirm that those seem to interfere somehow.
(Yes, it's probably a bug in LaTeX2HTML that allows the  table.pl
module to be loaded when a more advanced version has been specified
already!)
Just in case it's interesting for latex2html development.
Well, it's worth noting that someone tried this combination.
Cheers,
Ross
bye,
  Roland
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Bug in MANIFEST ? (russian.perl missing)

2004-10-24 Thread Ross Moore
On 22/10/2004, at 7:52 PM, [EMAIL PROTECTED] wrote:
File russian.perl in CVS tree, but not in packed release.
This has now been rectified.

I vote for Maksim A. Nikulin improvments described in:
http://tug.org/mailman/htdig/latex2html/2003-July/002535.html
OK; I'll look into it.
Sorry, but who is responcible for www.latex2html.org?
It seems, it has bad links.
That may be a bit harder to fix.
It's been quite awhile since I've heard from the guy
who set that up. I'll add it to the 'to do' list.
Thanks for the reports,
Ross
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Re: getting \par in graphical output of listings environment

2004-10-24 Thread Ross Moore
Hello Hans,
On 23/10/2004, at 2:03 AM, Hans Fangohr wrote:
In the absence of any replies that would solve my problem I will
report an ugly hack which allows me to do what I need to do. (But it
is far from being good.)
Sorry, I've been away for the past few days, so have only now
had a look at the problem.
There are several ways to tackle it, each depending upon
just what you want to produce for the HTML of the listing
environment.
If you want just a simple verbatim listing of the code,
set within  PRE ... /PRE tags, then one approach is
to hook into LaTeX2HTML's treatment of 'verbatim-like'
environments.
*Any* environment which has either 'verbatim' or 'Verbatim'
in the name will be processed that way automatically.
So you could do:
  1.  place the following coding in the preamble:
  %begin{latexonly}
   \lstnewenvironment{myverbatim}{}{}
  %end{latexonly}
  2.  change all of your usages of:
  \begin{lstlisting}  to  \begin{myverbatim}
  \end{lstlisting}  to  \end{myverbatim}
Now the document should process fine in both
LaTeX and LaTeX2HTML.
*Any* environment name containing 'verbatim' could be
used here' it doesn't have to be 'myverbatim'.
One problem with this solution is that an optional
argument to the listing environment is not recognised
as such by LaTeX2HTML. There's no simple way to overcome
this without some edits to the coding of the 'texexpand'
and 'latex2html' Perl scripts.

However, maybe you want the HTML to be an image of the
environment that LaTeX would produce, as at present
where the {lstlisting} environment is treated as being
*unknown*.
In that case, best would be to write a short Perl
subroutine, named  do_env_lstlisting  as follows.
sub do_env_lstlisting {
  local ($_) = @_;
  my $env_id = ++$global{'max_id'};
  $_ =~ s/\\par/\n\n/g;
  process_undefined_environment('lstlisting', $env_id, $_);
}
This could be placed in an initialization file,
or in a file   listings.perl  for loading in response
to the  \usepackage{listings}  command.
Such a package module could then be expanded to provide
greater support for the options and syntax defined
in the   listings.sty   LaTeX package.
Hmm. That \n\n  replacement may not work under DOS/Windows,
where the line-ending character is different.
If that's a problem, try instead:
sub do_env_lstlisting {
  local ($_) = @_;
  my $env_id = ++$global{'max_id'};
  $_ =~ s/\\par/
/g;
  process_undefined_environment('lstlisting', $env_id, $_);
}
... or buy a Unix box. :-)

The trick to produce an empty line which should not appear as '\par'
in latex2html's graphical output is to print something invisible in
that line, for example a white word on white background. You can
achieve this as follows:
Ouch; that's a pretty nasty kind of hack --- clever, mind you!
 --- and it only works for an image as output.
\documentclass{article}
\usepackage{listings}
\usepackage{color}
\lstset{backgroundcolor=\color{white},frame=single,emph={EMPTY},emphsty 
le=\color{white},}

\begin{document}
\begin{lstlisting}
print ``Hello World!''
EMPTY
print ``Done''
\end{lstlisting}
\end{document}

Note that the DVI output of this looks ugly (black boxes) but the PS
is okay (that is because the color-package does color using post
script commands so it is not expected to work for the dvi files).
Note also that the backgroundcolor for the listings environment has to
be set: listings seems to be quite clever and changes the background
to gray if you try to print something in white.


If anyone comes along a decent fix for this problem, please let me  
know.
The big question is what do you want to see in the HTML?
 an image, or preformatted text (i.e. PRE  /PRE  tags?
Hope this helps,
Ross

Thanks,
Hans

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] how get LaTeX2HTML to work under Windows XP with LATEST distros?

2004-10-24 Thread Ross Moore
Hi Murray,
On 25/10/2004, at 5:48 AM, Murray Eisenberg wrote:
Can anybody tell me how to actually get the LATEST distribution of 
LaTeX2HTML (latex2html-2002-2-1) to work with the current MiKTeX under 
Windows (XP) using also the current distribution of netpbm (27 
December 2003, at 
http://gnuwin32.sourceforge.net/packages/netpbm.htm)?

What kinds of things are going wrong ?
Since Windows is not my choice of operating system, it's not
easy for me to test a LaTeX2HTML distribution. And even then,
there are lots of options and alternatives, so even if I did
setup for testing, I may not be able to find what is failing
to work for you.
On the other hand, with sufficient feedback --- in particular
the screen logs from failing sessions --- I may be able to
guide you to the correct places in the Perl coding where things
need to be changed.
Some questions:
  Can you get a LaTeX2HTML job to run at all ?
  Is it just that images don't come out right ?
  Are L-shaped black bars a symptom of the problems
   --- maybe the only visible problem ?
  Is the images.dvi file constructed correctly ---
   have you looked at  images.log ?
  Have you tried using the  -debug  switch ?
  If so, can you locate where the image-processing
  is done, and have examined the graphics-format
  files there, constructed as intermediate files
  during the complete image processing phase.
Or are the problems deeper than this, and you just
cannot get the installation procedure to work ?
In that case, I'd like to see the screen logs
and the .pm files that this should be creating.

The documentation at
  http://www.mayer.dial.pipex.com/l2h.htm
is nearly 5 years old!  And, as I've posted here before, the result of 
following those instructions simply does not work.


(I've frittered away endless hours so far on this.  At one point I 
gave up and just used tex4ht instead, which can produce, as an option, 
html files that use MathML rather than graphics images.  But tex4ht 
doesn't do the nice division of documents into separate pages that 
LaTeX2HTML is supposed to do.)
Are browsers doing a good job of displaying MathML created this way ?
If so, then that's an ability that I'd like to add to LaTeX2HTML also.
Indeed it's been on the TODO list for some time. Finding time to do
the required programming has been the main barrier to this.
Best regards,
Ross Moore
--
Murray Eisenberg [EMAIL PROTECTED]
Mathematics  Statistics Dept.
Lederle Graduate Research Tower  phone 413 549-1020 (H)
University of Massachusetts413 545-2859 (W)
710 North Pleasant Streetfax   413 545-1801
Amherst, MA 01003-9305
___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Re: [l2h] Problem with Gif generation after MiKTeX 2.4

2004-10-27 Thread Ross Moore
Hi Peter,
On 27/10/2004, at 9:27 PM, Peter Morling wrote:
Hi,
after installing MiKTeX 2.4 the gif-generation causes errors, please  
se the
attached image, a blick line at the bottom of the gif box.

However, if you set the
MATH_SCALE_FACTOR = 1.8;
the problem will disappear again. But it'll force you to use a rather  
large
presentation of your math statements. I have tried the excact same for
MiKTeX 2.3 and this causes no problems. So i come to this conclusion,  
that
MiKTeX distributes some new dimentinons of fonts or maths used by L2H  
when
calling programs in NetPbm.
Hmm; could be.
More likely is that, with the update, you are now using bitmapped fonts,
whereas previously you were using PostScript outlines (i.e. .pfb files)
or perhaps vice-versa.
I suggest that you run some tests of LateX2HTML, using the -debug  
switch.
Observe in the log-window where the fonts are coming from.

Also, look at  images.dvi  (and perhaps also at  images.log )
to see if anything looks wrong.
In  images.dvi  each image should be bracketed left  below by
an L-shape, which is used to control the size of the image by
its inside height and width.  If that L isn't formed cleanly
then you'll get incomplete cropping to the correct size.

How do i fix this problem?
We need a fuller diagnosis first.
Hopefully the above will help you do this.
Best regards,
Ross Moore

Best,
Peter



Programmer Peter Morling, University of Southern Denmark
Department of Statistics, Sdr. Boulevard 23A, DK-5000 Odense C
Phone (+45) 6550 3399
img20_MATH_SCALE_1_8.gifimg20_MATH_SCALE_1_6.gif___ 

latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


Ross Moore [EMAIL PROTECTED]
Mathematics Department office: E7A-419
Macquarie University   tel: +61 +2 9850 8955
Sydney, Australia  fax: +61 +2 9850 8114

___
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html


<    1   2   3   4   >