kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
223 stars 37 forks source link

LaTeX fails on systems with large displays #91

Closed cls0 closed 6 years ago

cls0 commented 6 years ago

I'm using a large monitor (actually, two, but one big one @ 2560x1440 is sufficient to cause this issue) and this causes the LaTeX calls to fail (v2.2.0, cadabra2-gtk, Ubuntu 17.10).

I see Output cell too large (breqn dimension too large), output suppressed. See filepCO9hi.tex to debug this. and then find files with geometry includes like \usepackage[dvips,verbose,voffset=0pt,hoffset=0pt,textwidth=634.518mm,textheight=6345.18mm]{geometry} that fail to render only because of the values of textwidth and textheight are so ridiculous. (Changing them to be normal sizes makes everything work just fine.)

If I disable the larger monitor in favour of a 1080p one, the issue immediately goes away.

kpeeters commented 6 years ago

Can you email me info@cadabra.science that filepC09hi.tex (or let it crash again and generate a new one if you have meanwhile deleted it)?

I am running on a 3840x2160 screen so it should be possible, but it may be a combination of factors that triggers the problem.

kpeeters commented 6 years ago

(or attach the file here in github of course).

kpeeters commented 6 years ago

Never mind, I am able to reproduce this with a fully maximised window. Will fix.

kpeeters commented 6 years ago

I have pushed a fix to github. Are you able to build from source or do you need a new binary package?

cls0 commented 6 years ago

Fast work, thanks! I For one of the machines I need to run on, a new binary would be great, but I can build that myself on the other one if need to.

kpeeters commented 6 years ago

I'll run it through the build bot, hang on...

cls0 commented 6 years ago

Great stuff. Can confirm newly built version fixes this issue on the machine I can build on.

kpeeters commented 6 years ago

Deb of github master (2.2.1) for Ubuntu 17.10 now on the download page.

cls0 commented 6 years ago

Thanks for this!

On 18 April 2018 at 10:30, Kasper Peeters notifications@github.com wrote:

Deb of github master (2.2.1) for Ubuntu 17.10 now on the download page.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kpeeters/cadabra2/issues/91#issuecomment-382325384, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKLExhUWpIMZco-rV9mLJ3emGZofF31ks5tpwe-gaJpZM4TZpL7 .