We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

1

The doc you linked says: You may also use properties TABLE_EXPORT_FILE and TABLE_EXPORT_FORMAT to specify the file name and the format for table export in a subtree. They are properties and not keywords. So you set them in the properties drawer of the subtree. Example: * Section with table :PROPERTIES: :TABLE_EXPORT_FILE: data/observations.csv :...


0

I agree that this is an annoying change in Orgmode... The only workaround I've found is this hack: https://github.com/alphapapa/unpackaged.el#export-to-html-with-useful-anchors


1

For reference I found this message on the org-mode mailing list which mentions a way to do this by means of file local #+LATEX_HEADER lines which use the fancyvrb package and redefine the verbatim environment that org-mode #+RESULTS blocks get exported to via: #+LATEX_HEADER: \RequirePackage{fancyvrb} #+LATEX_HEADER: \DefineVerbatimEnvironment{verbatim}{...


3

The following Elisp code modifies the html export backend so that it accepts an additional option HTML_TABLEEL_ORG. If you set this option to t or yes table cells in table.el-tables are rendered as org-mode strings. You can copy the code into your init file if the first line of your init file contains the file-local setting lexical-binding: t as ...


0

Replace displaymath by math. So the header of your table should look like this: #+ATTR_latex: :mode math :environment pmatrix :align ccc


1

Org-mode translates $n$ to \(n\) in latex. You can also directly write \(n\)-doc in the org file and it should export just fine.


2

Change the syntax of character - from symbol to punctuation in org-mode. You can do that by: (defun my-org-change-minus-syntax-fun () (modify-syntax-entry ?- ".")) (add-hook 'org-mode-hook #'my-org-change-minus-syntax-fun) You can add these lines to your init file. Note that I have running that setup for ages now with no relevant negative effects.


1

I don't know if this is proper, but here is a version that seems close. The idea is to use a copy of the buffer to insert it, and convert it to html. There result seems to get wrapped in <p></p>, but maybe you can use a substring to get rid of these. (defun tv/org-string-to-html (string &optional macros) (if (or (not string) (string-empty-...


2

As mentioned in my comment, there are tags that can be used to control the export of a (sub)tree: a tree that is tagged "noexport" will (by default) not be exported: e.g. * Document ** Exported section This section is not tagged, so it will be exported by default. ** Hidden section :noexport: This ...


1

Export to pdf is handled by LaTeX, and org-mode only manages a small subset of the possible options. EXAMPLE blocks are exported as verbatim environments, which will change none of your text - it respects all your whitespace, but will not process any macros (such as your subscripts). On the other hand, quote blocks are exported as quote environments. These ...


Top 50 recent answers are included