math teaser

13 views
Skip to first unread message

Keith Fredericks

unread,
Jul 13, 2017, 4:18:06 AM7/13/17
to nikola-discuss
I want to create a post with math embedded in reStructuredText using

INDEX_TEASERS = True

in my conf.py file and a post consisting of

-----------------------
.. title: math tease
.. slug: math-tease
.. date: 2017-07-13 08:03:50 UTC
.. tags: mathjax
.. category:
.. link:
.. description:
.. type: text

:math:`E=mc^2`.

.. TEASER_END

.. math::

   \frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
   1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
   {1+\frac{e^{-8\pi}} {1+\ldots} } } }

----------------------

Math before the TEASER_END is rendered fine, but when you hit 'read more' you get the raw latex.

I am using Nikola v7.8.9.  Is there a way to get this to work?

-keith

Chris Warrick

unread,
Jul 13, 2017, 5:13:41 AM7/13/17
to Nikola—Discuss
1. What theme are you using?
2. What renderer are you using? KaTeX doesn’t seem to like the
\begin{equation*} syntax that reST outputs.
--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Keith Fredericks

unread,
Jul 13, 2017, 7:00:11 AM7/13/17
to nikola-...@googlegroups.com
foundation6 and MathJax.  I just tried it with bootstrap3 and it works.  Thanks.

-keith

-- 
You received this message because you are subscribed to a topic in the Google Groups "nikola-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nikola-discuss/eb-yCxNMDIM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nikola-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages