How to open a tex file in Texmaker from terminal in MacOS?

1.3k Views Asked by At

In Ubuntu I could simply run from the terminal:

texmaker file.tex

which opened my tex file in Texmaker. In MacOS, the texmaker command is not found, even though I have Texmaker installed.

How can I achieve this in MacOS? Is there an equivalent command?

2

There are 2 best solutions below

0
On BEST ANSWER

Once Texmaker is installed, you can add:

alias texmaker="open -a texmaker"

to your .profile. From now on, it should be possible to simply run from the command line:

texmaker file.tex

at the location where the file.tex is.

0
On

If you mean this then you can install it with homebrew using this command:

brew cask install texmaker