|
From: Todd H. <he...@ae...> - 2010-02-10 04:41:51
|
Dear fellow Hyperlatex users:
I am experiencing several strange problems using Hyperlatex (2.9a) with
Emacs 23 (actually, 23.1.1), running on Fedora 11, and am curious whether
anyone has experienced similar problems, and knows how to fix them. For the
record,
* these problems all continue to occur if I drop back to Hyperlatex 2.7, but
* none of them occurs under Emacs 22.3.1 (running on Fedora 10).
The problems can be reproduced using the test files "dgb.tex" and "dbg.sch",
appended below (placing both in the same directory).
If I run hyperlatex dbg.tex, here is what happens:
(1) Hyperlatex chokes on the "\multicolumn" command (line 16 of dbg.tex);
see TERMINAL OUTPUT #1, appended below.
If I then comment out this line, it chokes on "\input\schedfilename"
(line 28); see TERMINAL OUTPUT #2, appended below. It's very odd that
it can't find file "dbg.sch", even though it's in the same directory.
If I then change "\schedfilename" to the explicit file name "dbg.sch",
it finds the file, but now chokes on the "longtable" environment
(within "dbg.sch"); see TERMINAL OUTPUT #3, appended below.
(2) Note that in all three TERMINAL OUTPUT's there are non-printable
characters in the "Hyperlatex ERROR:" line -- "magic characters"?
(3) If I now change the "longtable" environment (in "dbg.sch") to a
"tabular" environment, hyperlatex appears to run to completion, but
now the html output (appended below) contains non-printable
characters.
Perhaps I should also add that when I byte-compiled hyperlatex.el (during
the installation), I did get several error messages (appended below).
If anyone can shed any light on these "goings-on", I would be most grateful.
--
Todd Hesla
Department of Aerospace Engineering and Mechanics
University of Minnesota
Minneapolis, Minnesota
#### APPENDED MATERIAL FOLLOWS ####
FILE "dbg.tex":
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% -*- latex -*-
\documentclass[12pt]{article}
\usepackage{hyperlatex}
\usepackage{longtable}
\newcommand\schedfilename{dbg.sch}
\begin{document}
% first table
%
\xmlattributes*{table}{border="1"}
\begin{tabular}{|l|l|}
\hline
\multicolumn{2}{|c|}{\xlink{AkerH}{AkerH} 227}\\
\hline\hline
Mon & 02:30 \textsc{pm}--03:20 \textsc{pm}\\
\hline
Tue & 10:10 \textsc{am}--11:00 \textsc{am}\\
\hline
Thu & 01:25 \textsc{pm}--02:15 \textsc{pm}\\
\hline
\end{tabular}
% second table
%
\input\schedfilename
%\input{dbg.sch}
\end{document}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FILE "dbg.sch":
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% -*- latex -*-
\xmlattributes*{table}{border="1"}
\begin{longtable}[l]{lllll}
%\begin{tabular}{lllll}
Jan 20 & Wed & Forces in a plane & 2.1--2.8 & \\
Jan 22 & Fri & Examples & & \textsc{HW 1}\\
Jan 25 & Mon & Equilibrium of a particle in a plane & 2.9--2.11 & \\
Jan 26 & Tue & \textsc{Discussion} & & \\
Jan 27 & Wed & Forces in space & 2.12--2.14 & \\
Jan 29 & Fri & \textsc{Quiz 1}; examples & & \textsc{HW 2}\\
\end{longtable}
%\end{tabular}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TERMINAL OUTPUT #1:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hyperlatex formatting /home/todd/Courses/dbg/dbg.tex...
(on Emacs 23.1.1)
Running Hyperlatex 2.9-in-waiting-rk (oct06) (1.20 -- 2006/11/20)
Parsing ...
Package "siteinit" inserted
Package "init" not found...
Package "article" inserted
Reading site init file for Hyperlatex version 2.9-in-waiting (oct06):
Package "english" inserted
Package "bluepanels" inserted
<Basic commands>,
<Environments>,
<Title>,
<Footnotes, index, bibliography>,
<Fonts>,
<Accents>,
<Math>
Package "longtable" inserted
Title of work is "Untitled"
Using filename "./dbg.html"
Hyperlatex ERROR: (search-failed "colspan=¢1¢ align=¢[A-Za-z]+¢")
Hint: Try running Latex, it may give a better error message.
Error discovered here:
>>>\\
\hline\hline
Mon & 02:30 \textsc{pm}--03:20 \textsc{pm}\\
\hline
Tue & 10:10 \textsc{am}--11:00 \textsc{am}\\
\hline
Thu & 01:25 \textsc{pm}--02:15 \textsc{pm}\\
\hline
\end{tabular}
% second table
%
\input\schedfilename
%\input{dbg.sch}
\end{document}
...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TERMINAL OUTPUT #2:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hyperlatex formatting /home/todd/Courses/dbg/dbg.tex...
(on Emacs 23.1.1)
Running Hyperlatex 2.9-in-waiting-rk (oct06) (1.20 -- 2006/11/20)
Parsing ...
Package "siteinit" inserted
Package "init" not found...
Package "article" inserted
Reading site init file for Hyperlatex version 2.9-in-waiting (oct06):
Package "english" inserted
Package "bluepanels" inserted
<Basic commands>,
<Environments>,
<Title>,
<Footnotes, index, bibliography>,
<Fonts>,
<Accents>,
<Math>
Package "longtable" inserted
Title of work is "Untitled"
Using filename "./dbg.html"
Hyperlatex ERROR: I can't find the file dbg.sch��
Hint: Try running Latex, it may give a better error message.
Error discovered here:
>>>%\input{dbg.sch}
\end{document}
...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TERMINAL OUTPUT #3:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hyperlatex formatting /home/todd/Courses/dbg/dbg.tex...
(on Emacs 23.1.1)
Running Hyperlatex 2.9-in-waiting-rk (oct06) (1.20 -- 2006/11/20)
Parsing ...
Package "siteinit" inserted
Package "init" not found...
Package "article" inserted
Reading site init file for Hyperlatex version 2.9-in-waiting (oct06):
Package "english" inserted
Package "bluepanels" inserted
<Basic commands>,
<Environments>,
<Title>,
<Footnotes, index, bibliography>,
<Fonts>,
<Accents>,
<Math>
Package "longtable" inserted
Title of work is "Untitled"
Using filename "./dbg.html"
Inserting file /home/todd/Courses/dbg/dbg.sch...
Inserting file /home/todd/Courses/dbg/dbg.sch...done
Hyperlatex ERROR: unknown column type: ü
Hint: Try running Latex, it may give a better error message.
Error discovered here:
>>>[l]{lllll}
%\begin{tabular}{lllll}
Jan 20 & Wed & Forces in a plane & 2.1--2.8 & \\
Jan 22 & Fri & Examples & & \textsc{HW 1}\\
Jan 25 & Mon & Equilibrium of a particle in a plane & 2.9--2.11 & \\
Jan 26 & Tue & \textsc{Discussion} & & \\
Jan 27 & Wed & Forces in space & 2.12--2.14 & \\
Jan 29 & Fri & \textsc{Quiz 1}; examples & & \textsc{HW 2}\\
\end{longtable}
%\end{tabular}
\end{document}
...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
HTML OUTPUT:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
�?xml version="1.0" encoding="UTF-8"?�
�!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd"�
�html xmlns="http://www.w3.org/1999/xhtml"�
�!-- XML file produced from file: dbg.tex
using Hyperlatex v 2.9-in-waiting-rk (oct06) (c) Otfried Cheong
on Emacs 23.1.1, Tue Feb 9 22:02:03 2010 --�
�head�
�title�Untitled�/title�
�style type="text/css"�
.maketitle { align : center }
div.abstract { margin-left: 20%; margin-right: 10%; }
h3.abstract { align : center }
div.verse, div.quote, div.quotation {
margin-left : 10%;
margin-right : 10%;
}
dt {font-weight: bold}
�/style�
���
�/head�
�body�
�table width="100%" cellpadding="0" cellspacing="2"��tr�
�td bgcolor="#99ccff"��a href=�����img border=�0� alt=���
src=�icons/�next.png�/���/a��/td��td bgcolor="#99ccff"��img alt=��
src=�icons/�blank.png�/��/td��td bgcolor="#99ccff"��a href=�����img
border=�0� alt=��� src=�icons/�previous.png�/���/a��/td��td align="center"
bgcolor="#99ccff" width="100%"��b�Top�/b���/td���/tr��/table�
��table border=�1���tbody��tr��td colspan=�1� align=�left��
�p�Mon ��/td��td colspan=�1� align=�left�� 02:30 PM-03:20 PM��/td��/tr�
�tr��td colspan=�1� align=�left��
Tue ��/td��td colspan=�1� align=�left�� 10:10 AM-11:00 AM��/td��/tr�
�tr��td colspan=�1� align=�left��
Thu ��/td��td colspan=�1� align=�left�� 01:25 PM-02:15 PM��/td��/tr�
�tr��td colspan=�1� align=�left��
��/td��/tr��/tbody��/table�
�/p�
��table border=�1���tbody��tr��td colspan=�1� align=�left��
�p�Jan 20 ��/td��td colspan=�1� align=�left�� Wed ��/td��td colspan=�1�
align=�left�� Forces in a plane ��/td��td colspan=�1� align=�left�� 2.1-2.8
��/td��td colspan=�1� align=�left�� ��/td��/tr�
�tr��td colspan=�1� align=�left��
Jan 22 ��/td��td colspan=�1� align=�left�� Fri ��/td��td colspan=�1�
align=�left�� Examples ��/td��td colspan=�1� align=�left�� ��/td��td
colspan=�1� align=�left�� HW 1��/td��/tr�
�tr��td colspan=�1� align=�left��
Jan 25 ��/td��td colspan=�1� align=�left�� Mon ��/td��td colspan=�1�
align=�left�� Equilibrium of a particle in a plane ��/td��td colspan=�1�
align=�left�� 2.9-2.11 ��/td��td colspan=�1� align=�left�� ��/td��/tr�
�tr��td colspan=�1� align=�left��
Jan 26 ��/td��td colspan=�1� align=�left�� Tue ��/td��td colspan=�1�
align=�left�� DISCUSSION ��/td��td colspan=�1� align=�left�� ��/td��td
colspan=�1� align=�left�� ��/td��/tr�
�tr��td colspan=�1� align=�left��
Jan 27 ��/td��td colspan=�1� align=�left�� Wed ��/td��td colspan=�1�
align=�left�� Forces in space ��/td��td colspan=�1� align=�left�� 2.12-2.14
��/td��td colspan=�1� align=�left�� ��/td��/tr�
�tr��td colspan=�1� align=�left��
Jan 29 ��/td��td colspan=�1� align=�left�� Fri ��/td��td colspan=�1�
align=�left�� QUIZ 1; examples ��/td��td colspan=�1� align=�left��
��/td��td colspan=�1� align=�left�� HW 2��/td��/tr�
�tr��td colspan=�1� align=�left��
��/td��/tr��/tbody��/table�
�/p�
����hr /���address����/address��br /�
�table width="100%" cellpadding="0" cellspacing="2"��tr�
�td bgcolor="#99ccff"���p�a href=�����img border=�0� alt=���
src=�icons/�next.png�/���/a��/td��td bgcolor="#99ccff"��img alt=��
src=�icons/�blank.png�/��/td��td bgcolor="#99ccff"��a href=�����img
border=�0� alt=��� src=�icons/�previous.png�/���/a��/td��td align="center"
bgcolor="#99ccff"
width="100%"��b�Top�/b���/td���/tr��/table����/body��/html�
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ERROR MESSAGES DURING BYTE-COMPILE:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
In hyperlatex-format-newcommand:
hyperlatex.el:1241:42:Warning: `string-to-int' is an obsolete function (as
of
Emacs 22.1); use `string-to-number' instead.
In hyperlatex-format-providecommand:
hyperlatex.el:1254:46:Warning: `string-to-int' is an obsolete function (as
of
Emacs 22.1); use `string-to-number' instead.
In hyperlatex-format-newenvironment:
hyperlatex.el:1277:48:Warning: `string-to-int' is an obsolete function (as
of
Emacs 22.1); use `string-to-number' instead.
In hyperlatex-format-makemenu:
hyperlatex.el:2121:17:Warning: `string-to-int' is an obsolete function (as
of
Emacs 22.1); use `string-to-number' instead.
In hyperlatex-format-usepackage:
hyperlatex.el:3216:17:Warning: `mapcar' called for effect; use `mapc' or
`dolist' instead
In hyperlatex-search-file:
hyperlatex.el:3318:8:Warning: `mapcar' called for effect; use `mapc' or
`dolist' instead
In hyperlatex-format-setcounter:
hyperlatex.el:3391:18:Warning: `string-to-int' is an obsolete function (as
of
Emacs 22.1); use `string-to-number' instead.
In hyperlatex-format-addtocounter:
hyperlatex.el:3408:18:Warning: `string-to-int' is an obsolete function (as
of
Emacs 22.1); use `string-to-number' instead.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|