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

  • SEARCH
  • Home
  • 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 955933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:27:56+00:00 2026-05-16T00:27:56+00:00

I am using the MiKTeX 2.8 distibution for Windows. We develop software primarily, and

  • 0

I am using the MiKTeX 2.8 distibution for Windows.

We develop software primarily, and use LaTeX to make our user instructions. We use LaTeX because:

  • It’s great under source control for tracking changes etc.
  • The source files don’t suddenly decide to become corrupt, unlike Word documents.
  • Multiple documents can share single sections, so we can apply the DRY principle to our documentation and avoid some documents getting out of sync with others. You can have master documents in Word, but I’ve found them to be flaky as hell.

As a part of the unattended build process on our build server, we build the documentation using MiKTeX’s texify executable. This works fairly well.

However, problems occur when a developer makes an error (e.g. a \ref to a \label that doesn’t exist). An error such as that only generates a warning in LaTeX. The warning goes unnoticed by texify, and we’re left with errors in the documentation.

I currently have a build step which scans log files for lines beginning with ‘LaTeX Warning’ and fails the build if there are any. This works, but is obviously pretty flaky, and may let warnings slip through. It currently is not used on local builds on dev machines, but if that’s the only way to do it, I may have to integrate it with the editor we’re currently using (TeXworks shipped with MiKTeX).

I’d like to fail the build if any warnings such as an undefined reference occur, and I’d rather not do flaky scans of log files. Does anything offer this feature?

If I can use this feature in local builds on dev machines as well as on the build server it would be a huge bonus.

  • 1 1 Answer
  • 3 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. Editorial Team
    Editorial Team
    2026-05-16T00:27:56+00:00Added an answer on May 16, 2026 at 12:27 am

    The following (untested) code should turn any warning into an error:

    \renewcommand{\GenericWarning}[2]{\GenericError{#1}{#2}{}{This warning has been turned into a fatal error.}}
    

    Then you may be interested in the silence package to filter warnings.

    However you will also need to arrange to do this only for the last run of LaTeX, because some warnings such as undefined reference are to be expected during the first runs.

    Editors with good LaTeX support will tell you if you need to re-run LaTeX (doesn’t TeXworks do it?). They do it by parsing the console output or the log file. It is in fact reasonably robust (and if you’re really worried you could redefine \GenericWarning to add a characteristic string to all warnings). I think parsing the logs is the right way to do it.

    Think of this as a test to run against the documentation. If there are undefined references, the documentation build succeeds. The build products are the pdf (or whatever) and the TeX logs. Checking for warnings in the logs is a test.

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

Sidebar

Related Questions

I'm using miktex 2.8 on Windows. For some reason, the \marginpar command has stopped
When using Texlipse together with Miktex 2.9 on my Windows machine, the system throws
I generated latex template using perl,and complied with MikTeX, its generating pdf. But I
I have generated eps figures in MATLAB and am using them in Latex. (Miktex
I'm using MikTeX 2.8 edition, and installed the hungarian language support and hyphenation files.
I'm new to Latex so hopefully this is just a simple problem. I'm using
I've tried using LaTeX and DocBook for documenting programming tools, to get PDF output.
I am trying to make shortcuts for portable emacs linking to a portable LaTeX
I am using including Matlab-drawn figures into LaTeX. My usual workflow is as following:
Using restlet, I want to make a post to android's c2dm service. I have

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.