简体   繁体   English

组织模式emacs不会导出

[英]org-mode emacs won't export

I admit I'm a total emacs and org-mode newbie. 我承认我是emacs和org-mode新手。 It worked great for me, but suddenly I'm having the following problem. 这对我来说很棒,但是突然我遇到了以下问题。

Say I open a file test.org with emacs 说我用emacs打开文件test.org

$ emacs test.org $ emacs test.org

The file contains: 该文件包含:

* one
* two
** a
** b

When I try to export with Cx Ce I get the following error message: 当我尝试使用Cx Ce导出时,出现以下错误消息:

Debugger entered--Lisp error: (void-variable b)
  eval(b nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

I just found out about org-mode and was immediately ecstatic about it. 我刚刚发现了关于org-mode的信息,并立即对此欣喜若狂。 Within minutes I could refactor my plain text notes for org-mode, including math formulas and export them to latex and from there pdf. 在几分钟之内,我可以将我的纯文本注释重构为组织模式,包括数学公式,并将其导出到乳胶中,然后从那里导出pdf。 I used Cx Ce o as explained here: http://orgmode.org/manual/LaTeX_002fPDF-export-commands.html 我按如下说明使用了Cx Ce o: http : //orgmode.org/manual/LaTeX_002fPDF-export-commands.html

This worked great on both the GNU Emacs 23.3.1 that I have on my Mac OS X Terminal as well as with the newest Emacs release 24.1 which I had installed as a standalone .app 这对我在Mac OS X Terminal上安装的GNU Emacs 23.3.1以及我作为独立.app安装的最新Emacs版本24.1均有效。

Unfortunately this didn't last very long and I got the error message described above, even for the most simple org files. 不幸的是,这并没有持续很长时间,即使对于最简单的组织文件,我也收到了上述错误消息。 What strikes me, that both installations of emacs started having this problem at the same time. 令我惊讶的是,两个emacs安装同时开始出现此问题。 I even deleted my, slightly modified, .emacs file in the home directory but that didn't help either. 我什至删除了我的主目录中经过稍微修改的.emacs文件,但这也无济于事。

It seems like emacs always fails wie evaluating the last line. 似乎emacs总是无法评估最后一行。 If I delete it 如果我删除它

* one
* two
** a

The error message is: 错误消息是:

Debugger entered--Lisp error: (void-variable a)
  eval(a)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

Any help is very much appreciated! 很感谢任何形式的帮助! I very much like org-mode and would love to learn el. 我非常喜欢org-mode,很想学习el。 However, at the moment I don't even know how to write more than two lines of LISP. 但是,目前我什至不知道如何编写两行以上的LISP。 Googling for this error message leaded to descriptions of problems that seemed to be totally unrelated. 搜寻此错误消息导致对问题的描述似乎完全不相关。

Use Cc Ce h (you indicate you are pressing Cx Ce ) to export to HTML and Cc Ce p to export to PDF. 使用Cc Ce h (表示您正在按Cx Ce )导出到HTML,并使用Cc Ce p导出到PDF。 If you are using a menu bar, take a look under the "Org" menu, item "Export/Publish...(Cc Ce)" 如果使用菜单栏,请在“组织”菜单下的项目“导出/发布...(Cc Ce)”下查看

( Cx Ce evaluates an elisp expression...those error messages are complaining about evaluation of **a and **b as elisp expressions...) Cx Ce评估elisp表达式...这些错误消息抱怨将** a和** b评估为elisp表达式...)

You can also use Mx and invoke the output method for the buffer using the interactive function name that matches the style you want, eg 您也可以使用Mx并使用与所需样式匹配的交互式函数名称来调用缓冲区的输出方法,例如

M-x org-export-as-html
M-x org-export-as-pdf
M-x org-export-as-latex

etc. Use tab to auto-complete the names. 等等。使用选项卡自动完成名称。 You may find this method simpler to remember while still learning your way around org-mode. 您可能会发现这种方法更容易记住,同时仍然可以学习组织模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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