executablebooks / jupyter-book

Create beautiful, publication-quality books and documents from computational content.
http://jupyterbook.org
BSD 3-Clause "New" or "Revised" License
3.76k stars 652 forks source link

Problem with myst titles in jupyter notebook #2098

Open davidcb98 opened 5 months ago

davidcb98 commented 5 months ago

Hi,

the first cell of my notebook is:

---
title: Vectores
license: CC-BY-4.0
github: https://github.com/executablebooks/mystmd
subject: Curso
venue: Quantum Spain
math:   
    '\i': '{\color{blue}{i}}'
    '\bes': '\begin{equation*}'
    '\ees': '\end{equation*}'
    '\O': '{\mathcal O}'
    '\Lin': '\hbox{Lin}'
    '\Hil': '{\mathcal H}'
    '\bra[1]': '{\langle #1|}'
    '\ket[1]': '{|#1\rangle}'
    '\braket[2]': '{\langle #1|#2\rangle}'
    '\R': '{\mathbb R}' 
    '\C': '{\mathbb C}'
    '\V': '{V}'
abbreviations:
    MyST: Markedly Structured Text
    TLA: Three Letter Acronym
---

As I am using jupyterlab and the extension jupyterlab-myst in my JupyterLab server I see the correct output.

However, when I build my webside with jupyterbook, this happens

image

Does anyone know how to solve this? I would like the cell to remain that way, as it is the only way I found to be able to define latex macros in Jupyterlab (JupyterNotebook methods do not work).

agoose77 commented 5 months ago

Could you share the notebook file? It would be helpful in identifying the cause of the problem!

davidcb98 commented 5 months ago

Hello, I attach it. Thank you, David

01_Vectores.zip