Questions tagged [org-export]

exporting, converting, printing, and publishing Org documents to a variety of other formats using Org mode's export facilities. PDF, HTML, ASCII, etc., are some of the common export formats.

Filter by
Sorted by
Tagged with
1
vote
1answer
34 views

Specify arbitrary attributes for code blocks and keep them when converting with pandoc

Markdown and its different flavours have a number of interesting extensions, notably the [hl_lines attribute][0], which allows to highlight specific lines in a fenced code block, as illustrated here ...
0
votes
0answers
27 views

Making org to beamer example work [duplicate]

Tried running the example in here: #+TITLE: Example Presentation #+AUTHOR: Carsten Dominik #+OPTIONS: H:2 toc:t num:t #+LATEX_CLASS: beamer #+LATEX_CLASS_OPTIONS: [presentation] #+BEAMER_THEME: Madrid ...
1
vote
0answers
17 views

Exporting properties with links doesn't work

I have a small problem when I export links that are included in properties. The goal of my approach is simple: use the properties of Org mode, then export them to html. The export of these properties ...
1
vote
0answers
23 views

Make org-mode ToC dependent on export format

I would like to only have a ToC in TeX/PDF export, but not when exporting to Markdown. Is there a way to configure it like this, if need be through a LaTeX-specific command?
2
votes
0answers
33 views

How can I **completely** migrate a LaTeX template to an Org file?

I've written my own LaTeX class file that deals with page layouts, title styles, subheading styles and uses fancyhdr so that each page has the section name and document title in the header, and so ...
0
votes
1answer
40 views

How can I configure `#+AUTHOR:` for LaTeX in `org-mode`?

I'm using the IEEEtran document class for LaTex in org-mode, and to define authors I need to use some IEEEtran-specific commands. My \author command should look something like this in the .tex file: \...
0
votes
1answer
18 views

org-mode caption html export cramped

If you start a blank org buffer and put in #+CAPTION: This is the caption for the next table (or link) | ... | ... | |-----+-----| then html-export it, it comes out all cramped and vertical. Table 1: ...
0
votes
0answers
25 views

Is it possible to :noexport: a single figure?

In org-mode, is there a way to use :noexport: on a single item such as a figure, so that it is displayed in Emacs but not in exported files (such as docx)? Below is an example code of a figure I'd ...
0
votes
0answers
30 views

Org src code block exporting even with :exports none

As in the title, If I have an org file with a python source block of the form #+BEGIN_SRC python :results none :session py-sess :exports none import numpy as np import matplotlib.pyplot as plt print(&...
1
vote
1answer
30 views

Export long org-mode file in multiple "\input"ted .tex files

Let's say I have a very long org-mode file main.org with 100 top-level headlines: * H1 text * H2 text ... * H100 text I'd like to export main.org into 100 .tex files H<n>.tex (1<=n&...
0
votes
1answer
39 views

Abstract block for HTML export?

I see the abstract block #+begin_abstract Hello, here's my article's abstract... #+end_abstract and it exports nicely into LaTeX with a nice title heading "Abstract" above it, i.e., LaTeX ...
0
votes
0answers
32 views

How to preserve numbers when exporting a file from orgmode

I have a number of org files I want to export to rich text. I have used in them the following numbering scheme 1. Point 1. 2. Point 2. 3. Point 3. together with ordinary org-headings like: * ** *** ...
0
votes
0answers
15 views

org-image-actual-width does not work when exporting as html

When I export my .org file to HTML the images assume their default value even with the restriction of the variable '(org-image-actual-width 700). The restriction works inside Emacs and if I add the ...
0
votes
1answer
30 views

Key-binding shortcut for Tufte html export

I've perused a few of the org-mode html-export key-binding shortcuts, i.e., ways to just have one key do, e.g., the entire long-winded C-c C-e h o. Unfortunately, there doesn't seem to be one fell ...
1
vote
1answer
14 views

Is it possible to export an orgmode headline to orgmode format?

I keep notes in orgmode and a GitHub repository can display formatted orgmode. I currently copy a headline to a new orgmode file to 'export' my text for publication on GitHub. However, this differs ...
0
votes
1answer
23 views

Can I export conf source code in org-mode to aconf in LaTeX/pdf/minted?

Emacs org-mode source-code blocks (between #+begin_src conf and #+end_src) support the conf "language"/style with syntax highlighting, but this is not supported when exporting to LaTeX/pdf, ...
0
votes
1answer
20 views

When exporting to Latex from Org, how do I stop equations from breaking my paragraphs apart

When working with mathematics in Latex, if I add a percent sign between my previous textb block and my \begin{equation} block, and another percentage sign between my \end{equation} block and my next ...
0
votes
1answer
80 views

Org publish does not load Latex packages

I need the following two packages and I add them to my org file like this, #+LATEX_HEADER: \usepackage{siunitx} #+LATEX_HEADER: \usepackage{cancel} but this does not work. How can I fix this? I tried ...
0
votes
1answer
30 views

Two functions run on the same org-export filter; first has no effect

I'm passing more than one headline filter function to a BIND inside my org file, and I can't see why only the second seems to have an impact: #+BEGIN_SRC emacs-lisp :exports results :results none (...
0
votes
0answers
13 views

Can I interrogate org-export-filter info object to check if the text format is UTF-8?

The signature of org-export-filter functions is (data backend info). I want to write a function that will know if I'm exporting to ascii or latin1 or utf-8. The backend appears to be 'ascii no matter ...
0
votes
1answer
32 views

BIND org-export-filter with multiple functions

I'd like to be able to pass more than one headline filter function to a BIND inside my org file: #+BIND: org-export-filter-headline-functions (tmp-f-one tmp-f-two) Although the pluralised name of the ...
0
votes
0answers
15 views

Setting variables for async org export

I have this function: (defun cpm/org-export--file-beamer-handout () "Export file content to PDF handout. Handout uses a distinctive quote style." (interactive) (let ((org-latex-default-...
0
votes
1answer
20 views

Unexpected org-export text duplication of hyperlinks

Given the following in my org-mode: **** heading ***** [[https://somewhere.com][somewhere.com]] ***** [[https://somewhereelse.com][somewhereelse.com]] (which my editor displays as links) and the ...
0
votes
0answers
36 views

Org-roam links are considered broken when exporting

Org-roam links are considered broken when exporting. This is annoying as I would like to export those org files as pdf documents. I know that the option broken-links:t makes the link disappear, and ...
0
votes
1answer
31 views

Cannot define custom latex class in org-mode [duplicate]

This is the code I tried: (after! ox-latex (add-to-list 'org-latex-classes '("deeparticle" (concat "\\documentclass[11pt]{article}\n" "\\usepackage{...
0
votes
0answers
25 views

Missing values in Org macro replacement

The Org Manual says: "The ‘keyword’ macro collects all values from NAME keywords throughout the buffer, separated with white space." (https://orgmode.org/manual/Macro-Replacement.html). ...
0
votes
1answer
23 views

Ignore footnotes when exporting org texts to html

I want to export org texts to HTML. This is easy if I use org-export-string-as. The problem is, the org texts may contain unreferenced footnotes, I want the export function to ignore the footnotes. ...
0
votes
0answers
18 views

Org Export Throwing an Error

Forgive the (relative) newbie question here. My org export to LaTeX just started throwing this error after I upgraded to Emacs 29.0 Here is output from Org PDF LaTeX Output buffer: Latexmk: -pdflatex ...
0
votes
0answers
23 views

org-mode based static site generator with categories and sub-categories

I am looking for an org-mode based static site generator which supports categories and subcategories like mediawiki. The existing static site generators support only tags. For eg: consider an org file ...
0
votes
0answers
19 views

Org Mode Export Dispatcher Force Publishing as Default

Is it possible to set forcing as the default for the org-export dispatcher? Alternatively (maybe even better), is there a way to set forcing as the default on a project-by-project basis? I poured ...
0
votes
1answer
23 views

org-export-filter-final-output-function appears not to fire

I'm trying to filter my org-export output in one file because every heading in the ascii output seems to have two line breaks after it: first heading ============= second heading ============== And ...
0
votes
0answers
14 views

Headline numbering offset in org-mode export

I know I can turn on and off the numbering of headlines of a certain level, but I haven't found an option to e.g. let those numbers start at 0 instead of 1. Is this even possible? I find them useful ...
0
votes
1answer
23 views

Org export visible headings only

I'm customising my export settings for a particular file using #+OPTIONS. I want to be able to set the defaults for org-export-dispatch for this particular file too. In particular I want Visible only: ...
0
votes
0answers
17 views

Org-mode formatting a term with a suffix but without any preceeding space

When I export an Org-mode document with ~if~s, I expect it to show ifs However, I get ~if~s or sometimes ifs ... if there's a following = somewhere down the line. I also tried using a zero-width ...
1
vote
1answer
35 views

How do I Include plain text file org-mode as is for LaTeX export?

I'm using #+INCLUDE: "./file.txt" to organize documents but including files this way is messing with linefeeds on org-mode export to LaTeX/Pdf. Is there a property or attribute that could ...
1
vote
0answers
45 views

Org-mode custom heading numbering?

I'd like to export an org buffer to HTML and have the heading numbering not always start at 1, rather, a given number. I plan to have a sequence of org buffers be "chapters." So the first ...
1
vote
1answer
127 views

org-mode and export programming

Is it possible to program the export in org-mode in the following way? Say you'd like to export some org-mode text in latex or html but you'd like to program a kind of limited text loop with an ...
0
votes
0answers
26 views

I want to make an alias to `org-babel-execute:emacs lisp`. the problem is with the space on `emacs lisp`

I'm using org-beamer exporter, and I would like to do the following: (defalias 'org-babel-execute:emacs-lisp lisp 'org-babel-execute:emacs lisp) My problem is 'org-babel-execute:emacs lisp has a ...
0
votes
0answers
34 views

Why is the org-babel cache not populated on export

This whole question is an org-mode document that can be pasted into your local Emacs for a type-along question. First evaluate the below code block to enable caching of org-babel results, include ...
0
votes
1answer
47 views

Make org-html export not escape special characters

I'm writing an exporter for Remarkup: https://github.com/renatgalimov/org-phabricator. It's similar to Markdown and based on org-md which itself is a modification of ox-html. Whenever I export, some ...
2
votes
1answer
46 views

Add CSS class or id tag to individual src blocks

I want to style some HTML source block exports differently than others. Say I want the "Hi" block to have a green background and "Bye" to be red: #+COMMENT: -*- org-html-htmlize-...
0
votes
1answer
64 views

(Org) TikZ for exporting both LaTeX and HTML/MathJax

I'm exporting an Org Mode project both to LaTeX and to HTML (with MatJax). Now I need to add a TikZ picture which can be exported nativelly on LaTeX and must be rendered in svg for HTML. Writing the ...
1
vote
0answers
74 views

Direct inclusion of resulting link file during export in Org mode

I'm preparing static html site with interactive Javascript components visualizing my research data in Org mode. Javascript components are returned by the Org Babel Python script in form of HTML string ...
0
votes
1answer
89 views

Emacs Org mode export to PDF headines become bold

Good day! New emacs user here. I am writing a contract in org mode and exporting it to PDF (assume that currently no latex plugins or settings are applied(in my org file heading) to the document as ...
0
votes
0answers
57 views

How to correctly export to pdf org-roam files

I have three files A, B and C. A is a table of contents with links to B and C that have various information, the problem is I want to export a pdf with the content of A, B and C together but org-latex-...
1
vote
1answer
115 views

Org export theorem with caption and number in HTML

With #+CAPTION: my-caption [[file:image.png]] I get a caption (with a number) both in LaTeX and in HTML. The same with tables and src blocks (which become listings in LaTeX) But with a theorem, ...
0
votes
0answers
37 views

Ox-epub Window required for cover

When exporting in batch mode (for example in continuous integration) with ox-epub: emacs --batch main.org --eval="(package-initialize)" --eval="(require 'ox-epub)" --funcal org-...
4
votes
1answer
88 views

How to use Org KEYWORD values within exported body?

How can I get the author's name, the date, or other #+KEYWORD: value variables to appear within the exported body? This is my org-mode file: #+TITLE: Some Title #+AUTHOR: Foo Bar #+DATE: 2021-08-21 * ...
0
votes
1answer
77 views

Org-mode do not inheriting Unnumbered property

Is there a way to set the UNNUMBERED property only to the current heading but not to the children headings? My desired headings are: 1 Part one 1.1 Chapter one Appendixes (unnumbered) ...
0
votes
1answer
38 views

Replace regex in string elisp for emphasis like strings

I'm fairly new to Emacs and Elisp, and am tinkering around to customize to my liking. I'd like to be able to highlight some text in Emacs and also have it displayed when exporting to html, just like ...

1
2 3 4 5
18