[Tex/LaTex] TeXstudio Keep two pdf views of the same tex file

editorstexstudioviewers

Often, I would like to have two different views of the pdf file associated to a tex file.

A typical use case is: you wrote a mathematical paper including several theorems, and the proofs are in an appendix at the end of the paper. To check that the proofs are correct, you often need to go back and forth between the main text containing the theorem statements and the appendix containing the proofs.

A possibility would be to open an external pdf viewer, but this "locks" the file and prevents TeXstudio from compiling and updating the pdf file.

The ideal solution would be to have a three-subwindow split view in TeXstudio, with the source tex file in one subwindow and the pdf file in the other two, so you could see different pages in the two views of the pdf file.

Any ideas?

Best Answer

TeXstudio can have dozens of viewing windows (though I guess about 5 would be more than enough), so unclear as to reason for the question. Here is a dual screen shot with only two open. In addition from ANY of them you can open another external viewer. Here I show SumatraPDF as a lightweight example but it could have been Edge or any PDF handler such as evince Okular etc. Just add your choice to the Options Configure Commands External PDF viewer (simply point it at your executable) then you simply hit the red book Icon in the window you want duplicated.

enter image description here

If you do not want the additional windows to track the same editing position you need to (in that secondary window) toggle Configure > Ignore for synchronisation.

enter image description here

It gets a little more complicated for twin editing windows but the system is basically the same, even if a bit confusing. enter image description here

For other ways to run dual compile using split editor and viewers see
https://tex.stackexchange.com/a/473233/170109 (dual sessions/instances)
https://tex.stackexchange.com/a/472480/170109 (split editor) and
https://tex.stackexchange.com/a/472806/170109 (split editor and viewers)