Skip to main content

Dvipdfm tool for SCons

Project description

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

This is dvipdfm tool for SCons. It is derived from the dvipdf tool present in SCons core. The code has been adapted to enable usage of dvipdfm program.

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 dvipdfm tool from pypi, type (within your wirtualenv):

pip install scons-tool-loader scons-tool-dvipdfm

or, if your project uses pipenv:

pipenv install --dev scons-tool-loader scons-tool-dvipdfm

Alternatively, you may add this to your Pipfile

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

The tool will be installed as a namespaced package sconstool.dvipdfm 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-dvipdfm as a submodule:

    git submodule add git://github.com/ptomulik/scons-tool-dvipdfm.git site_scons/site_tools/dvipdfm
  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.dvipdfm (this may be required by other tools).

Usage examples

Converting existing *.dvi file to *.pdf:

# SConstruct
env = Environment(tools=['dvipdfm'])
env.DVIPDFM('foo.dvi')

Compiling LaTeX document to *.dvi and generating *.pdf file with the DVIPDFM builder (note, the tex or default tool(s) must be loaded):

# SConstruct
env = Environment(tools=['tex', 'dvipdfm'])
env.DVIPDFM('foo.tex')

Construction variables

The following construction variables may be used to configure the DVIPDFM builder:

Variable

Description

DVIPDFM

the dvipdfm executable

DVIPDFMFLAGS

additional flags to dvipdfm

DVIPDFMCOM

complete commandline for dvipdfm

DVIPDFMSUFFIX

suffix for target files, by default .pdf

LICENSE

Copyright (c) 2013-2018 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

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

scons-tool-dvipdfm-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scons_tool_dvipdfm-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file scons-tool-dvipdfm-0.1.0.tar.gz.

File metadata

  • Download URL: scons-tool-dvipdfm-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for scons-tool-dvipdfm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 710aa25d04f8d1f5403e9e3f4f4c9c4a1ff821c9e120e6a8216307e0e2e3a9f0
MD5 d32f724b7d8e2000ccd14268bc9c373f
BLAKE2b-256 d64d130ee203478f0ba02664ddbd23d697ef1cec0d71ab6f6f1dfcbf807aa926

See more details on using hashes here.

File details

Details for the file scons_tool_dvipdfm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scons_tool_dvipdfm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for scons_tool_dvipdfm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05c7fbefbb38b41f30ab7f502916c670cca711b5c47eb6c3eebd55b4a44e5398
MD5 8472e643f46ba503d4135a63679858f5
BLAKE2b-256 d51dd3e10ef581546d3764f8b2ef96123e69e14c6a7bae1c0f982929309be2c0

See more details on using hashes here.

Supported by

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