Commit graph

19 commits

Author SHA1 Message Date
Kenneth Moreland
7e1e03b4c0 Fix issue with detecting long undefined reference warnings
LaTeX "helpfully" split across lines (and which fowled up our regex).
Get around the problem by instead searching for "LaTeX Warning:" at
the beginning of the line. Hopefully (1) all versions of LaTeX
actually write this out and (2) it is not used for trivial
warnings.
2019-09-11 16:24:56 -07:00
Kenneth Moreland
b6e3317aaf Add tests for image handling with FORCE_* options 2019-09-04 13:13:51 -06:00
Kenneth Moreland
c8eb18ad32 Fix issues with paths that contain spaces 2017-08-21 15:12:38 -06:00
Kenneth Moreland
0eb452382a Output full log file on LaTeX error
When running LaTeX in batch mode, it might not print any output when a
failure occurs. So, when running in this mode, cat out the log failure
if a LaTeX error occurs.

The implementation for this wraps the latex call in a CMake script
that runs latex and checks the return value. If not a success value,
reads and then prints the log.
2016-12-14 21:43:39 -07:00
Kenneth Moreland
c190c19cae Add more image file types to image types test 2016-11-21 13:51:43 -07:00
Kenneth Moreland
1a9d75a3b5 Add test for bibliographies. 2016-02-15 23:22:28 -07:00
Kenneth Moreland
82357b7dde Add TARGET_NAME option.
A user requested the ability to make the target names created by UseLATEX
different than the name of the main tex file. The use case was for a
multi-directory project with two or more subdirectories containing LaTeX
files with the same name.
2015-10-19 14:22:34 -06:00
Kenneth Moreland
47ba871b8e Correct README for MultiIndex test. 2015-10-19 14:21:26 -06:00
Kenneth Moreland
18abbfebc1 Support bmp and other image formats. 2015-09-08 10:54:57 -06:00
Kenneth Moreland
26426e23ec Support for multind package (thanks to Dan Lipsa) 2015-09-03 13:46:10 -06:00
Kenneth Moreland
7c30cef708 Fix issue where pdf, etc. where declared each time UseLATEX was loaded.
In a large project, it is not uncommon to have LaTeX documents built in
different subdirectories and to have each subdirectory include
UseLATEX.cmake. However, loading UseLATEX.cmake multiple times caused
the pdf, dvi, etc. targets to be created multiple times even though the
intention is to have them loaded once. This change creates each target
only once.
2015-08-25 13:46:56 -06:00
Anatoly Borodin
fb07aa109f Require CMake version >= 2.8.4
The newest 3.* CMake versions may be missing in some distributions.

The most recent feature required by UseLATEX and its tests is
ced1d5eccd:
"Skip file-level dependencies on custom targets (#11332)". The commit is
included in the release version 2.8.4.

The following error messages are produced during compilation with
earlier CMake versions:

	[100%] Built target UseLATEX_pdf
	make[2]: *** No rule to make target `UseLATEX_pdf', needed by `UseLATEX_build/CMakeFiles/UseLATEX'.  Stop.

Signed-off-by: Anatoly Borodin <anatoly.borodin@gmail.com>
2015-07-23 22:40:31 +02:00
Kenneth Moreland
78a7233a33 Automatically mangle LaTeX targets.
This way when you call add_latex_document multiple times you do not get
multiply defined targets.
2014-12-15 16:34:59 +05:30
Kenneth Moreland
a01764abf1 Add FORCE_* arguments. 2014-12-15 00:25:02 -05:00
Kenneth Moreland
0005385708 Fix problem with aux file of main file in subdirectory. 2013-03-12 12:19:01 -06:00
Kenneth Moreland
dd7f482295 Add test for default targets. 2013-03-12 09:54:04 -06:00
Kenneth Moreland
2e6847b561 Fix problem with LATEX_SMALL_IMAGES.
A recent change from macros to functions changed the scoping rules
that caused the variable that held the raster scale to not be defined
where the build targets were generated (and thus scaling did not occur).
2013-02-04 10:30:26 -07:00
Kenneth Moreland
f07faa839d Add test for various image types. 2012-10-01 09:03:56 -04:00
Kenneth Moreland
ab6d94ae36 Add test for filenames with multiple periods in them. 2012-06-26 10:32:15 -06:00