Sample Header Ad - 728x90

Open PDF previewer width specific size and position and "always on top" from command line

4 votes
1 answer
2587 views
I'm using latexmk -pdf -pvc to keep compiling my LaTeX files to PDFs while they are displayed in evince. I'm doing that a lot with different files and I keep needing to zoom the PDF content, resize the window and enable "always on top". I like to be able to do this automatically using the command line. Using [-geometry](https://unix.stackexchange.com/a/23281/4245) doesn't work with evince ("Unknown option") and the command line help doesn't say anything about it as well. I tried the preview -w option which gives me a nice sized window, but the automatic update feature I need seems to be disabled in this mode. I'm using Ubuntu 11.10 with the classic desktop and the default window manager. Is there a possibility to set both the size and position as well as "always on top" from the command line for evince (or similar PDF viewer with auto-update)? I think there might be some window manager control tool which can resize and configure windows from the command line. I'm aware of an [evince feature request](https://bugs.launchpad.net/ubuntu/+source/evince/+bug/963356) to add size and position arguments, which would be half the job already, but I don't think it will be implemented soon.
Asked by Martin Scharrer (920 rep)
Apr 21, 2012, 09:05 AM
Last activity: Apr 22, 2012, 11:51 AM