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

modify classic_mod.tplx to adjust images properly #16

Open
jonsedar opened this issue Mar 19, 2021 · 0 comments
Open

modify classic_mod.tplx to adjust images properly #16

jonsedar opened this issue Mar 19, 2021 · 0 comments
Assignees

Comments

@jonsedar
Copy link
Contributor

nbconvert 5.6.1

Regular latex template has images too large:

\adjustimage{max size={0.9\linewidth}{0.9\paperheight}}{((( filename )))}

I want to override using classic_mod.tplx, something like

((*- block figure -*))
    ((( super() )))
    %\renewcommand{\adjustimage}{max size={0.5\linewidth}{0.5\paperheight}}{((( filename )))}
((*- endblock figure -*))

but nothing I try works. Instead have manually hacked

/Users/jon/opt/anaconda3/envs/freberg_trk/lib/python3.8/site-packages/nbconvert/templates/latex/document_contents.tplx

with line:

\adjustimage{max size={0.9\linewidth}{0.3\paperheight}}{((( filename )))}

which is poor form!

@jonsedar jonsedar self-assigned this Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant