New answers tagged

2

After some more googling, I think I found the answer to my own question. The following code works: (setq auto-mode-alist ()) The list auto-mode-alist seems to be a hash that has file extensions as keys and major modes as values: https://www.emacswiki.org/emacs/AutoModeAlist


1

The default LaTeX class can be set with #+LATEX_CLASS: article or #+LATEX_CLASS: beamer at the top of the file, so you can have them commented out: # #+LATEX_CLASS: article and select which one you want by uncommenting one or the other. This should be enough for manual export: when you automate the process, you will probably want to use a different method,...


0

You can pass overlay specifications to the frame using the following command: :PROPERTIES: :BEAMER_ACT: <handout:0> :END:


2

It depends on what you want to do with the tables of course, but assuming that you want to produce generic Org mode tables that can be exported in the standard way, you will have to make the python block produce the structure that Org Babel expects in order to produce the generic Org mode table. That structure is a list of lists: first a list for the headers,...


0

I've only done a quick read through some of ox-beamer.el, so take this with a large grain of salt. In the definition of the beamer derived backend, in the options-alist, it says: (:latex-class "LATEX_CLASS" nil "beamer" t) I read this as: if there is a #+LATEX_CLASS keyword or an EXPORT_LATEX_CLASS property, then the value of the :latex-...


0

Reading comments, the first thing you should do is read the documentation of org-preview-latex-process-alist. How? Do C-h v org-preview-latex-process-alist RET. This will familiarise you with how Emacs actually makes those svg images. Then once you know what you are doing, this code will make more sense. The default value of preview-latex-process-alist is ...


0

Here is my (maybe somewhat hacky) fix. Put this in your config file. (with-eval-after-load 'ox-html (setq org-html-head (replace-regexp-in-string ".org-svg { width: 90%; }" ".org-svg { width: auto; }" org-html-style-default))) How did I came up with this? Reading the org-mode manual's section about ...


0

Have you tried changing the mode to emaxima-mode? You may need to M-: (require 'emaxima) RET first. Note that this doesn't work for me as it complains about missing tex-site package but you might have that installed (or may be willing to install).


1

In order to use #+LATEX_CLASS: homework you must have added an entry to the variable org-latex-classes - otherwise you would have gotten an Unknown LaTeX class 'homework' error. Presumably you have already done this since you don't get that error. To add things to the LaTeX preamble (the part before \begin{document} you need to use #+LATEX_HEADER. E.g. to ...


0

Despite doing M-x list-packages -> U -> x, org hadn't been updated (probably because it was not installed through melpa). After upgrading org the error disappeared.


0

You can also create your own org-latex-class. Have a look at C-h v org-latex-classes and evaluate (info "(org) LaTeX header and sectioning") for more info. Then just add #+LATEX_CLASS: <added_class> at the beginning of your org file.


Top 50 recent answers are included