Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 170233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:46:19+00:00 2026-05-11T12:46:19+00:00

As suggested here , latexmk is a handy way to continually compile your document

  • 0

As suggested here, latexmk is a handy way to continually compile your document whenever the source changes. But often when you’re working on a document you’ll end up with errors and then latex will panic and wait for user input before continuing. That can get very annoying, especially recently when I hacked up something to compile latex directly from an etherpad document, which saves continuously as you type.

Is there a setting for latex or latexmk to make it just abort with an error message if it can’t compile? Or, if necessary, how would I set up some kind of Expect script to auto-dismiss LaTeX’s complaints?

(I had thought pdflatex‘s option -halt-on-error would do the trick but apparently not.)

Bonus question: Skim on Mac OSX is a nice pdf viewer that autorefreshes when the pdf changes (unlike Preview), except that whenever there’s a latex error it makes you reconfirm that you want autorefreshing. Texniscope doesn’t have this problem, but I had to ditch Texniscope for other reasons. Is there a way to make Skim always autorefresh, or is there another viewer that gets this right?


ADDED: Mini-tutorial on latexmk based on the answer to this question:

  1. Get latexmk here: http://www.phys.psu.edu/~collins/software/latexmk-jcc/

  2. Add the following to your ~/.latexmkrc file:

    $pdflatex = 'pdflatex -interaction=nonstopmode'; 

    (For OS X with Skim)

    $pdf_previewer = 'open -a /Applications/Skim.app'; 
  3. While editing your source file, foo.tex, run the following in a terminal:

    latexmk -pvc -pdf foo.tex 
  4. Use Skim or another realtime pdf viewer to view foo.pdf. For Skim, just look at the “Sync” tab in Skim’s preferences and set it up for your editor.

Voila! Hitting save on foo.tex will now cause foo.pdf to refresh without touching a thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:46:19+00:00Added an answer on May 11, 2026 at 12:46 pm

    With MikTeX, pdflatex has this command-line option:

      -interaction=MODE               Set the interaction mode; MODE must be one                                   of: batchmode, nonstopmode, scrollmode,                                   errorstopmode. 

    Edit suggested by @9999years:

    Those values are equivalent to a set of LaTeX \commands that provide the same functionality.

    From TeX usage tips:

    The modes make TeX behave in the following way:

    • errorstopmode stops on all errors, whether they are about errors in the source code or non-existent files.

    • scrollmode doesn’t stop on errors in the source but requests input when a more serious error like like a missing file occurs.

    • In the somewhat misnamed nonstopmode, TeX does not request input after serious errors but stops altogether.

    • batchmode prevents all output in addition to that (intended for use in automated scripts). In all cases, all errors are written to the log file (yourtexfile.log).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 96k
  • Answers 96k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A per-task watchdog requires that the higher priority tasks yield… May 11, 2026 at 7:15 pm
  • Editorial Team
    Editorial Team added an answer This expression will do the job. ^.*/(?<filename>[^/]+?\.[^/]+)$ ^ Anchor to… May 11, 2026 at 7:15 pm
  • Editorial Team
    Editorial Team added an answer Your current rule probably works for urls one character long… May 11, 2026 at 7:15 pm

Related Questions

I've got a lot of small DLLs which I would like to make into
I need to export data of all columns (including technical like GUIDs for foreign
I need to put an LDAP contextSource into my Java EE container's JNDI tree
After posting this question and reading that one I realized that it is very

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.