Skip to content

BUG: investigate issue in ExecutableBooks/sphinx-exercise (LaTeX) #297

@mmcky

Description

@mmcky

Hi @mmcky,

This appears to be an interesting bug!

When meta tags are used in the solution, as in the example below:

```{code-cell} ipython3
---
mystnb:
  figure:
    caption: Asymptotic bias of Cagan's estimator for different $\lambda$
    name: fig-cagan-bias-lambda
---

The PDF builder produces the following error:

! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.47746 \begin{figure}[htbp]
                            
? 
! Emergency stop.
 ...                                              
                                                  
l.47746 \begin{figure}[htbp]

Removing the tags resolves the issue.

Originally posted by @HumphreyYang in QuantEcon/lecture-python-advanced.myst#319 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions