Commit graph

86 commits

Author SHA1 Message Date
Kenneth Moreland
acc72788dd Always run bibtex on main aux file with multibib.
Even when using multibib, it is possible to still use the main cite
commands that go to the main aux file.  Might as well run bibtex there.
There should be no harm.
2012-02-29 12:38:07 -07:00
Kenneth Moreland
822f46d0ba Change MULTIBIBFILES option to MULTIBIB_NEWCITES.
I was confused when this was presented to me.  I thought it represented
multiple .bib files, which is not the case.  It represents aux files
created with the \newcites command in the multibib package.  I hope this
name will create less confusion.
2012-02-29 12:36:26 -07:00
Antonio LaTorre
e263ea7e1e Basic support for multibib package.
The multibib package creates extra aux files that have to separately be
processed by bibtex.
2012-02-29 12:28:33 -07:00
Kenneth Moreland
bc8f67127a Fix corner case when an argument name is a variable.
When parsing arguments, there is an IF statement that compares an
argument to an argument name (such as BIBFILES, IMAGES, etc.).
If there exists a variable with the same name, then the IF statement
will also try to dereference the variable and compare them.  Thus,
if that variable equaled one of the arguments, it would be incorrectly
identified as an argument name.

As an example, consider this CMake code.

set(BIBFILES mydoc.bib)
add_latex_document(mydoc.tex BIBFILES ${BIBFILES})

These arguments, obviously, expand to "mydoc.tex;BIBFILES;mydoc.bib".
When checking the argument mydoc.bib, you would expect it to be
considered an argument to BIBFILES.  However, deep in the call stack
there is an if statement that expands to

IF (BIBFILES STREQUAL mydoc.bib)

Clearly we mean these to be unequal.  But because BIBFILES is also
a variable containing mydoc.bib, CMake considers this to be true.
Thus, UseLATEX though mydoc.bib was the start of a list of bibliography
files rather than a bibliography file itself.

The problem is solved by prepending "non_a_var_" to each string we
are comparing.

IF (not_a_var_BIBFILES STREQUAL not_a_var_mydoc.bib)

This makes it highly unlikely that either side of this comparison
will be a variable that gets expanded.
2011-12-07 08:18:16 -07:00
Kenneth Moreland
2625f1475c Fix problem where ps2pdf was not getting the appropriate arguments. 2011-08-24 08:02:30 -06:00
Kenneth Moreland
364bf7618e Support SyncTeX. 2011-07-19 10:13:00 -06:00
Kenneth Moreland
a9ed0efabe Clean up clean targets.
Add all known auxiliary files that LaTeX generates to the clean target.
Also add the final generated files (dvi, ps, pdf).  Also add these
files to the auxclean target, which differs from the regular clean
in that it does not clean things like images that take a while to
rebuild.
2011-07-07 10:15:37 -06:00
Kenneth Moreland
bd3bff8700 Add support for using xindy to create glossaries. 2011-07-06 12:28:37 -06:00
Kenneth Moreland
62ebec9a8d Update version. 2011-05-09 14:05:45 -06:00
Kenneth Moreland
3bfdd72b59 Clean up contribution for making nomenclature.
These changes include:

* General cleanup of extranous code.
* Remove USE_NOMENCLATURES option.  This mimiced the USE_GLOSSARIES
  option, which is only there for backward compatibility purposes.
* Change USE_NOMENCLATURE to USE_NOMENCL to tie it directly to the
  nomencl package.  This is defensive in case someone wants to use
  a similar nomenclature package with a slightly different name.
2011-05-09 14:00:44 -06:00
Kenneth Moreland
aab88f05a3 Copy .ist files to output directory.
Used for indexing packages like nomencl.
2011-05-09 13:49:11 -06:00
Myles English
079cc1aead Support index building with nomencl package. 2011-05-09 13:36:17 -06:00
Kenneth Moreland
aea2272747 Fix problem with BibTeX copies.
Thanks to Edwin van Leeuwen.
2011-05-04 09:24:53 -06:00
Kenneth Moreland
257044a666 Better document need for relative image paths.
Added a paragraph to the documentation about it and added checks
in the CMake code to warn the user when the rule is violated.
2011-01-25 10:25:15 -07:00
Kenneth Moreland
85fa531f25 Forgot to set the actual version in UseLATEX.cmake. 2011-01-25 10:04:48 -07:00
Kenneth Moreland
ceb3199282 Update version (1.7.4) and attributions. 2011-01-25 09:18:22 -07:00
Raymond Wan
6fabd07b0a Add DEFAULT_SAFEPDF option. 2011-01-25 09:12:36 -07:00
Kenneth Moreland
bef65c7849 Fix some issues with interaction between makeglossaries and bibtex.
Thanks to Mark de Wever.
2010-11-22 16:49:21 -07:00
Kenneth Moreland
4acd876221 Patch from Lukasz Lis to use ps2pdf to convert from eps to pdf instead of ImageMagick because the latter drops the BoundingBox. 2009-09-14 19:55:44 +00:00
Kenneth Moreland
490a439a2b Untabify buffer. 2008-08-25 14:24:46 +00:00
Kenneth Moreland
48a660fc03 Fix some dependency issues. 2008-08-14 20:08:59 +00:00
Kenneth Moreland
5870200463 Fixed some typos. 2008-08-14 19:02:58 +00:00
Kenneth Moreland
7bcb9a3ab6 Decided to version to 1.7 to reflect the change in feature.
Removed debugging printout I did not intend to commit.

Updated the version in the documentation.
2008-08-14 15:15:31 +00:00
Kenneth Moreland
376b12d541 Version 1.6.2 2008-08-12 04:20:30 +00:00
Kenneth Moreland
fcf3cc2187 Finish up embedding makeglossaries. 2008-04-24 22:09:00 +00:00
Kenneth Moreland
acca761aa3 Ported makeglossaries to CMake and embedded it in UseLATEX.cmake. I have not tried building glossaries yet, but normal document building still seems to work. 2008-04-15 23:14:41 +00:00
Kenneth Moreland
68070a240b Added support for makeglossaries command. 2008-03-11 19:59:03 +00:00
Kenneth Moreland
b3f89af437 Version 1.5.0 2007-05-03 23:06:06 +00:00
Kenneth Moreland
b242f7c229 Version 1.4.1 2007-05-03 23:04:42 +00:00
Kenneth Moreland
7c1c2937d5 Version 1.4.0 2007-05-03 23:04:09 +00:00
Kenneth Moreland
d73a828095 Version 1.3.0 2007-05-03 23:03:27 +00:00
Kenneth Moreland
26b518633a Version 1.2.0 2007-05-03 23:02:42 +00:00
Kenneth Moreland
da535acc93 Version 1.1.1 2007-05-03 23:01:32 +00:00
Kenneth Moreland
25fcd93d41 Version 1.1.0 2007-05-03 23:00:43 +00:00
Kenneth Moreland
750f77a1b6 Version 1.0.0 2007-05-03 22:58:12 +00:00
Kenneth Moreland
47a34bfc38 Initial release. 2007-05-03 22:50:48 +00:00