简体   繁体   中英

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

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?

如果您的意思是这样,则可以使用以下命令与homebrew一起安装:

brew cask install texmaker

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM