4

I would like to search in my whole source code, which contains a lot of input-commands.

For example, I would like to search for \mathbb{N}, and replace it with \mathbb{M} in every file.

I also would like to spell-check all files at once.

I'm using Texmaker 4.5 on a Mac.

  • 3
    I don't know of any such in build batch-tools in TexMaker/Studio. I use linux as my OS and there is a simple command to search foo and replace it with bar in multiple .tex files: sed -i 's/foo/bar/g' *.tex maybe there is something like that for the other OS too... – audiophiel Jul 31 '16 at 12:55
  • 2
    If you're under Windows, notepad++ can do that in all open files, and also in all the files of a folder (including subfolders). – Bernard Jul 31 '16 at 13:32
  • I'm using a Mac (updated Question) – Ben Jul 31 '16 at 22:06
  • I dont know how to search 'whole source code', but, one document, first, you select the word(s) which you want replace, then you can type ctrl + R, and choose replace all. – minhthien_2016 Aug 1 '16 at 1:28
  • 1
    @audiophiel FYI the sed command is available on Mac as well – Ben Aug 1 '16 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.