I was using TeXworks 0.6.2 to edit LaTeX files under Ubuntu Linux 18.04 (using Gnome with X11). Suddenly, a file that I had edited before would always open in a strange way. The preview window with the PDF would open normally. But the editor opened maximized without a titlebar, window border etc. So there was no way to minimize the editor window.
I tried to minimize the window using keyboard commands and the Window-Menu of the TeXworks editor. I managed to move the window to a different screen using keyboard commands, but still maximized without a titlebar. The window menu also did not work. Restarting TeXworks also did not help. Other files would open normally.
What finally helped: File / Remove Aux Files…
Afterwards, restart TeXworks.
I did not know that TexWorks stores window status information in aux-files. But it seems it does, as deleting these files solved the problem.
If this tip saved your day, please drop a comment. This motivates me to keep writing these kind of posts.
LaTeX: multiline comments
You often want to out-comment some stuff while writing a LaTeX document very quickly, and LaTeX does only offer single-line comments out of the box:
Of course this can get a lot of work if you do this manually for a lot of lines. There might be editors that ease this, but I just found a very easy way to achieve multiline-comments using the verbatim package:
You can now just have multiline comments like this:
Very easy. I knew there had to be a package for that. I was just too lazy to search for it up to now.
Discussion Forum