Giter VIP home page Giter VIP logo

uselatex's Introduction

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.

Download

The files can be downloaded directly from the UseLATEX project page. If you are viewing this from a web page, you can follow the following links.

Repository

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.

There has been some requests to incorporate UseLATEX.cmake into the CMake repository and distribution. Nobody thinks this is a bad idea, but it hasn't yet happened mostly out of laziness. Keep bugging me to show interest in moving UseLATEX.cmake. (See the author contact information at the top of UseLATEX.cmake.)

Inkscape support

By default, convert from ImageMagick is used to convert svg to pdf, which ruins the quality. If you need to convert using inkscape instead, you can use this cmake file. By default, it passes -D -A flags to inkscape which converts the drawing area (-D) of the svg into PDF (-A image.pdf). If you need to export it differently, modify the flags in the UseLATEX.cmake file (seach for inkscape).

TODO

  • Add support for gnuplot

uselatex's People

Contributors

arkivm avatar anatolyborodin avatar gruenich avatar jschueller avatar devsolar avatar themarix avatar miyulz avatar pjknowles avatar taketwo avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.