I prefer to split up bigger projects into multiple files, where I use the following "magic comment" to point to the root file:

% !TEX root = ../my-root.tex

Sometimes, I have to search globally for a certain string, hence, in multiple files within the current project. Atom has this neat "Find in Project" feature you can use with cmd + shift + f respectively ctrl + shift + f.

Does TeXShop has something comparable? The standard search dialog only includes the current file.

EDIT: I just found out that this has been on the mailing list at least since 2011. But as far as I can see there is no official issue tracker, where one can check the status of feature requests like this.

  • This answer doesn't work? tex.stackexchange.com/questions/155150/… I suppose from the answer that the normall search behavior will work for all files. But I am not sure about that.
    – koleygr
    Sep 20, 2017 at 15:43
  • @koleygr Unfortunately no, also the question title is a bit confusing. It's about syncing sources to PDF and vice versa if I get it right.
    – beatngu13
    Sep 20, 2017 at 15:46
  • 1
    Unfortunately no, TeXShop doesn't have this functionality.
    – Alan Munn
    Sep 20, 2017 at 15:49
  • @AlanMunn Too bad, but thanks for pointing that out.
    – beatngu13
    Sep 20, 2017 at 15:51

1 Answer 1


Unfortunately TeXShop does not have this functionality (as of v3.88). When I need to do this sort of thing, I use another editor (in my case TextWrangler/BBEdit) but as you note, Atom can also do this, as can other editors, I'm sure.

  • TeXShop doesn't really have a concept of a project so can't do multi-file searches. I wonder if someone can write an applescript (TeXShop Macro) to deal with projects. Sep 20, 2017 at 18:18
  • 1
    @HerbSchulz The concept of project isn't really necessary for multifile search. TextWrangler has multifile search and replace without projects.
    – Alan Munn
    Sep 20, 2017 at 18:42
  • 1
    @HerbSchulz I agree with Alan Munn as I also think that the project concept isn't necessary. Moreover, % !TEX root is already used by TeXShop and could be helpful when implementing such a feature since it gives insights into the project structure.
    – beatngu13
    Sep 20, 2017 at 20:14
  • @beatngu13 : But the root file doesn’t contain that line. The only way to do it right is to recursively look for \input and \include commands. Even that could lead to problems. PS: how do you tell BBEdit/TextWrangler what files to search? Sep 20, 2017 at 20:24
  • 1
    While TeXShop can't do multi-file searches recent versions (latest is 3.88) under macOS Sierra or later can create a tabbed window with all the related files (up to 20) so it can be easy to switch between relevant documents and search. Not the same thing, but... Sep 21, 2017 at 13:37

You must log in to answer this question.

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