Commit graph

180 commits

Author SHA1 Message Date
David Tracey
2c570eea4d Add [USE_BIBLATEX] to description in file header. 2016-02-14 18:04:35 +00:00
David Tracey
4177f43744 Refactor integration of biblatex support. 2016-02-14 17:51:22 +00:00
David Tracey
763d730275 Add usage comment. 2016-02-12 23:56:00 +00:00
David Tracey
2d71bffed5 Add support for biblatex/biber 2016-02-12 23:43:44 +00:00
Kenneth Moreland
3d6a7a93d3 Add STRINGS property to LATEX_DEFAULT_BUILD
This makes it easier to select the default build in the CMake GUI.
2015-12-01 15:48:27 -07:00
Kenneth Moreland
d83fd902b5 Add documentation for TARGET_NAME option. 2015-10-19 14:41:12 -06: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
b662bf887f Forgot to update version in document. 2015-09-09 10:23:42 -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
Kenneth Moreland
8ecd472518 Merge pull request #14 from anatolyborodin/cmake_version
Require CMake version >= 2.8.4

Let the documentation and example builds reflect the actual minimum CMake version.
2015-07-23 22:47:24 -04: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
dc6efbb2b8 Merge pull request #13 from gruenich/patch-1
Fix typos in comments
2015-07-20 12:48:18 -06:00
Christoph Grüninger
640891fd25 Fix typos
and a trailing white space.
2015-07-11 17:13:32 +02:00
Kenneth Moreland
74ae43a968 Add explicit errors when using removed options. 2015-04-09 14:24:31 -06:00
Kenneth Moreland
2ce9fb7097 Update copyright and license information. 2015-04-09 13:53:09 -06:00
Kenneth Moreland
5bb6a7a638 Add EXCLUDE_FROM_DEFAULTS option
Previously, the EXCLUDE_FROM_ALL option broke both the dependency from
the all target and the dependency from the dvi, pdf, etc. targets. However,
there is plenty of reason to want only one or the other, so the
EXCLUDE_FROM_ALL option was broken up into a second EXCLUDE_FROM_DEFAULTS
that controls the second set of dependencies.
2015-04-09 11:46:56 -06:00
Kenneth Moreland
e603d1f003 Typo.
Pointed out by Izaak Beekman.
2015-02-20 23:25:31 -07:00
Kenneth Moreland
59cc0e32ce Forgot to add dependency from auxclean target to mangled targed. 2014-12-19 14:52:55 +05:30
Kenneth Moreland
5f7c265521 Update documentation for mangled naming. 2014-12-15 17:18:54 +05:30
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
9e1f62b5dc Update documentation for how default builds work. 2014-12-15 14:49:22 +05:30
Kenneth Moreland
a01764abf1 Add FORCE_* arguments. 2014-12-15 00:25:02 -05:00
Kenneth Moreland
9778983e16 Change how default builds are specified.
Removed the DEFAULT_* arguments. Instead, have a CMake variable named
LATEX_DEFAULT_BUILD that specifies what the default build should be.
This CMake variable is initialized with an environment variable of the
same name or PDF if none is specified. This allows each user to specify
a default build without having to change the configuration.

There is also an EXCLUDE_FROM_ALL option that, like the same option in
add_executable, keeps the document from being built in the default all
target.
2014-12-14 23:33:03 -05:00
Kenneth Moreland
11e29805bc Mark variables for executables advanced.
UseLATEX.cmake finds several executables for compiling documents and
converting files. Previously these were not marked as advanced, but
CMake now conventionally makes them advanced to avoid cluttering the
GUI.
2014-12-14 16:40:34 -05:00
Kenneth Moreland
91cc27cbc3 Remove some deprecated features. 2014-12-14 16:33:40 -05:00
Kenneth Moreland
5468246176 Explicitly list the main tex file as an argument.
Should make errors easier to trace.
2014-12-14 15:55:34 -05:00
Kenneth Moreland
f77b563329 Clean up some set commands.
Change "set (" to "set("

Change some set commands that were actually appending a list to a list(append
command, which shows better the point of the command and could be faster.
2014-12-14 15:40:16 -05:00
Kenneth Moreland
2eb8826243 Use the parse argument function that comes with CMake.
That module is actually based off the code that originally came from
UseLATEX.cmake, but now that it exists and is supported by the CMake
community, there is no reason to have a second copy here.
2014-12-14 15:16:19 -05:00
Kenneth Moreland
2cf610a36b Update else/endif arguments.
The arguments for else and endif commands are now no longer necessary. In
fact, the are no longer encouraged. This is because, in addition to it
being annoying to exactly match expressions, it becomes confusing when
there is an else clause. (The expression is actually the inverse of the
case for the else clause.)
2014-12-14 11:08:31 -06:00
Kenneth Moreland
77fe49f7c1 Change capitalized function names to lower case function names.
This is the "new" style in CMake. It's actually been around a while, but
UseLATEX.cmake was not updated previously.
2014-12-14 10:56:29 -06:00
Martin Baute
3264be4f0f Fix check for Window's convert.
Older versions of Windows use the path C:\Windows\system32. Newer ones
use the path C:\Windows\System32 (with a capitol S). They are somewhat
equivalent because Windows file system is not case sensitive, but it
made the check for the system32 directory fail. This change first converts
the path the lowercase to do a non case sensitive comparison.
2014-06-12 11:36:37 -06:00
Christoph Grüninger
fa0fc39926 White space changes: Replace tabs and remove trailing spaces.
Remove an old commented line.
2014-05-25 15:35:03 +02:00
Kenneth Moreland
4627adc1e4 Attribution for LuaLaTeX. 2014-03-19 14:21:48 -06:00
Kenneth Moreland
582d86ccbd Merge pull request #7 from theMarix/master
Document how to use the lualatex program.
2014-03-19 14:15:50 -06:00
Matthias Bach
4dbbc765d6 Document how to use the lualatex program. 2014-03-19 21:05:10 +01:00
Kenneth Moreland
7155d6374d Copy font files for packages with fonts. 2014-03-19 12:05:23 -06:00
Kenneth Moreland
9236074d70 Document how to use the xelatex program. 2013-11-17 22:14:21 -07:00
Kenneth Moreland
387cf24870 Check for Windows version of convert and give error.
Thanks to Martin Baute.
2013-11-16 08:28:22 -07:00
Kenneth Moreland
a337f2668a Fix issue of setting LATEX2HTML_CONVERTER to HTLATEX_CONVERTER. 2013-10-31 17:09:04 -06:00
Kenneth Moreland
c0d0d30a9b Update documentation. 2013-10-31 09:54:20 -06:00
Tomasz Grzegurzko
50661481a7 Use htlatex as a fallback when latex2html is not available. 2013-10-31 09:46:02 -06:00
Kenneth Moreland
b2065e7ed2 Update patch version and document change. 2013-10-02 09:35:33 -06:00
Julien Schueller
264791bd71 Make convert program mandatory only if actually needed.
This is like what is already done for ps2pdf and pdftops.
2013-10-02 09:27:12 -06: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
a424ee4298 Add NO_DEFAULT and DEFAULT_PS options 2013-03-12 09:39:05 -06:00
Kenneth Moreland
afdf1a7285 Update version in documentation. 2013-02-04 11:02:45 -07:00