Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use with utf8 string #15

@Alexis-benoist

Description

@Alexis-benoist

I'm trying to use this package to call latex using a utf8 string.

I need to make something python 2 and 3 compatible.

Here is the repo and traceback:

        def test_cli_pdf(tmpdir):
            from catex.cli import _cli
            tmp_file = tmpdir.join("test.pdf")
            files = ["tests/data/latex1.tex", "tests/data/latex2.tex"]
    >       _cli(files, tmp_file.strpath)
    tests/test_cli.py:6: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    .tox/py33-test/lib/python3.3/site-packages/catex/cli.py:22: in _cli
        pdf = build_pdf(text)
    .tox/py33-test/lib/python3.3/site-packages/latex/build.py:206: in build_pdf
        return builder.build_pdf(source, texinputs)
    <decorator-gen-2>:2: in build_pdf
        ???
    .tox/py33-test/lib/python3.3/site-packages/data/decorators.py:82: in _
        return f(*bvals.args, **bvals.kwargs)
    .tox/py33-test/lib/python3.3/site-packages/latex/build.py:164: in build_pdf
        raise_from(LatexBuildError(base_fn + '.log'), e)
    .tox/py33-test/lib/python3.3/site-packages/latex/exc.py:15: in __init__
        self.log = open(logfn).read()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions