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

Widefigure option not compiling in Latex #68

Closed
katie-jones opened this issue Feb 26, 2019 · 1 comment
Closed

Widefigure option not compiling in Latex #68

katie-jones opened this issue Feb 26, 2019 · 1 comment
Labels

Comments

@katie-jones
Copy link
Contributor

Bug Report

Describe the bug

When the "widefigure" option is set to true for a figure, the generated Latex looks something like:

\begin{figure*}...\end{figure}

(note that "figure*" is ended by "figure" with no *). This leads to the error "! LaTeX Error: \begin{figure*} on input line XY ended by \end{figure}." when compiling with pdflatex or with the -pdf option.

To Reproduce

Steps to reproduce the behavior:

  1. Create a notebook with a cell containing an image and the following metadata:
{
  "ipub": {
    "figure": {
      "widefigure": true
    }
  }
}
  1. Run the command: nbpublish -pdf Notebook.ipynb.

Minimal Notebook Example

Test image and notebook.
google
Wide-Figure-Test.txt

Expected Behaviour

A PDF file is generated.

Runtime Information

  • IPyPublish: 0.9.2

  • Python: Python 3.7.2

  • OS: Arch Linux

  • Pandoc: 2.2.3.2

  • (optional for pdf issues) texlive: 3.14159265 (TeX Live 2017)

  • (optional for pdf issues) latexmk: 4.55

Logging

Wide-Figure-Test.nbpub.log

@chrisjsewell
Copy link
Owner

fixed by #69 thanks @katie-jones

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

2 participants