As others have said, it seems there is no out-of-the-box solution to this problem. Here is a hacky solution that uses an output filter and a regex to remove the id attributes from the final HTML output:
(defun html-body-id-filter (output backend info)
"Remove random ID attributes generated by Org."
(when (eq backend 'html)
To make it global, applied to all tables, you can also customize this variable
M-x customize-variable org-latex-tables-centered
and look into options > customize emacs > specific group > org-export-latex for more.
I use drawers (not the property drawer) for cases like this although I am not sure if you can pass options to them. Basically, I do
... contents here
and then define org-latex-format-drawer-function so that it generates the right LaTeX code for the specific drawer type. For instance, for solutions to questions, I use a :solution: drawer and ...
org-element-latex-fragment-parser is too simple to scope with nested brace-delimited lists as arguments of latex macros.
The following advice for org-element-latex-fragment-parser replaces the LaTeX macro parsing with a version that parses LaTeX arguments as sexps.
(defun bugfix-org-forward-latex-sexp (&optional start count)
I would use
#+ATTR_LATEX: :width 10.6\textwidth
This is described here: https://orgmode.org/manual/Images-in-LaTeX-export.html
For specifying image ‘:width’, ‘:height’, and other ‘:options’, use this
#+ATTR_LATEX: :width 5cm :options angle=90
I made a little edit since it was a pain to have every org file i saved be exported to latex.
This way it exports every time is saved with the condition it was exported manually at least once,
this also works for other file extensions if you edit the ".tex" part
(defun kdm/org-save-and-export ()
(if (and (eq major-mode 'org-mode)
You can add arbitrary LaTeX code to your org mode file like this:
* Section 1
- S1 item 1
- S1 item 2
That will produce exactly what you want (plus a label, but that's standard).
Simply insert a leading space in front of each line in the example block:
An example of org-style headers: