37

I would like to open two .tex files in TeXstudio side by side. I can image two possible answers, but I did not figure out how to exactly do it:

  1. Find a split screen button in TeXstudio (like in kate for example).
  2. Open a second instance of TeXstudio . When I do this in Linux, the old TeXstudio window gets focused but no new Window appears.

What can I do?

2

6 Answers 6

13

Split screen is supported in TeXstudio since update hg 5927 (0ce664cc1a7e) in 2016-03.

You can split the screen by right clicking on the file tabs and selecting the appropriate options.

Editing multiple files with split screen view

Two Tex Files!

3
  • 9
    How did you make it to display the same file side-by-side? Jan 1, 2018 at 16:18
  • @Christoph90 I am interested too in knowing the method. Jul 9, 2018 at 6:56
  • i use: TeXstudio 2.11.2 and i cannot unsplit it, but have to reopen editor. horror
    – droid192
    Mar 29, 2019 at 14:34
19

On windows I managed to have two TeXstudio sessions in two different processes by modifying the program shortcut (I keep mine on the taskbar) with what Tim Hoffmann said: you have to right click on the shortcut, go to properties and then on the shortcut tab you have to add --start-always in the Target field.

The shortcut's Target field should look like this:

"C:\Program Files (x86)\TeXstudio\texstudio.exe" --start-always

Note that there is a space between the " and --! That is important!

Now all you have to do is start the program twice and work on two different files. I suspect that working on the same file twice will create problems with the auxiliary files so one should be a bit careful. I work on two different TeX files in the same directory but they have different names so there is no overlap.

I have no idea how to do this in Linux but I suspect something similar should be possible!

1
11

Split screen is now supported since 2.11.0. Use the options from the context menu of the tab.

Split screen is currently not supported.

You can use the option --start-always to open multiple instances of TXS. See the manual. Note: all instances save their settings to the same location when exiting, so the settings of the last close instance will persist.

2
  • A bit late, but I will give it a try. Can you please tell where exactly do I have to add this command? Jul 2, 2015 at 6:51
  • @user2536125 I've added an answer that tells how to do it since no one is willing to share it.
    – Mayou36
    Jun 14, 2019 at 11:10
6

None of the answer actually tell what to do:

View a file in parallel:
right click on tab -> "move to other view"

Change the split style:
right click on tab -> "split horizontally/vertically"

2
  • Yes, you're right, I've misread that. Thanks for the correction, I've removed the comments.
    – Mayou36
    Jun 14, 2019 at 11:32
  • In my version 4.4.2 there is only split horizontally! How can I split vertically Jun 4, 2023 at 7:38
5

In Linux:

cp /usr/share/applications/texstudio.desktop ~/.local/share/applications/
nano ~/.local/share/applications/texstudio.desktop

change Exec=texstudio %F to Exec=texstudio --start-always %F, save with CTRL+o, exit with CTRL+x.

Background: By using a user-level copy of the system-wide .desktop file, we make sure our change is not overwritten on updates. The one in /usr does not need to be deleted because user-level .desktop files have a higher priority.

4
  • 1
    I know this is two years old, but thanks so much! This was exactly the fix I was looking for. Except I use Exec=texstudio --start-always %F. This variant gives me better behavior when opening files with spaces in the name. Using Kubuntu 18.04.
    – Kaya Arro
    May 6, 2018 at 20:53
  • 1
    @KyleFerendo Then you may want to check this out: sourceforge.net/p/texstudio/feature-requests/964
    – ppq
    May 8, 2018 at 6:48
  • @KyleFerendo s version worked for me, while the original answer didn't.
    – MaxD
    Apr 9, 2022 at 8:55
  • Great suggestion. Works flawlessly and needs no administrator privileges.
    – gpr1
    Apr 15, 2023 at 7:12
3

In Linux: Open a terminal and type: texstudio --start-always

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .