- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想要的是能够成功地使用 emacs 和 auctex。
一些系统信息:
ProductName: Mac OS X
ProductVersion: 10.8.5
BuildVersion: 12F45
Emacs
Version 24.3 (9.0)
AUCTeX-version is a variable defined in `tex-site.el'.
Its value is "11.87"
我尝试过两件事。首先,按照建议从 emacs 中以交互方式安装 auctex:
M-x package-list-packages RET
从表面上看,一切似乎都在按预期工作:
\documentclass{article}
\bein{document}
Hello world
\section{Here lies a section}
Hello people.
\end{doument}
您无法在代码中看到它,但在我的 emacs 屏幕上,语法高亮显示有效,并且可以看到 auctex 图标。环境完成命令也可以正常工作(比如填写\begin 和\figure 的东西)。现在发出编译命令:
C-c C-c
我收到以下消息:
LaTeX: problems after [0] pages
查看源代码有两个错误没有被拾取,而且即使没有错误,文档似乎也没有编译,没有创建 dvi 或 pdf 或 aux 文件。还测试查看功能,没有任何反应。所以似乎有些地方没有正确配置。
其次,在没有卸载或删除 auctex 的情况下(我怀疑这可能与某些事情有关,但我不确定,我们稍后会看到)我找到了网页:http://algorithmicallyrandom.blogspot.com/2012/08/getting-auctex-working-on-mac-os-x.html这建议从源代码构建:
*) ./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --disable-preview --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp/
*) make
*) sudo make install
然后将这些行添加到您的 .emacs 文件
(load "auctex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
让我觉得这次安装成功的一点是我下载的源代码是 11.87 版本,这就是我当前运行的 auctex 版本。然而,相同的行为仍在继续,基本上没有任何编译或查看功能似乎在工作。
另一件事,从周围阅读看来,当将它包含在我的 .emacs 文件中时,您似乎还需要 preview-latex.el 包
(load "preview-latex.el" nil t t)
我得到一个错误,所以我很确定这个包没有正确安装。所以我的问题主要是,我在这里错过了什么?我怎样才能成功地一起运行 emacs 和 auctex(也许还有 preview-latex.el 包)?
也许这包括完全删除 auctex 并重新安装它。当我以交互方式安装 emacs 包时,如何删除它(尝试一个)?从源代码安装时如何删除 emacs 包(尝试两个)?
也可能是我没有安装 ghost 脚本,但我不确定如何检查。
伙计,我知道这很多,我正在尝试提供所需的任何信息。如果您已经解决了这个问题并且可以帮助我,我将不胜感激。
最佳答案
您可能需要配置 emacs 以识别 shell 路径。为此,只需安装 exec-path-from-shell 包。以下链接提供了一些帮助。 PATH and exec-path set, but emacs does not find executable
关于macos - Mac 上的 auctex 和 emacs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20015930/
要在 Emacs 中设置 auctex,您会被告知要包括 (load "auctex.el" nil t t) ...等等在你的 init/.emacs 文件中。但是,如果您使用 elpa 安装 au
我最近开始使用优秀的包 xargs提供 \newcommandx .它共享类似于默认 \newcommand 的语法。 . 我要 font-lock来反射(reflect)这一点。 我做了 (cust
我遇到了 emacs/auctex 填充段落的问题,它在每个 $blabla$ 之后插入换行符块,导致代码可读性差。例如,点击 M-q在以下长行中: a $1$ b $2$ c $3$ d $4$ e
如果我通过 C-c C-e 在 AUCTeX 中插入一些环境(例如 equation 或 figure),那么 AUCTeX 会要求使用自动标签插入文本 eq: 或 fig:。 我想将 theorem
我想强调一下我在 LaTeX 中创建的新命令: \newcommand{\conceito}[3]{ \subsection{#1} (Original: \textit{#2} #3). } 我
我正在尝试使用emacs+auctex来写我的实习报告。但我发现预览功能不起作用。事实上,我在使用 ubuntu 10.04 时已经使它可以工作,但现在我有一台 11.04 的新计算机,并且预览有问题
在LaTeX模式下C-c C-c绑定(bind)到: (TeX-command-master &optional OVERRIDE-CONFIRM) 通常这个交互函数会运行一个命令,也许是一个 LaT
我的 emacs(带有 AucTex 的 Aquamacs)更改字体大小(例如 LaTeX 模式)以显示语法 - 像这样: 不幸的是,这破坏了等宽字体的重点 - 例如我的意见不一致。我该如何解决这个问
我正在使用 emacs + auctex 来满足我所有的 TeXing 需求,我对工作流程非常满意。然而,有一件事情困扰着我。每当我编译一个文档(可能由多个文件组成)并且缺少引用时,auctex 就会
我已经将LaTeX与Emacs和AUCTeX一起使用了两年,但没有遇到任何问题。但是,昨天,当我尝试编译主文件LaTeX时,出现了一个奇怪的错误: 错误:包inputenc错误:Unicode字符\
今天的问题很简单——我希望答案同样简单。 在 TextMate 中,我习惯了将当前环境或命令更改为其加星标版本的键盘快捷键。 Emacs/AUCTeX 中有类似的东西吗? 最佳答案 如前所述by Ki
我正在使用 AUCTeX 11.87连同 emacs 24.3写我的 LaTeX文件。这很好用,但有一个异常(exception):解析。 我的文档结构如下: ./ 大师.tex Chapter_1.
我使用 emacs+auctex 和自动填充模式。 现在有时我想搜索(并替换)包含空格的字符串,例如“test1 test2”。问题是,自动填充模式有时会用换行符替换空格字符。因此,搜索和替换“tes
我通过 TeX-insert-macro 和 LaTeX-environment 函数为 AucTeX 的命令和环境使用了很多自动完成功能。但是有没有办法向内置列表添加更多命令和宏(\enquote{
在 AucTeX 中,编辑逐项列表时: \begin{itemize} \item My item % note to self \end{itemize} 当我在“自我”之后做 C-c C-j 时
我正在使用 GNU/Linux 发行版(Arch,如果相关)、Emacs v23.2.1、ESS v5.9 和 AucTeX v11.86。 我想设置 AucTeX 来识别 .Rnw 文件,所以我可以
当我编译 (Xe)LaTeX 文件时,emacs 将输出写入 LaTeX 输出缓冲区并显示它。对于纯 LaTeX,此缓冲区是隐藏的。对于 emacs 大师,我该如何隐藏 Latex 编译缓冲区?谢谢你
当我在 emacs 中将标签添加到 .tex 文件时,我曾经重新加载文件以使其显示在 RefTeX 中。即 C-c ) 不会有新标签,除非我重新加载文件。 经过一番搜索,我发现 C-u C-c ) 会
我想将字体绑定(bind)(例如 C-c C-f C-b)修改为更快的字体,例如 C-b。为了获得所涉及的功能,我尝试使用 C-h k,但我无法正确终止键序列:事实上,当我键入 C-c C-f 时,它
现代文字处理器的一个不错的功能是可以在不实际选择单词的情况下更改单词的格式(例如,从罗马体到斜体);只需要将文本光标放在单词中并告诉文字处理器(通过键盘快捷键)更改其格式。 (智能编辑,我相信它有时被
我是一名优秀的程序员,十分优秀!