QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
76 stars 23 forks source link

New paragraph rendering #17

Open natashawatkins opened 6 years ago

natashawatkins commented 6 years ago

I'm confused why this text is not formatting paragraphs correctly

Notice the sentence "Subtracting the demand"

image

willingc commented 6 years ago

Hi @natashawatkins,

A couple of things to try (rst can be pretty picky on spacing):

  1. Try adjusting where the label falls so it looks like:

    .. math::
    :label: eq_old1
  2. I would also move the equation a few lines down to not be on the same line as .. math::.

  3. I would line up the indented equations with the m in .. math::

.. math::
   :label:  eq_old1

   x + y blah blah blah

Hope some of these help.

mmcky commented 6 years ago

hey @natashawatkins. All the suggestions by @willingc are good -- we should have tighter rst syntax. However I think this is a bug in the way we are implementing equation numbering and not providing enough space after inserting the (eq #).

mmcky commented 5 years ago

Anyone know if there is a good RST linter?

willingc commented 5 years ago

@mmcky You might try VS Code. Not necessarily a linter but will give you syntax highlighting. Also when you build, turn on verbose warnings.