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
27
votes
2answers
4k views

Is it possible to export content of subtrees without their headings?

I draft documents in org-mode and export them to LaTeX, HTML, etc. as needed. I frequently use the tag :no_export: whenever I don't want a certain subtree to show up in the output. What I also want ...
26
votes
2answers
4k views

New line in Title of an org-mode exported html document

I use org-mode to document stuff and usually export it to pdf (via latex) and html. If the \\ characters are at the end of a line, it forces a newline character when exporting to both pdf and html. ...
24
votes
1answer
3k views

Set the background of org-exported <code> blocks according to theme

I export org-mode files quite often, and almost all of them have code in them. When I do export code, it ends up coloring the text depending on my theme, however, I switch between a dark theme and a ...
23
votes
2answers
3k views

Exporting org file breaks when upgrading to orgmode 8.3

My orgmode was recently updated to the recent 8.3, and I found that I can't export my init.org file as HTML any more. I'm getting the following output in *Messages* buffer: org-babel-exp process ...
21
votes
1answer
1k views

How to implement Markdown style link IDs in org-mode?

At times, I need to use the same link at multiple places in a long document. For those cases it would be useful to have link IDs like in markdown. From markdown syntax ref, You can optionally use ...
18
votes
2answers
2k views

Org-mode Integration with Google Calendar?

It seems that the various methods of calendar integration have not been working well. The tutorial on worg is outdated and the function is now called org-icalender-export-to-ics. However running this ...
17
votes
1answer
2k views

How to export top-level headings of org-mode buffer to separate files?

How can each top-level heading of an org-mode buffer be exported to a separate file named after the value of the corresponding CUSTOM_ID + (sanitized) title? Let's say a buffer contains: * Title of ...
16
votes
2answers
6k views

Is there a way to resize margins when exporting PDF in org-mode?

I want to export my org document as a PDF, but its margins are way too big. I would like to re-size them as I wish. I am using #+LaTeX_CLASS: report I do not know if there is a way. Any help?
15
votes
4answers
3k views

How can I specify the filename for org-mode export in Emacs?

My org file is named README.org and I want to export to Markdown into a file named README. Every time I run the export it writes to README.md. Here is my org file: #+PROPERTY: EXPORT_FILE_NAME thing ...
14
votes
4answers
3k views

Change table of contents title in Org mode according to document language

Is there an option which changes default title of table of contents in Org mode? My document is not in English so I want to translate table of content's title. Answer As JeanPierre said, It's about ...
14
votes
3answers
2k views

Exporting unicode characters to pdf using latex from org mode

Hello Good people of Emacs! I'm having trouble exporting unicode math symbols from buffer (org-mode) to pdf file. 1. Problem Description: Symbols are inserted to the buffer as unicode characters (...
14
votes
2answers
913 views

Orgmode export: how to prevent a new line for comment lines

Currently my orgmode (v8.3.4), when exporting to LaTeX (and maybe other formats but I haven't checked), generates a new line for a comment line or a block of consecutive comment lines. This is ...
12
votes
2answers
2k views

Is there a way to make Org mode ignore src blocks when exporting to html?

I have an org document with scattered with source blocks that I'd like excluded when I export the file to html. Is there a variable or option I can set which will ignore the src blocks? I have tried ...
12
votes
1answer
4k views

How to include the output of a shell command in org-mode source code block?

For example, I got a demo to show a command and its output, and I want to insert them into an .org file like a source code snippet of C or something. I then want to be able to export the file to an ...
12
votes
3answers
873 views

Can org-babel results be output as code comments?

In blogs, textbooks, etc, it's really common to display the results of some code as comments, e.g.: (+ 1 1) ;=> 2 Is there a way to display results like this automatically using Org-Mode's Babel ...
12
votes
1answer
2k views

Org-mode: Exclude specific headlines from TOC when exporting

Q: How can I tell org-mode to exclude specific headlines from the table of contents when exporting? For example, exporting * Headline 1: Put me in TOC * Headline 2: Put me in TOC * Headline 3: DO ...
11
votes
3answers
2k views

How to change style of hyperlinks within PDF published from org-mode document?

I'm exporting (publishing) an org-mode document to PDF, and the results look great except for the hyperlinks. They look terrible. Hyperlinks to the Web look the same, only with a pale blue outline. ...
11
votes
3answers
723 views

Emacs function to convert an arbitrary ORG PROPERTY into an arbitrary string (namely, a LaTeX label)?

I have many documents as org-files which have a CUSTOM_LABEL property, like * Introduction :PROPERTIES: :CUSTOM_LABEL: AP 1 :END: In this case, the files need to be exported as LaTeX, ...
11
votes
1answer
2k views

Export :PROPERTIES: blocks with org-mode?

The org-mode manual says that it's possible to export property drawers, but trying with #+OPTIONS: d:t does not export any :PROPERTIES: blocks like it used to. Reading the Drawers chapter it ...
10
votes
3answers
2k views

Format a HTML paper with Org-mode

Org-mode's default during HTML export is to put the author in the postamble at the bottom of the page. But I would like to export a paper like document with the author between the title and the ...
10
votes
1answer
1k views

How do I get rid of the red boxes around the links in the TOC? [duplicate]

I wanted to get rid if the red boxes in TOC that we obtain when exporting org to pdf. The red boxes looks absolutely ugly and spoil the appearance of the entire document.
10
votes
1answer
2k views

Export an org-mode file as a PDF via command line?

What command-line arguments do I use to get Emacs to export an org-mode file to a Beamer PDF? (I want to create a Makefile that produces a PDF when the user runs make.) I tried following this answer ...
10
votes
2answers
1k views

Org-mode export: indent first line of each paragraph, “literary” style

Is there a switch on org-mode I can use on export to ODT (or other format) to format my source file of This is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a ...
9
votes
3answers
8k views

How should I write inline equations in Org Mode so they export to LaTeX properly?

I have a sentence with the words 42 m s^{-1}. When this is exported to LaTeX it exports as 42 m s$^{\text{-1}}$. How should I write it, or what flags should I set in the #+OPTIONS: line, so that it ...
9
votes
2answers
8k views

org-mode , export , how to 'force' newline on lines between paragraphs?

I have an org-mode file, some sub-sections have some big paragraphs. When I export as html the whole paragraphs are displayed as single lines. I understand that I have to put a '\\' on every line, a ...
9
votes
2answers
882 views

Syntax highlighting in org mode #+BEGIN_LATEX block

Is this possible? (I know it's possible for #+BEGIN_SRC latex blocks.)
9
votes
1answer
2k views

How do I limit the width of a table or columns in org-mode PDF export?

I'd like to format a table with a wide column nicely in PDF export from org-mode. Ideally it would be with a wrap on that column, but I can deal with a manual character or fraction of \textwidth for ...
9
votes
2answers
4k views

The syntax highlight and indentation of source code block in exported html file for org-mode

When I insert C code block inside an org-mode file, the syntax highlight and indentation of the source code are customized as I wanted. When I export it into a html file, the syntax highlight in the ...
9
votes
2answers
3k views

Tracking down Org LaTeX export errors

How do you track down errors reported during the export process? I am writing an Org document and exporting it to PDF. (I do not know LaTeX). I was getting the following error: org-latex-compile: ...
8
votes
2answers
5k views

org-mode: How to export underscore as underscore instead of highlight in HTML?

I am using org-mode, and the document I am writing has a table name whose name looks like this: tab_weekly_report. When I export the document to HTML, I expect the name to exported as ...
8
votes
2answers
2k views

How to reference source blocks in org text

I want to create source blocks (in any language including LaTeX), then refer to these in the text using internal links, with descriptions as shown below. This similar post is not working for me. I ...
8
votes
1answer
1k views

Long org export latex header

I need many lines in my org-export latex header. #+LATEX_HEADER: \usepackage[main=british,polutonikogreek]{babel} #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \usepackage{hanging} #+...
8
votes
2answers
2k views

org-mode table exports centered - change to left?

I'm exporting a simple org-table through LaTeX to PDF: | a | b | c | | 1 | 2 | 3 | After export with C-c C-e l o the PDF contains a centered table, and I'd rather have it on the left (to be clear, I'...
8
votes
1answer
223 views

Formulas in plain text export

I am trying to find a way to export an Org document with lots of formulas in plain text, but the results aren't great so far. What I tried: pandoc - basically keeps all math in LaTeX unchanged, ...
8
votes
1answer
671 views

org-mode captions not supported for EXAMPLE blocks?

Please consider the following, self-contained .org file MVE, which I hope is self-explanatory: #+OPTIONS: toc:nil Figure [[captions-work-for-src-blocks]] shows that captions are correctly exported ...
8
votes
1answer
573 views

How to export svg images as <img …> in html export

Normally, when I export to html an org-mode buffer that contains a link to an image, the link is coverted to a proper html <img...>. However, if that image has a .svg extension, it is exported ...
7
votes
4answers
2k views

org-mode ignore heading when exporting to latex

I have a problem where I want to structure my document visually with a heading but do not want it to actually execute a \section{Fake Heading} for the latex export. I imagine this would be ...
7
votes
2answers
2k views

Can org-babel replace code with code output on html export?

I'm using org-mode to generate web pages of my notes. Can I embed code to generate additional HTML, etc? org-babel will generate results but it seems to show the results in addition to the code. I ...
7
votes
1answer
1k views

How to have wrapped text when exporting from org to Latex?

I have an org file which I export to LaTeX and then to a PDF document. The problem is I have some long text that exceeds the length of the page. How to wrap it so that it falls into the next line? ...
7
votes
2answers
1k views

Org-export: How to include a pregenerated HTML file when exporting org to HTML?

I'm rewriting my personal home page as an org-file that I export to HTML. In this HTML document, I'd like to include the content of some pregenerated HTML fragments stored in other files (my list of ...
7
votes
1answer
2k views

Execute src block on org mode export

I have some sort of fundamental confusion about using src blocks in org mode. I define a custom latex class in an emacs-lisp src block at the top of my org file. Export fails however, unless I ...
7
votes
1answer
2k views

Setting class attribute for html table in orgmode export

I would like to set the class for a table in html export, e.g.: <table class="table table-striped"> While it seems that setting some attributes for export of tables to HTML are possible: #+...
7
votes
1answer
1k views

Org-mode external links not working when exported to HTML

I have 2 .org files: // a.org contains the anchor <<my_anchor>> // b.org contains the link to my_anchor [[file:a.org::my_anchor][My Link]] When I click on the link in org-mode, it links ...
7
votes
2answers
142 views

How do I export some of the subheadings in a subtree marked as :noexport:?

I would like to be able to have an org-mode file that looks like the following: * Some Heading :ignore:noexport: ** Not exported Some stuff. ** Other not exported heading More stuff. ** ...
7
votes
1answer
612 views

Setting #+ATTR_LATEX for all images of a document

I am currently adding an #+ATTR_LATEX before every image in my org-file to center it in the produced LaTeX beamer slides. That is slightly annoying and clutters up the document. Is there a way to set ...
7
votes
4answers
2k views

Browser not opening when exporting HTML from org-mode

Org-mode can export as HTML and open on a browser with C-c C-e h o (org-export-dispatch), but the problem is that the generated html file opens in a buffer inside emacs. There is no error in the ...
7
votes
1answer
527 views

org-mode : highlight lines in src blocks when exported

Github has a convenient way to show some lines as highlighted in the code, like so. I'd like to know if there's a way to setup something similar with org-mode code blocks when exporting (in my use ...
7
votes
0answers
245 views

How to expand external files inline on orgmode?

I know I can use something like #+INCLUDE: "./filepath" but this has effect only when I export the file. I can also use link like [[./filepath]] but I have to type C-c C-o to go to the content. How ...
7
votes
0answers
316 views

org-mode ODT export template

I would like to export org file to ODT. Is there any nice ready to use ODT template that can be used for exported documents? Default template is not good looking. I had the same problem with html ...
7
votes
1answer
441 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...