Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with utf8 string #15

Open
Alexis-benoist opened this issue Jul 28, 2016 · 0 comments
Open

Use with utf8 string #15

Alexis-benoist opened this issue Jul 28, 2016 · 0 comments

Comments

@Alexis-benoist
Copy link

Alexis-benoist commented Jul 28, 2016

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant