ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in \externalfigure
@ 2013-08-01 12:27 Jannik Voges
  2013-08-01 13:08 ` Marco Patzer
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: Jannik Voges @ 2013-08-01 12:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello everyone,


I found a bug in the current ConTeXt Beta with externalfigure. The following minimal example will show you what happens


\starttext

\externalfigure[cow]

\externalfigure[cow][width=10cm]

\page

\externalfigure[test]

\page

This text will appear.

This text will not appear.

\externalfigure[test][width=10cm]

This text will not appear.

\stoptext


The first two \externalfigure-commands (with cow) will give a grey placeholder with 'state:unknown' in it. The third \externalfigure-command (\externalfigure[test]) will work, and the last one won't. In this example, you will get an empty third page and the text after the \externalfigure-command doesn't appear in the pdf. 'test' can be a pdf-file or jpeg-file (I only tested whose types of files).


Thanks

Jannik
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 12:27 bug in \externalfigure Jannik Voges
@ 2013-08-01 13:08 ` Marco Patzer
  2013-08-01 13:44   ` Jannik Voges
  2013-08-01 13:56   ` Aditya Mahajan
  2013-08-01 13:51 ` Aditya Mahajan
  2013-08-01 13:52 ` Peter Münster
  2 siblings, 2 replies; 24+ messages in thread
From: Marco Patzer @ 2013-08-01 13:08 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 790 bytes --]

On 2013–08–01 Jannik Voges wrote:

> I found a bug in the current ConTeXt Beta with externalfigure. The following minimal example will show you what happens
> 
> 
> \starttext
> 
> \externalfigure[cow]
> 
> \externalfigure[cow][width=10cm]
> 
> \page
> 
> \externalfigure[test]

This reads in the file

  texmf-modules/doc/fonts/urw/garamond/test.tex

which is not desired. But I assume you have a “test” graphic in your
current directory which is used instead, so this is unrelated to
your problem.

> 
> \page
> 
> This text will appear.
> 
> This text will not appear.
> 
> \externalfigure[test][width=10cm]
> 
> This text will not appear.

When I change \externalfigure[test] to \externalfigure[cow] it works
here. The text appears.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-01 13:08 ` Marco Patzer
@ 2013-08-01 13:44   ` Jannik Voges
  2013-08-01 13:56   ` Aditya Mahajan
  1 sibling, 0 replies; 24+ messages in thread
From: Jannik Voges @ 2013-08-01 13:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1643 bytes --]

Hi Macro,


your are right, I put a file called test.pdf (test.jpg) in my working directory.

I put an attachment with the minimal example and the pdf to this Mail. perhaps that might be better. 


Thanks

Jannik


Am 01.08.2013 um 15:08 schrieb Marco Patzer <homerow@lavabit.com>:

> On 2013–08–01 Jannik Voges wrote:
> 
>> I found a bug in the current ConTeXt Beta with externalfigure. The following minimal example will show you what happens
>> 
>> 
>> \starttext
>> 
>> \externalfigure[cow]
>> 
>> \externalfigure[cow][width=10cm]
>> 
>> \page
>> 
>> \externalfigure[test]
> 
> This reads in the file
> 
>  texmf-modules/doc/fonts/urw/garamond/test.tex
> 
> which is not desired. But I assume you have a “test” graphic in your
> current directory which is used instead, so this is unrelated to
> your problem.
> 
>> 
>> \page
>> 
>> This text will appear.
>> 
>> This text will not appear.
>> 
>> \externalfigure[test][width=10cm]
>> 
>> This text will not appear.
> 
> When I change \externalfigure[test] to \externalfigure[cow] it works
> here. The text appears.
> 
> Marco
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #2: minimal example.zip --]
[-- Type: application/zip, Size: 79485 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-01 12:27 bug in \externalfigure Jannik Voges
  2013-08-01 13:08 ` Marco Patzer
@ 2013-08-01 13:51 ` Aditya Mahajan
  2013-08-01 13:52 ` Peter Münster
  2 siblings, 0 replies; 24+ messages in thread
From: Aditya Mahajan @ 2013-08-01 13:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 1 Aug 2013, Jannik Voges wrote:

> Hello everyone,
>
>
> I found a bug in the current ConTeXt Beta with externalfigure. The following minimal example will show you what happens
>
>
> \starttext
>
> \externalfigure[cow]
>
> \externalfigure[cow][width=10cm]
>
> \page
>
> \externalfigure[test]
>
> \page
>
> This text will appear.
>
> This text will not appear.
>
> \externalfigure[test][width=10cm]
>
> This text will not appear.
>
> \stoptext
>
>
> The first two \externalfigure-commands (with cow) will give a grey 
> placeholder with 'state:unknown' in it.

See 
http://wiki.contextgarden.net/Using_Graphics#Specifying_image_directories

You need to add

\setupexternalfigures
     [location={local,global,default}]

> The third \externalfigure-command (\externalfigure[test]) will work, and 
> the last one won't. In this example, you will get an empty third page 
> and the text after the \externalfigure-command doesn't appear in the 
> pdf. 'test' can be a pdf-file or jpeg-file (I only tested whose types of 
> files).

I don't have the latest beta yet, so cannot comment on this.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 12:27 bug in \externalfigure Jannik Voges
  2013-08-01 13:08 ` Marco Patzer
  2013-08-01 13:51 ` Aditya Mahajan
@ 2013-08-01 13:52 ` Peter Münster
  2013-08-01 15:19   ` Jannik Voges
  2 siblings, 1 reply; 24+ messages in thread
From: Peter Münster @ 2013-08-01 13:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Aug 01 2013, Jannik Voges wrote:

> The first two \externalfigure-commands (with cow) will give a grey placeholder
> with 'state:unknown' in it.

Yes, you need "\setupexternalfigures[location=default]" for finding the
sample files of the distribution.


> The third \externalfigure-command (\externalfigure[test]) will work,
> and the last one won't. In this example, you will get an empty third
> page and the text after the \externalfigure-command doesn't appear in
> the pdf. 'test' can be a pdf-file or jpeg-file (I only tested whose
> types of files).

If you want, that other people can reproduce your problem, you have at
least 2 possibilities:
1.) You use "\setupexternalfigures[location=default]" and the sample
    files of the distribution.
2.) Or if 1.) doesn't work, you provide somewhere the needed files for
    reproducing the problem.

See also
http://wiki.contextgarden.net/ConTeXt_Mailing_Lists#Before_asking_on_the_list

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 13:08 ` Marco Patzer
  2013-08-01 13:44   ` Jannik Voges
@ 2013-08-01 13:56   ` Aditya Mahajan
  2013-08-01 14:01     ` luigi scarso
  2013-08-01 14:14     ` Marco Patzer
  1 sibling, 2 replies; 24+ messages in thread
From: Aditya Mahajan @ 2013-08-01 13:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1007 bytes --]

On Thu, 1 Aug 2013, Marco Patzer wrote:

> On 2013–08–01 Jannik Voges wrote:
>
>> I found a bug in the current ConTeXt Beta with externalfigure. The following minimal example will show you what happens
>>
>>
>> \starttext
>>
>> \externalfigure[cow]
>>
>> \externalfigure[cow][width=10cm]
>>
>> \page
>>
>> \externalfigure[test]
>
> This reads in the file
>
>  texmf-modules/doc/fonts/urw/garamond/test.tex
>
> which is not desired. But I assume you have a “test” graphic in your
> current directory which is used instead, so this is unrelated to
> your problem.

I think that the advice of omitting the file extension given in most LaTeX 
introductions is more trouble than it is worth in ConTeXt. Omitting file 
extensions is important if you are generating both dvi and pdf outputs. In 
ConTeXt, one never uses the DVI output, so I think that one should ALWAYS 
specify the file extension. That removes a lot of headaches with the wrong 
file being sourced.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-01 13:56   ` Aditya Mahajan
@ 2013-08-01 14:01     ` luigi scarso
  2013-08-01 14:43       ` Alan BRASLAU
  2013-08-01 14:14     ` Marco Patzer
  1 sibling, 1 reply; 24+ messages in thread
From: luigi scarso @ 2013-08-01 14:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 500 bytes --]

On Thu, Aug 1, 2013 at 3:56 PM, Aditya Mahajan <adityam@umich.edu> wrote:

>
> I think that the advice of omitting the file extension given in most LaTeX
> introductions is more trouble than it is worth in ConTeXt. Omitting file
> extensions is important if you are generating both dvi and pdf outputs. In
> ConTeXt, one never uses the DVI output, so I think that one should ALWAYS
> specify the file extension. That removes a lot of headaches with the wrong
> file being sourced.
>
> +1.

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 908 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-01 13:56   ` Aditya Mahajan
  2013-08-01 14:01     ` luigi scarso
@ 2013-08-01 14:14     ` Marco Patzer
  1 sibling, 0 replies; 24+ messages in thread
From: Marco Patzer @ 2013-08-01 14:14 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 797 bytes --]

On 2013–08–01 Aditya Mahajan wrote:

> I think that the advice of omitting the file extension given in most
> LaTeX introductions is more trouble than it is worth in ConTeXt.
> Omitting file extensions is important if you are generating both dvi
> and pdf outputs. In ConTeXt, one never uses the DVI output, so I
> think that one should ALWAYS specify the file extension. That
> removes a lot of headaches with the wrong file being sourced.

I agree with you on that one. However, I think it's unexpected that
files from the texmf-modules/doc directory are included by default.
Hasn't it been made more strict some time ago? Why does this still
work (or better: fail):

  %% \setupexternalfigures[location=default]
  \starttext
    \externalfigure[test]
  \stoptext

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-01 14:01     ` luigi scarso
@ 2013-08-01 14:43       ` Alan BRASLAU
  2013-08-01 14:54         ` luigi scarso
  2013-08-01 14:55         ` Hans Hagen
  0 siblings, 2 replies; 24+ messages in thread
From: Alan BRASLAU @ 2013-08-01 14:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 1 Aug 2013 16:01:27 +0200
luigi scarso <luigi.scarso@gmail.com> wrote:

> On Thu, Aug 1, 2013 at 3:56 PM, Aditya Mahajan <adityam@umich.edu>
> wrote:
> 
> >
> > I think that the advice of omitting the file extension given in
> > most LaTeX introductions is more trouble than it is worth in
> > ConTeXt. Omitting file extensions is important if you are
> > generating both dvi and pdf outputs. In ConTeXt, one never uses the
> > DVI output, so I think that one should ALWAYS specify the file
> > extension. That removes a lot of headaches with the wrong file
> > being sourced.
> >
> > +1. 

-1

One might have png, jpeg, pdf, eps and other figure files. The choice
of which will be used depends eventually on where the file is to be
found... (and setupexternalfigures). This is a *feature*. It has
nothing to do with LaTeX.

Of course, one can always specify an extension explicitly if one so
wishes...

Furthermore, the file extension is simply a convenient label which
makes no difference whatsoever on any serious system. (but not so on
more primitive operating systems. ;)

Alan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 14:43       ` Alan BRASLAU
@ 2013-08-01 14:54         ` luigi scarso
  2013-08-01 14:55         ` Hans Hagen
  1 sibling, 0 replies; 24+ messages in thread
From: luigi scarso @ 2013-08-01 14:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1016 bytes --]

On Thu, Aug 1, 2013 at 4:43 PM, Alan BRASLAU <alan.braslau@cea.fr> wrote:

> On Thu, 1 Aug 2013 16:01:27 +0200
> luigi scarso <luigi.scarso@gmail.com> wrote:
>
> > On Thu, Aug 1, 2013 at 3:56 PM, Aditya Mahajan <adityam@umich.edu>
> > wrote:
> >
> > >
> > > I think that the advice of omitting the file extension given in
> > > most LaTeX introductions is more trouble than it is worth in
> > > ConTeXt. Omitting file extensions is important if you are
> > > generating both dvi and pdf outputs. In ConTeXt, one never uses the
> > > DVI output, so I think that one should ALWAYS specify the file
> > > extension. That removes a lot of headaches with the wrong file
> > > being sourced.
> > >
> > > +1.
>
> -1
>
> One might have png, jpeg, pdf, eps and other figure files. The choice
> of which will be used depends eventually on where the file is to be
> found... (and setupexternalfigures). This is a *feature*. It has
> nothing to do with LaTeX.
>
> yes, right, in combination with \ifmode it's  useful

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1639 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-01 14:43       ` Alan BRASLAU
  2013-08-01 14:54         ` luigi scarso
@ 2013-08-01 14:55         ` Hans Hagen
  1 sibling, 0 replies; 24+ messages in thread
From: Hans Hagen @ 2013-08-01 14:55 UTC (permalink / raw)
  To: ntg-context

On 8/1/2013 4:43 PM, Alan BRASLAU wrote:
> On Thu, 1 Aug 2013 16:01:27 +0200
> luigi scarso <luigi.scarso@gmail.com> wrote:
>
>> On Thu, Aug 1, 2013 at 3:56 PM, Aditya Mahajan <adityam@umich.edu>
>> wrote:
>>
>>>
>>> I think that the advice of omitting the file extension given in
>>> most LaTeX introductions is more trouble than it is worth in
>>> ConTeXt. Omitting file extensions is important if you are
>>> generating both dvi and pdf outputs. In ConTeXt, one never uses the
>>> DVI output, so I think that one should ALWAYS specify the file
>>> extension. That removes a lot of headaches with the wrong file
>>> being sourced.
>>>
>>> +1.
>
> -1
>
> One might have png, jpeg, pdf, eps and other figure files. The choice
> of which will be used depends eventually on where the file is to be
> found... (and setupexternalfigures). This is a *feature*. It has
> nothing to do with LaTeX.
>
> Of course, one can always specify an extension explicitly if one so
> wishes...
>
> Furthermore, the file extension is simply a convenient label which
> makes no difference whatsoever on any serious system. (but not so on
> more primitive operating systems. ;)

actually it's not that primitive as it helps to identify what we're 
dealing with (e.g. in the source and backend use different code paths 
for identifying the dimensions, conversion and inclusion)

Hans


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 13:52 ` Peter Münster
@ 2013-08-01 15:19   ` Jannik Voges
  2013-08-01 20:34     ` Peter Münster
  2013-08-02 11:13     ` Hans Hagen
  0 siblings, 2 replies; 24+ messages in thread
From: Jannik Voges @ 2013-08-01 15:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

You are right. I was a little bit confused, because I didn't know, that you have to add 'location=default' to get the sample files, so I thought, that might also be buggy. 'test' is a test-file (pdf, jpeg, ...) in the current directory (I have not mentioned that). In my second Mail I included the source files with 'test.pdf'. You can see the bug there or when you compile the example below. This time, the sample files are loaded correctly and you will see, that the second graphic and sentence are missing.

\setupexternalfigures[location=default]

\starttext

\externalfigure[cow.pdf]

\page

This text will appear.

\externalfigure[cow.pdf][width=10cm]

This text will not appear.

\stoptext


Am 01.08.2013 um 15:52 schrieb Peter Münster <pmlists@free.fr>:

> On Thu, Aug 01 2013, Jannik Voges wrote:
> 
>> The first two \externalfigure-commands (with cow) will give a grey placeholder
>> with 'state:unknown' in it.
> 
> Yes, you need "\setupexternalfigures[location=default]" for finding the
> sample files of the distribution.
> 
> 
>> The third \externalfigure-command (\externalfigure[test]) will work,
>> and the last one won't. In this example, you will get an empty third
>> page and the text after the \externalfigure-command doesn't appear in
>> the pdf. 'test' can be a pdf-file or jpeg-file (I only tested whose
>> types of files).
> 
> If you want, that other people can reproduce your problem, you have at
> least 2 possibilities:
> 1.) You use "\setupexternalfigures[location=default]" and the sample
>    files of the distribution.
> 2.) Or if 1.) doesn't work, you provide somewhere the needed files for
>    reproducing the problem.
> 
> See also
> http://wiki.contextgarden.net/ConTeXt_Mailing_Lists#Before_asking_on_the_list
> 
> -- 
>           Peter
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 15:19   ` Jannik Voges
@ 2013-08-01 20:34     ` Peter Münster
  2013-08-01 21:32       ` Jannik Voges
  2013-08-02 11:13     ` Hans Hagen
  1 sibling, 1 reply; 24+ messages in thread
From: Peter Münster @ 2013-08-01 20:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Aug 01 2013, Jannik Voges wrote:

> \externalfigure[cow.pdf][width=10cm]
>
> This text will not appear.

I can confirm this with acroread 9.5.5
No problem with evince.

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 20:34     ` Peter Münster
@ 2013-08-01 21:32       ` Jannik Voges
  2013-08-02  7:56         ` Peter Münster
  0 siblings, 1 reply; 24+ messages in thread
From: Jannik Voges @ 2013-08-01 21:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Okay, a reader dependent bug/error. I used Preview (OS X 10.8.4). The second figure (\externalfigure[cow.pdf][width=10cm]) and the following sentence didn't appear. The same happens when you use height instead of width.


Am 01.08.2013 um 22:34 schrieb Peter Münster <pmlists@free.fr>:

> On Thu, Aug 01 2013, Jannik Voges wrote:
> 
>> \externalfigure[cow.pdf][width=10cm]
>> 
>> This text will not appear.
> 
> I can confirm this with acroread 9.5.5
> No problem with evince.
> 
> -- 
>           Peter
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 21:32       ` Jannik Voges
@ 2013-08-02  7:56         ` Peter Münster
  0 siblings, 0 replies; 24+ messages in thread
From: Peter Münster @ 2013-08-02  7:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Aug 01 2013, Jannik Voges wrote:

> Okay, a reader dependent bug/error. I used Preview (OS X 10.8.4). The second
> figure (\externalfigure[cow.pdf][width=10cm]) and the following sentence
> didn't appear. The same happens when you use height instead of width.

Perhaps you could add this issue to the tracker: http://tracker.luatex.org/

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-01 15:19   ` Jannik Voges
  2013-08-01 20:34     ` Peter Münster
@ 2013-08-02 11:13     ` Hans Hagen
  2013-08-02 18:36       ` Jannik Voges
  1 sibling, 1 reply; 24+ messages in thread
From: Hans Hagen @ 2013-08-02 11:13 UTC (permalink / raw)
  To: ntg-context

On 8/1/2013 5:19 PM, Jannik Voges wrote:
> You are right. I was a little bit confused, because I didn't know, that you have to add 'location=default' to get the sample files, so I thought, that might also be buggy. 'test' is a test-file (pdf, jpeg, ...) in the current directory (I have not mentioned that). In my second Mail I included the source files with 'test.pdf'. You can see the bug there or when you compile the example below. This time, the sample files are loaded correctly and you will see, that the second graphic and sentence are missing.
>
> \setupexternalfigures[location=default]
>
> \starttext
>
> \externalfigure[cow.pdf]
>
> \page
>
> This text will appear.
>
> \externalfigure[cow.pdf][width=10cm]
>
> This text will not appear.
>
> \stoptext

i can't repeat your problem here .. two figures and two texts show up

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-02 11:13     ` Hans Hagen
@ 2013-08-02 18:36       ` Jannik Voges
  2013-08-02 18:55         ` Hans Hagen
  0 siblings, 1 reply; 24+ messages in thread
From: Jannik Voges @ 2013-08-02 18:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 2459 bytes --]

Hi,


yes its a tricky bug. When you view the pdf with Preview under Mac OS X (10.8.4) you will see, that the second graphic and sentence isn't displayed. When you use evince (linux) the pdf is displayed correctly. I attache a zip-file with the pdf-file of the minimal example and a screenshot of the second page, when you view it with Apple's Preview (Preview.png) and evince (Evince.png). Peter Münster reported, that he can confirm the problem with acrobat reader (I have not installed Acrobat), so I think, there is a problem with the generated pdf.


Jannik



Am 02.08.2013 um 13:13 schrieb Hans Hagen <pragma@wxs.nl>:

> On 8/1/2013 5:19 PM, Jannik Voges wrote:
>> You are right. I was a little bit confused, because I didn't know, that you have to add 'location=default' to get the sample files, so I thought, that might also be buggy. 'test' is a test-file (pdf, jpeg, ...) in the current directory (I have not mentioned that). In my second Mail I included the source files with 'test.pdf'. You can see the bug there or when you compile the example below. This time, the sample files are loaded correctly and you will see, that the second graphic and sentence are missing.
>> 
>> \setupexternalfigures[location=default]
>> 
>> \starttext
>> 
>> \externalfigure[cow.pdf]
>> 
>> \page
>> 
>> This text will appear.
>> 
>> \externalfigure[cow.pdf][width=10cm]
>> 
>> This text will not appear.
>> 
>> \stoptext
> 
> i can't repeat your problem here .. two figures and two texts show up
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #2: Bug.zip --]
[-- Type: application/zip, Size: 43096 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-02 18:36       ` Jannik Voges
@ 2013-08-02 18:55         ` Hans Hagen
  2013-08-02 19:05           ` Jannik Voges
  0 siblings, 1 reply; 24+ messages in thread
From: Hans Hagen @ 2013-08-02 18:55 UTC (permalink / raw)
  To: ntg-context

On 8/2/2013 8:36 PM, Jannik Voges wrote:

> yes its a tricky bug. When you view the pdf with Preview under Mac OS X (10.8.4) you will see, that the second graphic and sentence isn't displayed. When you use evince (linux) the pdf is displayed correctly. I attache a zip-file with the pdf-file of the minimal example and a screenshot of the second page, when you view it with Apple's Preview (Preview.png) and evince (Evince.png). Peter Münster reported, that he can confirm the problem with acrobat reader (I have not installed Acrobat), so I think, there is a problem with the generated pdf.

can you try with \nopdfcompression (that way we can look into the file)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-02 18:55         ` Hans Hagen
@ 2013-08-02 19:05           ` Jannik Voges
  2013-08-02 19:35             ` Hans Hagen
  0 siblings, 1 reply; 24+ messages in thread
From: Jannik Voges @ 2013-08-02 19:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1702 bytes --]

No problem. Pdf is attached.


Am 02.08.2013 um 20:55 schrieb Hans Hagen <pragma@wxs.nl>:

> On 8/2/2013 8:36 PM, Jannik Voges wrote:
> 
>> yes its a tricky bug. When you view the pdf with Preview under Mac OS X (10.8.4) you will see, that the second graphic and sentence isn't displayed. When you use evince (linux) the pdf is displayed correctly. I attache a zip-file with the pdf-file of the minimal example and a screenshot of the second page, when you view it with Apple's Preview (Preview.png) and evince (Evince.png). Peter Münster reported, that he can confirm the problem with acrobat reader (I have not installed Acrobat), so I think, there is a problem with the generated pdf.
> 
> can you try with \nopdfcompression (that way we can look into the file)
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

[-- Attachment #2: Untitled.pdf --]
[-- Type: application/pdf, Size: 14935 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-02 19:05           ` Jannik Voges
@ 2013-08-02 19:35             ` Hans Hagen
  2013-08-02 19:49               ` Jannik Voges
  0 siblings, 1 reply; 24+ messages in thread
From: Hans Hagen @ 2013-08-02 19:35 UTC (permalink / raw)
  To: ntg-context

On 8/2/2013 9:05 PM, Jannik Voges wrote:
> No problem. Pdf is attached.

ok, i see the problem ... will try to fix it (cannot upload from where i 
am now)

you can try this in back-pdf.lua:

function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
     local t = copy_node(pdfsetmatrix)
     if type(rx) == "string" then
         setfield(t,"data",rx)
     else
         setfield(t,"data",formatters["%s %s %s %s"](rx or 1,sx or 0,sy 
or 0,ry or 1)) -- todo: tx ty
     end
     return t
end


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-02 19:35             ` Hans Hagen
@ 2013-08-02 19:49               ` Jannik Voges
  2013-08-02 19:58                 ` Hans Hagen
  0 siblings, 1 reply; 24+ messages in thread
From: Jannik Voges @ 2013-08-02 19:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I added the function in back-pdf.lua, but that doesn't fix the problem.


Jannik


Am 02.08.2013 um 21:35 schrieb Hans Hagen <pragma@wxs.nl>:

> On 8/2/2013 9:05 PM, Jannik Voges wrote:
>> No problem. Pdf is attached.
> 
> ok, i see the problem ... will try to fix it (cannot upload from where i am now)
> 
> you can try this in back-pdf.lua:
> 
> function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
>    local t = copy_node(pdfsetmatrix)
>    if type(rx) == "string" then
>        setfield(t,"data",rx)
>    else
>        setfield(t,"data",formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry or 1)) -- todo: tx ty
>    end
>    return t
> end
> 
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-02 19:49               ` Jannik Voges
@ 2013-08-02 19:58                 ` Hans Hagen
  2013-08-02 20:08                   ` Jannik Voges
  0 siblings, 1 reply; 24+ messages in thread
From: Hans Hagen @ 2013-08-02 19:58 UTC (permalink / raw)
  To: ntg-context

On 8/2/2013 9:49 PM, Jannik Voges wrote:
> I added the function in back-pdf.lua, but that doesn't fix the problem.
>
>
> Jannik
>
>
> Am 02.08.2013 um 21:35 schrieb Hans Hagen <pragma@wxs.nl>:
>
>> On 8/2/2013 9:05 PM, Jannik Voges wrote:
>>> No problem. Pdf is attached.
>>
>> ok, i see the problem ... will try to fix it (cannot upload from where i am now)
>>
>> you can try this in back-pdf.lua:
>>
>> function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
>>     local t = copy_node(pdfsetmatrix)
>>     if type(rx) == "string" then
>>         setfield(t,"data",rx)
>>     else
>>         setfield(t,"data",formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry or 1)) -- todo: tx ty
>>     end
>>     return t
>> end

function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
     local t = copy_node(pdfsetmatrix)
     if type(rx) == "string" then
         t.data = rx
     else
         t.data = formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry 
or 1) -- todo: tx ty
     end
     return t
end

and remake the format

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: bug in \externalfigure
  2013-08-02 19:58                 ` Hans Hagen
@ 2013-08-02 20:08                   ` Jannik Voges
  2013-08-03 10:45                     ` Jannik Voges
  0 siblings, 1 reply; 24+ messages in thread
From: Jannik Voges @ 2013-08-02 20:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2295 bytes --]

'context --make' gives an error:

! LuaTeX error .../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: attempt to index global 'nodepool' (a nil value)
stack traceback:
	.../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: in function 'code'
	.../context/tex/texmf-context/tex/context/base/util-lua.lua:84: in function 'loadedluacode'
	.../context/tex/texmf-context/tex/context/base/luat-env.lua:104: in function 'luafilechunk'
	.../context/tex/texmf-context/tex/context/base/luat-cod.lua:45: in function 'registercode'
	[string "\directlua "]:1: in main chunk.

system          > tex > error on line 35 in file /usr/local/context/tex/texmf-context/tex/context/base/back-pdf.mkiv: LuaTeX error  ...

25     \registerctxluafile{lpdf-wid}{1.001}
26     \registerctxluafile{lpdf-fld}{1.001}
27     \registerctxluafile{lpdf-mov}{1.001}
28     \registerctxluafile{lpdf-u3d}{1.001}
29     \registerctxluafile{lpdf-swf}{1.001}
30     \registerctxluafile{lpdf-tag}{1.001}
31     \registerctxluafile{lpdf-fmt}{1.001}
32     \registerctxluafile{lpdf-epd}{1.001}
33     \registerctxluafile{lpdf-epa}{1.001}
34     
35 >>  \registerctxluafile{back-pdf}{1.001} % some code will move to lpdf-*
36     
37     \unprotect
38     
39     %D We will minimize the number of calls to \PDF\ specific primitives
40     %D and delegate all management and injection of code to the backend.
41     %D
42     %D Here we initialize some internal quantities. We also protect them.
43     
44     \pdfoutput  1         \let\pdfoutput \undefined \newcount\pdfoutput  \pdfoutput  1
45     \pdfhorigin 1 true in \let\pdfhorigin\undefined \newdimen\pdfhorigin \pdfhorigin 1 true in


\registerctxluafile ...ua.registercode("#1","#2")}
                                                  
l.35 \registerctxluafile{back-pdf}{1.001}
                                        % some code will move to lpdf-*
? 


Jannik

Am 02.08.2013 um 21:58 schrieb Hans Hagen <pragma@wxs.nl>:

> function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
>    local t = copy_node(pdfsetmatrix)
>    if type(rx) == "string" then
>        t.data = rx
>    else
>        t.data = formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry or 1) -- todo: tx ty
>    end
>    return t
> end


[-- Attachment #1.2: Type: text/html, Size: 10529 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \externalfigure
  2013-08-02 20:08                   ` Jannik Voges
@ 2013-08-03 10:45                     ` Jannik Voges
  0 siblings, 0 replies; 24+ messages in thread
From: Jannik Voges @ 2013-08-03 10:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

The bug is fixed in the newest beta.


Thanks to everyone

Jannik



Am 02.08.2013 um 22:08 schrieb Jannik Voges <researchjavo@icloud.com>:

> 'context --make' gives an error:
> 
> ! LuaTeX error .../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: attempt to index global 'nodepool' (a nil value)
> stack traceback:
> 	.../context/tex/texmf-context/tex/context/base/back-pdf.lua:86: in function 'code'
> 	.../context/tex/texmf-context/tex/context/base/util-lua.lua:84: in function 'loadedluacode'
> 	.../context/tex/texmf-context/tex/context/base/luat-env.lua:104: in function 'luafilechunk'
> 	.../context/tex/texmf-context/tex/context/base/luat-cod.lua:45: in function 'registercode'
> 	[string "\directlua "]:1: in main chunk.
> 
> system          > tex > error on line 35 in file /usr/local/context/tex/texmf-context/tex/context/base/back-pdf.mkiv: LuaTeX error  ...
> 
> 25     \registerctxluafile{lpdf-wid}{1.001}
> 26     \registerctxluafile{lpdf-fld}{1.001}
> 27     \registerctxluafile{lpdf-mov}{1.001}
> 28     \registerctxluafile{lpdf-u3d}{1.001}
> 29     \registerctxluafile{lpdf-swf}{1.001}
> 30     \registerctxluafile{lpdf-tag}{1.001}
> 31     \registerctxluafile{lpdf-fmt}{1.001}
> 32     \registerctxluafile{lpdf-epd}{1.001}
> 33     \registerctxluafile{lpdf-epa}{1.001}
> 34     
> 35 >>  \registerctxluafile{back-pdf}{1.001} % some code will move to lpdf-*
> 36     
> 37     \unprotect
> 38     
> 39     %D We will minimize the number of calls to \PDF\ specific primitives
> 40     %D and delegate all management and injection of code to the backend.
> 41     %D
> 42     %D Here we initialize some internal quantities. We also protect them.
> 43     
> 44     \pdfoutput  1         \let\pdfoutput \undefined \newcount\pdfoutput  \pdfoutput  1
> 45     \pdfhorigin 1 true in \let\pdfhorigin\undefined \newdimen\pdfhorigin \pdfhorigin 1 true in
> 
> 
> \registerctxluafile ...ua.registercode("#1","#2")}
> 
> l.35 \registerctxluafile{back-pdf}{1.001}
>                                        % some code will move to lpdf-*
> ? 
> 
> 
> Jannik
> 
> Am 02.08.2013 um 21:58 schrieb Hans Hagen <pragma@wxs.nl>:
> 
>> function nodepool.pdfsetmatrix(rx,sx,sy,ry,tx,ty)
>>   local t = copy_node(pdfsetmatrix)
>>   if type(rx) == "string" then
>>       t.data = rx
>>   else
>>       t.data = formatters["%s %s %s %s"](rx or 1,sx or 0,sy or 0,ry or 1) -- todo: tx ty
>>   end
>>   return t
>> end
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2013-08-03 10:45 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-01 12:27 bug in \externalfigure Jannik Voges
2013-08-01 13:08 ` Marco Patzer
2013-08-01 13:44   ` Jannik Voges
2013-08-01 13:56   ` Aditya Mahajan
2013-08-01 14:01     ` luigi scarso
2013-08-01 14:43       ` Alan BRASLAU
2013-08-01 14:54         ` luigi scarso
2013-08-01 14:55         ` Hans Hagen
2013-08-01 14:14     ` Marco Patzer
2013-08-01 13:51 ` Aditya Mahajan
2013-08-01 13:52 ` Peter Münster
2013-08-01 15:19   ` Jannik Voges
2013-08-01 20:34     ` Peter Münster
2013-08-01 21:32       ` Jannik Voges
2013-08-02  7:56         ` Peter Münster
2013-08-02 11:13     ` Hans Hagen
2013-08-02 18:36       ` Jannik Voges
2013-08-02 18:55         ` Hans Hagen
2013-08-02 19:05           ` Jannik Voges
2013-08-02 19:35             ` Hans Hagen
2013-08-02 19:49               ` Jannik Voges
2013-08-02 19:58                 ` Hans Hagen
2013-08-02 20:08                   ` Jannik Voges
2013-08-03 10:45                     ` Jannik Voges

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).