Skip to main content
20 votes

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

While the previous answers are helpful, I'll add a bit more of an explicit recipe for Org mode. By default, Org mode adds a rather unhelpful hypersetup section. You can prevent this addition by ...
dpritch's user avatar
  • 465
20 votes
Accepted

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

Following the links given here, you can get rid of the ugly red boxes by adding the following line in the beginning of your org file: #+latex_header: \hypersetup{colorlinks=true} If red isn't your ...
xandfury's user avatar
  • 675
16 votes
Accepted

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

From a LaTeX point of view, these are different cases. In the first case, LaTeX isn't going to wrap -- and it shouldn't! A "verbatim" environment, which is what source-code is set in, respects lines ...
Paul Stanley's user avatar
16 votes
Accepted

Changing default font size in Org LaTeX export

I think you can do this with: #+latex_class_options: [10pt] and #+latex_header: \usepackage{setspace} #+latex_header: \onehalfspacing
John Kitchin's user avatar
  • 12.1k
14 votes
Accepted

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

You may try something like this: #+ATTR_LATEX: :environment longtable :align |l|p{10cm}|l| | | <30> | | | Column | Wide ...
theldoria's user avatar
  • 1,855
12 votes
Accepted

Exporting Org in Landscape

What about putting the following in the export options: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [landscape] #+LATEX_HEADER: \usepackage[a4paper]{anysize}
Niclas Börlin's user avatar
10 votes

read e-books in Emacs

Try nov (installable via melpa). It is a reasonable start for reading ePUBs in Emacs.
halloleo's user avatar
  • 1,405
9 votes
Accepted

Add cell background colors to org-mode table in pdf export

Getting inspiration from this answer, the following works. You must install the xcolor package as instructed there. #+LATEX_HEADER: \usepackage[table]{xcolor} * table test | hi | there ...
Juancho's user avatar
  • 5,505
8 votes
Accepted

Recolouring PDFs

Yes, there's a dark ("midnight") theme with pdf-tools. Right-click somewhere within the displayed pdf, go to "Render Options" in the menu (about half-way down) and select "Midnight mode". ...
aplaice's user avatar
  • 2,216
7 votes
Accepted

org-mode Beamer export: can't change format of title page and TOC

Instead of #+LaTeX: you should try #+BEAMER_HEADER: for all beamer specific configuration lines. For example: #+BEAMER_HEADER: \setbeamertemplate{navigation symbols}{} removes navigation symbols in ...
Lgen's user avatar
  • 1,420
7 votes
Accepted

Org-mode file hyperlinks always use doc-view, can't force it to use external pdf viewer

I fixed the problem by using M-x customize-variable org-file-apps and adding a cons-cell with Extension: \.pdf\' and Command: evince %s at the top. Oddly enough, links starting with file+sys: still ...
Zacatexas's user avatar
  • 313
6 votes

convert a text buffer to a pdf file?

You can do C-u M-x ps-print-buffer to print current buffer to a PS file and then pipe it through ps2pdf.
Arne's user avatar
  • 419
6 votes

convert a text buffer to a pdf file?

This does not address the specific issue of bookmarks in the PDF, but does address the general problem of converting buffers to PDF. If you want to get a PDF "screenshot" of the buffer as you ...
Joe Corneli's user avatar
  • 1,808
6 votes

Printing/exporting to PDF from text-mode

Printing I'm not sure what you've tried, but the best start would probably be ps-print-buffer-with-faces. This answer provides a convenient wrapper for generating a pdf file (copied below): You ...
aplaice's user avatar
  • 2,216
6 votes
Accepted

Org Mode. Set separation length between elements of a list

PDF export is done by exporting the org mode document to LaTeX and then processing the LaTeX document to PDF. There is nothing on the org mode side to control that spacing but org mode does provide ...
NickD's user avatar
  • 33.6k
6 votes
Accepted

How can I reliably create latex classes in org mode?

Your init file defines a notes class that can be used by org when exporting to LaTeX: #+LATEX_CLASS: notes It works fine, in the sense that it produces a latex output that starts out like this: \...
NickD's user avatar
  • 33.6k
5 votes

Org-mode file hyperlinks always use doc-view, can't force it to use external pdf viewer

I added (add-to-list 'org-file-apps '("pdf" . "evince %s")) to my init-file. Now C-c C-o opens any PDF in evince and C-u C-u C-c C-o opens them in doc-view.
Dieter.Wilhelm's user avatar
5 votes
Accepted

How to jump to a page in `DocView` mode when a pdf contains a roman numeral numbered introduction?

In pdf-tools you can type M-g l (pdf-view-goto-label), which asks for a page-label, which is usually equal to the displayed page-number.
politza's user avatar
  • 3,386
5 votes
Accepted

how to enable pdflatex --shell-escape switch in org-export dispatcher interface

Something like this in your init file should do the trick. (setq org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" "bibtex %b" "pdflatex -...
John Kitchin's user avatar
  • 12.1k
5 votes
Accepted

Select a word in a PDF by double-clicking on it (with pdf-tools)

At first, note that pdf-sync binds mouse-double-1 in the minor mode pdf-sync-minor-mode to pdf-sync-backward-search-mouse. So one should probably only bind it in a minor mode that can be deactivated ...
Tobias's user avatar
  • 33.7k
4 votes

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

I know this is old and the existing answers are already great. But in case anyone is searching for this and needed a bit more control, here's how to change the hyperref template. (customize-set-value '...
Naheel's user avatar
  • 201
4 votes

Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?

It's been ages since I set this up for myself, but here's the code I use. Essentially, it's just registering Emacs itself (or, rather, emacsclient) as an external viewer. (add-to-list 'TeX-view-...
Aaron Harris's user avatar
  • 2,684
4 votes

Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?

Here is how I ended up solving the problem: (setq TeX-view-program-selection '((output-pdf "PDF Tools")) TeX-view-program-list '(("PDF Tools" TeX-pdf-tools-sync-view)) TeX-source-correlate-start-...
Louis15's user avatar
  • 263
4 votes

Export to PDF with index bookmarks and unnumbered sections

Here is how I got it working. This produces the PDF index, no table of contents in the document, and no section numbering. #+OPTIONS: toc:nil #+LATEX: \setcounter{secnumdepth}{0} Note that I am ...
a06e's user avatar
  • 181
4 votes
Accepted

How to change formatting TODO in Org-mode's Latex PDF output

A similar question was answered here, but I will write a slightly improved version here, namely one that uses the 'todo-type' argument (as was suggested in the comments of the linked answer). The ...
dalanicolai's user avatar
  • 7,985
3 votes

pdf-tools indirect buffers

Indirect buffer need special support, since their buffer-file-name is nil. But this is currently not implemented in pdf-tools. So it seems that the answer is no.
politza's user avatar
  • 3,386
3 votes
Accepted

Make pdf-tools remember the page I was on

The pdf-view-restore works for me and is available on MELPA. But the pdf-view-restore github page seems to provide more useful configuration instructions.
dalanicolai's user avatar
  • 7,985
3 votes
Accepted

PDF doc view flickers continously

I had a similar problem with PDFView and it turned out that the flickering was caused by Blink-Cursor mode. Try to disable this minor mode in the buffer.
Simka's user avatar
  • 196
3 votes

Install Pdf-Tools on Emacs MacOSX

I have poppler and automake installed using homebrew, however pdf-tools-install failed with: no such program autoreconf. I retried pdf-tools-install from tty/terminal Emacs and everything built ...
Christian's user avatar
  • 131
3 votes

Display PDF images in org-mode

There is now a package on melpa just for this purpose: org-inline-pdf. It is developed at github, where you also find usage information. https://github.com/shg/org-inline-pdf.el Note that this package ...
Christian Herenz's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible