Skip to main content

Build system for LaTeX documents.

Project description

texbuild

texbuild is a build system for LaTeX documents. It provides namespacing for labeled items. Consider a LaTeX document composed of a main file

% main.tex

\documentclass{article}
\begin{document}
This is an equation
\begin{equation}
  f(x) = x \label{equation}
\end{equation}
\input{foo.tex}
Let's refer to Equation~(\ref{equation}).
\end{document}

which includes a subordinate file

% foo.tex

\begin{equation}
  f(x) = x^2 \label{equation}
\end{equation}

In this situation, \ref{equation} is ambiguous because both files use \label{equation} and the namespace for labeled items in LaTeX is global. texbuild fixes this by supporting import semantics:

% main.tex

% -- begin imports --
% import foo as foo
% -- end imports --

\documentclass{article}
\begin{document}
This is an equation
\begin{equation}
  f(x) = x \label{equation} % export
\end{equation}
\input{foo.tex}
We can refer to foo's Equation~(\ref{foo.equation}) or our own Equation~(\ref{equation}).
\end{document}

and

% foo.tex

\begin{equation}
  f(x) = x^2 \label{equation} % export
\end{equation}

Example

To see texbuild in action, install it and use it to build the example LaTeX documemt provided in this repo, by following these steps:

$ pip install texbuild
$ git clone https://github.com/DanielSank/texbuild
$ cd texbuild/example
$ texbuild

This produces `texbuild/example/texbuild-out/main.pdf`, which illustrates the use of `texbuild`.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

texbuild-0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

texbuild-0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file texbuild-0.3.tar.gz.

File metadata

  • Download URL: texbuild-0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for texbuild-0.3.tar.gz
Algorithm Hash digest
SHA256 c60cdb7782051e54554202525462d6fbece356fc4e68fdd604a3953452e280b3
MD5 c2ec89a8e12fb87f15679e7018bdc65e
BLAKE2b-256 148329cdf45d5777506c123fb7ca5ec3e5c0a5e0f0830cf4a386a68d173bb8b7

See more details on using hashes here.

File details

Details for the file texbuild-0.3-py3-none-any.whl.

File metadata

  • Download URL: texbuild-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for texbuild-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62f1841fb117cb893b358d40b97113ae950505667eb57eb7cda71a3a2d7e3f99
MD5 2b966e9ad0f63251fbbc6f12d276d89a
BLAKE2b-256 3a92235b2848643fb5e9d95eb3d959899cbdf392fb71f3b780894953b8dd6fa6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page