Giter Site home page Giter Site logo

rustex's Introduction

RusTeX

RusTeX is a simple command-line utility written in Rust for compiling LaTeX files to PDF format. It provides an easy-to-use interface for converting .tex files into .pdf files using the pdflatex compiler.

Features

  • Compile LaTeX files to PDF format.
  • Minimal setup required.
  • Cross-platform compatibility (works on Windows, macOS, and Linux).

Requirements

  • Rust programming language installed (https://www.rust-lang.org/)
  • LaTeX distribution with pdflatex command (e.g., TeX Live, MiKTeX, BasicTeX, etc.)

Usage

  1. Ensure you have Rust installed on your system by following the instructions on the official Rust website.

  2. Make sure you have a LaTeX distribution installed that includes pdflatex. You can install TeX Live (https://www.tug.org/texlive/) or MiKTeX (https://miktex.org/) for this purpose.

  3. Compile the RustLatex project:

    rustc main.rs
  4. Run the executable with the input LaTeX file and desired output PDF file as arguments:

    ./main input.tex output.pdf

    Replace input.tex with the path to your LaTeX file and output.pdf with the desired name for the output PDF file.

    The output.pdf file will be created in the src directory.

Example

Compile a LaTeX file named example.tex to produce example.pdf:

./main example.tex example.pdf

Warnings

  • You may encounter warnings or errors during the compilation process. These are typically related to the OS itself and not the RusTeX utility.
    • A common warning is "Error moving out PDF file: No such file or directory (os error 2)". This is due to the fact that the PDF file is still being generated when the utility tries to move it. This warning can be safely ignored.

FQA

  • "Why does it generate an .aux and a .log file?"
    • These files are generated by the LaTeX compiler as part of the compilation process. They are used for various purposes such as cross-referencing, citations, and error logging.

Example

Image

This is a brief example of my project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

rustex's People

Contributors

telmo-sousa avatar

Watchers

 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.