sphinxcontrib-jupyter icon indicating copy to clipboard operation
sphinxcontrib-jupyter copied to clipboard

Check .. download directive for PDF pipeline

Open mmcky opened this issue 6 years ago • 0 comments

From QuantEcon.lectures

The PDF file ignores the :download: directive. For now a temporary solution is to specify a latex only alternative that links to our hosted pdf file that lives in _static/_downloads and is generated by the html compilation step.

.. only:: html

    We begin by discussing an example of a Bewley model due to :download:`Rao Aiyagari <{{ pdfs_dir }}/aiyagari_obit.pdf>`

.. only:: latex

    We begin by discussing an example of a Bewley model due to `Rao Aiyagari <{{ download_web_dir }}/aiyagari_obit.pdf>`__    

mmcky avatar Aug 25 '19 04:08 mmcky