Skip to main content
PyPi package version Travis CI build status https://ci.appveyor.com/api/projects/status/github/ptomulik/scons-tool-texas?svg=true

This is a SCons tool (set) named TeX Automated with SCons (TeXAS). It wraps several SCons builders with the aim of simplifying compilation of TeX projects. It brings several features, that you may find useful:

  • compact syntax,

  • consistent interface between builders provided by TeXAS,

  • oriented towards compiling named “projects”,

  • automatic generation of SCons aliases for predefined targets,

  • automatic deduction of target file names based on project name,

  • builders for creating tarballs with document sources,

  • support for VariantDir,

INSTALLATION

There are few ways to install this tool for your project.

From pypi

This method may be preferable if you build your project under a virtualenv. To add texas tool from pypi, type (within your wirtualenv):

pip install scons-tool-loader scons-tool-texas

or, if your project uses pipenv:

pipenv install --dev scons-tool-loader scons-tool-texas

Alternatively, you may add this to your Pipfile

[dev-packages]
scons-tool-loader = "*"
scons-tool-texas = "*"

The tool will be installed as a namespaced package sconstool.texas in project’s virtual environment. You may further use scons-tool-loader to load the tool.

As a git submodule

  1. Create new git repository:

    mkdir /tmp/prj && cd /tmp/prj
    touch README.rst
    git init
  2. Add the scons-tool-texas as a submodule:

    git submodule add git://github.com/ptomulik/scons-tool-texas.git site_scons/site_tools/texas
  3. For python 2.x create __init__.py in site_tools directory:

    touch site_scons/site_tools/__init__.py

    this will allow to directly import site_tools.texas (this may be required by other tools).

USAGE EXAMPLE

Assume you have a paper named 'foo' which compiles from single source foo.tex. The paper’s current version is 1.0. The source file foo.tex includes bar.tex which, in turn, includes bar.eps image. You’re unsure, whether LaTeX scanner adds bar.eps to implicit dependencies or not. To compile paper and distribute its sources (for editorial manager e.g.) you may write simple SCons script:

# SConstruct
env = Environment(tools = ['texas'])
dvi = env.TeXASDVI('foo', version = '1.0', dvi_deps = ['bar.eps'])
src = env.TeXASRmDup( dvi[0].children() )
tar = env.TeXASTarGz('foo', src, version = '1.0')

You may compile entire project, or just parts of it:

scons -Q         # build all (papers)
scons -Q foo-dvi # Build only foo-1.0.dvi
scons -Q foo-tgz # Create only the source tarball foo-1.0.tar.gz
scons -Q foo     # Build paper 'foo' (there may be more in the source tree)

For more examples, see user manual (see the section GENERATING DOCUMENTATION).

PREREQUISITES

To perform certain activities, you may need the following packages (listed per task).

TO GENERATE API DOCUMENTATION

TO GENERATE USER DOCUMENTATION

GENERATING DOCUMENTATION

Scons gnuplot tool has an API documentation and user manual. The documentation may be generated as follows (see also REQUIREMENTS).

API DOCUMENTATION

To generate API documentation type:

pipenv run scons api-doc

The generated API documentation will be written to build/doc/api/.

USER MANUAL

To generate user manual type:

pipenv run scons user-doc

The generated documentation will be written to build/doc/user/.

LICENSE

Copyright (c) 2013-2020 by Paweł Tomulik

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Metadata

Release files for scons-tool-texas 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scons-tool-texas 0.2.0
File Size Uploaded
scons-tool-texas-0.2.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scons-tool-texas 0.2.0
File Interpreter ABI Platform
scons_tool_texas-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / scons-tool-texas-0.2.0.tar.gz

Download URL scons-tool-texas-0.2.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
439536d0652fdcdeb53825cbba8b4ef4c597332e203d50b28ab7e0fdbb4ceb38
BLAKE2b-256 checksum
How to use checksums
66b184dc19186967cf42cbbe84b135f7a578b2c65f7c24c2d8ff28121528f24c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / scons_tool_texas-0.2.0-py3-none-any.whl

Download URL scons_tool_texas-0.2.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c22f75ed3be333c8055908b0589606470a88102b61484950b82a0c069ee21d5
BLAKE2b-256 checksum
How to use checksums
f8007b81fb6faa601c1c070a96a99a48a6d0bbe957289450e93c07478b019b67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page