ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* prevent error page
@ 2020-12-31 19:31 Johann Birnick
  2021-01-01  6:57 ` Aditya Mahajan
  2021-01-01 10:10 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Johann Birnick @ 2020-12-31 19:31 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: prevent error page
  2020-12-31 19:31 prevent error page Johann Birnick
@ 2021-01-01  6:57 ` Aditya Mahajan
  2021-01-01 10:10 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2021-01-01  6:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: prevent error page
  2020-12-31 19:31 prevent error page Johann Birnick
  2021-01-01  6:57 ` Aditya Mahajan
@ 2021-01-01 10:10 ` Hans Hagen
  2021-01-01 14:21   ` Johann Birnick
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2021-01-01 10:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Johann Birnick

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
___________________________________________________________________________________

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

* Re: prevent error page
  2021-01-01 10:10 ` Hans Hagen
@ 2021-01-01 14:21   ` Johann Birnick
  0 siblings, 0 replies; 4+ messages in thread
From: Johann Birnick @ 2021-01-01 14:21 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-01-01 14:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-31 19:31 prevent error page Johann Birnick
2021-01-01  6:57 ` Aditya Mahajan
2021-01-01 10:10 ` Hans Hagen
2021-01-01 14:21   ` Johann Birnick

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