Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

26
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
279 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 ...
16
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. ...
5
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 (...
3
votes
0answers
389 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
940 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 ...
12
votes
4answers
2k 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 ...
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 ...
23
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 ...
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. ...
3
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 ...
5
votes
1answer
219 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
914 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 (-...
2
votes
1answer
361 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[...
6
votes
1answer
361 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....
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 (...
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 ...
10
votes
3answers
689 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, ...
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 ...
7
votes
2answers
4k 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 ...
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 ...
6
votes
2answers
988 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 ...
4
votes
2answers
894 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 ...
4
votes
1answer
968 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 ...
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 ...
4
votes
1answer
609 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
1answer
402 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
0answers
136 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$_{\...
2
votes
2answers
580 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 ...
9
votes
2answers
7k 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 ...
6
votes
1answer
548 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 ...
5
votes
0answers
689 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 ...
3
votes
2answers
129 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
380 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 \...
2
votes
1answer
305 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
1answer
50 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 ...
2
votes
2answers
759 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
3answers
1k 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 ...
1
vote
2answers
103 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
787 views

org-mode quote block environment

Is there a way in org-mode to setup #+begin_quote my quote here #+end_quote to be expanded in latex export as \begin{quoting} ... \end{quoting} I want to use quoting latex package to style quote ...
4
votes
1answer
76 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 ...
3
votes
1answer
157 views

`#+NAME:` is ignored unless running Emacs with `-q`

I am trying to export an .org buffer with the following contents: #+CAPTION: My subgraph. #+NAME: fig:subgraph [[/tmp/image-4383FmT.png]] The following latex output is produced: % Created 2018-01-...
3
votes
1answer
559 views

How can I export to LaTeX every time I save an Org mode buffer?

I'm trying to set up a buffer-local behavior so that optionally, only after I execute the babel section, Org exports to LaTeX asynchronously after each save. I tried the following: (defun kdm/org-...
3
votes
0answers
372 views

Export alphabetical org lists as alphabetical html lists

This is a follow up to a previous question. When exporting an alphabetically sorted org-list to html ((setq org-list-allow-alphabetical t)), the list is converted to a numerically sorted list. Any ...
2
votes
0answers
375 views

org-publish-project-alist: :latex-header

Context When exporting Org-Mode documents to LaTeX it is possible to specifcy additional LaTeX header commands: #+LaTeX_HEADER: \subtitle{This is a subtitle} Using org-publish it is possible to ...