New answers tagged

1

The following Elisp code couples Org table export to csv/tsv with org-babel-tangle. Tables with the following affiliated attribute are exported to data files on org-babel-tangle: #+ATTR_TANGLE: DATAFILE You can also specify the export type: #+ATTR_TANGLE: ("DATAFILE" "TYPE") (defun org+-tangle-table-at-point () "Tangle Org table at point. The table is ...


0

This is a solution using latex package lstlisting instead of minted (lstlisting is not so powerful as minted but does not need a whole python stack). You need to put following lisp code into your Emacs init.el (or try it in *scratch* buffer like I did. (setq org-latex-listings t) (add-to-list 'org-latex-packages-alist '("" "listings")) (add-to-list 'org-...


1

The source of the error ended up being a spelling mistake on my part. See my comments on the question. Thanks to @Melioratus for their help!


3

If you can do it from within emacs, then you can do it from the command line with something like this for HTML: emacs --batch --eval "(require 'org)" notes.org --funcall org-html-export-to-html or for PDF: emacs --batch --eval "(require 'org)" appts.org --funcall org-latex-export-to-pdf This assumes that you use the Org mode that is bundled with emacs: ...


2

Use a Noweb reference <<src block call>> to inject the results of source blocks into other source blocks. Example: #+NAME: ltxInput #+BEGIN_SRC emacs-lisp :exports none :results raw drawer "\\sqrt{x^2+y^2}" #+END_SRC #+RESULTS: ltxInput :results: \sqrt{x^2+y^2} :end: #+NAME: ltxSrc #+BEGIN_SRC latex :noweb yes :exports results \begin{align*} &...


0

Well, I've succeeded in HTML exporting by simply telling it that tex-fig should be treated as an image: (add-to-list 'org-html-inline-image-rules (cons "tex-fig" "\\.tex")) But there seem to be no way to do it in LaTeX. I've read the source code, and while exporting a link through LaTeX it first checks if the link can be exported through a ...


0

Further googling revealed I needed this format. I don't know I'd have got that from the docs. #+OPTIONS: tasks:nil As a sidenote, org-inlinetask was what I really wanted too. Very handy.


0

You already discovered yourself that MathJax does not offer all the finesses of LaTeX. That is the main reason why you can use another LaTeX-backend for HTML export with the help of the tex option of the html exporter. Example: #+OPTIONS: tex:dvipng Choosing dvipng as LaTeX backend, your document is exported fine to HTML.


1

A different approach is to temporarily redefine one of the export functions in the usual html exporter: (cl-letf (((symbol-function 'org-html-item) (lambda (item contents info) (let* ((plain-list (org-export-get-parent item)) (name (org-element-property :name plain-list)) (type (org-element-property :type plain-list)) ...


2

I think the best thing to do here is make a custom exporter. Here is an example that treats checkbox items specially. Note this does not work as expected with a nested checkbox list, but I think it handles your specific example. (setq org-html-checkbox-type 'html) (require 'ox) (org-export-define-derived-backend 'my-html 'html :translate-alist '((item . ...


1

Set ignore tag and clearpage property to t. ** Heading :ignore: :PROPERTIES: :clearpage: t :END: This will be exported on new page w/o heading. The :ignore: tag is enabled with: (require 'ox-extra) (ox-extras-activate '(ignore-headlines)) Source: Is it possible to export content of subtrees without their headings?


1

A useful option is to put #+SETUPFILE: mysetup.org at the top of each .org file and then place your common heading commands such as #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="mystyle.css" /> in the file mysetup.org. Note that mysetup.org can contain further #+SETUPFILE: lines, reading in other files.


Top 50 recent answers are included