Re: Latex2html author says it is LyX's fault.
Guenter Milde wrote: On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson [EMAIL PROTECTED] wrote: I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. ... I remember that I once read about \newcommand in a LaTeX textbook that its arguments must not be spread across lines (may be this was a 2.09 feature that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect. The same textbook offered a workaround using comment characters. One could do \newcommand\myHangIndent[1]{% \begin{HangIndent} #1% \end{HangIndent} as the % comments out everything until and including the EOL char. Would this work with LaTeX2HTML? I found this fixed some problems in PS and PDF, but not latex2html.
Re: Re[2]: Latex2html author says it is LyX's fault.
Guenter Milde [EMAIL PROTECTED] writes: |\newcommand{\myHangIndent}[1]{... etc ...} | |With that, everything processes smoothly; | | ... a workaround using comment characters. One could do | | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent} | | as the % comments out everything until and including the EOL char. | | I found this fixed some problems in PS and PDF, but not latex2html. | | Sorry, I missed the closing }, it should be | | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent}% | } | | so for LaTeX "{" and "}" are on one line. | | Would this work with LaTex2HTML? | (or did you already fix my error?) Hmm, I thought the error was that "\myHangIdent" was not enclosed in braces: "\newcommand{\myHangIdent}..." Lgb
Re: Latex2html author says it is LyX's fault.
"Lars Gullik Bjnnes" wrote: | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent}% | } | | so for LaTeX "{" and "}" are on one line. | | Would this work with LaTex2HTML? | (or did you already fix my error?) Hmm, I thought the error was that "\myHangIdent" was not enclosed in braces: "\newcommand{\myHangIdent}..." this was not the only one error. latex2html don't translate correct the command. i suppose it's the combination of command and environment. this construct depends to lyx. but it is real latex code! latex2html interprets this as an image (i don't know why) and so you get another error message. it's easy to test. in preamble: \newenvironment{myEnv}{}{} \newcommand{\myCommand}[1]{\begin{myEnv}#1\end{myEnv}} and as text: a text with \myCommand{a test} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Latex2html author says it is LyX's fault.
Guenter Milde wrote: On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson [EMAIL PROTECTED] wrote: I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. ... I remember that I once read about \newcommand in a LaTeX textbook that its arguments must not be spread across lines (may be this was a 2.09 feature that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect. The same textbook offered a workaround using comment characters. One could do \newcommand\myHangIndent[1]{% \begin{HangIndent} #1% \end{HangIndent} as the % comments out everything until and including the EOL char. Would this work with LaTeX2HTML? I found this fixed some problems in PS and PDF, but not latex2html.
Re: Re[2]: Latex2html author says it is LyX's fault.
Guenter Milde [EMAIL PROTECTED] writes: |\newcommand{\myHangIndent}[1]{... etc ...} | |With that, everything processes smoothly; | | ... a workaround using comment characters. One could do | | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent} | | as the % comments out everything until and including the EOL char. | | I found this fixed some problems in PS and PDF, but not latex2html. | | Sorry, I missed the closing }, it should be | | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent}% | } | | so for LaTeX "{" and "}" are on one line. | | Would this work with LaTex2HTML? | (or did you already fix my error?) Hmm, I thought the error was that "\myHangIdent" was not enclosed in braces: "\newcommand{\myHangIdent}..." Lgb
Re: Latex2html author says it is LyX's fault.
"Lars Gullik Bjnnes" wrote: | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent}% | } | | so for LaTeX "{" and "}" are on one line. | | Would this work with LaTex2HTML? | (or did you already fix my error?) Hmm, I thought the error was that "\myHangIdent" was not enclosed in braces: "\newcommand{\myHangIdent}..." this was not the only one error. latex2html don't translate correct the command. i suppose it's the combination of command and environment. this construct depends to lyx. but it is real latex code! latex2html interprets this as an image (i don't know why) and so you get another error message. it's easy to test. in preamble: \newenvironment{myEnv}{}{} \newcommand{\myCommand}[1]{\begin{myEnv}#1\end{myEnv}} and as text: a text with \myCommand{a test} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: Latex2html author says it is LyX's fault.
Guenter Milde wrote: > > On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson <[EMAIL PROTECTED]> wrote: > > > I got this email from Ross Moore about the problem I had with my > > regression notes and latex2html. He sys LyX is not outputting proper > > TeX for my user-defined paragraph environment "myHangIndent". That > > specific point is about 2/3 of the way down, but I leave the rest for > > context. My part begins with >, the rest is from Ross Moore, who is > > answing bug reports for latex2html today. > > > > > > > I have a TeX document that latex2html cannot process, apparently > > because > > > it has this bit in the preamble: > > > > > > %% Textclass specific LaTeX commands. > > > \newenvironment{HangIndent} > > > {\list{}{% > > > \setlength\leftmargin{1.5cm}% leftmargin > > > \itemindent-\leftmargin}\item{}} > > > {\endlist} > > > \newcommand\myHangIndent[1]{ > > > \begin{HangIndent} #1 > > > \end{HangIndent} > > > } > > > > The problem is that LaTeX2HTML wants you to give the definition as: > > > > \newcommand{\myHangIndent}[1]{... etc ... > > > > With that, everything processes smoothly; > > though it doesn't necessarily do the best possible translation. > > ... > > I remember that I once read about \newcommand in a LaTeX textbook that its > arguments must not be spread across lines (may be this was a 2.09 feature > that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect. > > The same textbook offered a workaround using comment characters. One could do > > \newcommand\myHangIndent[1]{% > \begin{HangIndent} #1% > \end{HangIndent} > > as the % comments out everything until and including the EOL char. > > Would this work with LaTeX2HTML? I found this fixed some problems in PS and PDF, but not latex2html.
Re: Re[2]: Latex2html author says it is LyX's fault.
Guenter Milde <[EMAIL PROTECTED]> writes: | > > > \newcommand{\myHangIndent}[1]{... etc ...} | > > > | > > > With that, everything processes smoothly; | | > > ... a workaround using comment characters. One could do | > > | > > \newcommand\myHangIndent[1]{% | > > \begin{HangIndent} #1% | > > \end{HangIndent} | > > | > > as the % comments out everything until and including the EOL char. | | > I found this fixed some problems in PS and PDF, but not latex2html. | | Sorry, I missed the closing }, it should be | | \newcommand\myHangIndent[1]{% | \begin{HangIndent} #1% | \end{HangIndent}% | } | | so for LaTeX "{" and "}" are on one line. | | Would this work with LaTex2HTML? | (or did you already fix my error?) Hmm, I thought the error was that "\myHangIdent" was not enclosed in braces: "\newcommand{\myHangIdent}..." Lgb
Re: Latex2html author says it is LyX's fault.
"Lars Gullik Bjønnes" wrote: > | \newcommand\myHangIndent[1]{% > | \begin{HangIndent} #1% > | \end{HangIndent}% > | } > | > | so for LaTeX "{" and "}" are on one line. > | > | Would this work with LaTex2HTML? > | (or did you already fix my error?) > > Hmm, I thought the error was that "\myHangIdent" was not enclosed in > braces: > > "\newcommand{\myHangIdent}..." this was not the only one error. latex2html don't translate correct the command. i suppose it's the combination of command and environment. this construct depends to lyx. but it is real latex code! latex2html interprets this as an image (i don't know why) and so you get another error message. it's easy to test. in preamble: \newenvironment{myEnv}{}{} \newcommand{\myCommand}[1]{\begin{myEnv}#1\end{myEnv}} and as text: a text with \myCommand{a test} Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Latex2html author says it is LyX's fault.
I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. e.g. have a look at: http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/ Besides, LaTeX2HTML wrote a huge error message into the log-window, saying that: %%,,, *** Could not find argument for command \newcommand *** viz: Loading /usr/local/lib/latex2html/styles/inputenc.perl Loading /usr/local/lib/latex2html/styles/babel.perl Loading /usr/local/lib/latex2html/versions/lang.pl Loading /usr/local/lib/latex2html/styles/graphics.perl Reading ... %%,,, *** Could not find argument for command \newcommand *** \myHangIndent[1]309 \begin13HangIndent13 #1 \end14HangIndent14 309 \par If that bit is in the preamble, then the processing of math breaks, and equations get written to image files with format "hatb" instead of a hat over a b. This doesn't happen for me. It may be something left over from the other error though, since almost the whole file was scanned looking for the { after \newcommand . I'll look at programming to lessen the severity of this "error". I have the document in this directory: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1 The file is "multRegNotes1.tex" I also have the lyx file from which it was exported and the 2 eps figures are in the same directory. Does LyX export as \newcommand\myHangIndent or was that yourself ? You should complain to LyX for not doing \newcommand{\myHangIndent} which is more in keeping with LaTeX style, although both work with a TeX engine. If I leave in the hangindent TeX above, the equations are ugly, and I've put just one example of an ugly one in that directory too: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png All the \ characters are lost. This is typical when balance of environment delimiters gets badly out-of-whack somehow. If I delete the HangIndent from the Tex preamble and remove its one usage, then latex2html is able to process the file without trouble. I get this same result with latex2html 99.2 or 99.3, but one other user in the lyx user group showed me his version 96 worked fine on Solaris. If you can tell me what I did wrong, I'd appreciate it. The above should help you to get the file processed satisfactorily. Ross Moore -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045FAX: (785) 864-5700
Re: Latex2html author says it is LyX's fault.
Paul E Johnson [EMAIL PROTECTED] writes: | I got this email from Ross Moore about the problem I had with my | regression notes and latex2html. He sys LyX is not outputting proper | TeX for my user-defined paragraph environment "myHangIndent". That | specific point is about 2/3 of the way down, but I leave the rest for | context. My part begins with , the rest is from Ross Moore, who is | answing bug reports for latex2html today. What LyX layout is this? Lgb
Re: Latex2html author says it is LyX's fault.
I have a problem too when I convert my document into HTML... The mathematical characters appear as latex commands... R - Original Message - From: "Paul E Johnson" [EMAIL PROTECTED] To: "LyX Users" [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 9:38 AM Subject: Latex2html author says it is LyX's fault. I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. e.g. have a look at: http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/ Besides, LaTeX2HTML wrote a huge error message into the log-window, saying that: %%,,, *** Could not find argument for command \newcommand *** viz: Loading /usr/local/lib/latex2html/styles/inputenc.perl Loading /usr/local/lib/latex2html/styles/babel.perl Loading /usr/local/lib/latex2html/versions/lang.pl Loading /usr/local/lib/latex2html/styles/graphics.perl Reading ... %%,,, *** Could not find argument for command \newcommand *** \myHangIndent[1]309 \begin13HangIndent13 #1 \end14HangIndent14 309 \par If that bit is in the preamble, then the processing of math breaks, and equations get written to image files with format "hatb" instead of a hat over a b. This doesn't happen for me. It may be something left over from the other error though, since almost the whole file was scanned looking for the { after \newcommand . I'll look at programming to lessen the severity of this "error". I have the document in this directory: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1 The file is "multRegNotes1.tex" I also have the lyx file from which it was exported and the 2 eps figures are in the same directory. Does LyX export as \newcommand\myHangIndent or was that yourself ? You should complain to LyX for not doing \newcommand{\myHangIndent} which is more in keeping with LaTeX style, although both work with a TeX engine. If I leave in the hangindent TeX above, the equations are ugly, and I've put just one example of an ugly one in that directory too: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png All the \ characters are lost. This is typical when balance of environment delimiters gets badly out-of-whack somehow. If I delete the HangIndent from the Tex preamble and remove its one usage, then latex2html is able to process the file without trouble. I get this same result with latex2html 99.2 or 99.3, but one other user in the lyx user group showed me his version 96 worked fine on Solaris. If you can tell me what I did wrong, I'd appreciate it. The above should help you to get the file processed satisfactorily. Ross Moore -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045FAX: (785) 864-5700
Re: Latex2html author says it is LyX's fault.
On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson [EMAIL PROTECTED] wrote: I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. ... I remember that I once read about \newcommand in a LaTeX textbook that its arguments must not be spread across lines (may be this was a 2.09 feature that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect. The same textbook offered a workaround using comment characters. One could do \newcommand\myHangIndent[1]{% \begin{HangIndent} #1% \end{HangIndent} as the % comments out everything until and including the EOL char. Would this work with LaTeX2HTML? guenter -- [EMAIL PROTECTED]
Re: Latex2html author says it is LyX's fault.
Paul E Johnson wrote: I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } this is in standard TEX-format \newlength{\myHangIndentSize} \setlength{\myHangIndentSize}{1cm} \newenvironment{HangIndent} {\list{}{ \setlength{\leftmargin}{\myHangIndentSize} \itemindent-\leftmargin}\item{}} {\endlist} \newcommand{\myHangIndent}[1]{% \begin{HangIndent}#1 \end{HangIndent}% } tth excepts a definition like \setlength\aLength..., but not latex2html anyway, latex2html doesn't work for me, if i use the command myHangIndent! Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Latex2html author says it is LyX's fault.
I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. e.g. have a look at: http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/ Besides, LaTeX2HTML wrote a huge error message into the log-window, saying that: %%,,, *** Could not find argument for command \newcommand *** viz: Loading /usr/local/lib/latex2html/styles/inputenc.perl Loading /usr/local/lib/latex2html/styles/babel.perl Loading /usr/local/lib/latex2html/versions/lang.pl Loading /usr/local/lib/latex2html/styles/graphics.perl Reading ... %%,,, *** Could not find argument for command \newcommand *** \myHangIndent[1]309 \begin13HangIndent13 #1 \end14HangIndent14 309 \par If that bit is in the preamble, then the processing of math breaks, and equations get written to image files with format "hatb" instead of a hat over a b. This doesn't happen for me. It may be something left over from the other error though, since almost the whole file was scanned looking for the { after \newcommand . I'll look at programming to lessen the severity of this "error". I have the document in this directory: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1 The file is "multRegNotes1.tex" I also have the lyx file from which it was exported and the 2 eps figures are in the same directory. Does LyX export as \newcommand\myHangIndent or was that yourself ? You should complain to LyX for not doing \newcommand{\myHangIndent} which is more in keeping with LaTeX style, although both work with a TeX engine. If I leave in the hangindent TeX above, the equations are ugly, and I've put just one example of an ugly one in that directory too: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png All the \ characters are lost. This is typical when balance of environment delimiters gets badly out-of-whack somehow. If I delete the HangIndent from the Tex preamble and remove its one usage, then latex2html is able to process the file without trouble. I get this same result with latex2html 99.2 or 99.3, but one other user in the lyx user group showed me his version 96 worked fine on Solaris. If you can tell me what I did wrong, I'd appreciate it. The above should help you to get the file processed satisfactorily. Ross Moore -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045FAX: (785) 864-5700
Re: Latex2html author says it is LyX's fault.
Paul E Johnson [EMAIL PROTECTED] writes: | I got this email from Ross Moore about the problem I had with my | regression notes and latex2html. He sys LyX is not outputting proper | TeX for my user-defined paragraph environment "myHangIndent". That | specific point is about 2/3 of the way down, but I leave the rest for | context. My part begins with , the rest is from Ross Moore, who is | answing bug reports for latex2html today. What LyX layout is this? Lgb
Re: Latex2html author says it is LyX's fault.
I have a problem too when I convert my document into HTML... The mathematical characters appear as latex commands... R - Original Message - From: "Paul E Johnson" [EMAIL PROTECTED] To: "LyX Users" [EMAIL PROTECTED] Sent: Wednesday, February 28, 2001 9:38 AM Subject: Latex2html author says it is LyX's fault. I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. e.g. have a look at: http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/ Besides, LaTeX2HTML wrote a huge error message into the log-window, saying that: %%,,, *** Could not find argument for command \newcommand *** viz: Loading /usr/local/lib/latex2html/styles/inputenc.perl Loading /usr/local/lib/latex2html/styles/babel.perl Loading /usr/local/lib/latex2html/versions/lang.pl Loading /usr/local/lib/latex2html/styles/graphics.perl Reading ... %%,,, *** Could not find argument for command \newcommand *** \myHangIndent[1]309 \begin13HangIndent13 #1 \end14HangIndent14 309 \par If that bit is in the preamble, then the processing of math breaks, and equations get written to image files with format "hatb" instead of a hat over a b. This doesn't happen for me. It may be something left over from the other error though, since almost the whole file was scanned looking for the { after \newcommand . I'll look at programming to lessen the severity of this "error". I have the document in this directory: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1 The file is "multRegNotes1.tex" I also have the lyx file from which it was exported and the 2 eps figures are in the same directory. Does LyX export as \newcommand\myHangIndent or was that yourself ? You should complain to LyX for not doing \newcommand{\myHangIndent} which is more in keeping with LaTeX style, although both work with a TeX engine. If I leave in the hangindent TeX above, the equations are ugly, and I've put just one example of an ugly one in that directory too: http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png All the \ characters are lost. This is typical when balance of environment delimiters gets badly out-of-whack somehow. If I delete the HangIndent from the Tex preamble and remove its one usage, then latex2html is able to process the file without trouble. I get this same result with latex2html 99.2 or 99.3, but one other user in the lyx user group showed me his version 96 worked fine on Solaris. If you can tell me what I did wrong, I'd appreciate it. The above should help you to get the file processed satisfactorily. Ross Moore -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045FAX: (785) 864-5700
Re: Latex2html author says it is LyX's fault.
On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson [EMAIL PROTECTED] wrote: I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. ... I remember that I once read about \newcommand in a LaTeX textbook that its arguments must not be spread across lines (may be this was a 2.09 feature that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect. The same textbook offered a workaround using comment characters. One could do \newcommand\myHangIndent[1]{% \begin{HangIndent} #1% \end{HangIndent} as the % comments out everything until and including the EOL char. Would this work with LaTeX2HTML? guenter -- [EMAIL PROTECTED]
Re: Latex2html author says it is LyX's fault.
Paul E Johnson wrote: I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with , the rest is from Ross Moore, who is answing bug reports for latex2html today. I have a TeX document that latex2html cannot process, apparently because it has this bit in the preamble: %% Textclass specific LaTeX commands. \newenvironment{HangIndent} {\list{}{% \setlength\leftmargin{1.5cm}% leftmargin \itemindent-\leftmargin}\item{}} {\endlist} \newcommand\myHangIndent[1]{ \begin{HangIndent} #1 \end{HangIndent} } this is in standard TEX-format \newlength{\myHangIndentSize} \setlength{\myHangIndentSize}{1cm} \newenvironment{HangIndent} {\list{}{ \setlength{\leftmargin}{\myHangIndentSize} \itemindent-\leftmargin}\item{}} {\endlist} \newcommand{\myHangIndent}[1]{% \begin{HangIndent}#1 \end{HangIndent}% } tth excepts a definition like \setlength\aLength..., but not latex2html anyway, latex2html doesn't work for me, if i use the command myHangIndent! Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Latex2html author says it is LyX's fault.
I got this email from Ross Moore about the problem I had with my regression notes and latex2html. He sys LyX is not outputting proper TeX for my user-defined paragraph environment "myHangIndent". That specific point is about 2/3 of the way down, but I leave the rest for context. My part begins with >, the rest is from Ross Moore, who is answing bug reports for latex2html today. > I have a TeX document that latex2html cannot process, apparently because > it has this bit in the preamble: > > %% Textclass specific LaTeX commands. > \newenvironment{HangIndent} > {\list{}{% > \setlength\leftmargin{1.5cm}% leftmargin > \itemindent-\leftmargin}\item{}} > {\endlist} > \newcommand\myHangIndent[1]{ > \begin{HangIndent} #1 > \end{HangIndent} > } The problem is that LaTeX2HTML wants you to give the definition as: \newcommand{\myHangIndent}[1]{... etc ... With that, everything processes smoothly; though it doesn't necessarily do the best possible translation. e.g. have a look at: http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/ Besides, LaTeX2HTML wrote a huge error message into the log-window, saying that: %%,,, *** Could not find argument for command \newcommand *** viz: Loading /usr/local/lib/latex2html/styles/inputenc.perl Loading /usr/local/lib/latex2html/styles/babel.perl Loading /usr/local/lib/latex2html/versions/lang.pl Loading /usr/local/lib/latex2html/styles/graphics.perl Reading ... %%,,, *** Could not find argument for command \newcommand *** \myHangIndent[1]<<309>> \begin<<13>>HangIndent<<13>> #1 \end<<14>>HangIndent<<14>> <<309>> \par > If that bit is in the preamble, then the processing of math breaks, and > equations get written to image files with format "hatb" instead of a hat > over a b. This doesn't happen for me. It may be something left over from the other error though, since almost the whole file was scanned looking for the { after \newcommand . I'll look at programming to lessen the severity of this "error". > I have the document in this directory: > http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1 > The file is "multRegNotes1.tex" > I also have the lyx file from which it was exported and the 2 eps > figures are in the same directory. Does LyX export as \newcommand\myHangIndent or was that yourself ? You should complain to LyX for not doing \newcommand{\myHangIndent} which is more in keeping with LaTeX style, although both work with a TeX engine. > If I leave in the hangindent TeX above, the equations are ugly, and I've > put just one example of an ugly one in that directory too: > http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png All the \ characters are lost. This is typical when balance of environment delimiters gets badly out-of-whack somehow. > If I delete the HangIndent from the Tex preamble and remove its one > usage, then latex2html is able to process the file without trouble. > > I get this same result with latex2html 99.2 or 99.3, but one other user > in the lyx user group showed me his version 96 worked fine on Solaris. > > If you can tell me what I did wrong, I'd appreciate it. The above should help you to get the file processed satisfactorily. Ross Moore -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045FAX: (785) 864-5700
Re: Latex2html author says it is LyX's fault.
Paul E Johnson <[EMAIL PROTECTED]> writes: | I got this email from Ross Moore about the problem I had with my | regression notes and latex2html. He sys LyX is not outputting proper | TeX for my user-defined paragraph environment "myHangIndent". That | specific point is about 2/3 of the way down, but I leave the rest for | context. My part begins with >, the rest is from Ross Moore, who is | answing bug reports for latex2html today. What LyX layout is this? Lgb
Re: Latex2html author says it is LyX's fault.
I have a problem too when I convert my document into HTML... The mathematical characters appear as latex commands... R - Original Message - From: "Paul E Johnson" <[EMAIL PROTECTED]> To: "LyX Users" <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 9:38 AM Subject: Latex2html author says it is LyX's fault. > I got this email from Ross Moore about the problem I had with my > regression notes and latex2html. He sys LyX is not outputting proper > TeX for my user-defined paragraph environment "myHangIndent". That > specific point is about 2/3 of the way down, but I leave the rest for > context. My part begins with >, the rest is from Ross Moore, who is > answing bug reports for latex2html today. > > > > I have a TeX document that latex2html cannot process, apparently > because > > it has this bit in the preamble: > > > > %% Textclass specific LaTeX commands. > > \newenvironment{HangIndent} > > {\list{}{% > > \setlength\leftmargin{1.5cm}% leftmargin > > \itemindent-\leftmargin}\item{}} > > {\endlist} > > \newcommand\myHangIndent[1]{ > > \begin{HangIndent} #1 > > \end{HangIndent} > > } > > The problem is that LaTeX2HTML wants you to give the definition as: > > \newcommand{\myHangIndent}[1]{... etc ... > > With that, everything processes smoothly; > though it doesn't necessarily do the best possible translation. > > e.g. have a look at: > >http://www-texdev.mpce.mq.edu.au/PJOHNSON/multRegNotes1/ > > > Besides, LaTeX2HTML wrote a huge error message into the log-window, > saying that: > > %%,,, *** Could not find argument for command \newcommand *** > > viz: > > Loading /usr/local/lib/latex2html/styles/inputenc.perl > Loading /usr/local/lib/latex2html/styles/babel.perl > Loading /usr/local/lib/latex2html/versions/lang.pl > Loading /usr/local/lib/latex2html/styles/graphics.perl > Reading ... > %%,,, *** Could not find argument for command \newcommand *** > \myHangIndent[1]<<309>> > \begin<<13>>HangIndent<<13>> #1 > \end<<14>>HangIndent<<14>> > <<309>> > \par > > > > > If that bit is in the preamble, then the processing of math breaks, > and > > equations get written to image files with format "hatb" instead of > a hat > > over a b. > > This doesn't happen for me. > It may be something left over from the other error though, > since almost the whole file was scanned looking for the { after > \newcommand . > > I'll look at programming to lessen the severity of this "error". > > > > I have the document in this directory: > > http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1 > > The file is "multRegNotes1.tex" > > I also have the lyx file from which it was exported and the 2 eps > > figures are in the same directory. > > Does LyX export as \newcommand\myHangIndent or was that yourself ? > > You should complain to LyX for not doing \newcommand{\myHangIndent} > which is more in keeping with LaTeX style, although both work with > a TeX engine. > > > > If I leave in the hangindent TeX above, the equations are ugly, and > I've > > put just one example of an ugly one in that directory too: > > http://lark.cc.ukans.edu/~pauljohn/ps707/multReg1/img16.png > > All the \ characters are lost. > This is typical when balance of environment delimiters gets badly > out-of-whack somehow. > > > > > If I delete the HangIndent from the Tex preamble and remove its one > > usage, then latex2html is able to process the file without trouble. > > > > I get this same result with latex2html 99.2 or 99.3, but one other > user > > in the lyx user group showed me his version 96 worked fine on > Solaris. > > > > If you can tell me what I did wrong, I'd appreciate it. > > > The above should help you to get the file processed satisfactorily. > > Ross Moore > -- > Paul E. Johnson email: [EMAIL PROTECTED] > Dept. of Political Sciencehttp://lark.cc.ukans.edu/~pauljohn > University of Kansas Office: (785) 864-9086 > Lawrence, Kansas 66045FAX: (785) 864-5700
Re: Latex2html author says it is LyX's fault.
On Wed, 28 Feb 2001 09:38:54 -0600 Paul E Johnson <[EMAIL PROTECTED]> wrote: > I got this email from Ross Moore about the problem I had with my > regression notes and latex2html. He sys LyX is not outputting proper > TeX for my user-defined paragraph environment "myHangIndent". That > specific point is about 2/3 of the way down, but I leave the rest for > context. My part begins with >, the rest is from Ross Moore, who is > answing bug reports for latex2html today. > > > > I have a TeX document that latex2html cannot process, apparently > because > > it has this bit in the preamble: > > > > %% Textclass specific LaTeX commands. > > \newenvironment{HangIndent} > > {\list{}{% > > \setlength\leftmargin{1.5cm}% leftmargin > > \itemindent-\leftmargin}\item{}} > > {\endlist} > > \newcommand\myHangIndent[1]{ > > \begin{HangIndent} #1 > > \end{HangIndent} > > } > > The problem is that LaTeX2HTML wants you to give the definition as: > > \newcommand{\myHangIndent}[1]{... etc ... > > With that, everything processes smoothly; > though it doesn't necessarily do the best possible translation. > ... I remember that I once read about \newcommand in a LaTeX textbook that its arguments must not be spread across lines (may be this was a 2.09 feature that got solved in 2e). I.e. LaTeX2HTML behaves as I would expect. The same textbook offered a workaround using comment characters. One could do \newcommand\myHangIndent[1]{% \begin{HangIndent} #1% \end{HangIndent} as the % comments out everything until and including the EOL char. Would this work with LaTeX2HTML? guenter -- [EMAIL PROTECTED]
Re: Latex2html author says it is LyX's fault.
Paul E Johnson wrote: > > I got this email from Ross Moore about the problem I had with my > regression notes and latex2html. He sys LyX is not outputting proper > TeX for my user-defined paragraph environment "myHangIndent". That > specific point is about 2/3 of the way down, but I leave the rest for > context. My part begins with >, the rest is from Ross Moore, who is > answing bug reports for latex2html today. > > > I have a TeX document that latex2html cannot process, apparently > because > > it has this bit in the preamble: > > > > %% Textclass specific LaTeX commands. > > \newenvironment{HangIndent} > > {\list{}{% > > \setlength\leftmargin{1.5cm}% leftmargin > > \itemindent-\leftmargin}\item{}} > > {\endlist} > > \newcommand\myHangIndent[1]{ > > \begin{HangIndent} #1 > > \end{HangIndent} > > } this is in standard TEX-format \newlength{\myHangIndentSize} \setlength{\myHangIndentSize}{1cm} \newenvironment{HangIndent} {\list{}{ \setlength{\leftmargin}{\myHangIndentSize} \itemindent-\leftmargin}\item{}} {\endlist} \newcommand{\myHangIndent}[1]{% \begin{HangIndent}#1 \end{HangIndent}% } tth excepts a definition like \setlength\aLength..., but not latex2html anyway, latex2html doesn't work for me, if i use the command myHangIndent! Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/