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 ...
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 ...
5
votes
2answers
310 views

How can I stop org-mode treating a number followed by a full stop as a bullet point?

I'm using org-mode to write some documentation. After changing some wording, fill-paragraph has arranged things so there's a number followed by a full stop at the start of a line. Like this: Blah ...
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 ...
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. ...
6
votes
4answers
1k views

Cleanup org-mode export intermediary file

I use org-mode to export PDF. It does it through LaTeX ; fine. So I get .pdf file and .tex files. Only the PDF is interesting to me. Any setting/way that org-mode cleanup the .tex files by itself (...
4
votes
0answers
459 views

Export to multiple files according to tags

I am using org mode to build teaching presentations (through beamer export) and I have a global document containing all the slides I use. Each slide has a tag to indicate the corresponding teaching ...
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 ...
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 ...
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 ...
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. ...
4
votes
1answer
1k views

org-mode different latex document class

I am trying to use tufte-book document class in org-mode. But for some reason, org-mode doesn't let me use it and says it is unrecognized. So I am going to the resulting .tex file and manually ...
2
votes
1answer
2k views

Exporting code blocks to pdf via LaTeX

I am writing a report in org mode and would like to show some code blocks as seen in so many tutorials. Here is some official documentation, however it was written for org-mode 6.xx back in 2011. I ...
6
votes
1answer
248 views

Unwanted concatenation of multiple #+TITLE and #+AUTHOR when using #+INCLUDE

I have 2 documents, one of which I'd like to include in the other. The first is an assignment sheet, and the second the rubric I'm going to use to grade the assignment. I want to #+INCLUDE the rubric ...
5
votes
1answer
994 views

Make org-mode export to Beamer keep temporary files out of the current directory

Exporting to Beamer from org-mode creates a myriad of temporary files (the .tex file + files ending in .aux, .log, .toc, .fls, .nav, .vrb, etc.). Most LaTeX implementations now have an option (-...
4
votes
0answers
821 views

How to embed external file contents in org file?

I'm creating a simple bash tool that uses various flags/arguments from the user, and I'm using an org file for the documentation. I have several examples and I'd like to include some explanation of ...
2
votes
1answer
403 views

Have short comments at bottom of table in org mode (beamer/latex export)

I'm trying to make a table like so: | | x | y | | a | 12 | 354 | | b | 45 | 65 | Then when I export it to pdf via beamer/latex I'd like to have a short comment below it (like Souce: www.google....
5
votes
1answer
2k views

How do I configure class options for latex export in my .emacs?

By default org mode seems to configure 8x11 as the paper type when I export to latex. I always print to A4, so I would like all of my exports to specify a4 as the paper type -- e.g.: \documentclass[...
2
votes
1answer
273 views

Org-mode don't change relative URLs

How can I prevent Org from exporting [[/][site root]] as <a href="file:///">site root</a>?
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 ...
6
votes
1answer
412 views

Easy way to insert Org options?

I really cannot bear to memorize so many options' name for Org-mode just like learning English vocabulary. For example: #+ATTR_LATEX:, #+tblname:, #+CAPTION for tables, #+ATTR_HTML: for HTML exporting....
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 ...
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 ...
5
votes
2answers
2k views

How to include other .org files programmatically (ie not from main .org file)?

Including other .org files is quite easy. For example, for configuration, #+setupfile: /path/to/config.org or #INCLUDE: /path/to/config.org Those lines need to be in the .org file in order to be ...
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 (...
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, ...
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
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 ...
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 ...
6
votes
1answer
2k views

Centered figures in org-mode LaTeX export

When org-mode exports figures to LaTeX, the figure shows up left justified. Is there an easy way to have all the figures centered? I want to avoid having to type #+ATTR_LATEX: :float t above each ...
3
votes
2answers
1k views

Org mode converting spaces to tabs when evaluating source?

I am testing out the Babel feature in org-mode, with this small block. #+BEGIN_SRC sh :results verbatim :exports both banner -w 35 e ...
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 ...
5
votes
1answer
2k views

Org export to latex and HTML references

I have been working on a document that I want to export to both HTML and latex; while working on the document I noticed that using latex \label{} and \ref{} tags works properly for latex export, but ...
3
votes
1answer
675 views

org-mode export images to html as figures, not img

Currently my images are exported with org-html-publish-to-html, and they end up as inlined <img src=''/>. I want them inside figures, so I'm working around this my problem by injecting the ...
3
votes
0answers
146 views

Prevent Org from escaping latex results

During export, Org generates this: \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm, semithick] \node[initial,state] (A) \{\$q$_{\...
3
votes
1answer
492 views

Export slide and handout version of same beamer slides in org subtree

I want to create an org file with all my beamer lectures notes for one course. With the example below I can generate my slides for a specific lecture with subtree export by positioning point within ...
3
votes
1answer
568 views

Exporting Org in Landsacpe

I have an org document I'd like to export to PDF - with several wide tables columns in it - so much so that it makes sense to export the whole document in A4 landscape to keep the orientation ...
2
votes
2answers
622 views

How do I insert code block header :var in exported code block in org-mode

GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-10-06 Org-mode version 8.3.5 (release_8.3.5-1131-g7eecb2 @ ~/.emacs.d/el-get/org-mode/lisp/) I have come to share my projects as ...
6
votes
1answer
594 views

How to export headlines, including subheadings, without other contents in org-mode?

In the org-mode documentation regarding export settings, it describes arch as follows. Configure export of archived trees. Can be set to headline to only process the headline, skipping its contents ...
3
votes
1answer
396 views

How set a setting with #+OPTIONS to a list as argument?

Well, my desired behavior is to set this: #+OPTIONS: tasks:(DONE IN-PROGRESS) To export the tasks with these keywords, however I think I don't understand well how the syntax for list looks like. So ...
3
votes
1answer
414 views

Configuring org-export to replace LaTeX def macros

I'm trying to configure org-export to replace LaTeX-def-macros while exporting to TeX or HTML. Current situation: the header #+LATEX_HEADER: \def\R{\mathbb{R}} defines a macro that replaces \R to \...
3
votes
2answers
166 views

External links to figures in org-mode

I would like to be able to link specific figures from other documents. Basically the function of the xr package in LaTeX where it doesn't necessarily give you an actual link that will take you outside ...
3
votes
1answer
346 views

How to do backend-dependent actions in org-mode export?

How do I specify different actions for different export backends in org-mode? To be more specific, I would like to export an pdf figure in latex export, while using a png in html export (in fact, a ...
3
votes
3answers
2k views

Exclude table in org-mode export

While I enjoy the table mode of org and love the way I can work with the data in these tables with eg Python or R I am currently stuck with a simple problem: How can I exclude the table from being ...
2
votes
1answer
341 views

How can I export many org documents to ASCII?

I have a directory ~/foo/ with hundreds of org documents among other types of files. I want to export each org file to ASCII. The only way I know how to do this is to follow the following procedure ...
2
votes
2answers
237 views

Is there a way to export latex template to scimax template?

Scimax has already some templates for various journals. However, is there a way to convert latex templates of some specific journals (like nuclear physics A, European physical journal etc.) to org-...
2
votes
2answers
912 views

Italic paragraphs in org-mode

Does simple markup, such as italic, work for whole paragraphs or only for parts of the line? For example: /first italic paragraph second italic paragraph/ If not - what would be a correct ...
2
votes
1answer
73 views

Can I insert a prefix to Org Babel source code lines on export?

Like, say I have a shell script source code block. #+BEGIN_SRC shell echo 'Hello World!' #+END_SRC On export, I want the code text to pick up a dollar sign, so $ echo 'Hello World!'. But I only ...
1
vote
2answers
111 views

Is there a way to use org-mode to render generated code? [duplicate]

I'm new to org-mode, so I apologize if this is a silly question, but I couldn't find the answer on my own. I have the following block: #+BEGIN_SRC sh :exports both :results output verbatim code sed '...
4
votes
1answer
87 views

Content of a table cell showing hexadecimal number wrongly interpreted

I have this table in org-mode that I wish to export to pdf: #+ATTR_LATEX: :align |r|r|r| :font \ttfamily \tiny |service | port | hex | |--------|------|--------| |mdns | 5353 | 14e9 | after ...