No description
Find a file
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
tests Fix issues with paths that contain spaces 2017-08-21 15:12:38 -06:00
.gitignore Add support for biblatex/biber 2016-02-12 23:43:44 +00:00
CMakeLists.txt Change BIBLATEX_COMPILER to BIBER_COMPILER 2016-02-15 23:19:51 -07:00
README Added a README file. 2010-04-05 16:42:23 -06:00
UseLATEX.cmake Fix issue with converting synctex paths 2018-04-30 11:29:58 -06:00
UseLATEX.tex Fix issue with converting synctex paths 2018-04-30 11:29:58 -06:00

Compiling LaTeX files into readable documents is actually a very involved
process.  Although CMake comes with FindLATEX.cmake, it does nothing for
you other than find the commands associated with LaTeX.  I like using CMake
to build my LaTeX documents, but creating targets to do it is actually a
pain.  Thus, I've compiled a bunch of macros that help me create targets in
CMake into a file I call "UseLATEX.cmake".  Here
are some of the things UseLATEX.cmake handles:

* Runs LaTeX multiple times to resolve links.

* Can run bibtex, makeindex, and makeglossaries to make bibliographies,
  indexes, and/or glossaries.

* Optionally runs configure on your latex files to replace @VARIABLE@ with
  the equivalent CMake variable.

* Automatically finds png, jpeg, eps, and pdf files and converts them to
  formats latex and pdflatex understand.

This repository contains the CMake macros in the UseLATEX.cmake file.  To
get started, copy this file to your own LaTeX project and include it in
your build process.

You will also find a LaTeX document, UseLATEX.tex, that contains all of the
documentation for UseLATEX.cmake.  You will also find a CMake build file,
CMakeLists.txt, that uses UseLATEX.cmake to build UseLATEX.tex.  It also
serves as a good example for using UseLATEX.cmake.

You can find the latest information on UseLATEX.cmake on the CMake Wiki at
the following URL.

    http://www.cmake.org/Wiki/CMakeUserUseLATEX