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

ANSI escape sequences don't work with PDF outputs #1141

Open
mgeier opened this issue Nov 11, 2019 · 3 comments
Open

ANSI escape sequences don't work with PDF outputs #1141

mgeier opened this issue Nov 11, 2019 · 3 comments
Labels

Comments

@mgeier
Copy link
Contributor

mgeier commented Nov 11, 2019

Example notebooks can be found at https://github.com/spatialaudio/nbsphinx/tree/master/doc

For example, this:

python3 -m nbconvert --execute --to pdf allow-errors-per-cell.ipynb

... produces this:

image

... while it should look a bit more like this (which was produced by nbsphinx's LaTeX output):

image

Those two don't even create PDF files, they lead to some errors during the LaTeX run:

python3 -m nbconvert --to pdf pre-executed.ipynb
python3 -m nbconvert --execute --to pdf code-cells.ipynb

Nbconvert version: master

Possibly related:
#1068, #1071, #1077

@MSeal MSeal added the bug label Nov 11, 2019
@MSeal
Copy link
Contributor

MSeal commented Nov 11, 2019

I'll need to double check what went wrong there, thanks for raising. If you find the offending line for the raises-exception feel free to add the fix in a PR. The LaTeX story is more of a mess and I haven't had time to try and help there for a while.

@aarchiba
Copy link

Could this be fixed by #1181 ?

@mgeier
Copy link
Contributor Author

mgeier commented Feb 10, 2020

@aarchiba Nope. #1181 was only a partial fix. The block traceback_line still has a strip_ansi | escape_latex which should be replaced with escape_latex | ansi2latex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants