- From: Philippe Audebaud <address@hidden>
- To: James Truax <address@hidden>
- Cc: TeXmacs Users <address@hidden>
- Subject: Re: [TeXmacs] Exporting to HTML
- Date: Tue, 11 Nov 2003 19:07:30 +0100
Hi *,
the answer to the export failure reported below for tables could be related
to incomplete definition of function 'stm-table-formats' in the file
'TeXmacs/progs/convert/tools/tmtable.scm'.
I suggest change from
(define (stm-table-formats x)
(cond ((func? x 'table) '())
((func? x 'tformat)
(append (map (lambda (f)
(with (sym i1 i2 j1 j2 name value) f
(list sym
(string->number i1)
(string->number i2)
(string->number j1)
(string->number j2)
name
(stm-table-decode-format name value))))
(list-filter (cDdr x) (lambda (l) (= (length l) 7))))
(stm-table-formats (cAr x))))))
to:
(define (stm-table-formats x)
(cond ((func? x 'table) '())
((func? x 'tformat)
(append (map (lambda (f)
(with (sym i1 i2 j1 j2 name value) f
(list sym
(string->number i1)
(string->number i2)
(string->number j1)
(string->number j2)
name
(stm-table-decode-format name value))))
(list-filter (cDdr x) (lambda (l) (= (length l) 7))))
(stm-table-formats (cAr x))))
(else '())))
^^^^^^^^^^^^
where only this last line is *new* actually.
Please report success or failure.
On Fri, Nov 07, 2003 at 09:38:36AM -0500, James Truax wrote:
>
Not sure if this is related, or a known bug, but heres the info anyway.
>
>
I have 3 machines running TeXmacs, and get the same error when exporting an
>
html
>
document. The error message is:
>
>
======================
>
$ ERROR: In procedure string-append:
>
ERROR: Wrong type argument (expecting STRINGP): xmlns:x
>
======================
>
>
My configurations are:
>
1) Windows 2000 Service Pack 4
>
Partial Cygwin install (following instructions on texmacs site)
>
Guile 1.6.4
>
TeX (Web2C 7.4.5) 3.14159
>
>
2) Windows XP
>
Full Cygwin install (-ghostscript)
>
>
3) Redhat 7.3
>
Guile 1.6.4
>
>
Every version of texmacs (1.0.1.24 - 1.0.2.6 (including latest cvs version)
>
has had this same error for me. Not sure if its a setup thing, or I'm not
>
setting up my documents correctly.
>
>
I havn't seen this error message in any of the texmacs-user messages.
>
>
James
>
>
From: Javier Arántegui Jiménez [mailto:address@hidden]
>
Sent: Friday, November 07, 2003 6:22 AM
>
To: TeXmacs Users
>
Subject: Re: [TeXmacs] Exporting to HTML
>
>
>
El Viernes, 7 de Noviembre de 2003 11:54, Philippe Audebaud escribió:
>
>
> So, please send a mail with the display from a terminal of what TeXmacs
>
> is complainging for. With luck, I've the solution already prepared
>
for
>
> you (without recompiling TeXmacs, of course).
>
>
In my case what I get when I try to export a document to HTML is:
>
>
/usr/share/TeXmacs/progs/convert/tools/tmtable.scm:220:12: In procedure
>
reverse in expression (reverse (stm-table-formats x)):
>
/usr/share/TeXmacs/progs/convert/tools/tmtable.scm:220:12: Wrong type
>
argument
>
in position 1: ((cwith 1 -1 1 -1 "cell halign" "l") (cwith 1 -1 1 1 "cell
>
lsep" (0 spc)) (cwith 1 -1 -1 -1 "cell rsep" (0 spc)) (cwith 1 -1 1 -1 "cell
>
bsep" (0 sep)) (cwith 1 -1 1 -1 "cell tsep" (0 sep)) (cwith 1 -1 1 1 "cell
>
hpart" "1") (cwith 1 -1 -1 -1 "cell hpart" "1") (cwith 1 -1 1 1 "cell
>
halign"
>
"r") (cwith 1 -1 1 1 "cell hyphen" "b") (cwith 1 -1 2 -2 "cell halign" "c")
>
(cwith 1 -1 -1 -1 "cell halign" "l") (cwith 1 -1 -1 -1 "cell hyphen" "t") .
>
#<unspecified>)
>
>
>
Joris said some days ago that this was a known bug.
>
>
>
> Also, since this problem seems not to arise equally for everybody, I'd
>
> be curious to know also which version of guile you are using. For that
>
> purpose, open a scheme session and run '(version)'. The answer should
>
> 1.4.x, 1.6.x or something close to that. If this function does not
>
> exists, give the value returned by '(guile-version)'.
>
>
javier@enterprise:~> guile --version
>
Guile 1.6.0
>
>
>
Javier
>
--
Philippe Audebaud, INRIA, 2004 Route des Lucioles,
BP 93, 06902 Sophia-Antipolis Cedex, FRANCE
Tel.: +33 (0)4 9238 5051 Fax: +33 (0)4 9238 7765
http://www-sop.inria.fr/lemme/Philippe.Audebaud/
Archive powered by MHonArc 2.6.19.