From a806ce53d27932dfb59ff15b4f5fa9201ea009d4 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Sun, 1 Apr 2018 23:32:28 -0400 Subject: [PATCH] Add mathjax tag and description fm to equation tests --- test/site/content-org/all-posts.org | 15 ++++++++++++++- test/site/content/posts/equation-latex-frag.md | 3 ++- test/site/content/posts/equations-bf-escaping.md | 3 ++- test/site/content/posts/equations-with-r-c.md | 6 +++++- test/site/content/posts/indented-equations.md | 3 ++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/test/site/content-org/all-posts.org b/test/site/content-org/all-posts.org index a853c92..9951901 100644 --- a/test/site/content-org/all-posts.org +++ b/test/site/content-org/all-posts.org @@ -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)}}} *** =\|= → =\\|= $$ diff --git a/test/site/content/posts/equation-latex-frag.md b/test/site/content/posts/equation-latex-frag.md index 6c03a99..1706013 100644 --- a/test/site/content/posts/equation-latex-frag.md +++ b/test/site/content/posts/equation-latex-frag.md @@ -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 +++ diff --git a/test/site/content/posts/equations-bf-escaping.md b/test/site/content/posts/equations-bf-escaping.md index 537e015..8e38489 100644 --- a/test/site/content/posts/equations-bf-escaping.md +++ b/test/site/content/posts/equations-bf-escaping.md @@ -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 +++ diff --git a/test/site/content/posts/equations-with-r-c.md b/test/site/content/posts/equations-with-r-c.md index 8d8cce0..a8d5b34 100644 --- a/test/site/content/posts/equations-with-r-c.md +++ b/test/site/content/posts/equations-with-r-c.md @@ -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 +++ diff --git a/test/site/content/posts/indented-equations.md b/test/site/content/posts/indented-equations.md index a3bf1d7..cf19023 100644 --- a/test/site/content/posts/indented-equations.md +++ b/test/site/content/posts/indented-equations.md @@ -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 +++