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.