CMakeUserUseLATEX: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
[[CMake_User_Contributed_Macros|Back]]
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:
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:


Line 5: Line 7:
* Runs configure on your latex files to replace @VARIABLE@ with the equivalent CMake variable.
* Runs configure on your latex files to replace @VARIABLE@ with the equivalent CMake variable.
* Automatically finds png and eps files and converts them to formats latex and pdflatex understand.
* Automatically finds png and eps files and converts them to formats latex and pdflatex understand.
[[CMake_User_Contributed_Macros|Back]]

Revision as of 15:42, 13 December 2005

Back

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 and makeindex to make bibliographies and/or indexes.
  • Runs configure on your latex files to replace @VARIABLE@ with the equivalent CMake variable.
  • Automatically finds png and eps files and converts them to formats latex and pdflatex understand.

Back