I tried to setup my org-mode according to Bernt Hansen’s wonderful documentation. But later I found I got problem with Org Capture as in Section 6. when I typed C-c c, an error message "Capture abort: (user-error Can't preview LaTeX fragment in a non-file buffer)” occured. After lots of search on the web I still can not solve it. I am wondering is here anyone can help me out? Thanks in advance!
Things I have tried:
Test Latex preview in org file according to this. Both “dvipng” and “imagemagick” setup methods work fine, I can preview Latex formula in .org file.
Use the method described here: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=168c5584f5a41c4c0890f4caa89fc11cff021c4e
I replace my “org-mode” package with the one in the link which is supposed to solve the problem, however, I still got the same error message.
Versions of some packages I am using:
Emacs: GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2014-10-21 on builder10-9.porkrind.org
AucTeX: 11.88.8
org-mode: Org-mode version 8.3.1 (8.3.1-146-gfd8a18-elpa # /Users/xiaok/.emacs.d/elpa/org-20150928/)
Related
I've followed the Tuhdo's tutorial, but I've got a problem with company-mode: it seems it doesn't auto complete preprocessor reserved words, as displayed in these two images no candidates are found:
But, on the contrary, this image shows that company mode is active and working:
What's wrong?
Thanks in advance.
hi problem same for me
Basically company-keywords does not include preprocessor directives.
So I've just wrote this backend that is triggered when you type #+ a letter.
https://github.com/fredericfrances/company-c-preprocessor
Installation and setup is pretty easy, I did'nt create melpa package yet.
(require 'company-c-preprocessor)
(add-to-list 'company-backends 'company-c-preprocessor)
I have the org-mode installed and I am trying to export the .org file to pdf. I have the Basic Tex installed and have set the PATH env variable correctly.
When I give this command C-c C-e p, I get the message "Exporting to pdf done", however, the generated pdf is blank.
So it seems, there is something going wrong when I am trying from emacs. There is also a missfont.log file.
Googling for answers is not getting me anywhere. Please help as I am stuck on this problem for quite a while. I initially gave on it, but using org mode for generating pdfs is so productive that I simply cannot live without it. I have this in my office RHEL box working fine. Only at home on my Mac, it is giving me issues
Installing fonts did the trick, I needed to install ec and wasy2
Does anyone know of a syntax file to get LESS working in emacs?
You are probably looking for a less-css emacs mode, which is an elisp file that can be loaded in your emacs environment. Another version is also available in github.
I am using emacs org-mode for managing my notes. Often I wish to use links to this notes from files, which I am editing in other modes, like AUCTeX.
See here for a descriptive screenshot. (I am not yet allowed to post images here.)
Storing and following this links works pretty well. But I find it disturbing to read the full org syntax of the links: [[file:notes.org::*note][Description]], which is obviously not folded outside of org-mode.
I wonder if there is any minor-mode which provides the folding of such links to a clickable Description, like it is done in org-mode.
You can use links outside Org-mode.
4.5 Using links outside Org
You can insert and follow links that have Org syntax not only in Org, but in any Emacs buffer. For this, you should create two global commands, like this (please select suitable global keys yourself):
(global-set-key "\C-c L" 'org-insert-link-global)
(global-set-key "\C-c o" 'org-open-at-point-global)
-- Source: Using-links-outside-Org
Edit (1 Nov 2012): As of October 2011 the minor mode enabling org-like links didn't exist, but there were discussions. Now the minor mode exists, it is called org-link-minor-mode and is included in org-contrib.
I think the standard answer would be to use the publishing methods within org-mode to publish to a different file type, and link to that instead. Publishing, once set up, is really easy and fast to use and can produce things like html files that you could safely link to from something else (that is hopefully HTML compliant). Since you didn't say what the other-thing(s) is that you're using it's hard to recommend a good publishing output.
Is there an Emacs major mode for MATLAB and / or Octave files? For those who don't know, MATLAB files generally have a ".m" file extension.
My primary interest is GNU Emacs but XEmacs tips would also be appreciated.
Have you tried the octave-mode that is part of the standard emacs distribution? I have found that this works well.
If you're finding it doesn't associate the .m extension, add this to your .emacs:
(setq auto-mode-alist
(cons
'("\\.m$" . octave-mode)
auto-mode-alist))
You'll be wanting http://matlab-emacs.sourceforge.net/ , I would imagine? Read the instructions there.
I used an ancestor of this years ago in XEmacs, so it certainly used to have support for it, but I believe the author is an GNUEmacs user. The guy who wrote it (Eric Ludlam) is a Mathworks employee, so it has vague official credentials.
Not built in in GNU Emacs 22. I found a matlab mode on the web (elisp), but it dates from circa 2000, so I don't know what kind of support you have.
To install you must get emacs to load it, then invoke the mode. You can interactively issue a load-file (With M-x load-file) to test it.
There's a matlab.el file from Matthew Wette on The MathWorks File Exchange. The file doesn't appear to have been updated since 1997 (!), and simply says it is "for early versions of Emacs", but hopefully it will still be of use to you.
I recently downloaded a Matlab mode for Emacs from the Matlab Central file exchange. Works just fine. Don't recall exactly where I found it, if you have trouble let me know and I will look harder.