|
Subject: formatting-instruction and jadetex From: Pawel Turnau <uzturnau@xxxxxxxxxxxxx> Date: Wed, 05 Aug 1998 00:24:58 +0300 |
I have an SGML document, which I convert to tex with Jade 1.0 and jadetex (both
from a standard RedHat 5.0 distribution). I need page references in my
document, and the only way I could think of doing that is via
formatting-instruction. Unfortunately, jadetex produces error messages that I
cannot understand. What am I doing wrong?
Here is my document, called test.sgml
====================================================
<!DOCTYPE test [
<!ELEMENT test - - (p+) +(label | pageref)>
<!ELEMENT p - - (#PCDATA)>
<!ELEMENT (pageref | label) - - EMPTY>
<!ATTLIST (pageref | label) name CDATA #REQUIRED>
]>
<test>
<p>Foo.<label name="foo"></p>
<p>Bar (see p. <pageref name="foo">).</p>
</test>
====================================================
And here is the stylesheet, called test.dsl
====================================================
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
(declare-flow-object-class
formatting-instruction
"UNREGISTERED::James Clark//Flow Object Class::formatting-instruction")
(element test (make simple-page-sequence))
(element p (make paragraph))
(element label
(make formatting-instruction
data: (string-append
"\\label{" (attribute-string "name") "}")))
(element pageref
(make formatting-instruction
data: (string-append
"\\pageref{" (attribute-string "name") "}")))
====================================================
Jade processes this without any error messages, and produces test.tex. The
first time I run jadetex on test.tex (when test.aux does not exist), I get a
warning:
LaTeX Warning: Reference `foo' on page 1 undefined on input line 63.
which is correct. But when I run jadetex the second time, I get a series of error messages:
===================================================
scratch% jadetex test.tex
This is TeX, Version 3.14159 (C version 6.1)
(test.tex
LaTeX2e <1996/12/01> patch level 1
Babel <v3.6h> and hyphenation patterns for american, polish, loaded.
(/usr/lib/texmf/texmf/tex/latex/psnfss/t1bch.fd)
JADE TeX starts
Elements will be labelled
(test.aux) (/usr/lib/texmf/texmf/tex/latex/base/ts1cmr.fd)
(/usr/lib/texmf/texmf/tex/latex/ot2cyr/ot2wncyr.fd)
! Undefined control sequence.
<recently read> \@fifthoffive
l.63 {4}}\pageref{foo}
\endNode{}).\endPar{}\endNode{}\endSpS{}\endNode{}\end...
! Undefined control sequence.
<argument> file:\@fifthoffive
{}{1}{\relax }{}\this@ext \ifx \\page.\expanda...
l.63 {4}}\pageref{foo}
\endNode{}).\endPar{}\endNode{}\endSpS{}\endNode{}\end...
! Undefined control sequence.
<recently read> \@secondoffive
l.63 {4}}\pageref{foo}
\endNode{}).\endPar{}\endNode{}\endSpS{}\endNode{}\end...
! Undefined control sequence.
<recently read> \@secondoffive
l.63 {4}}\pageref{foo}
\endNode{}).\endPar{}\endNode{}\endSpS{}\endNode{}\end...
[1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 552 bytes).
Transcript written on test.log.
==========================================================
The dvi file that is produced happens to be all right -- even the page
reference is correct. Still, I'd rather know what I am doing wrong.
I searched the DSSSL archives (by the way: when I use Netscape to submit a
query, I always get a blank page in response; lynx works fine) for clues how to
output raw TeX via jade's TeX backend, but without much success.
Regards,
Pawel Turnau
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Use of preserve-sdata?, shennessy | Thread | Re: formatting-instruction and jade, Sebastian Rahtz |
| Use of preserve-sdata?, shennessy | Date | Archive changeover, DSSSList Owner |
| Month |