TeXworksStop Editor and Viewer Windows from Resizing

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Post Reply
JustA_LaTeXusr
Posts: 42
Joined: Tue Jul 23, 2013 6:48 pm

Stop Editor and Viewer Windows from Resizing

Post by JustA_LaTeXusr »

I use an external editor (Vim) to edit my source files. Every time I save the file from Vim, TeXworks shrinks my editing window and PDF viewing window from full screen to something small. Is there a way prevent this?

This has been crossposted to SourceForge.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Stop Editor and Viewer Windows from Resizing

Post by josephwright »

TeXworks remembers window size and resets it if it detects an external edit. Have you tried opening in TeXworks, resizing to what you want then closing the file so the 'preferred' layout is stored?
Joseph Wright
JustA_LaTeXusr
Posts: 42
Joined: Tue Jul 23, 2013 6:48 pm

Re: Stop Editor and Viewer Windows from Resizing

Post by JustA_LaTeXusr »

Yes, that works wonderfully. Thank you!
JustA_LaTeXusr
Posts: 42
Joined: Tue Jul 23, 2013 6:48 pm

Stop Editor and Viewer Windows from Resizing

Post by JustA_LaTeXusr »

Correction: It only works if you save from TeXworks, which means you have to make a text change within the TeXworks editor first (even if it's just a change followed by undo). Furthermore, when you save, it must be from the TeXworks editor and the preview window must be open to its desired size & location.
JustA_LaTeXusr
Posts: 42
Joined: Tue Jul 23, 2013 6:48 pm

Re: Stop Editor and Viewer Windows from Resizing

Post by JustA_LaTeXusr »

Actually, it doesn't work predictably. The PDF previewer now goes to full screen whenever I write the .tex file from Vim. I thought it might be due to docking, so I made sure the PDF previewer was not docked, made a change in the TeXworks editor, undid the change, saved the .tex file, and exited. I expected the position/size of the windows to be remembered, but they weren't. Odd that it worked earlier.
Post Reply