2 votes

Babel Lilypond Paper-Size (Preview & Export)

The issue was fixed in f78a3c2b. The code below is no longer needed. I updated lilypond.org to reflect changes in the lilypond codebase, so I think the problem is fixed, but let me know either way. ...
jagrg's user avatar
  • 3,874
2 votes
Accepted

In org-mode, how to exclude a heading from export only for some back-ends?

I found an answer based on dalanicolai's comment, which led me here. I tag the headings that I don't want to export to, say, latex with noexport_latex and I also define this hook to add to org-export-...
Stefano's user avatar
  • 141
2 votes
Accepted

Why does the org html export use <b> and <i> but not <u>?

My guess is that it is historical (as I said in my comment), but you can change it if you'd rather do it differently. All of that is controlled by the variable org-html-text-markup-alist which by ...
NickD's user avatar
  • 29.3k
2 votes
Accepted

How can I use a keyword in the LATEX_HEADER?

There is an Org-mode LaTeX exporter designed for letters. Read Creating letters with KOMA-Script scrlttr2 and Org-mode for more details. With this exporter, you can customize the look of your letter ...
crocefisso's user avatar
  • 1,264
2 votes
Accepted

How do I get the org HTML exporter to indent headings?

This is a CSS question (most formatting questions in HTML are CSS questions) and your CSS is syntactically suspect. Try this: #+HTML_HEAD_EXTRA: <style> pre.src { background-color: #202020; ...
NickD's user avatar
  • 29.3k
2 votes
Accepted

Pointing Emacs to LaTeX under zsh (for org-latex-export-to-pdf)

Try this: (setenv "PATH" (concat "/Library/TeX/texbin/latexmk/" path-separator (getenv "PATH"))) Perhaps PATH can be inherited from Emacs when ...
shynur's user avatar
  • 5,174
2 votes
Accepted

Error in converting org file to md file: Unknown "nil" back-end: Aborting export

[Summarizing the back-and-forth in the comments] Three problems: By default the markdown exporter is not loaded. The output of the export process can be a buffer or a file, but it is not the stdout ...
NickD's user avatar
  • 29.3k
2 votes
Accepted

How to generate a shell script from org file

The package that manages org source blocks is called org-babel. Much of its functionality is in block header arguments that modify how the block behaves. This will get you started: #+begin_src shell :...
Heikki's user avatar
  • 3,066
2 votes
Accepted

`org-html-export-to-html` not adding color for the code blocks

Install htmlize package with M-x package-install RET htmlize RET. Org export uses htmlize to highlight code blocks in html.
Maxim Kim's user avatar
  • 1,761
2 votes
Accepted

How to access node property in my own export process

As I pointed out, the headline by itself is not enough for org-export-string-as to work: it is missing the context of the PROPERTIES drawer, so trying to evaluate source blocks that look for ...
NickD's user avatar
  • 29.3k
2 votes
Accepted

How to get the starred version of a latex section on org-mode?

I found it: I need to add the unnumbered property to the headline * Section with number Text of numbered section * Section without number :properties: :unnumbered: t :end: Text of unnumbered section
onlycparra's user avatar
1 vote

How to access node property in my own export process

Basing on NickD's helpful comments I have come up with the solution that satisfies my personal needs in this case. The code: * Section about src_elisp{(org-entry-get nil "Name")} :this: :...
martinoidar's user avatar
1 vote
Accepted

Org-mode LaTeX export set AUCTeX local variables

Here's a slight modification of your final-output filter function that works. It primarily involves getting rid of a test that AFAICT will never evaluate to t: (defun my/org-export-add-lines (output ...
NickD's user avatar
  • 29.3k
1 vote
Accepted

How can I get the output of a batch emacs run to a custom path?

You will need to use a different function if you want to control where the export output goes. org-html-export-to-html uses the name of the Org mode file and saves it in the same directory with the ...
NickD's user avatar
  • 29.3k
1 vote
Accepted

org-latex-preview fails when \usepackage{fontspec} used

Here are the modifications to add to your init file: (with-eval-after-load 'org (setq org-preview-latex-default-process 'imagemagick) (setf (plist-get (cdr (assq 'imagemagick org-preview-latex-...
NickD's user avatar
  • 29.3k
1 vote
Accepted

Interfering with org beamer outline export

You can use the same trick as in https://topanswers.xyz/tex?q=1004 to automatically change the background template for your toc frame. However are you sure you need to add a back button yourself? ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

Exporting disjoint parts of Org document with marks

I don't know if the following will help, but here goes: you are not limited to export/noexport tags in order to trigger the selective exporting functionality. E.g. suppose that you want to share some ...
NickD's user avatar
  • 29.3k
1 vote
Accepted

How can I remove the tex file after generating pdf using `org-latex-export-to-pdf`?

As suggested in the comments, you might well want to consider retaining the intermediate files associated with the latex conversion to PDF until you are happy that the PDF results are what you want. ...
Reign of Error's user avatar
1 vote
Accepted

How to collapse the output of code evaluation in org mode?

Assuming you don't mind hiding the whole #+RESULTS: block, instead of hiding the #+example block underneath, you can add this: (with-eval-after-load 'ob-core (add-hook 'org-babel-after-execute-hook #...
NickD's user avatar
  • 29.3k
1 vote

What causes org-open-at-point command to fail?

The problem turned out to be incorrect .mailcap file: text/html; open %s; nametemplate=%s.html ... changing it to: text/html; /usr/bin/xdg-open %s; nametemplate=%s.html ... made it work. open I ...
Daniel Krajnik's user avatar
1 vote
Accepted

Export any entry as "Busy"

ox.el shows two variables that may be interesting to you: (defvar org-export-filter-parse-tree-functions nil "List of functions applied to the parsed tree. Each filter is called with three ...
Trevoke's user avatar
  • 2,440
1 vote

Suppress empty lines around `align` in latex export from `org-mode`

I've asked a similar question here and answered myself there, but I feel like that solution is less ideal than what I had hoped, and instead wrote something better. Below is a function that should be ...
daedsidog's user avatar
  • 157
1 vote

How can I split top org headlines into a org file to separate md/org files?

I think the following function would suffice. (defun split-org-top-headlines () "split the current buffer into files under same directory as the buffer, containing 1 top-level subtree each, with ...
Herman He's user avatar
1 vote
Accepted

How do I change Org's HTML code background?

Summarizing amitp's and NickD's comments: Do not modify your .emacs file. It's sufficient to add #+HTML_HEAD_EXTRA: <style> pre.src { background-color: black; color: white; }</style> in ...
Sam7919's user avatar
  • 349
1 vote
Accepted

How to make monospace | (vertical bar) character in Orgmode table?

Instead of using \vert, as the Org mode manual recommends, in order to put a vertical bar inside a table so that it won't get confused with a table column delimiter, you might try \textbar: it's for ...
NickD's user avatar
  • 29.3k
1 vote
Accepted

Remove default org-mode LaTeX preamble when rendering

The problem is that you specify \documentclass as a #+LATEX_HEADER in your setup file. Instead, you should specify it in two pieces, using #+LATEX_CLASS and #+LATEX_CLASS_OPTIONS[1]: #+OPTIONS: toc:...
NickD's user avatar
  • 29.3k
1 vote
Accepted

How to "Org LaTeX Exporting (to PDF)" only current subheading from elisp function?

Oops sorry, it was too trivial: (org-latex-export-to-pdf nil t) When the 2-nd argument is non-nil as like above, it exports only subtree. /However, not sure why it fails to produce PDF (at least in ...
Garid's user avatar
  • 619
1 vote
Accepted

How to adjust HTML elements using org-publish in Emacs

Do not quote property values inside the (quasi-)quoted form that you set org-publish-project-alist to! That's too much quoting. Try: ... :html-divs ((preamble "header" "preamble") ...
NickD's user avatar
  • 29.3k
1 vote

In org-mode, how to exclude a heading from export only for some back-ends?

Thanks! I did something similar for including/excluding sections in slides when using Org-Reveal. I thought it could be useful if I include my variant as an answer. I put this in my .emacs for the ...
njlarsson's user avatar
  • 111
1 vote
Accepted

Why is the ToC missing in org-mode LaTeX output?

Run Twice One solution is to configure org-latex-pdf-process to run LaTeX twice. (setq org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" ...
Sam7919's user avatar
  • 349

Only top scored, non community-wiki answers of a minimum length are eligible