Skip to main content

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
0 votes
0 answers
10 views

Org-babel remote inline images with TRAMP not exporting in org export

I am trying to find a way to get the images generated in my remote server exported to a HTML locally. Orgmode of a local analysis works as expected, but if I have tramp enabled with: #+PROPERTY: ...
lf_araujo's user avatar
  • 123
0 votes
0 answers
11 views

Adding PS1's "user@machine" to the exported version of an org-babel shell block

I am using org-babel for running shell commands. I'd like to export the code block as if it was running from the terminal, so adding "user@machine" before each command. When I export the org ...
Peter Petigru's user avatar
0 votes
1 answer
42 views

Is it possible to do #+SETUPFILE conditionally in orgmode (with regard to included files)?

I'm working on a big text in orgmode, which is expected to be finally exported to Latex & PDF, so I made this kind of a master document in orgmode: #+SETUPFILE: exportoptions.org #+INCLUDE: "...
yury10578's user avatar
  • 121
0 votes
0 answers
41 views

Inserting a Page Break Wherever in ODT Document when Exporting from Org Mode

Is there a simple one-liner to insert a page break wherever when generating ODT from Org mode? I'd rather not dig into styles if I can avoid it. I'd like to be able to do something like #+...
user avatar
0 votes
2 answers
47 views

Hiding Headings in Doc Exported from ORG-MODE to ODT

I'm writing a short story. The end result will be a 30-page doc with zero chapters or headings, (not even a title.) However, within org mode, I would like to have a foldable outline for working with ...
user avatar
2 votes
1 answer
53 views

Org mode export to html: onmouseover highlighting of referenced code lines

Section Markup for Rich Contents/Literal Examples in org documentation contains the following text: In literal examples, Org interprets strings like ‘(ref:name)’ as labels, and use them as targets ...
JeanPierre's user avatar
  • 7,475
0 votes
1 answer
65 views

org-mode: per-exporter #+SELECT_TAGS & #+EXCLUDE_TAGS?

Problem statement In Emacs org-mode, I am looking for a way to define #+EXPORT_EXCLUDE_TAGS (which defaults to :noexport) and #+EXPORT_SELECT_TAGS on a per-exporter basis, such that they apply only to ...
Florian H.'s user avatar
0 votes
0 answers
30 views

org-mode: exporting a subtree to latex still parses latex header commands defined in other subtrees

I have an org-mode file made of several headings whose structure can be summarized as follows: #+LATEX_HEADER: <some global latex commands> * Heading A #+LATEX_HEADER: <some latex ...
Laurent Jacques's user avatar
0 votes
0 answers
24 views

MetaPost figures in Org-mode?

I use org-mode to write reports and export them to LaTeX (and later to PDF). I am looking for a way to write MetaPost in the same file as the rest of the text, to preview them (preferably the same way ...
Carl's user avatar
  • 1
0 votes
0 answers
27 views

latex temp file cleanup

When using org for latex workflow, I like my directory (reasonably) clean. Towards that I changed the default value of org-latex-pdf-process from ("latexmk -f -pdf -%latex -interaction=...
Rusi's user avatar
  • 331
0 votes
1 answer
52 views

Why am I getting the following error: Symbol’s value as variable is void: org-latex-classes

This is a new error, and I haven't really changed anything in my config. The relevant portion is below (use-package org :config (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file) (setq ...
Dargscisyhp's user avatar
0 votes
1 answer
23 views

export temporary files to another folder in org to latex export

In this thread you will find the following code. What I would like to change is that the pdf and html will not go to that folder. Place only service files such as tex files there. (defun org-export-...
Levo's user avatar
  • 47
0 votes
2 answers
26 views

id that looks like footnote causing "Definition not found" in org-export

When exporting an org-mode file to html, when UUID contain the string "fb", error org-export--missing-definitions: Definition not found for footnote 1 would be reported, aborting the export, ...
Herman He's user avatar
1 vote
1 answer
96 views

Is it possible to do conditional formatting on an org-table?

Here is an example of a table to format, the first row represents how often a task is done per year, the first column represents how long a task takes in seconds |-------+------------+-----------+---...
crocefisso's user avatar
  • 1,306
1 vote
0 answers
28 views

org-babel :results header-arg, graphics vs file

The org manual describes how to evaluate a src block and capture the results, using :results <collection> <type> <format> <handling> # i prefer to use this terminology for the ...
user615536's user avatar
0 votes
1 answer
33 views

How can I get color in an example org block exported to a verbatim beamer environment

I am trying to get some color in an example block exported to beamer by doing something like the following #+BEGIN_EXAMPLE case when \textcolor{red}{condition-1 then value-1} when condition-2 ...
Dargscisyhp's user avatar
0 votes
1 answer
20 views

Is it possible to remove comment addition when exporting?

When I do org-org-export-to-org, Emacs adds the following comment to the new org file: # Created 2023-12-26 mar. 12:48+ Is there a variable that can prevent Emacs from adding this comment?
crocefisso's user avatar
  • 1,306
0 votes
1 answer
27 views

Is there a way to transcode example blocks differently from src results?

I'd like to have #+results: : Hello world export as \begin{results} Hello world \end{results} while I want example blocks to export as... \begin{verbatim} This is an example \end{verbatim} How can ...
user41177's user avatar
  • 121
0 votes
1 answer
56 views

Export org-mode blocks to a text file

Is there a way to export the contents of org-mode blocks to a text file? The blocks will contain only ascii text. I can export the contents of a source block using Babel with tangling: #+BEGIN_SRC ...
Snelephant's user avatar
0 votes
1 answer
38 views

When trying to compile the exported tex file, I get the error `Environment org undefined`

I use org-beamer-export-to-latex to export the current org file to latex. When I try to manually compile the resulting tex file using latexmk -f -pdf -pdflatex -shell-escape -interaction=nonstopmode x....
HappyFace's user avatar
  • 830
0 votes
1 answer
64 views

In Org-mode, how to disable indentation of first line of a paragraph?

When converting from Org-mode to PDF, the first line of a paragraph is automatically indented: aaaaaa bbbbb ccccc ddddd eee ee fffff ggggg This is fine. However, I would like to disable it when I ...
Pietro's user avatar
  • 121
0 votes
1 answer
38 views

Is there any org-babel source block that converts to a LaTeX pseudocode algorithm block?

Currently, when I want to add some algorithm's pseudocode to my LaTeX export, I have to manually write LaTeX: ** Pixel-Flipping: A Technique to Assess Faithfulness - Pixel-flipping is a quantitative, ...
HappyFace's user avatar
  • 830
0 votes
0 answers
68 views

Latex rendition on HTML export

In Latex pdf export (C-c C-e l o) $m$ renders correctly as italics m but in HTML export (C-c C-e h o) it renders as Roman m. Reverse slash Latex formulas like $\mathbb{N}$ render fine in both Latex ...
zeynel's user avatar
  • 371
0 votes
1 answer
40 views

Org Markdown exporter (ox-md) does not respect Footnotes level

Given that I have an Org document with footnotes And I have defined: #+BIND: org-md-toplevel-hlevel 2 And in my Emacs init script I have set: (setq org-export-allow-bind-keywords t) When I export ...
pgpb.padilla's user avatar
0 votes
1 answer
25 views

How do I stop converting underscores to \textsubscript while exporting from org to latex?

I'm using special blocks for equations or math containing underscores, for example #+begin_equation \sum_{i=0}^{n} i = \frac{n(n+1)}{2} #+end_equation However, when I see the corresponding tex file, ...
digikar's user avatar
  • 141
0 votes
0 answers
67 views

A script to export org with highlighted code block

I've written the script to export all of my ORG files into HTML files. It takes the files from the folder "content" and saves the results to "public". (setq user-emacs-directory &...
ANtlord's user avatar
0 votes
0 answers
24 views

Prevent ox-koma-letter.el from creating .tex files?

When running org-koma-letter-export-to-pdf on an .org file to create a .pdf file ox-koma-letter.el also creates a .tex file. Does anyone know if there is any way to prevent it (or just clean it up ...
Daniel Krajnik's user avatar
0 votes
1 answer
61 views

Running emacs in batch mode from command line doesn't work

Does anyone know if ox-koma-export.el can be invoked from command line: emacs --batch -e '(org-koma-letter-export-to-pdf)' letter.org Should emacs in general be universally reproducible from command ...
Daniel Krajnik's user avatar
0 votes
0 answers
28 views

how to export a table of contents for tagged lines only

Let's say my document has this motif: * Heading 1 :sometag: ** Heading 1.1 *** Heading 1.1.1 :target: * Heading 2 :target: ** Heading 2.1 :sometag: When exporting (say, ...
Ryan's user avatar
  • 101
0 votes
1 answer
62 views

Ignore all headings on export

I have been using an org-contrib package (ox-extra) to exclude certain headings upon export. It works by adding an "ignore" tag to whichever heading you want to ignore, exporting the ...
thnx-236659's user avatar
1 vote
1 answer
45 views

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

How do I get the starred version of a latex chapter/section from an org-mode headlight? * my section ---> \section{my section} ??? ---> \section*{my section} thanks
onlycparra's user avatar
0 votes
0 answers
43 views

Change vertical margins/size of the address fields in the koma-letter-export

I'm trying to export a letter as a pdf using org-koma-letter-export-to-pdf command, which is part of the koma-letter-export package (ox-koma-letter.el). By default to and from address fields take up ...
Daniel Krajnik's user avatar
1 vote
2 answers
63 views

How to access node property in my own export process

Given an org document, I'd like to traverse all headlines of the given level and extract the headline title, provided that: Headline title can be generated by inline source blocks that use node ...
martinoidar's user avatar
0 votes
1 answer
52 views

Org-mode LaTeX export set AUCTeX local variables

I have an org-mode document, say #+TITLE: My Title * Section My first section and I want to export it to LaTeX with org-latex-export-to-latex. This generates a .tex file that I can now compile. ...
burek's user avatar
  • 35
0 votes
1 answer
44 views

org mode embedded LaTeX does not work for packages imported using usepackage?

I have used org mode embedded LaTeX for a while. The commonly used syntax such as subscripts, fractions and math symbols works well out of the box. All that is needed is to put the LaTeX content ...
tinlyx's user avatar
  • 1,345
1 vote
1 answer
43 views

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

I have an org file with the following code block: #+begin_src emacs-lisp (+ 1 2) #+end_src And when I export it using M-x org-html-export-to-html, the code blocks in the generated file have no color. ...
trxgnyp1's user avatar
  • 123
1 vote
0 answers
116 views

org-mode latex export of source block with engraved gives error for latex3 code due to missing color-`face` processing

I want to export my source blocks from org-mode to pdf through latex with the export backend engraved. I installed the package engraved-faces, set the variable with (setq org-latex-src-block-backend '...
lukeflo's user avatar
  • 195
0 votes
1 answer
26 views

Is there a way to Insert a Table from external pdf similar to inserting external pdf as figure?

We can easily insert figures from external PDF, but how do I insert a table the same way? For example: I have a table in .tex file in a standalone class as it is easier to generate it from an external ...
Atreyagaurav's user avatar
1 vote
0 answers
51 views

How to add a specific pdf page as an image in org-mode, and correctly export it?

I am working in a file document.org, and I have an embedded image, the second page of a file images.pdf. The org-file shows this correctly (with the code shown below). However, upon exporting it to ...
onlycparra's user avatar
1 vote
1 answer
36 views

org-mode: Export closest flagged subtree?

After editing at a deeper sublevel I often have to do multiple C-c C-u's (outline-up-heading) to get to the proper level before doing C-c C-e C-s to export the subtree. Is there a way to automate the ...
user1144980's user avatar
0 votes
1 answer
51 views

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

This works, but the output file is in the same directory as the source file: $ emacs ./notes.org --batch -f org-html-export-to-html --kill How can I get the output in a different directory? I tried ...
Pietro's user avatar
  • 121
2 votes
1 answer
114 views

How to generate a shell script from org file

I would like to develop a shell script in org mode, but have no idea as to how to generate the actual script from the file. Is there some package which will do a conversion?
balanga's user avatar
  • 135
0 votes
1 answer
68 views

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

To write in different language, I'm exploring different LaTeX engine mainly XeLaTex. #+LATEX_COMPILER: xelatex #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \setmainfont{CMU Serif} * This is ...
Garid's user avatar
  • 641
0 votes
1 answer
51 views

How to include .ODG graphs when using org-latex-export?

How do I include .odg files (created by libreoffice-draw) as a figure when exporting org file into PDF file? And, also is it possible to make odg work with M-x org-toggle-inline-images?
Garid's user avatar
  • 641
0 votes
0 answers
49 views

How can I make a line-break work in a LaTeX export without any need for special characters?

What I want is to be able to write foo bar and have my LaTeX export recognise the line-break. Two line breaks rather than one would also be acceptable. #+OPTIONS: \n:t gives the behaviour that I ...
J. Mini's user avatar
  • 103
0 votes
1 answer
56 views

Mixing org-mode export backends

How can I export to a single file using several backends for different parts of the org file? Specifically, when exporting an org file with a specific backend, I want to be able to export some ...
JeanPierre's user avatar
  • 7,475
0 votes
2 answers
45 views

Interfering with org beamer outline export

I have the following org file: #+TITLE: Some title #+OPTIONS: H:2 #+latex_class: beamer * Section 1 ** Frame 1 * Section 2 ** Frame 2 After org-exporting I obtain the .tex, which includes % ...
martinoidar's user avatar
1 vote
1 answer
69 views

In org-mode, how to reference the value of a property in another property?

For example, when exporting, the #+title property is taken as the title of the document, which will show as the heading in, for example, a latex pdf. Ideally I would like the #+title value to also be ...
lull's user avatar
  • 13
1 vote
1 answer
52 views

How to export all overdue TODOs as if they are scheduled for today

What I'm trying to do is to export an .ics file daily that can be imported to Google Calendar so that I can view all unfinished TODOs on my phone. In Emacs, I have org-agenda show the unfinished TODOs ...
P. B.'s user avatar
  • 111
0 votes
1 answer
38 views

How to remove padding for display math equations when `org-export-preserve-breaks t`?

When the variable org-export-preserve-breaks is t, the org contents... text \[ a + b + c \] text gets exported to LaTeX as... text\\[0pt] \[ a + b + c \]\\[0pt] Text\\[0pt] This adds a lot of extra ...
user41177's user avatar
  • 121

1
2 3 4 5
21