Commit graph

180 commits

Author SHA1 Message Date
Kenneth Moreland
e0e6028757 Update version in documentation 2019-09-11 16:28:21 -07:00
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
193d64b3c4 Fix typo 2019-09-04 13:18:15 -06:00
Kenneth Moreland
b99d970ef1 Update documentation to new version 2019-09-04 13:14:59 -06:00
Kenneth Moreland
b6e3317aaf Add tests for image handling with FORCE_* options 2019-09-04 13:13:51 -06:00
Kenneth Moreland
acc9ac7762 Disable unneeded image conversions when forcing DVI 2019-09-04 12:59:30 -06:00
Martin Wetzel
d0d4d59ff5 disable image conversions for DVI targets if only building PDF target
This prevents a needless dependency on ImageMagick if all images are already
in formats suitable for pdflatex, but would need to be converted to .eps for DVI builds.
2019-09-04 12:47:00 -06:00
Kenneth Moreland
88facfc81c Make version tags annotated 2019-08-05 17:40:07 -06:00
Kenneth Moreland
aa36c16f99 Parse through biber output for warnings
Important to find undefined citations
2019-08-05 15:04:05 -06:00
Kenneth Moreland
56d5753c84 Update pdf document 2018-09-11 17:38:18 -06:00
Kenneth Moreland
ac4d21d0b3 Fix issues with release-version.sh script 2018-09-11 17:36:20 -06:00
Kenneth Moreland
ca926d851c Update version in documentation 2018-09-11 17:32:38 -06:00
Kenneth Moreland
cdec9a8944 Support a custom biblatex.cfg file when using biblatex 2018-09-11 17:31:02 -06:00
Kenneth Moreland
64034cf48b Add comment about repository location to readme 2018-04-30 16:04:13 -06:00
Kenneth Moreland
8dd1878f7a Merge branch 'self-documenting-project-page' into 'master'
Self documenting project page

See merge request kmorel/UseLATEX!1
2018-04-30 17:59:01 -04:00
Kenneth Moreland
5c0fd3da23 Add script to update the version in git 2018-04-30 15:52:04 -06:00
Kenneth Moreland
dc2e6b8931 Add pdf to repo
This will help self document the project.
2018-04-30 13:10:02 -06:00
Kenneth Moreland
3945141c70 Update documentation for project page 2018-04-30 12:06:48 -06:00
Kenneth Moreland
a564114f2b Fix issue with converting synctex paths
When using the synctex option with pdflatex, it writes out a file
containing paths to the input files. The problem is that
UseLATEX.cmake copies all the input files, so you get a link to
the copy, not the original. To correct for this UseLATEX.cmake
changed the directories back to the input files, but it only
did so for relative paths. pdflatex writes out absolute paths,
so these were not properly converted. This should fix that issue.

I also noticed that some of the "input" files are actually those
produced by latex programs (e.g. .aux, .bbl). Trying to convert
these paths to the input would cause pointers to files that do
not exist. To try to correct for this I only convert paths of
files of known extensions.
2018-04-30 11:29:58 -06:00
Kenneth Moreland
091a7a3409 Update version in documentation 2018-04-30 10:11:29 -06:00
Kenneth Moreland
6577150a41 Fix issue with spaces in the working directory 2018-04-30 10:08:45 -06:00
Kenneth Moreland
1c817c70f2 Fix parse error for older versions of CMake
There was a reference to using VERSION_GREATER_EQUAL. However, this
conditional is only supported in CMake 3.7 and better. Instead,
use VERSION_GREATER, which is supported in much older versions
of CMake.
2017-10-16 16:31:52 -06:00
Kenneth Moreland
c8eb18ad32 Fix issues with paths that contain spaces 2017-08-21 15:12:38 -06:00
Kenneth Moreland
b36810fe9a Add warnings for missing characters 2017-07-27 14:23:33 -06:00
Kenneth Moreland
0c9f0c7822 Improve behavior when LaTeX fails 2017-07-27 12:11:07 -06:00
Kenneth Moreland
d03bb459ea Check for natbib package warnings
This is necessary to see if you are missing any bibliography entries while using natbib.
2017-06-08 18:43:27 -06:00
Kenneth Moreland
3a66f0e5e5 Update version number in documentation 2017-02-13 12:30:47 -07:00
Kenneth Moreland
6895ba6d37 Merge pull request #29 from kmorel/magick-argument-order
Fix the order of arguments for magick in ImageMagick 7.0
2017-02-13 12:25:24 -07:00
Kenneth Moreland
c5394a7263 Fix the order of arguments for magick in ImageMagick 7.0
You now have to give flags like -resize after the input file.
2017-02-13 11:09:14 -07:00
Kenneth Moreland
2fd11379ab Merge pull request #25 from taketwo/master
Update list of automatically copied file extensions in documentation
2016-12-23 17:00:16 -07:00
Sergey Alexandrov
abad1ed145 Update list of automatically copied file extensions in documentation
Files with extensions .sty, .ist, and .fd were not mentioned, although
they are automatically copied as well.
2016-12-22 12:24:20 +01: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
9d39cbdadc Remove latex2html and fix some issues with htlatex 2016-11-22 14:29:02 -07:00
Kenneth Moreland
f1d6102b39 Bump up version to 2.4.0
The feature of checking the LaTeX build for important warnings is enough
to use a minor revision rather than a patch release.
2016-11-22 13:14:44 -07:00
Kenneth Moreland
52de6837a4 Document the default latex arguments 2016-11-22 13:08:58 -07:00
Kenneth Moreland
63a8a4f49e After build, grep log file for most important warnings
Currently checking for overfull warnings and bad references. This should
make it easier to identify problems with LaTeX files.
2016-11-22 13:06:36 -07:00
Kenneth Moreland
e80946efba Change default LaTeX arguments
They make the output much less verbose and also add file/line numbers
to errors. This mode is much nicer output for build systems. Thanks to
Nikos Koukis for the suggestion.
2016-11-22 11:45:00 -07:00
Kenneth Moreland
22eacee5cd Use # instead of = in ps2pdf args on Windows
The ps2pdf command is really just a script, and on the Windows port
it is a bat file. The Windows command interpreter for bat files treat
= as a special character, so on Windows you should use # instead.
2016-11-22 09:42:16 -07:00
Kenneth Moreland
66ca3a5cac Correct how program flags are separated
The _FLAGS CMake variables are specified as space-separated arguments
to make them easier to type. However, they have to be converted to CMake
lists to pass them to CMake commands that run programs. Otherwise they
will be interpreted as a single argument.

There were some separate_arguments commands to do just that. However,
I think when I changed over from defining macros to defining functions,
the scope of the separated arguments broke. This should fix that.
2016-11-21 14:48:56 -07:00
Kenneth Moreland
f4546b6d8e Remove resolution argument from pdftops
A user reported that converting a pdf to an eps was failing because his
pdftops program, which was a recent build/release, did not support the
-r flag, which sets the resolution used when objects are rasterized.
After some searching, I believe the issue is that there are two versions
of pdftops running around: one from Poppler and one from Xpdf. The former
supports the raster resolution flag, the latter does not.

Rather than jump through hoops trying to identify which one is installed
on a system, I just removed the flag. The consequence is that rasterized
objects will use a smaller resolution (the default is 300 dpi, and we were
setting it to 600 dpi). However, if you start engaging rasterization, then
the result probably is not looking as good anyway.
2016-11-21 14:05:48 -07:00
Kenneth Moreland
c190c19cae Add more image file types to image types test 2016-11-21 13:51:43 -07:00
Kenneth Moreland
7c6ea36464 Update documentation to 2.3.2 2016-09-08 11:21:14 -06:00
Kenneth Moreland
46e7d83b2a Fix issue with HTML targets when main tex file is in subdirectory 2016-09-08 11:14:23 -06:00
Kenneth Moreland
844394a066 Add LaTeX inputs as sources to targets
This allows the files to show up in IDEs like Qt Creator.
2016-09-08 09:07:36 -06:00
Kenneth Moreland
9b5271a10f Update documentation for changes in ImageMagick 2016-09-07 15:42:46 -06:00
Kenneth Moreland
e6358ec349 Support the use of magick instead of convert
It looks like with the release of ImageMagick 7.0 that the name of the
convert program has been renamed to magick. Most implementation have a
link from convert to magick, but the windows install by default does
not provide a convert program. To make sure it works everywhere, search
for both programs (searching for magick first).
2016-09-07 15:24:10 -06:00
Kenneth Moreland
18390f6a94 Add FAQ on the use of FORCE_DVI for ps and safepdf targets. 2016-04-04 11:57:30 -06:00
Kenneth Moreland
73515335f5 Add documentation for USE_BIBLATEX command. 2016-02-15 23:34:35 -07:00
Kenneth Moreland
1a9d75a3b5 Add test for bibliographies. 2016-02-15 23:22:28 -07:00
Kenneth Moreland
54d2bdfe71 Change BIBLATEX_COMPILER to BIBER_COMPILER
Previously, UseLATEX.cmake was calling latex_needit for the
BIBLATEX_COMPILER variable. However, this variable was never set
because the FindLATEX module sets the BIBER_COMPILER variable instead.
Look for that variable.

Other minor changes include updating the documenting comments and calling
wantit rather than needit on the biber compiler just in case there are
latex installations without it.
2016-02-15 23:19:51 -07:00