Re: [NTG-context] prevent error page

2021-01-01 Thread Johann Birnick
context --nodummy

works fine with my viewer, thanks!!

On Fri, 2021-01-01 at 11:10 +0100, Hans Hagen wrote:
> On 12/31/2020 8:31 PM, Johann Birnick wrote:
> > Hi there,
> > 
> > in my setup I constantly have a pdf viewer open showing the output of
> > context.
> > When I recompile the viewer updates.
> > 
> > Now if there is an error, the document fails to compile, of course.
> > Previously
> > the pdf file just remainded untouched, nice. But now with LMTX, the pdf will
> > be
> > overwritten with a pdf just saying "error". This makes my pdf viewer crash!
> > I can't work like this.
> > 
> > So how to prevent this "error" page and just let context remain the pdf
> > untouched if there is an error?
> Actually the remaining file is not untouched when there is an error 
> halfway, so maybe your viewer didn't do anything when the xref etc was 
> missing and fonts were unresolved ... all depends on the viewer i guess
> (after a pdf update the viewer has to reread the xref at least and then 
> all objects it has cached).
> 
> Long ago I played with a temp file and renaming but that also was not 
> stable (at least not here).
> 
> (for ways around: see other mails)
> 
> Hans
> 
> -
>    Hans Hagen | PRAGMA ADE
>    Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] prevent error page

2021-01-01 Thread Hans Hagen

On 12/31/2020 8:31 PM, Johann Birnick wrote:

Hi there,

in my setup I constantly have a pdf viewer open showing the output of context.
When I recompile the viewer updates.

Now if there is an error, the document fails to compile, of course. Previously
the pdf file just remainded untouched, nice. But now with LMTX, the pdf will be
overwritten with a pdf just saying "error". This makes my pdf viewer crash!
I can't work like this.

So how to prevent this "error" page and just let context remain the pdf
untouched if there is an error?
Actually the remaining file is not untouched when there is an error 
halfway, so maybe your viewer didn't do anything when the xref etc was 
missing and fonts were unresolved ... all depends on the viewer i guess
(after a pdf update the viewer has to reread the xref at least and then 
all objects it has cached).


Long ago I played with a temp file and renaming but that also was not 
stable (at least not here).


(for ways around: see other mails)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] prevent error page

2020-12-31 Thread Aditya Mahajan
On Thu, 31 Dec 2020, Johann Birnick wrote:

> Hi there,
> 
> in my setup I constantly have a pdf viewer open showing the output of context.
> When I recompile the viewer updates.
> 
> Now if there is an error, the document fails to compile, of course. Previously
> the pdf file just remainded untouched, nice. But now with LMTX, the pdf will 
> be
> overwritten with a pdf just saying "error". This makes my pdf viewer crash!
> I can't work like this.
>
> So how to prevent this "error" page and just let context remain the pdf
> untouched if there is an error?

You can try:

context --nodummy filename

which will not generate the "error" pdf. However, if the error was such that 
context had to abort the run, then no valid PDF will be generated. You cannot 
have the previous PDF untouched because context starts overwriting the PDF 
while processing. 

Another option is to use

context --result=output.pdf filename

in which case context writes the result to output.pdf. If there is an error, 
then output.pdf is not overwritten. Depending on your pdf viewer, this might 
work better.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] prevent error page

2020-12-31 Thread Johann Birnick
Hi there,

in my setup I constantly have a pdf viewer open showing the output of context.
When I recompile the viewer updates.

Now if there is an error, the document fails to compile, of course. Previously
the pdf file just remainded untouched, nice. But now with LMTX, the pdf will be
overwritten with a pdf just saying "error". This makes my pdf viewer crash!
I can't work like this.

So how to prevent this "error" page and just let context remain the pdf
untouched if there is an error?

Best regards,
Johann

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___