* \typefile problem
@ 2006-03-24 16:51 Tobias Burnus
2006-03-24 19:08 ` Peter Rolf
0 siblings, 1 reply; 14+ messages in thread
From: Tobias Burnus @ 2006-03-24 16:51 UTC (permalink / raw)
Hello,
I have: ConTeXt ver: 2006.03.23 09:57 fmt: 2006.3.23 int: english
mes: english
and get this cryptic error message. I'm positiv that it used to work
with an older version.
Any ideas?
-----------------------------------------------------------------------------------------------------------
(./texexec.tuo) (/system/home/tob/texmf/tex/context/base/pdfr-ec.tex)
! Missing number, treated as zero.
<to be read again>
f
\currenttyping ->f
ile
\checkverbatimfileline ...enumber <\currenttyping
\c!start \else \ifnum
\ver...
\presetnormalverbatimline ...\doflushverbatimline
\global \chardef
\verbatim...
\readline ...line \else \presetnormalverbatimline
\fi \fi \fi \fi
\handlever...
\processfileverbatim ...expandafter \readline \fi
\closein
\verbatiminput \e...
...
l.39 \typefile{/dev/shm/tmp_0.9.xtls}
-------------------------------------------------------------------------------------------------
Tobias
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2006-03-24 16:51 \typefile problem Tobias Burnus
@ 2006-03-24 19:08 ` Peter Rolf
2006-03-24 19:30 ` Peter Rolf
0 siblings, 1 reply; 14+ messages in thread
From: Peter Rolf @ 2006-03-24 19:08 UTC (permalink / raw)
Hi Tobias,
Tobias Burnus wrote:
> Hello,
>
> I have: ConTeXt ver: 2006.03.23 09:57 fmt: 2006.3.23 int: english
> mes: english
>
> and get this cryptic error message. I'm positiv that it used to work
> with an older version.
>
> Any ideas?
>
core-ver.tex:
\def\dodotypefile[#1][#2]#3%
{\bgroup
\let\currenttypingclass\??tp
\edef\currenttyping{#1}%
\typingparameter\c!before
\doiflocfileelse{#3}
\donetrue % sets \readfilename
{\doifinputfileelse{#3}
{\donetrue\let\readfilename\filepath}
\donefalse}%
\ifdone
\startpacked % includes \bgroup
\dosetuptypelinenumbering{#2}%
\doifinset{\\currenttyping\c!option}{\v!commands,\v!slanted,\v!normal}
^^
looks like a typo. Hope that helps,
Peter
> -----------------------------------------------------------------------------------------------------------
> (./texexec.tuo) (/system/home/tob/texmf/tex/context/base/pdfr-ec.tex)
> ! Missing number, treated as zero.
> <to be read again>
> f
> \currenttyping ->f
> ile
> \checkverbatimfileline ...enumber <\currenttyping
> \c!start \else \ifnum
> \ver...
>
> \presetnormalverbatimline ...\doflushverbatimline
> \global \chardef
> \verbatim...
>
> \readline ...line \else \presetnormalverbatimline
> \fi \fi \fi \fi
> \handlever...
>
> \processfileverbatim ...expandafter \readline \fi
> \closein
> \verbatiminput \e...
> ...
> l.39 \typefile{/dev/shm/tmp_0.9.xtls}
> -------------------------------------------------------------------------------------------------
>
> Tobias
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2006-03-24 19:08 ` Peter Rolf
@ 2006-03-24 19:30 ` Peter Rolf
2006-03-24 21:50 ` Hans Hagen
0 siblings, 1 reply; 14+ messages in thread
From: Peter Rolf @ 2006-03-24 19:30 UTC (permalink / raw)
Peter Rolf wrote:
> \doifinset{\\currenttyping\c!option}{\v!commands,\v!slanted,\v!normal}
> ^^
looks like a bad placed marker :)
The problem is the double backslash (should be
..{\currenttyping\c!option}..
Peter
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2006-03-24 19:30 ` Peter Rolf
@ 2006-03-24 21:50 ` Hans Hagen
2006-03-24 22:30 ` nico
0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2006-03-24 21:50 UTC (permalink / raw)
Peter Rolf wrote:
> Peter Rolf wrote:
>
>
>> \doifinset{\\currenttyping\c!option}{\v!commands,\v!slanted,\v!normal}
>> ^^
>>
> looks like a bad placed marker :)
>
> The problem is the double backslash (should be
>
> ..{\currenttyping\c!option}..
>
it's worse, more is wrong
i'm uploading a fixed version; for the source readers:
- page-str.tex
- page-plg.tex
- core-bar.tex
- m-streams.tex
are added; streams are rather experimental but promissing
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2006-03-24 21:50 ` Hans Hagen
@ 2006-03-24 22:30 ` nico
2006-03-25 7:16 ` Thomas A. Schmitz
0 siblings, 1 reply; 14+ messages in thread
From: nico @ 2006-03-24 22:30 UTC (permalink / raw)
On Fri, 24 Mar 2006 22:50:09 +0100, Hans Hagen <pragma@wxs.nl> wrote:
> it's worse, more is wrong
>
> i'm uploading a fixed version; for the source readers:
>
> - page-str.tex
> - page-plg.tex
> - core-bar.tex
> - m-streams.tex
>
> are added; streams are rather experimental but promissing
Strange, I don't find core-bar.tex in 2006.03.24 22:36 cont-tmf.zip.
Regards,
BG
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2006-03-24 22:30 ` nico
@ 2006-03-25 7:16 ` Thomas A. Schmitz
2006-03-25 12:33 ` Hans Hagen
0 siblings, 1 reply; 14+ messages in thread
From: Thomas A. Schmitz @ 2006-03-25 7:16 UTC (permalink / raw)
Yes, same here, the file is missing, so generating the formats runs
into trouble:
loading : MetaPost Graphics / Stand Alone Graphics
) (/usr/local/teTeX/share/texmf.local/tex/context/base/core-pos.tex
loading : Context Positioning Support
)
! I can't find file `core-bar.tex'.
l.299 \input core-bar.tex
Best
Thomas
On Mar 24, 2006, at 11:30 PM, nico wrote:
> On Fri, 24 Mar 2006 22:50:09 +0100, Hans Hagen <pragma@wxs.nl> wrote:
>
>> it's worse, more is wrong
>>
>> i'm uploading a fixed version; for the source readers:
>>
>> - page-str.tex
>> - page-plg.tex
>> - core-bar.tex
>> - m-streams.tex
>>
>> are added; streams are rather experimental but promissing
>
> Strange, I don't find core-bar.tex in 2006.03.24 22:36 cont-tmf.zip.
>
> Regards,
> BG
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2006-03-25 7:16 ` Thomas A. Schmitz
@ 2006-03-25 12:33 ` Hans Hagen
0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2006-03-25 12:33 UTC (permalink / raw)
Thomas A. Schmitz wrote:
> Yes, same here, the file is missing, so generating the formats runs
> into trouble:
>
> loading : MetaPost Graphics / Stand Alone Graphics
> ) (/usr/local/teTeX/share/texmf.local/tex/context/base/core-pos.tex
> loading : Context Positioning Support
> )
> ! I can't find file `core-bar.tex'.
> l.299 \input core-bar.tex
>
oeps, i'll correct this
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2002-05-24 5:13 ` Denis B. Roegel
@ 2002-05-24 7:16 ` Hans Hagen
0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2002-05-24 7:16 UTC (permalink / raw)
Cc: ntg-context
At 07:13 AM 5/24/2002 +0200, you wrote:
>On Thu, May 23, 2002 at 01:44:33PM +0200, Hans Hagen wrote:
> > At 10:45 AM 5/23/2002 +0200, Giuseppe Bilotta wrote:
> >
> > >Thursday, May 23, 2002 Denis B. Roegel wrote:
> > >
> > >
> > >DBR> I want to include a file with \typefile, but the file name
> > >DBR> has underscores. If I write
> > >
> > >DBR> \typefile{}{sources/test\_dup.c}
> > >
> > >DBR> the file sources/test_dup.c is not found. What should I do?
> > >
> > >What if you remove the \ ? {source/test_dup.c}
> >
> >
> > what is the first {} doing there?
> >
> > \typefile{bla_bla.c}
>
>I have added it because the manual, page 121, gives it like
>
>\typefile{name}{file}
>
>I have no idea what `name' is supposed to be!
neither have i -) so i looked it up, and surprise, i found an error in
setupb.tex
it's
\typefile[identifier]{filename}
with identifier being optional; the identifier can point to a class of
typing things so that you can force certain aspects like color, indentation
etc. (related to \definetyping)
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2002-05-23 11:44 ` Hans Hagen
@ 2002-05-24 5:13 ` Denis B. Roegel
2002-05-24 7:16 ` Hans Hagen
0 siblings, 1 reply; 14+ messages in thread
From: Denis B. Roegel @ 2002-05-24 5:13 UTC (permalink / raw)
Cc: Giuseppe Bilotta, Denis B. Roegel, ntg-context
On Thu, May 23, 2002 at 01:44:33PM +0200, Hans Hagen wrote:
> At 10:45 AM 5/23/2002 +0200, Giuseppe Bilotta wrote:
>
> >Thursday, May 23, 2002 Denis B. Roegel wrote:
> >
> >
> >DBR> I want to include a file with \typefile, but the file name
> >DBR> has underscores. If I write
> >
> >DBR> \typefile{}{sources/test\_dup.c}
> >
> >DBR> the file sources/test_dup.c is not found. What should I do?
> >
> >What if you remove the \ ? {source/test_dup.c}
>
>
> what is the first {} doing there?
>
> \typefile{bla_bla.c}
I have added it because the manual, page 121, gives it like
\typefile{name}{file}
I have no idea what `name' is supposed to be!
Denis
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2002-05-23 15:32 ` Denis B. Roegel
@ 2002-05-23 17:51 ` Hans Hagen
0 siblings, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2002-05-23 17:51 UTC (permalink / raw)
Cc: Giuseppe Bilotta, ntg-context
At 05:32 PM 5/23/2002 +0200, Denis B. Roegel wrote:
>On Thu, May 23, 2002 at 10:45:15AM +0200, Giuseppe Bilotta wrote:
> >
> > Thursday, May 23, 2002 Denis B. Roegel wrote:
> >
> >
> > DBR> I want to include a file with \typefile, but the file name
> > DBR> has underscores. If I write
> >
> > DBR> \typefile{}{sources/test\_dup.c}
> >
> > DBR> the file sources/test_dup.c is not found. What should I do?
> >
> > What if you remove the \ ? {source/test_dup.c}
>
>Well, I tried it before sending my message, but as expected,
>I got an error because _ is considered math mode.
>
>Does it work for you?
\typefile{somefile_somemore}
works here if the file is found, but fails when not found (i.e. the error
message barks); i will solve that
Hans
============== patch =============
in core-ver.tex, patch the else branch (search for \tttf[\makemessage):
{\bgroup
\expanded{\convertargument#2}\to\ascii
\tttf[\makemessage{\m!verbatims}{1}\ascii]%
\showmessage{\m!verbatims}{1}\ascii
\egroup}%
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2002-05-23 8:45 ` Giuseppe Bilotta
2002-05-23 11:44 ` Hans Hagen
@ 2002-05-23 15:32 ` Denis B. Roegel
2002-05-23 17:51 ` Hans Hagen
1 sibling, 1 reply; 14+ messages in thread
From: Denis B. Roegel @ 2002-05-23 15:32 UTC (permalink / raw)
Cc: Denis B. Roegel, ntg-context
On Thu, May 23, 2002 at 10:45:15AM +0200, Giuseppe Bilotta wrote:
>
> Thursday, May 23, 2002 Denis B. Roegel wrote:
>
>
> DBR> I want to include a file with \typefile, but the file name
> DBR> has underscores. If I write
>
> DBR> \typefile{}{sources/test\_dup.c}
>
> DBR> the file sources/test_dup.c is not found. What should I do?
>
> What if you remove the \ ? {source/test_dup.c}
Well, I tried it before sending my message, but as expected,
I got an error because _ is considered math mode.
Does it work for you?
Denis
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2002-05-23 8:45 ` Giuseppe Bilotta
@ 2002-05-23 11:44 ` Hans Hagen
2002-05-24 5:13 ` Denis B. Roegel
2002-05-23 15:32 ` Denis B. Roegel
1 sibling, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2002-05-23 11:44 UTC (permalink / raw)
Cc: Denis B. Roegel, ntg-context
At 10:45 AM 5/23/2002 +0200, Giuseppe Bilotta wrote:
>Thursday, May 23, 2002 Denis B. Roegel wrote:
>
>
>DBR> I want to include a file with \typefile, but the file name
>DBR> has underscores. If I write
>
>DBR> \typefile{}{sources/test\_dup.c}
>
>DBR> the file sources/test_dup.c is not found. What should I do?
>
>What if you remove the \ ? {source/test_dup.c}
what is the first {} doing there?
\typefile{bla_bla.c}
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
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
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: \typefile problem
2002-05-23 5:28 Denis B. Roegel
@ 2002-05-23 8:45 ` Giuseppe Bilotta
2002-05-23 11:44 ` Hans Hagen
2002-05-23 15:32 ` Denis B. Roegel
0 siblings, 2 replies; 14+ messages in thread
From: Giuseppe Bilotta @ 2002-05-23 8:45 UTC (permalink / raw)
Cc: ntg-context
Thursday, May 23, 2002 Denis B. Roegel wrote:
DBR> I want to include a file with \typefile, but the file name
DBR> has underscores. If I write
DBR> \typefile{}{sources/test\_dup.c}
DBR> the file sources/test_dup.c is not found. What should I do?
What if you remove the \ ? {source/test_dup.c}
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 14+ messages in thread
* \typefile problem
@ 2002-05-23 5:28 Denis B. Roegel
2002-05-23 8:45 ` Giuseppe Bilotta
0 siblings, 1 reply; 14+ messages in thread
From: Denis B. Roegel @ 2002-05-23 5:28 UTC (permalink / raw)
Cc: roegel
I want to include a file with \typefile, but the file name
has underscores. If I write
\typefile{}{sources/test\_dup.c}
the file sources/test_dup.c is not found. What should I do?
Thanks,
Denis
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-03-25 12:33 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24 16:51 \typefile problem Tobias Burnus
2006-03-24 19:08 ` Peter Rolf
2006-03-24 19:30 ` Peter Rolf
2006-03-24 21:50 ` Hans Hagen
2006-03-24 22:30 ` nico
2006-03-25 7:16 ` Thomas A. Schmitz
2006-03-25 12:33 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2002-05-23 5:28 Denis B. Roegel
2002-05-23 8:45 ` Giuseppe Bilotta
2002-05-23 11:44 ` Hans Hagen
2002-05-24 5:13 ` Denis B. Roegel
2002-05-24 7:16 ` Hans Hagen
2002-05-23 15:32 ` Denis B. Roegel
2002-05-23 17:51 ` 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).