Skip to content

ENH: PDF Figure Sizes and Harmonise HTML and PDF outputs (automatically if possible) #8

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

Open
mmcky opened this issue Dec 10, 2020 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@mmcky
Copy link
Member

mmcky commented Dec 10, 2020

Describe the bug

It looks like we may need to figure out a way to harmonise figure/image sizes between html and pdf outputs.

The following pdf file for https://python-programming.quantecon.org/intro.html using jupyterbook-latex for comparisons.

These figures from the website are very small in the pdf file with corresponding myst:

```{figure} /_static/lecture_specific/about_py/python_vs_matlab.png
```

and tex is:

\begin{figure}[htbp]
\centering

\noindent\sphinxincludegraphics{{python_vs_matlab}.png}
\end{figure}

I am surprised by the big difference given there are no scale parameters being used.

@mmcky mmcky added the bug Something isn't working label Dec 10, 2020
@welcome
Copy link

welcome bot commented Dec 10, 2020

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@mmcky
Copy link
Member Author

mmcky commented Apr 28, 2021

I think we need to look at either:

  1. an automatic scaling factor between html and latex (if possible, to reduce the need for metadata)
  2. enable some metadata for scaling images specifically in latex context.

@mmcky mmcky added this to the v0.4.1 milestone Jun 2, 2021
@mmcky mmcky changed the title [review] PDF Figure Sizes [review] PDF Figure Sizes and Harmonise HTML and PDF outputs (automatically if possible) Jun 2, 2021
@mmcky mmcky changed the title [review] PDF Figure Sizes and Harmonise HTML and PDF outputs (automatically if possible) ENH: PDF Figure Sizes and Harmonise HTML and PDF outputs (automatically if possible) Jun 2, 2021
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

1 participant