ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* return of scribes
@ 2000-08-24 20:41 Frans Goddijn
  2000-08-24 21:00 ` return of scribes, correction Frans Goddijn
  0 siblings, 1 reply; 3+ messages in thread
From: Frans Goddijn @ 2000-08-24 20:41 UTC (permalink / raw)


I tried to compose a test file demonstrating the problem and then I found
out that the ^^M was a secondary problem there. In fact, the problem arose
because there was a line break in the source file:

///////////////////////////
\steluitvoerin[pdftex]

\def\BT #1{{\em #1}\boektitel{#1}}  % definition of how I want a book
title, in italics
                                    % plus adding the title to the title
index file

\definieerregister[boektitel][boektitels] % making the index file

\starttekst
Allez O.M., allez O.M., allez!\voetnoot{L.D.~Reynolds L.D. \&
N.G.~Wilson,
\BT{Scribes and Scholars. A Guide to the Transmission of Greek and Latin
Literature.} Oxford 1974, blz.~63.}

If I break the line at Wilson, an error about "gobble" comes up. If I put
that footnote in one long line on screen, all is well.

\pagina[ja]
\titel[boekregister]{Register van titels}\plaatsregister[boektitel]

\stoptekst
////////////////////////////

Groet!

Frans

frans@iaf.nl  www.goddijn.com
Pb 30196 6803 AD Arnhem NL
tel (+31)[0]621-815-881 fax (+31)[0]26-3211.759


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: return of scribes, correction
  2000-08-24 20:41 return of scribes Frans Goddijn
@ 2000-08-24 21:00 ` Frans Goddijn
  2000-08-25  9:45   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Frans Goddijn @ 2000-08-24 21:00 UTC (permalink / raw)


sorry, the later it gets, the stupider I get ;=}}

the ugly line break that causes the error is not at "Wilson" but in the \BT
environmemt, e.g. at the word "Scholars." if I break the line there, TeX
says:

"Runaway argument? {Scribes and Scholars.\registerpage
{boektitel}{,}{1}{2::0:0:0:0:0:0:\ETC.
! File ended while scanning use of \gobbleoneargument."

> \starttekst
> Allez O.M., allez O.M., allez!\voetnoot{L.D.~Reynolds L.D. \&
> N.G.~Wilson,
> \BT{Scribes and Scholars. A Guide to the Transmission of Greek and Latin
> Literature.} Oxford 1974, blz.~63.}

Sorry! Hope all is clear now. I think that in my definition of \BT there
should be a "long" somewhere telling Tex to relax about line breaks inside
the argument to be gobbled up.

Groet,

Frans


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: return of scribes, correction
  2000-08-24 21:00 ` return of scribes, correction Frans Goddijn
@ 2000-08-25  9:45   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2000-08-25  9:45 UTC (permalink / raw)
  Cc: ntg-context

At 11:00 PM 8/24/00 +0200, Frans Goddijn wrote:
>sorry, the later it gets, the stupider I get ;=}}
>
>the ugly line break that causes the error is not at "Wilson" but in the \BT
>environmemt, e.g. at the word "Scholars." if I break the line there, TeX
>says:
>
>"Runaway argument? {Scribes and Scholars.\registerpage
>{boektitel}{,}{1}{2::0:0:0:0:0:0:\ETC.
>! File ended while scanning use of \gobbleoneargument."
>
>> \starttekst
>> Allez O.M., allez O.M., allez!\voetnoot{L.D.~Reynolds L.D. \&
>> N.G.~Wilson,
>> \BT{Scribes and Scholars. A Guide to the Transmission of Greek and Latin
>> Literature.} Oxford 1974, blz.~63.}
>
>Sorry! Hope all is clear now. I think that in my definition of \BT there
>should be a "long" somewhere telling Tex to relax about line breaks inside
>the argument to be gobbled up.

In \startlines, the endofline char is made active and gets a special
meaning. So, 
as long as you say: 

\startlines
some text\index{one long line}
some more text 
\stoplines

things will work ok. I can look into a fix later, but you should keep in
mind that in \startlines end of lines will always be special.

Hans

-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-08-25  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-24 20:41 return of scribes Frans Goddijn
2000-08-24 21:00 ` return of scribes, correction Frans Goddijn
2000-08-25  9:45   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).