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
1 answer
1k views

org-mode and taskjuggler export

I'm using the taskjuggler export backend for org-mode. All works well except I cannot work out how to set some project global values. I want to set the follow for all my exported *.tjp files timezone ...
  • 557
1 vote
1 answer
472 views

Set fill-column in org-export

I am using org-confluence-export-as-confluence. Confluence (when importing markup) seems to treat every newline as a "hard break". So, I'd like to have the output of org-confluence-export-as-...
31 votes
2 answers
12k 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?
0 votes
2 answers
230 views

Full path figure export to LaTeX error in org-mode in Windows 7

when I export a full path figure , like: [[file:c:/Users/admin/Desktop/1.png]] to LaTeX in org-mode, a result of {//c:/Users/admin/Desktop/1.png} was generated. One more // was generated in front ...
  • 2,360
2 votes
0 answers
772 views

How to make org-export give more messages when it fails

When I tried to org-export to html file, this message showed up in Messages or minibuffer: htmlize-color-to-rgb: Wrong type argument: stringp, 3 nothing more. Actually another message showed up ...
  • 2,559
11 votes
2 answers
6k 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 ...
  • 2,559
16 votes
1 answer
4k 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 ...
  • 1,670
12 votes
3 answers
4k 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 ...
  • 1,172
2 votes
1 answer
253 views

Exporter for Org: can quote-block get headline's property?

With org-export-define-backend, I want to make quote-block get current headline's properties. For example, define a function org-my-headline(headline contents info) for exporting headline , I can get ...
  • 980
9 votes
2 answers
3k 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 ...
  • 1,670
7 votes
1 answer
1k views

Org: Add front cover for LaTeX/PDF export?

I want to add a front cover for my Org document which will export as a PDF (#+LaTeX_CLASS: article). I don't want to modify my org-latex-classes and apply globally. I tried to add the following block ...
  • 980
3 votes
2 answers
500 views

`:cache yes` makes the settings on `#+RESULTS` erased whenever executing the block

:cache yes makes the settings on #+RESULTS be erased whenever execute the block. For example, I want an image file be resized into width 12cm for LaTeX -> PDF exporting. However, #+ATTR_LATEX: :width ...
  • 980
2 votes
2 answers
588 views

Remove Org-mode tags from ASCII but not LaTeX export

I'm aware of #+OPTIONS: tags:nil to have tags not be exported. I'd like them exported to LaTeX exports, but not ASCII exports. Is there a way to have options only apply to certain exports? Is there ...
  • 3,968
0 votes
0 answers
50 views

Check the modified time of #+RESULTS file before exporting, then evaluate the code blocks selectively to save time?

Is there any configuration or package, which can make Org-mode checks the modified time of all #+RESULTS' files before export (maybe auto add a #+MODTIME for comparing I guess), then decide if a code ...
  • 980
9 votes
1 answer
3k 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: #+...
6 votes
1 answer
970 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....
  • 980
4 votes
2 answers
711 views

Org headlines are never exported to \paragraph in LaTeX

I want to export an Org file into PDF, with any depth titles showed in TOC; however, cannot works. Even though adding \setcounter{tocdepth}{5}, TOC still only contains the title of 3rd depth (\...
  • 980
9 votes
2 answers
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 ...
  • 269
3 votes
1 answer
2k views

Org-mode doesn't seem to be exporting listings/minted correctly

Emacs is exporting listings blocks (i.e. #+BEGIN_SRC <lang>) in a strange, incorrect way. Here's an example of what I mean with a simple org file: #+AUTHOR: #+BEGIN_SRC js var dog = "dog!" #+...
6 votes
1 answer
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 ...
  • 1,760
2 votes
1 answer
4k views

org-mode cannot find pdflatex using Mac OS

When I try to export an org file to pdf using C-c C-e l o I get the following message: Saving file /Users/user/tmp/test.tex... Wrote /Users/user/tmp/test.tex Processing LaTeX file ./test.tex... /bin/...
6 votes
1 answer
2k 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 (-...
  • 1,760
16 votes
1 answer
3k 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 ...
  • 14.3k
6 votes
1 answer
2k views

In org mode, how to export slide with bibliography?

I have been trying to include citations in the org file which I then export to beamer and using biblatex. It seems that slide of bibliography needs specifying environment like fragile or ...
  • 409
1 vote
1 answer
594 views

How to comment options in org-mode export to beamer?

Generally in the LaTeX or beamer preamble, we add some packages and options for reference and enable them if required. %\usepackage{someusefulpackage} In Org mode export to LaTeX or beamer, when I ...
  • 409
29 votes
1 answer
5k 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 ...
  • 2,619
13 votes
1 answer
7k 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 ...
  • 2,559
5 votes
2 answers
580 views

apostrophe in org-babel export to latex and beamer

How can I get org-babel to properly render ' and not ’ when exporting to LaTeX and to Beamer? I didn't find any good solution yet, and I would like the code to be copy-pasteable.
  • 51
4 votes
2 answers
528 views

Greek characters in graphs produced by org-babel and gnuplot

I can generate plots using gnuplot source blocks with org-babel like the following: #+begin_src gnuplot :file plot.png plot x w l t "$\epsilon$ = 1", \ 1-x w l t "ε = 0.1" #+end_src which ...
1 vote
1 answer
392 views

Babel doesn't wrap results in verbatim

Here's an example: #+NAME: sys5 #+HEADER: :exports both #+BEGIN_SRC maxima :results raw programmode: false; solution: triangularize(coefmatrix( [ -3*x - 11*y + 7*z = 0, ...
  • 11k
15 votes
3 answers
14k 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 ...
  • 3,968
6 votes
2 answers
2k views

exporting org-mode nested blocks to html

Is there a way to convince org-mode to export nested blocks as nested <blockquote> elements? This would be really cool to handle nested quotes in html emails with mu4e. #+BEGIN_QUOTE hey ho #+...
  • 245
10 votes
5 answers
3k 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 ...
  • 1,581
1 vote
0 answers
250 views

org-mode ignoring category filter on export

I'm trying to create a "calendar only" view of my org-mode agenda -- only headlines that have a "cal" category. The org-agenda-custom-commands below (the first block) works brilliantly for viewing ...
  • 111
6 votes
1 answer
999 views

How can I have Org use `sidewaysfigure` in LaTeX export?

I am writing an Org document with some large figures (images) which I would like to place on a separate page in landscape orientation when exporting to LaTeX. In LaTeX I can achieve what I want by ...
user avatar
7 votes
2 answers
805 views

Org-mode -- sub-TOCs for individual sections?

Inside my org-mode documents, I'd like to do sub-TOCs for individual sections and subsections. For example: #+TOC: headlines 1 # This is the "main" table of contents, ...
22 votes
1 answer
3k 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 ...
  • 1,670
6 votes
1 answer
382 views

Applying major-mode font locking to exported org-babel snippets

Currently I have a bunch of code snippets in my Org-based presentation. I'm exporting them with ox-reveal, but the exported code doesn't have any syntax highlighting. Is there any way to: have syntax ...
  • 4,566
23 votes
1 answer
2k 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 a ...
  • 24.6k
30 votes
2 answers
7k 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.6k
11 votes
3 answers
1k 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, ...
  • 1,670

1
15 16 17 18
19