Skip to content

Commit

Permalink
Load MathJax only when it's neccessary
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoalcarazdelaosa committed Mar 22, 2023
1 parent 3ab6731 commit 750a2c3
Show file tree
Hide file tree
Showing 84 changed files with 176 additions and 87 deletions.
2 changes: 1 addition & 1 deletion config/_default/menus.ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main:
url: tutorials/
identifier: tutorials
weight: 2
- name: $\LaTeX$
- name: LaTeX
parent: tutorials
url: tutorials/latex
weight: 1
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ main:
url: tutorials/
identifier: tutoriales
weight: 3
- name: $\LaTeX$
- name: LaTeX
parent: tutoriales
url: tutorials/latex
weight: 1
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus.es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ main:
url: tutoriales/
identifier: tutoriales
weight: 2
- name: $\LaTeX$
- name: LaTeX
parent: tutoriales
url: tutoriales/latex
weight: 1
Expand Down
2 changes: 1 addition & 1 deletion config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ features:
theme_light: nord
theme_dark: nord
math:
enable: true
enable: false
privacy_pack:
enable: true
repository:
Expand Down
2 changes: 1 addition & 1 deletion content/ca/apuntes-formulacion/organica/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ threedmol: true
---

{{% callout note %}}
Et recomanem fer una ullada a [aquest **projecte** de **Overleaf**](https://www.overleaf.com/read/jgvfsvdnfgcs), el qual alberga el **codi $\LaTeX$** per generar **imatges** de moltes **molècules orgàniques**, cortesia de {{% mention alba-lopez-valenzuela %}}.
Et recomanem fer una ullada a [aquest **projecte** de **Overleaf**](https://www.overleaf.com/read/jgvfsvdnfgcs), el qual alberga el **codi LaTeX** per generar **imatges** de moltes **molècules orgàniques**, cortesia de {{% mention alba-lopez-valenzuela %}}.
{{% /callout %}}

{{% callout note %}}
Expand Down
2 changes: 2 additions & 0 deletions content/ca/apuntes-segundo-bach-quimica/acido-base/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ links:
url: acid-base-poster.pdf

slides: acid-base-2Batx-quimica

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ links:
url: cinetica-quimica-exercicis.pdf

slides: cinetica-quimica-2Batx-quimica

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ links:
url: enllac-quimic-exercicis.pdf

slides: enllac-quimic-2Batx-quimica

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ links:
url: equilibri-quimic-poster.pdf

slides: equilibri-quimic-2Batx-quimica

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ links:
url: estructura-materia-exercicis.pdf

slides: estructura-materia-2Batx-quimica

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ links:
url: sistema-periodic-exercicis.pdf

slides: sistema-periodic-2Batx-quimica

math: true
---

{{% toc %}}
Expand Down
2 changes: 1 addition & 1 deletion content/ca/home/explora.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ subtitle = ""
icon_link = "tutorials/"
icon_pack = "tgs"
name = "[Tutorials](tutorials/)"
description = "[$\\LaTeX$](tutorials/latex) · [Presentació d'informació](tutorials/presentacio-informacio)"
description = "[LaTeX](tutorials/latex) · [Presentació d'informació](tutorials/presentacio-informacio)"

[[feature]]
icon = "enlaces-interes"
Expand Down
6 changes: 3 additions & 3 deletions content/ca/tutoriales/LaTeX/_index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
# Course title, summary, and position.
linktitle: $\LaTeX$
linktitle: LaTeX
url: "/tutorials/latex"
summary: Tutorials de $\LaTeX$.
summary: Tutorials de LaTeX.
weight: 1

# Page metadata.
title: Tutorials de $\LaTeX$
title: Tutorials de LaTeX
draft: false # Is this a draft? true/false
toc: false # Show table of contents? true/false
type: book # Do not modify.
Expand Down
2 changes: 1 addition & 1 deletion content/en/home/explore.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ subtitle = ""
icon_link = "tutorials/"
icon_pack = "tgs"
name = "[Tutorials](tutorials/)"
description = "[$\\LaTeX$](tutorials/latex) · [Presentation of Information](tutorials/presentation-information)"
description = "[LaTeX](tutorials/latex) · [Presentation of Information](tutorials/presentation-information)"

[[feature]]
icon = "enlaces-interes"
Expand Down
2 changes: 1 addition & 1 deletion content/en/home/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ content:
link:
#icon: graduation-cap
#icon_pack: fas
text: Learn $\LaTeX$ in 30 Minutes
text: Learn LaTeX in 30 Minutes
url: 'tutorials/latex/learn-latex-30-minutes/'
- title: 🗞️ News
content: '✍️ Latest Blog Post'
Expand Down
2 changes: 1 addition & 1 deletion content/en/post/AC-Valhalla/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ image:
> Become Eivor, a Viking raider raised to be a fearless warrior, and lead your clan from icy desolation in Norway to a new home amid the lush farmlands of ninth-century England. Find your settlement and conquer this hostile land by any means to earn a place in Valhalla.
England in the age of the Vikings is a fractured nation of petty lords and warring kingdoms. Beneath the chaos lies a rich and untamed land waiting for a new conqueror. Will it be you?

This little summary reminds $\infty$ to the series **Vikings** (you can find it in [Netflix](https://www.netflix.com/title/70301870)), which I strongly recommend you to see if you haven't done it.
This little summary reminds ♾️ to the series **Vikings** (you can find it in [Netflix](https://www.netflix.com/title/70301870)), which I strongly recommend you to see if you haven't done it.

## Features
### Write Your Viking Saga
Expand Down
2 changes: 2 additions & 0 deletions content/en/post/SpaceX-Demo-2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ categories:
image:
placement: 3
caption: "Crédit: **NASA/Bill Ingalls**"

math: true
---

After having to be postponed due to bad weather[^1], last Saturday May 30, at 21:22 peninsular time, the [Falcon 9](https://www.spacex.com/vehicles/falcon-9/) rocket from [SpaceX](https://www.spacex.com) launched the second demonstration mission (Demo-2) of [Crew Dragon](https://www.spacex.com/vehicles/dragon/) from the [Launch Complex 39A (LC-39A)](https://en.wikipedia.org/wiki/Kennedy_Space_Center_Launch_Complex_39A) at the [John F. Kennedy Space Center](https://en.wikipedia.org/wiki/Kennedy_Space_Center) of [NASA](https://www.nasa.gov) in Florida.
Expand Down
4 changes: 3 additions & 1 deletion content/en/post/actualizacion-unidades/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ image:
# icon: file-download
# name: New SI Poster
# url: https://www.cem.es/sites/default/files/files/Poster%20Nuevo-SI.pdf

math: true
---

{{% callout note %}}
If you are not familiar with the **International System of Units (SI)** I recommend you to check out [this page](https://www.bipm.org/en/measurement-units/) of the [_Bureau International des Poids et Mesures_ (BIPM)](https://www.bipm.org/en/about-us/).
If you are not familiar with the **International System of Units (SI)**, I recommend you to check out [this page](https://www.bipm.org/en/measurement-units/) of the [_Bureau International des Poids et Mesures_ (BIPM)](https://www.bipm.org/en/about-us/). You can also take a look at this fantastic collection of [**school posters**](https://www.npl.co.uk/school-posters) from the [**NPL**](https://www.npl.co.uk).
{{% /callout %}}

{{% callout note %}}
Expand Down
2 changes: 2 additions & 0 deletions content/en/post/contraste-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ categories:
image:
placement: 3
caption: Photo by [**Paweł Czerwiński**](https://unsplash.com/@pawel_czerwinski) on [Unsplash](https://unsplash.com)

math: true
---

{{% callout note %}}
Expand Down
6 changes: 3 additions & 3 deletions content/en/tutoriales/LaTeX/_index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
# Course title, summary, and position.
linktitle: $\LaTeX$
linktitle: LaTeX
url: "tutorials/latex"
summary: $\LaTeX$ Tutorials.
summary: LaTeX Tutorials.
weight: 1

# Page metadata.
title: $\LaTeX$ Tutorials
title: LaTeX Tutorials
draft: false # Is this a draft? true/false
toc: false # Show table of contents? true/false
type: book # Do not modify.
Expand Down
6 changes: 3 additions & 3 deletions content/en/tutoriales/LaTeX/curso-basico.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Learn $\LaTeX$ in 30 Minutes
title: Learn LaTeX in 30 Minutes
url: "tutorials/latex/learn-latex-30-minutes"
linktitle: Learn $\LaTeX$ in 30 Minutes
linktitle: Learn LaTeX in 30 Minutes
toc: true
type: book
draft: false
Expand All @@ -11,5 +11,5 @@ weight: 1
---

{{% callout note %}}
Please refer to <img draggable="false" class="icon" style="margin-bottom: 0px;" alt="overleaf" src="/icon/overleaf.svg"> **excellent guide** to [_learn $\LaTeX$ in 30 minutes_](https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes).
Please refer to <img draggable="false" class="icon" style="margin-bottom: 0px;" alt="overleaf" src="/icon/overleaf.svg"> **excellent guide** to [_learn LaTeX in 30 minutes_](https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes).
{{% /callout %}}
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/actividad-cientifica/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ links:
url: tablas-magnitudes-unidades.pdf

slides: actividad-cientifica-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/energia-trabajo-calor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ links:
url: fluidos-energia-calor-frikiexamenes.pdf

slides: energia-trabajo-calor-4ESO

math: true
---

{{% toc %}}
Expand Down
4 changes: 3 additions & 1 deletion content/es/apuntes-cuarto-eso/enlace-quimico/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ links:
name: Frikiexámenes
url: enlace-quimico-frikiexamenes.pdf

slides: enlace-quimico-4ESO
slides: enlace-quimico-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/fluidos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ links:
url: fluidos-energia-calor-frikiexamenes.pdf

slides: fluidos-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/fuerzas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ links:
url: fuerzas-poster.pdf

slides: fuerzas-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 1 addition & 1 deletion content/es/apuntes-cuarto-eso/modelos-atomicos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Siete años después de su famoso experimento, en **1904**, Thomson postula un m
## Descubrimiento del núcleo atómico
En **1911**, **Geiger** y **Marsden**, dirigidos por Ernest **Rutherford**, llevan a cabo un **experimento histórico** en el que **descubren** la existencia del **núcleo** atómico:

{{< figure library="true" src="estructura-atomica-2ESO-3ESO/experimento-Rutherford.svg" title="**Experimento de Geiger-Marsden**. Las partículas alfa ($\alpha$), procedentes de radio (Ra) radiactivo y con carga positiva, se aceleran y se hacen incidir sobre una lámina de oro muy delgada. Tras atravesar la lámina, las partículas $\alpha$ chocan contra una pantalla fluorescente (ZnS), produciéndose un destello. Traducida y adaptada de https://commons.wikimedia.org/wiki/File:Geiger-Marsden_experiment.svg." lightbox="false" width="100%" >}}
{{< figure library="true" src="estructura-atomica-2ESO-3ESO/experimento-Rutherford.svg" title="**Experimento de Geiger-Marsden**. Las partículas alfa (&alpha;), procedentes de radio (Ra) radiactivo y con carga positiva, se aceleran y se hacen incidir sobre una lámina de oro muy delgada. Tras atravesar la lámina, las partículas &alpha; chocan contra una pantalla fluorescente (ZnS), produciéndose un destello. Traducida y adaptada de https://commons.wikimedia.org/wiki/File:Geiger-Marsden_experiment.svg." lightbox="false" width="100%" >}}

### Resultados del experimento
- La **mayoría** de las **partículas atravesaban** la **lámina** de oro sin desviarse.
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/movimientos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ links:
# Otherwise, set `slides = ""`.

slides: movimientos-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/reacciones-quimicas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ links:
# Otherwise, set `slides = ""`.

slides: reacciones-quimicas-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-cuarto-eso/sistema-periodico/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ links:
url: sistema-periodico-frikiexamenes.pdf

slides: sistema-periodico-4ESO

math: true
---

{{% toc %}}
Expand Down
2 changes: 1 addition & 1 deletion content/es/apuntes-formulacion/inorganica/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Algunos ácidos, como los del **B**, **Si**, **P**, **Te** o **I**, pueden conte

[^3]: Sustituyendo el P por As o Sb tenemos los ácidos **arsénico** (H<sub>3</sub>AsO<sub>4</sub>) y **antimónico** (H<sub>3</sub>SbO<sub>4</sub>), respectivamente.

| Elemento | Ácido meta | Ácido + 1$\thinspace$H<sub>2</sub>O | Ácido orto (+2$\thinspace$H<sub>2</sub>O) |
| Elemento | Ácido meta | Ácido + 1&thinsp;H<sub>2</sub>O | Ácido orto (+2&thinsp;H<sub>2</sub>O) |
| :---: | --- | --- | --- |
| B | HBO<sub>2</sub> (metabórico) | H<sub>3</sub>BO<sub>3</sub> (bórico) | &ndash; |
| Si | H<sub>2</sub>SiO<sub>3</sub> (metasilícico) | H<sub>4</sub>SiO<sub>4</sub> (silícico) | &ndash; |
Expand Down
2 changes: 1 addition & 1 deletion content/es/apuntes-formulacion/organica/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Si quieres practicar a **nombrar** y **formular compuestos orgánicos** básicos
{{% /callout %}}

{{% callout note %}}
Te recomendamos echar un vistazo a [este **proyecto** de **Overleaf**](https://www.overleaf.com/read/jgvfsvdnfgcs), el cual alberga el **código $\LaTeX$** para generar **imágenes** de muchas **moléculas orgánicas**, cortesía de {{% mention alba-lopez-valenzuela %}}.
Te recomendamos echar un vistazo a [este **proyecto** de **Overleaf**](https://www.overleaf.com/read/jgvfsvdnfgcs), el cual alberga el **código LaTeX** para generar **imágenes** de muchas **moléculas orgánicas**, cortesía de {{% mention alba-lopez-valenzuela %}}.
{{% /callout %}}

{{% callout note %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-primero-bach/disoluciones/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ links:
url: disoluciones-reacciones-quimicas-frikiexamenes.pdf

slides: disoluciones-1Bach

math: true
---

{{% toc %}}
Expand Down
2 changes: 0 additions & 2 deletions content/es/apuntes-primero-bach/energia-trabajo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ links:

---

Apuntes sobre energía y trabajo, en formato texto y póster (tipo _chuleta_).

{{% callout soon %}}
Próximamente...
{{% /callout %}}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ links:
url: leyes-fundamentales-quimica-frikiexamenes.pdf

slides: leyes-fundamentales-quimica-1Bach

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ links:

slides: movimiento-circular-1Bach

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ links:
# E.g. `slides = "example-slides"` references `content/slides/example-slides.md`.
# Otherwise, set `slides = ""`.
slides: movimiento-parabolico-1Bach

math: true
---

{{% toc %}}
Expand Down
2 changes: 2 additions & 0 deletions content/es/apuntes-primero-bach/reacciones-quimicas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ links:
url: disoluciones-reacciones-quimicas-frikiexamenes.pdf

slides: reacciones-quimicas-1Bach

math: true
---

{{% toc %}}
Expand Down
1 change: 1 addition & 0 deletions content/es/apuntes-segundo-bach-fisica/MAS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ links:

slides: MAS-2Bach-fisica

math: true
---

{{% toc %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ links:

<!-- <iframe src="https://phet.colorado.edu/sims/html/coulombs-law/latest/coulombs-law_es.html" width="800" height="600" scrolling="no" allowfullscreen></iframe> -->

Apuntes sobre campo eléctrico, en formato texto y póster (tipo _chuleta_).

{{% callout soon %}}
Próximamente...
{{% /callout %}}
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ links:

---

Apuntes sobre campo magnético, en formato texto y póster (tipo _chuleta_).

{{% callout soon %}}
Próximamente...
{{% /callout %}}
Loading

0 comments on commit 750a2c3

Please sign in to comment.