QuantEcon / lecture-python-advanced

Source files for https://python-advanced.quantecon.org
BSD 3-Clause "New" or "Revised" License
41 stars 22 forks source link

[hs-recursive-models] FIX: math equation not rendering in full #199

Closed mmcky closed 3 years ago

mmcky commented 3 years ago

The following latex equation in hs_recursive_models.rst doesn appear to be rendering in full

.. math::

   \begin{aligned}
   [\Pi &+ \beta^{1/2} L^{-1} \Lambda (I - \beta^{1/2} L^{-1}
   \Delta_h)^{-1} \Theta_h]^\prime [\Pi + \beta^{1/2} L
   \Lambda (I - \beta^{1/2} L \Delta_h)^{-1} \Theta_h]\\
   &= [\hat\Pi + \beta^{1/2} L^{-1} \hat\Lambda
   (I - \beta^{1/2} L^{-1} \Delta_h)^{-1} \Theta_h]^\prime
   [\hat\Pi + \beta^{1/2} L \hat\Lambda
   (I - \beta^{1/2} L \Delta_h)^{-1} \Theta_h]\end{aligned}

I think this is caused by the extra & alignment character placed int the first equation component.

Current output in HTML:

https://python-advanced.quantecon.org/hs_recursive_models.html#Attaining-a-Canonical-Household-Technology

github-actions[bot] commented 3 years ago

🚀 Deployed on https://6034559935e60b33cd741cc3--cocky-austin-ce446a.netlify.app

mmcky commented 3 years ago

Hmm -- nope that didn't seem to be it

https://60332c15f3ce858e45a019e5--cocky-austin-ce446a.netlify.app/hs_recursive_models.html#Attaining-a-Canonical-Household-Technology

@jstac do you see why this LaTeX is not working properly. It appears to be missing the first half up to ^prime:

[\Pi &+ \beta^{1/2} L^{-1} \Lambda (I - \beta^{1/2} L^{-1}
   \Delta_h)^{-1} \Theta_h]
mmcky commented 3 years ago

@jstac @thomassargent30 this fixes a long equation that was missing a component

https://6034559935e60b33cd741cc3--cocky-austin-ce446a.netlify.app/hs_recursive_models.html#Attaining-a-Canonical-Household-Technology