Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/emacs/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Emacs 如何在终端中使用参数打开应用程序(由macports安装)_Emacs_Terminal_Macports_Tex - Fatal编程技术网

Emacs 如何在终端中使用参数打开应用程序(由macports安装)

Emacs 如何在终端中使用参数打开应用程序(由macports安装),emacs,terminal,macports,tex,Emacs,Terminal,Macports,Tex,我的操作系统是Macosx 10.10 我在macports安装okular。 我可以使用open-a-okular 但是,当我使用open-a okula--unique homography_20151023.pdf#src:88homography_20151023.tex时,什么都没发生,为什么 更新:2015-10-25 我发现okular位于“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”中 那么。 我在zs

我的操作系统是Macosx 10.10

我在macports安装okular。 我可以使用
open-a-okular
但是,当我使用
open-a okula--unique homography_20151023.pdf#src:88homography_20151023.tex
时,什么都没发生,为什么

更新:2015-10-25

我发现okular位于“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”中

那么。 我在zsh中给okular加了别名<代码>别名okular=“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”。 只需使用
okula***.pdf
就可以了。但是仍然
okular——独特的家庭作业\u 20151023.pdf#src:88homography\u 20151023.tex
在emacs中是无用的。

您需要使用

open -a okular --args --unique Homework_20151023.pdf#src:88Homework_20151023.tex
否则,
open
将解释(并忽略)参数,而不是传递给
okular

另请参见打开的手册页:

man open

为什么会有一个Emacs标记?在Emacs中,我设置了
“Tex View Program List”
open-a-okular-unique%o#src:%n%b
。但是在AUCTeX使用的路径中,您的macports
bin
目录是否可用?
*Messages*
缓冲区中是否有任何错误消息?没有错误消息。我还将
/opt/local/bin:/opt/local/sbin:$PATH“
添加到PATH中。但我发现okula位于“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”中。然后,我在zsh中为okular添加了别名。
别名okular=“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”“
。只需使用
okula***.pdf
就可以了。但是仍然
okula——独特的家庭作业在emacs中是无用的。