[Tex/LaTex] Is it possible to display code twice on the screen in TeXMaker

texmaker

I want to make some large reordering of my text, wich means a lot of copy/paste work between distant chapters. I was wondering if it is possible to make TexMaker display the source viewer twice on my Screen, one next to the other, maybe instead of the Pdf viewer. Then I could have both relevant spots in my document on screen and easily copy-paste content without scrolling my finger into oblivion. It would have to be possible to scroll both sourceviewers independently.

Best Answer

Use the Source Viewer panel

As of texmaker 4.1.1, viewing two source files side by side, both of them in read/write mode, is not possible. However, texmaker allows you to open one source file in read- only mode in its so-called Source Viewer panel, precisely for easy copying & pasting between that file and other source files open in regular, read/write mode. The screenshot below is taken from the official texmaker page.

enter image description here

To open a file in read-only mode, simply click the Source Viewer button (located at the bottom left of the screen), press the Open icon in the Source Viewer that just opened, and browse for the file in question. This video shows the steps to follow.

To answer your question more specifically, nothing prevents you from having the same source file open in read/write mode (on the left) and in read-only mode (in the Source Viewer panel, on the right) at the same time.

Additional tips for quick navigation

  • Use the keyboard shortcut for cycling through the open documents; by default, on my Mac, that shortcut is Alt + Dn.
  • Use bookmarks (see Texmaker 1 2 3 buttons) to rapidly jump to different parts of a file; you can define up to three bookmarks per open tex file, and then access them by pressing the corresponding buttons (1,2, or 3).
Related Question