Add mathjax tag and description fm to equation tests

master
Kaushal Modi 8 years ago
parent ab0ccf2e8e
commit a806ce53d2
  1. 15
      test/site/content-org/all-posts.org
  2. 3
      test/site/content/posts/equation-latex-frag.md
  3. 3
      test/site/content/posts/equations-bf-escaping.md
  4. 6
      test/site/content/posts/equations-with-r-c.md
  5. 3
      test/site/content/posts/indented-equations.md

@ -2732,12 +2732,15 @@ C = W\log_{2} (1+\mathrm{SNR})
\end{equation}
*Here we refer to equation \ref{eq:1}.*
* Equations :equations:
* Equations :equations:mathjax:
** Inline equations
:PROPERTIES:
:EXPORT_FILE_NAME: equation-latex-frag
:EXPORT_DATE: 2017-07-31
:END:
#+begin_description
Inline and /one-per-line/ equations
#+end_description
- Inline equations are wrapped between =\(= and =\)=.
- =$= wrapping also works, but it is not preferred as it comes with
restrictions like "there should be no whitespace between the
@ -2781,6 +2784,10 @@ $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \]
:PROPERTIES:
:EXPORT_FILE_NAME: equations-with-r-c
:END:
#+begin_description
Test to check that ®, © and ™ don't get interpreted
within equations.
#+end_description
{{{oxhugoissue(104)}}}
Below, =(r)= or =(R)= should not get converted to ®, =(c)= or
@ -2809,6 +2816,9 @@ $$ (tm) (TM) $$
:PROPERTIES:
:EXPORT_FILE_NAME: indented-equations
:END:
#+begin_description
Testing equations with mathjax --- indented or not.
#+end_description
*** No indentation
\begin{equation}
\label{eq:1}
@ -2834,6 +2844,9 @@ one, but:
:PROPERTIES:
:EXPORT_FILE_NAME: equations-bf-escaping
:END:
#+begin_description
Test to check that the backslashes are correctly escaped.
#+end_description
{{{oxhugoissue(138)}}}
*** =\|= → =\\|=
$$

@ -1,7 +1,8 @@
+++
title = "Inline equations"
description = "Inline and _one-per-line_ equations"
date = 2017-07-31
tags = ["equations"]
tags = ["equations", "mathjax"]
draft = false
+++

@ -1,6 +1,7 @@
+++
title = "Blackfriday-specific escaping in equations"
tags = ["equations", "escaping", "blackfriday"]
description = "Test to check that the backslashes are correctly escaped."
tags = ["equations", "mathjax", "escaping", "blackfriday"]
categories = ["upstream"]
draft = false
+++

@ -1,6 +1,10 @@
+++
title = "Equations with (r), (c), .."
tags = ["equations"]
description = """
Test to check that ®, © and ™ don't get interpreted
within equations.
"""
tags = ["equations", "mathjax"]
categories = ["upstream"]
draft = false
+++

@ -1,6 +1,7 @@
+++
title = "Indented equations block"
tags = ["equations", "indented"]
description = "Testing equations with mathjax --- indented or not."
tags = ["equations", "mathjax", "indented"]
draft = false
+++

Loading…
Cancel
Save