Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cake_eating_problem] duplicate labels and citation issue #71

Open
mmcky opened this issue Mar 28, 2020 · 6 comments
Open

[cake_eating_problem] duplicate labels and citation issue #71

mmcky opened this issue Mar 28, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mmcky
Copy link
Contributor

mmcky commented Mar 28, 2020

lecture-python-intro/source/rst/cake_eating_problem.rst:190: WARNING: duplicate label of equation bellman, other instance in cake_eating_numerical
lecture-python-intro/source/rst/cake_eating_problem.rst:353: WARNING: duplicate label of equation euler, other instance in cake_eating_numerical
lecture-python-intro/source/rst/cake_eating_problem.rst:393: WARNING: citation not found: ma2020income
@mmcky mmcky added the bug Something isn't working label Mar 28, 2020
@najuzilu
Copy link
Contributor

I can't find ma2020income in the previous version of the qe bib file.
Also, is it possible to display an equation through referencing? I can't seem to find it in the documentation.

@mmcky
Copy link
Contributor Author

mmcky commented Mar 29, 2020

hey @najuzilu hmm -- do you know which paper that tag might be referring to?

Also not sure what you mean by "possible to display an equation through referencing"?

@najuzilu
Copy link
Contributor

Hm no idea. I tried to do a simple search but got nowhere.

The bellman equation is labeled in two different files; in cake_eating_problem.rst:

.. math::
    :label: bellman

    v(x) = \max_{0\leq c \leq x} \{u(c) + \beta v(x-c)\}
    \quad \text{for any given } x \geq 0.

Also in cake_eating_numerical.rst:

.. math::
    :label: bellman

    v(x) = \max_{0\leq c \leq x} \{u(c) + \beta v(x-c)\}
    \quad \text{for all } x \geq 0.

What's the optimal way to do show this eq without copy-pasting it in the second file?

@mmcky
Copy link
Contributor Author

mmcky commented Mar 29, 2020

@jstac do you know what paper citation label ma2020income refers to?

@najuzilu there is no simple way other than to include in a separate file in source/_static but that isn't advised for equations. The labels should be made unique by adding:

bellman-cep for cake_eating_problem and
bellman-cen for cake_eating_numerical

along with updated references to the label in the text respectively.

@jstac
Copy link
Contributor

jstac commented Mar 29, 2020

Thanks guys. The ref is

@article{ma2020income,
  title={The income fluctuation problem and the evolution of wealth},
  author={Ma, Qingyin and Stachurski, John and Toda, Alexis Akira},
  journal={Journal of Economic Theory},
  volume={187},
  pages={105003},
  year={2020},
  publisher={Elsevier}
}

@mmcky
Copy link
Contributor Author

mmcky commented Mar 30, 2020

@najuzilu I will setup a PR to add this to the bib file. I need it merged to see if pdf build is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants