[OS X TeX] TeXShop: texing should stop on warnings

Ross Moore ross.moore at mq.edu.au
Wed Apr 9 00:59:11 CEST 2014


Hi Friedrich,

On 08/04/2014, at 7:49 PM, RA Friedrich Vosberg wrote:

> Morning.
> 
> How can I force TeXShop to stop typesetting when a warning occurs?

TeX has 2 primitives that are used with errors and warnings.

  \errmessage{...}  causes TeX to print the argument to screen,
               then stops and provides an interactive interface 
               for how to proceed.

  \message{...}    just prints its argument into the log.

If you really want to stop at all warnings --- 
beware, there are many that are only printed in the .log file
then you could experiment with:

   \let\message\errmessage

within your document, or within packages that you write.

This makes a local reassignment, so can be scoped to work
just within appropriate TeX groupings  { .... }
 or  \begingroup .... \endgroup   contexts.


> 
> Thanks in advance for your support!
> 
> Kind regards, Friedrich


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-206      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.png
Type: image/png
Size: 5257 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20140409/fb858ee8/attachment.png>
-------------- next part --------------




More information about the macostex-archives mailing list