You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I enclose some code into a .callout that is longer than a page in LaTeX there are no page breaks and we see color leakage such that normal text afterwards is not shown.
Interesting enough, if I actually run the code i.e. #| eval: true there is still no page break but the color leakage is not happening.
Steps to reproduce
---
title: "foo"
---
:::: {.callout-caution icon=false}
## Self implementation
Implement the code yourself by filling out the missing sections:
```{python}#| code-fold: true#| eval: true#| code-summary: "Code fragment for implementation."import numpy as npimport matplotlib.pyplot as plt%config InlineBackend.figure_formats = ["svg"]frequ = 2 * np.pi * 50f = lambda t: 0.8 * np.sin(t * frequ)diod = lambda t: (np.exp(1.2 + t) - 1)t = np.linspace(0, 2 * np.pi / frequ, 1024, endpoint=False)x = np.linspace(np.min(f(t)) * 1.3, np.max(f(t)) * 1.1, 1024)ic = lambda t: diod(f(t))k = np.arange(0, 16) * 1 / 16# The provided figures where used to create the illustationif True: plt.figure() plt.plot(f(t), t) plt.plot([np.min(t),np.max(t)], [0,0], "gray") plt.axis("off") plt.savefig("sin.svg", transparent=True) plt.figure() plt.plot(x, diod(x)) z = np.array([0, np.min(f(t)), np.max(f(t))]) plt.plot(z, diod(z), "bx") plt.axis("off") plt.xlim([-2,5]) plt.gcf().patch.set_visible(False) plt.savefig("diode.svg", transparent=True) plt.figure() plt.plot(t, ic(t)) plt.plot(2*np.pi*k/frequ, ic(2*np.pi*k/frequ), "ro") plt.axis("off") plt.savefig("ic.svg", transparent=True, bbox_inches ="tight")y = ic(k)yhat = (np.fft.fft(y))#Necessary correction factor for the FFTfactor = 1 / 16yy = factor * yhatic_mean = np.mean(ic(np.linspace(0, 1/50, 2**20)))c0 = yy[0].realeffective_value = np.linalg.norm(yy[1:])harmonic_distortion = np.linalg.norm(yy[3:-2])/np.linalg.norm(yy[1:])```
::::
Some text that will not be displayed in the correct color.
Expected behavior
I run:
quarto render file.qmd --to pdf
I expected a pdf to be produced, containing the code spread over multiple pages enclosed in a caution box, also spanning multiple pages and all text in black.
Each of the environments on their own are able to span multiple pages so I assumed a combination should work as well.
Actual behavior
Render works without problem
quarto render file.qmd --to pdf
The output has no page break for the code and the line
Some text that will not be displayed in the correct color.
Is written in white.
Your environment
Ubuntu 24.04
Quarto > 1.6.39 (tested also with latest build on github)
matplotlib to plot the figures for the almost correct version
Quarto check output
quarto check
Quarto 1.7.3
[✓] Checking environment information...
Quarto cache location: ~/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.7.3
Path: /tmp/quartodebug/.venv/lib/python3.12/site-packages/quarto_cli/quarto-1.7.3/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/bin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.3
Path: /tmp/quartodebug/.venv/bin/python3
Jupyter: 5.7.2
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
The text was updated successfully, but these errors were encountered:
Bug description
If I enclose some code into a
.callout
that is longer than a page in LaTeX there are no page breaks and we see color leakage such that normal text afterwards is not shown.Interesting enough, if I actually run the code i.e.
#| eval: true
there is still no page break but the color leakage is not happening.Steps to reproduce
Expected behavior
I run:
I expected a pdf to be produced, containing the code spread over multiple pages enclosed in a caution box, also spanning multiple pages and all text in black.
Each of the environments on their own are able to span multiple pages so I assumed a combination should work as well.
Actual behavior
Render works without problem
The output has no page break for the code and the line
Is written in white.
Your environment
Quarto check output
quarto check Quarto 1.7.3 [✓] Checking environment information... Quarto cache location: ~/.cache/quarto [✓] Checking versions of quarto binary dependencies... Pandoc version 3.4.0: OK Dart Sass version 1.70.0: OK Deno version 1.46.3: OK Typst version 0.11.0: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.7.3 Path: /tmp/quartodebug/.venv/lib/python3.12/site-packages/quarto_cli/quarto-1.7.3/bin [✓] Checking tools....................OK TinyTeX: (not installed) Chromium: (not installed) [✓] Checking LaTeX....................OK Using: Installation From Path Path: /usr/bin Version: 2023 [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.12.3 Path: /tmp/quartodebug/.venv/bin/python3 Jupyter: 5.7.2 Kernels: python3 [✓] Checking Jupyter engine render....OK [✓] Checking R installation...........(None) Unable to locate an installed version of R. Install R from https://cloud.r-project.org/
The text was updated successfully, but these errors were encountered: